/* style.css - Enhanced Portfolio with Dynamic Effects */

/* ==================== ROOT & VARIABLES ==================== */
:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #a0a0a0;
  --accent: #ffffff;
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --shadow: rgba(0, 0, 0, 0.5);
  --glow: rgba(255, 255, 255, 0.3);
  --gradient-1: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  --gradient-2: linear-gradient(45deg, rgba(255,255,255,0.05) 0%, transparent 100%);
  
  --font-main: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body.light-theme {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #606060;
  --accent: #000000;
  --glass: rgba(0, 0, 0, 0.05);
  --border: rgba(0, 0, 0, 0.1);
  --shadow: rgba(0, 0, 0, 0.1);
  --glow: rgba(0, 0, 0, 0.2);
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

/* ==================== LOADING SCREEN ==================== */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 4px;
  margin-bottom: 30px;
  animation: glowPulse 2s ease-in-out infinite;
}

.loader-text {
  display: inline-block;
  animation: fadeSlide 1s ease-out;
}

.loader-dot {
  color: var(--accent);
  animation: dotBlink 1.5s infinite;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 20px;
}

.loader-progress {
  height: 100%;
  background: var(--accent);
  width: 0%;
  animation: loadProgress 2s ease-out forwards;
  box-shadow: 0 0 20px var(--glow);
}

.loader-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  animation: fadeIn 1s ease-out 0.5s both;
}

@keyframes loadProgress {
  to { width: 100%; }
}

@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 20px var(--glow), 0 0 40px var(--glow); }
  50% { text-shadow: 0 0 30px var(--glow), 0 0 60px var(--glow); }
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==================== BACKGROUND ==================== */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255,255,255,0.02) 0%, transparent 50%);
  pointer-events: none;
  animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

/* ==================== HEADER ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 40px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-smooth);
}

body.light-theme .site-header {
  background: rgba(255, 255, 255, 0.8);
}

.site-header.scrolled {
  padding: 15px 40px;
  box-shadow: 0 4px 30px var(--shadow);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.logo-container:hover {
  transform: scale(1.05);
}

.logo-svg {
  color: var(--accent);
  filter: drop-shadow(0 0 10px var(--glow));
  transition: all var(--transition-fast);
}

.logo-container:hover .logo-svg {
  filter: drop-shadow(0 0 20px var(--glow));
  transform: rotate(360deg);
  transition: transform 0.8s ease;
}

.logo-text {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
}

.dot {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 40px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition-fast);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-smooth);
}

.nav a:hover {
  color: var(--fg);
}

.nav a:hover::after {
  width: 100%;
}

.header-controls {
  display: flex;
  gap: 15px;
}

.control-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.control-btn:hover {
  background: var(--border);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--shadow), 0 0 30px var(--glow);
}

.control-btn:active {
  transform: translateY(0);
}

.control-btn.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.control-btn svg {
  transition: transform var(--transition-fast);
}

.control-btn:hover svg {
  transform: scale(1.1);
}

#themeToggle:hover svg {
  transform: rotate(180deg);
  transition: transform 0.6s ease;
}

/* ==================== CONTAINER ==================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 10;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 20px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.8s ease-out;
}

.section-line {
  width: 100px;
  height: 4px;
  background: var(--accent);
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 20px var(--glow);
  animation: expandLine 0.8s ease-out 0.2s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes expandLine {
  from { width: 0; }
  to { width: 100px; }
}

/* ==================== HERO SECTION ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  z-index: 10;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 30px;
  animation: slideInLeft 0.8s ease-out;
}

.hero-title {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 30px;
  animation: slideInLeft 0.8s ease-out 0.2s both;
}

.highlight {
  color: var(--accent);
  position: relative;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--glass);
  z-index: -1;
  animation: highlightGrow 0.6s ease-out 0.5s both;
}

@keyframes highlightGrow {
  from { width: 0; }
  to { width: 100%; }
}

.glitch {
  position: relative;
  display: inline-block;
  animation: glitchAnim 5s infinite;
}

@keyframes glitchAnim {
  0%, 90%, 100% { transform: translate(0); }
  91%, 93% { transform: translate(-2px, 2px); text-shadow: 2px -2px 0 rgba(255,0,0,0.3), -2px 2px 0 rgba(0,255,255,0.3); }
  92%, 94% { transform: translate(2px, -2px); text-shadow: -2px 2px 0 rgba(255,0,0,0.3), 2px -2px 0 rgba(0,255,255,0.3); }
}

.hero-lead {
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 40px;
  animation: slideInLeft 0.8s ease-out 0.4s both;
}

.hero-stats {
  display: flex;
  gap: 50px;
  margin: 40px 0;
  animation: slideInLeft 0.8s ease-out 0.6s both;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 8px;
  text-shadow: 0 0 20px var(--glow);
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  animation: slideInLeft 0.8s ease-out 0.8s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn.primary {
  background: var(--accent);
  color: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 4px 20px var(--glow);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--glow);
}

.btn.secondary {
  background: transparent;
  color: var(--fg);
  border: 2px solid var(--border);
}

.btn.secondary:hover {
  border-color: var(--accent);
  background: var(--glass);
  transform: translateY(-3px);
}

.btn svg {
  position: relative;
  z-index: 1;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(5px);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: slideInLeft 0.8s ease-out 1s both;
}

.tech-stack span {
  padding: 6px 14px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
}

.tech-stack span:hover {
  background: var(--border);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow);
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==================== PORTRAIT ==================== */
.hero-right {
  position: relative;
  animation: slideInRight 1s ease-out 0.5s both;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

.portrait-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  perspective: 1000px;
  transition: transform var(--transition-smooth);
}

