/* ═══════════════════════════════════════════════════════════════════════════
   PORTFOLIO — Elegance in Simplicity
   A refined, minimal portfolio with sophisticated glass effects
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   CSS Variables & Theme System
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  /* Light Theme (Default) */
  --bg-primary: #f8f7f4;
  --bg-secondary: #ffffff;
  --bg-tertiary: #efeee9;
  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-muted: #9a9a9a;
  --accent: #8b7355;
  --accent-shadow: #00000030;
  --accent-soft: rgba(139, 115, 85, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: rgba(0, 0, 0, 0.06);
  --divider: rgba(0, 0, 0, 0.06);
  --gradient-subtle: linear-gradient(135deg, rgba(139, 115, 85, 0.03) 0%, rgba(200, 180, 160, 0.05) 100%);
  --noise-opacity: 0.02;
  
  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-2xl: 12rem;
  
  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.8s;
  --duration-slower: 1.2s;
}

[data-theme="dark"] {
  --bg-primary: #0d0d0d;
  --bg-secondary: #161616;
  --bg-tertiary: #1f1f1f;
  --text-primary: #f0ede8;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --accent: #c4a882;
  --accent-shadow: #c4a88230;
  --accent-soft: rgba(196, 168, 130, 0.1);
  --glass-bg: rgba(30, 30, 30, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: rgba(0, 0, 0, 0.3);
  --divider: rgba(255, 255, 255, 0.06);
  --gradient-subtle: linear-gradient(135deg, rgba(196, 168, 130, 0.02) 0%, rgba(100, 80, 60, 0.04) 100%);
  --noise-opacity: 0.03;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Reset & Base
   ───────────────────────────────────────────────────────────────────────────── */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--duration-slow) var(--ease-out-expo),
              color var(--duration-slow) var(--ease-out-expo);
}

/* Noise Texture Overlay */
/* body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: var(--noise-opacity);
  pointer-events: none;
  z-index: 9999;
} */

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background-color: var(--accent);
  color: var(--bg-primary);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Custom Cursor
   ───────────────────────────────────────────────────────────────────────────── */

.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease-out-expo),
              opacity 0.3s ease;
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-out-expo),
              width 0.3s var(--ease-out-expo),
              height 0.3s var(--ease-out-expo),
              opacity 0.3s ease;
  opacity: 0.5;
}

.cursor.hover {
  transform: translate(-50%, -50%) scale(2);
}

.cursor-follower.hover {
  width: 60px;
  height: 60px;
  opacity: 0.3;
}

@media (hover: none) {
  .cursor, .cursor-follower {
    display: none;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Typography
   ───────────────────────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.heading-xl {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.04em;
}

.heading-lg {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
}

.heading-md {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
}

.text-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.text-small {
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.text-caption {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Layout
   ───────────────────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xl) 0;
  position: relative;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Navigation
   ───────────────────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md);
  transition: background-color var(--duration-normal) var(--ease-out-expo),
              backdrop-filter var(--duration-normal) var(--ease-out-expo);
}

.nav.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
  padding: var(--space-xs) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background-color: var(--text-primary);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              opacity var(--duration-fast) ease;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    z-index: 102;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    background-color: var(--bg-primary);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal) var(--ease-out-expo),
                visibility var(--duration-normal) var(--ease-out-expo);
  }
  
  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    font-size: 1.5rem;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Hero Section
   ───────────────────────────────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--space-xl);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-gradient {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.hero-gradient-1 {
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  animation-delay: 0s;
}

.hero-gradient-2 {
  bottom: 0;
  left: -100px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(30px);
}

.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background-color: var(--accent);
}

.hero-title {
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 5px;
}

.hero-title .word {
  display: inline-block;
  transform: translateY(100%);
}

.hero-subtitle {
  max-width: 500px;
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(30px);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0;
  transform: translateY(30px);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0;
}

.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  50.1% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Glass Card Component
   ───────────────────────────────────────────────────────────────────────────── */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 
    0 4px 30px var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 60px var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Button Styles
   ───────────────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  border-radius: 100px;
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent);
  transform: translateX(-101%);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.btn-primary:hover::before {
  transform: translateX(0);
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--divider);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   About Section
   ───────────────────────────────────────────────────────────────────────────── */

.about {
  padding: var(--space-2xl) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 20px var(--accent-shadow);
  border: 1px solid var(--accent);
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-image: url('../images/profile.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.0);
  transform: translate(0px, 0px) !important;
}

.about-image-wrapper:hover .about-image {
  transform: scale(1.02) !important;
  filter: grayscale(0%);
}

.about-image-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-subtle);
  pointer-events: none;
  transition: transform var(--duration-slow) var(--ease-out-expo),
              filter var(--duration-slow) var(--ease-out-expo);
}

