:root {
  /* ========================================
     SPACING SYSTEM (4px base scale)
     ======================================== */
  --space-1: 4px;    /* 0.25rem - Micro gaps */
  --space-2: 8px;    /* 0.5rem  - Tight spacing */
  --space-3: 12px;   /* 0.75rem - Compact elements */
  --space-4: 16px;   /* 1rem    - Default/base */
  --space-5: 24px;   /* 1.5rem  - Medium spacing */
  --space-6: 32px;   /* 2rem    - Large spacing */
  --space-7: 48px;   /* 3rem    - Section internal */
  --space-8: 64px;   /* 4rem    - Section separation */
  --space-9: 80px;   /* 5rem    - Large sections */

  /* Fluid Layout Spacing */
  --container-x: clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(4rem, 6vw, 8rem); /* Mobile 64px -> Desktop 128px */

  /* Typography Rhythm */
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.4;
  --leading-relaxed: 1.6;
  --leading-loose: 1.8;

  /* ========================================
     COLOR PALETTE - Dark (Default)
     ======================================== */
  --bg-color: #030712;
  --surface-color: rgba(17, 24, 39, 0.7);
  --border-color: rgba(255, 255, 255, 0.1);
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --accent-color: #22d3ee; /* Cyan neon */
  --accent-glow: rgba(34, 211, 238, 0.2);
  --selection-bg: #22d3ee;
  --selection-clear: #030712;

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);

  /* Layout */
  --container-max: 1100px;
  --header-height: 80px;
}

/* Light Theme Overrides */
body.light-theme {
  --bg-color: #f8fafc;
  --surface-color: rgba(241, 245, 249, 0.7);
  --border-color: rgba(0, 0, 0, 0.1);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-color: #0891b2;
  --accent-glow: rgba(8, 145, 178, 0.1);

  --glass-bg: rgba(0, 0, 0, 0.02);
  --glass-border: rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: var(--leading-relaxed);
  overflow-x: hidden;
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 5px;
  border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Selection Color */
::selection {
  background: var(--accent-color);
  color: #000;
}

/* Accessibility: Focus States */
:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 4px;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html,
  body,
  .tilt-image,
  .reveal,
  .floating-wrapper {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

h1,
h2,
h3,
h4,
.logo {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-x);
}

/* Background Effects */
.noise-bg {
  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'%3BaseFilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/baseFilter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1000;
}

.aurora-bg {
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background:
    radial-gradient(circle at 80% 20%, var(--accent-glow) 0%, transparent 40%),
    radial-gradient(
      circle at 20% 80%,
      rgba(139, 92, 246, 0.1) 0%,
      transparent 40%
    );
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 2000;
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.4s ease;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.8rem;
  letter-spacing: -1px;
}

.logo span {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: var(--space-6);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

#theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: var(--space-3);
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#theme-toggle:hover {
  transform: scale(1.1);
  background: var(--border-color);
}

.moon-icon {
  display: none;
}
body.light-theme .sun-icon {
  display: none;
}
body.light-theme .moon-icon {
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.mobile-menu-toggle {
  display: none;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-height);
}

.chips {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.chip {
  padding: var(--space-1) var(--space-3);
  border-radius: 100px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: default;
}

.chip.status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-primary);
}

.dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-5);
  max-width: 800px;
}

.hero h1 span {
  background: linear-gradient(
    135deg,
    var(--text-primary) 30%,
    var(--accent-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: var(--space-5);
}

.hero-actions {
  display: flex;
  gap: var(--space-5);
}

/* Hero Grid Layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: var(--space-8);
  width: 100%;
}

.hero-image-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px; /* Essential for 3D tilt effect */
}

.floating-wrapper {
  animation: float 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

.tilt-image {
  width: 110%; /* Make it slightly larger as requested to look 'floating' and immersive */
  max-width: 550px;
  height: auto;
  transform: rotateY(-5deg) rotateX(2deg); /* Initial slight angle - softer */
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Much smoother transition */
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
  will-change: transform;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-25px);
  }
}