.portrait {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  position: relative;
  z-index: 2;
  transition: all var(--transition-smooth);
  filter: grayscale(20%) contrast(1.1);
}

.portrait-container:hover .portrait {
  transform: translateZ(50px) rotateY(5deg);
  filter: grayscale(0%) contrast(1.2);
}

.portrait-frame {
  position: absolute;
  inset: -15px;
  border: 2px solid var(--border);
  border-radius: 25px;
  z-index: 1;
  transition: all var(--transition-smooth);
  animation: neonPulse 3s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% {
    box-shadow: 
      0 0 20px var(--glow),
      0 0 40px var(--glow),
      inset 0 0 20px var(--glow);
  }
  50% {
    box-shadow: 
      0 0 40px var(--glow),
      0 0 80px var(--glow),
      inset 0 0 40px var(--glow);
  }
}

.portrait-container:hover .portrait-frame {
  transform: scale(1.05);
  border-color: var(--accent);
}

.portrait-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  opacity: 0.5;
  filter: blur(40px);
  animation: glowPulse 4s ease-in-out infinite;
}

.portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  border-radius: 20px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.portrait-container:hover .portrait-overlay {
  opacity: 1;
}

/* ==================== ABOUT SECTION ==================== */
.about-content {
  max-width: 900px;
  margin: 0 auto 60px;
  text-align: center;
}

.about-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 25px;
}

.mission-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: var(--glass);
  border: 2px solid var(--border);
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 25px;
  transition: all var(--transition-smooth);
  animation: fadeUp 0.8s ease-out;
}

.mission-box:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px var(--shadow), 0 0 60px var(--glow);
}

.mission-icon {
  font-size: 48px;
  filter: drop-shadow(0 0 20px var(--glow));
}

.mission-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.mission-text {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

/* ==================== SKILLS SECTION ==================== */
.skills-header-text {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 60px;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: fadeIn 0.8s ease-out;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.skill-card {
  padding: 30px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 15px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  transition: left 0.5s ease;
}

.skill-card:hover::before {
  left: 100%;
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px var(--shadow), 0 0 60px var(--glow);
}

.skill-icon {
  font-size: 36px;
  margin-bottom: 15px;
  display: block;
  filter: drop-shadow(0 0 10px var(--glow));
}

.skill-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.skill-fill {
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px var(--glow);
  position: relative;
}

.skill-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5));
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100px); }
  100% { transform: translateX(100px); }
}