.about-content {
  padding: var(--space-lg);
}

.about-title {
  margin-bottom: var(--space-md);
}

.about-text {
  margin-bottom: var(--space-lg);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--divider);
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 968px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .about-image-wrapper {
    aspect-ratio: 16/9;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Work Section
   ───────────────────────────────────────────────────────────────────────────── */

.work {
  padding: var(--space-2xl) 0;
  background: var(--gradient-subtle);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.work-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  border: 1px solid var(--accent);
}

.work-item:first-child {
  grid-column: span 2;
  aspect-ratio: 21/9;
}

.work-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}

.work-item:hover .work-image {
  transform: scale(1.08);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, 
    rgba(0, 0, 0, 0.9) 0%, 
    rgba(0, 0, 0, 0.5) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
}

.work-item:hover .work-overlay {
  opacity: 1;
}

.work-info {
  transform: translateY(20px);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.work-item:hover .work-info {
  transform: translateY(0);
}

.work-category {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-xs);
}

.work-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: white;
  margin-bottom: var(--space-xs);
}

.work-arrow {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 48px;
  height: 48px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(20px, -20px);
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.work-item:hover .work-arrow {
  transform: translate(0, 0);
  opacity: 1;
}

.work-arrow svg {
  width: 20px;
  height: 20px;
  stroke: white;
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.work-item:hover .work-arrow:hover svg {
  transform: translate(3px, -3px);
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  
  .work-item:first-child {
    grid-column: span 1;
    aspect-ratio: 16/10;
  }
  
  .work-overlay {
    opacity: 1;
  }
  
  .work-info {
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Services/Skills Section
   ───────────────────────────────────────────────────────────────────────────── */

.services {
  padding: var(--space-2xl) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  padding: var(--space-lg);
  position: relative;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  color: var(--accent);
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.service-description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.service-number {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
}

@media (max-width: 968px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Contact Section
   ───────────────────────────────────────────────────────────────────────────── */

.contact {
  padding: var(--space-2xl) 0;
  text-align: center;
}

.contact-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.contact-title {
  margin-bottom: var(--space-md);
}

.contact-text {
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--text-primary);
  position: relative;
  transition: color var(--duration-fast) ease;
}

.contact-email::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.contact-email:hover {
  color: var(--accent);
}

.contact-email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact-social {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--divider);
  color: var(--text-secondary);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-4px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────────────────────────── */

.footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--divider);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Theme Toggle
   ───────────────────────────────────────────────────────────────────────────── */

.theme-toggle {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--text-primary);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.theme-toggle:hover svg {
  transform: rotate(15deg);
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Animation Classes (for GSAP)
   ───────────────────────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(60px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}

/* Stagger children animation helper */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Loading Screen
   ───────────────────────────────────────────────────────────────────────────── */

.loader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

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

.loader-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  overflow: hidden;
}

.loader-text span {
  display: inline-block;
}

.loader-line {
  width: 120px;
  height: 1px;
  background-color: var(--divider);
  margin: var(--space-md) auto 0;
  position: relative;
  overflow: hidden;
}

.loader-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent);
  transform: translateX(-100%);
  animation: loaderProgress 1.5s var(--ease-out-expo) forwards;
}

@keyframes loaderProgress {
  to {
    transform: translateX(0);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Smooth Scroll Wrapper
   ───────────────────────────────────────────────────────────────────────────── */

.smooth-scroll {
  will-change: transform;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Parallax Elements
   ───────────────────────────────────────────────────────────────────────────── */

.parallax-element {
  will-change: transform;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Magnetic Button Effect (handled by JS)
   ───────────────────────────────────────────────────────────────────────────── */

.magnetic {
  transition: transform 0.3s var(--ease-out-expo);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Text Split Animation Helper
   ───────────────────────────────────────────────────────────────────────────── */

.split-text .char {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Image Placeholder (usando gradiente ao invés de imagem)
   ───────────────────────────────────────────────────────────────────────────── */

.placeholder-image {
  background: linear-gradient(135deg, 
    var(--bg-tertiary) 0%, 
    var(--bg-secondary) 50%,
    var(--bg-tertiary) 100%);
  background-size: 200% 200%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Responsive Adjustments
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  section {
    padding: var(--space-lg) 0;
  }
  
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  :root {
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Accessibility
   ───────────────────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .cursor, .cursor-follower {
    display: none;
  }
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}