/* Buttons */
.btn {
  padding: var(--space-4) var(--space-6);
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.btn-primary {
  background: var(--accent-color);
  color: #000;
  border: none;
  box-shadow: 0 10px 20px -10px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -10px var(--accent-glow);
  filter: brightness(1.1);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--glass-bg);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

/* Work Section */
/* Work Section */
.work {
  padding: var(--section-y) 0;
  content-visibility: auto; /* Performance Optimization */
  contain-intrinsic-size: 1000px; /* Approximate height to prevent scrollbar jumping */
}

.section-header {
  margin-bottom: var(--space-6);
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-2);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
}

.work-card {
  background: var(--surface-color);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  cursor: default;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.work-card:hover {
  transform: translateY(-12px);
  border-color: var(--accent-color);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
}

.card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-card:hover .card-image img {
  transform: scale(1.05);
}

.card-image.zoom-crop img {
  transform: scale(1.3);
}

.work-card:hover .card-image.zoom-crop img {
  transform: scale(1.35);
}

.card-overlay {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
}

.pill {
  padding: var(--space-1) var(--space-3);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}

.card-content {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-3);
}

.card-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-5);
}

.tags {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  margin-top: auto;
}

.tags span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--glass-bg);
  padding: var(--space-1) var(--space-2);
  border-radius: 6px;
}

.card-links {
  display: flex;
  gap: var(--space-5);
  justify-content: flex-end;
}

.card-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.card-links a:hover {
  text-decoration: underline;
}

/* Software Tag */
.software-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.software-tag:hover {
  background: rgba(153, 153, 255, 0.08); /* Premiere Lite Purple tint */
  border-color: rgba(153, 153, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.software-tag span strong {
  font-weight: 500;
  color: var(--text-primary);
}

.pr-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #00005b; /* Official Premiere Deep Blue */
  color: #9999ff; /* Official Premiere Light Blue/Indigo */
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid rgba(153, 153, 255, 0.2);
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  flex-shrink: 0;
  cursor: default;
  user-select: none;
}

.ai-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #330000; /* Illustrator Dark Brown/Black */
  color: #FF9A00; /* Illustrator Orange */
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 154, 0, 0.2);
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  flex-shrink: 0;
  cursor: default;
  user-select: none;
}

/* Videos Section */
/* Videos Section */
.videos {
  padding: var(--section-y) 0;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.video-card {
  background: var(--surface-color);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.video-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.more-videos {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-7);
}

/* Illustrations Section */
/* Illustrations Section */
.illustrations {
  padding: var(--section-y) 0;
  content-visibility: auto;
  contain-intrinsic-size: 600px;
}

.illustration-card {
  background: var(--surface-color);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  aspect-ratio: 1/1; /* Square aspect ratio for illustrations */
}

.illustration-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.illustration-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.illustration-card:hover img {
  transform: scale(1.05);
}

.illustration-card.gray-bg {
  background: #CCCCCC; /* Gray-800 for contrast with transparent PNGs */
}

/* About Section Upgrade */
.about {
  padding: var(--section-y) 0;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 1200px;
  overflow: hidden;
  background: radial-gradient(
    circle at 0% 0%,
    rgba(34, 211, 238, 0.03) 0%,
    transparent 40%
  );
}

.about-glow {
  position: absolute;
  top: 40%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(34, 211, 238, 0.05) 0%,
    transparent 80%
  );
  pointer-events: none;
  z-index: -1;
  filter: blur(100px);
}

.about-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

.eyebrow {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent-color);
  margin-bottom: var(--space-4);
  font-weight: 600;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.about-bio {
  max-width: 900px;
}

.quote-icon {
  width: 50px;
  height: 50px;
  color: var(--accent-color);
  opacity: 0.2;
  margin-bottom: var(--space-5);
}

.about-bio .lead {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  line-height: var(--leading-normal);
  font-family: "Outfit", sans-serif;
}

.bio-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: var(--space-5);
  line-height: var(--leading-loose);
}

.experience-showcase {
  display: flex;
  align-items: center;
  gap: var(--space-7);
  margin-top: var(--space-7);
  padding-top: var(--space-7);
  border-top: 1px solid var(--border-color);
}