.skill-percent {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* ==================== PROJECTS SECTION ==================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.project-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
  transition: all var(--transition-smooth);
  position: relative;
  cursor: pointer;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 15px;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.project-card:hover::after {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-10px) rotateX(2deg);
  box-shadow: 0 20px 60px var(--shadow), 0 0 80px var(--glow);
}

.project-image {
  height: 200px;
  background: linear-gradient(135deg, var(--glass), var(--border));
  position: relative;
  overflow: hidden;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-2);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-content {
  padding: 30px;
}

.project-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  color: var(--accent);
}

.project-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.project-title-link {
  color: var(--fg);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.project-title-link:hover {
  color: var(--accent);
  text-shadow: 0 0 10px var(--glow);
}

.project-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 20px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tech span {
  padding: 4px 10px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
}

.project-link:hover {
  gap: 12px;
  text-shadow: 0 0 10px var(--glow);
}

.project-link svg {
  transition: transform var(--transition-fast);
}

.project-link:hover svg {
  transform: translateX(5px);
}

/* ==================== CONTACT SECTION ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 40px;
  background: var(--glass);
  border: 2px solid var(--border);
  border-radius: 15px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--gradient-1);
  border-radius: 50%;
  transform: translate(-50%, -50%); .contact-card:hover::before {
  width: 400px;
  height: 400px;
}
.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px var(--shadow), 0 0 60px var(--glow);
}
.contact-icon {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.contact-icon svg {
  color: var(--accent);
  filter: drop-shadow(0 0 10px var(--glow));
  transition: all var(--transition-fast);
}
.contact-card:hover .contact-icon svg {
  filter: drop-shadow(0 0 20px var(--glow));
  transform: scale(1.1);
}
.contact-info {
  position: relative;
  z-index: 1;
}
.contact-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-block;
}
.contact-value:hover {
  color: var(--accent); transform: translateX(5px);
  text-shadow: 0 0 10px var(--glow);
}
/* ==================== FOOTER ==================== */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 100px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
.footer-logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 2px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  font-style: italic;
}
.footer-right p {
  font-size: 14px;
  color: var(--muted);
}
/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
  transition: background var(--transition-fast);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent);
  box-shadow: 0 0 10px var(--glow);
}
/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
  .hero-inner {
    gap: 60px;
  }
  
  .hero-title {
    font-size: 48px;
  }
}
@media (max-width: 968px) {
  .container {
    padding: 0 30px;
  }
  
  .site-header {
    padding: 15px 30px;
  }
  
  .nav {
    gap: 25px;
  }
  
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .hero-right {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .hero-stats {
    gap: 40px;
  }
  
  .section-title {
    font-size: 40px;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; }
}
@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
  }
  
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 15px;
    gap: 20px;
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-lead {
    font-size: 16px;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 30px;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .section-header {
    margin-bottom: 60px;
  } .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }
  
  .site-header {
    padding: 12px 20px;
  }
  
  .logo-text {
    font-size: 20px;
  }
  
  .nav {
    gap: 15px;
  }
  
  .nav a {
    font-size: 12px;
  }
  
  .control-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-badge {
    font-size: 10px;
    padding: 6px 15px;
  } .stat-value {
    font-size: 28px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .loader-logo {
    font-size: 36px;
  }
}
/* ==================== ANIMATIONS ==================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
@keyframes rotate360 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes slideUp {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}
/* ==================== UTILITY CLASSES ==================== */
.hidden {
  display: none !important;
}
.fade-in {
  animation: fadeIn 0.6s ease-out;
}
.slide-up {
  animation: slideUp 0.6s ease-out;
} .scale-in {
  animation: scaleIn 0.4s ease-out;
}
@keyframes scaleIn {
  from { 
    opacity: 0; 
    transform: scale(0.9); 
  }
  to { 
    opacity: 1; 
    transform: scale(1); 
  }
}
/* ==================== ACCESSIBILITY ==================== */
.show-focus *:focus {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ==================== PRINT STYLES ==================== */
@media print {
  .site-header,
  .hero-cta,
  .control-btn,
  #bgCanvas,
  .bg-gradient,
  #loader {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .section {
    page-break-inside: avoid;
  }
}