.stat-item .val {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--text-primary), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stats {
  display: flex;
  gap: var(--space-6);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item .lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.experience-badge {
  display: flex;
  flex-direction: column;
  padding-right: var(--space-6);
  border-right: 1px solid var(--border-color);
}

.experience-badge .year {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.experience-badge .desc {
  font-size: 0.75rem;
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Premium Bento Grid (Full Width Bottom) */
.about-grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 1024px) {
  .about-grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-grid-cards {
    grid-template-columns: 1fr;
  }
}

.bento-card {
  background: var(--surface-color);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.05),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.bento-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-color);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card.deliverables {
  background: var(--surface-color);
}

@media (max-width: 600px) {
  .bento-card.deliverables {
    grid-column: span 1;
  }
}

.card-icon {
  width: 54px;
  height: 54px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  margin-bottom: var(--space-6);
  transition: transform 0.5s ease;
}

.bento-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.bento-card h4 {
  font-size: 1.3rem;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
  font-family: "Outfit", sans-serif;
}

/* Styled List */
.styled-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.styled-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.styled-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
}

/* Tech Pills Refined */
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.tech-pills span {
  font-size: 0.8rem;
  font-weight: 500;
  padding: var(--space-1) var(--space-4);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.bento-card:hover .tech-pills span {
  border-color: rgba(34, 211, 238, 0.2);
}

.tech-pills span:hover {
  background: var(--accent-color);
  color: #000;
  transform: translateY(-2px);
  border-color: var(--accent-color);
}

.bento-card.deliverables p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* Contact Section */
.contact {
  padding: var(--section-y) 0;
}

.contact-card {
  background: linear-gradient(135deg, var(--surface-color), transparent);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  padding: var(--space-8) var(--space-6);
  text-align: center;
  backdrop-filter: blur(20px);
}

.contact-card h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-5);
}

.contact-card p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-7);
}

.contact-card .btn {
  font-size: 1.2rem;
  padding: var(--space-4) var(--space-7);
  margin-bottom: var(--space-7);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.social-links a {
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1rem;
}

.social-links a i {
  width: 20px;
  height: 20px;
  stroke-width: 2px;
}

.social-links a:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

/* Footer */
footer {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.made-with {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px; /* Para combinar com o formato do ícone */
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 900;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
  background-color: #22c55e;
}

.whatsapp-float i {
  width: 32px;
  height: 32px;
  fill: white; /* Optional: simple fill if desired, but lucide uses stroke usually. Let's stick to stroke default or check. */
  stroke-width: 2.5px;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 992px) {
  .container {
    padding: 0 var(--space-6);
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-7);
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero {
    justify-content: flex-start;
    padding-top: 0;
    min-height: auto;
    padding-bottom: var(--space-8);
  }

  .hero-grid {
    margin-top: 120px;
  }

  .hero-actions {
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 3.5rem;
    max-width: 100%;
  }
  
  .hero p {
    margin: 0 auto var(--space-6) auto;
  }
  
  .hero-image-container {
    perspective: none;
  }
  
  .tilt-image {
    max-width: 450px;
    transform: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-5);
  }

  /* Header Mobile */
  .mobile-menu-toggle {
    display: flex !important;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 2001; /* High z-index to be above menu */
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(3, 7, 18, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 2000; /* Higher than WhatsApp button (1000) */
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: var(--space-6) 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger animation for links */
  .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }

  .nav-links a {
    font-size: 2rem;
    font-weight: 600;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: var(--space-5) 0;
  }

  .nav-links a {
    font-size: 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  /* Fix Mobile Text Overflow */
  .about-bio {
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
  }

  .about-bio .lead {
    font-size: 1.2rem;
  }

  .experience-showcase {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
    padding-top: var(--space-6);
  }

  .experience-badge {
    border-right: none;
    border-left: 2px solid var(--accent-color);
    padding-right: 0;
    padding-left: var(--space-4);
    width: 100%;
  }

  .stats {
    width: 100%;
    gap: var(--space-5);
    flex-wrap: wrap;
  }

  .footer-content {
    flex-direction: column;
    gap: var(--space-5);
    text-align: center;
  }

  .hero h1 {
    font-size: 2.8rem;
  }
  
  /* Aggressive fix for overlapping header */
  .hero {
    padding-top: 0;
  }
  
  .hero-grid {
    margin-top: 100px;
  }
  
  .grid, .video-grid {
    grid-template-columns: 1fr; /* Force single column on tablets/mobile for cards */
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }

  .more-videos {
    display: flex;
    justify-content: center;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .contact-card {
    padding: var(--space-7) var(--space-5);
  }

  .contact-card h2 {
    font-size: 2rem;
  }

  .tilt-image {
    max-width: 100%;
  }
}
