/* ============================================
   DESIGN TOKENS
   ============================================ */
@font-face {
  font-family: 'Runzoe';
  src: url('runzoe/Runzoe-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
:root {
  /* Colors — Dark theme with violet/blue accent */
  --bg-primary: #08090d;
  --bg-secondary: #0f1118;
  --bg-card: #141620;
  --bg-card-hover: #1a1d2e;

  --text-primary: #f0f0f5;
  --text-secondary: #9295a6;
  --text-muted: #5d607a;

  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-dark: #6d28d9;
  --accent-glow: rgba(139, 92, 246, 0.35);

  --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #3b82f6 100%);
  --gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Sizing */
  --nav-height: 72px;
  --container-max: 1200px;
  --section-pad: 120px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 0.2s;
  --duration-med: 0.4s;
  --duration-slow: 0.8s;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

em {
  font-style: italic;
  color: var(--accent-light);
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   GLASS NAVBAR
   ============================================ */
.glass-nav {
  /* 
    'position: fixed' takes the element out of normal document flow 
    and locks it to the viewport. 'top: 24px' pushes it down slightly 
    from the very top edge.
  */
  position: fixed;
  top: 24px;
  
  /* 
    To perfectly center a fixed/absolute element horizontally, 
    we move its left edge to exactly 50% of the screen width, 
    and then use transform: translateX(-50%) to pull it back 
    by exactly half of its own width. 
  */
  left: 50%;
  transform: translateX(-50%);
  
  /* 
    Ensure it stays on top of the 3D canvas and other content.
  */
  z-index: 1000;
  
  /* 
    The Glassmorphism Effect:
    1. A very subtle, semi-transparent white background.
    2. 'backdrop-filter: blur(16px)' applies a blur effect to whatever 
       is *behind* this element, creating the frosted glass look.
    3. A subtle 1px border gives the glass "edges" and crispness.
  */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); /* Safari support */
  border: 1px solid rgba(255, 255, 255, 0.1);
  
  /* 
    The pill shape is achieved by using a border-radius that is 
    larger than half the element's height. 50px is a standard value 
    for perfect pills.
  */
  border-radius: 50px;
  padding: 12px 32px;
  
  /* Optional subtle shadow for depth */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-nav-links {
  /* 
    Flexbox is the modern way to align items. 
    'display: flex' puts the links in a row.
    'align-items: center' centers them vertically.
    'gap: 2rem' automatically creates even spacing between them, 
    so we don't need to add margins to individual links!
  */
  display: flex;
  align-items: center;
  gap: 2rem;
}

.glass-nav-link {
  /* 
    Using 'Inter' (a minimal, modern sans-serif).
    The text is white with a slight opacity for a softer look.
  */
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  
  /* 
    'transition' ensures that hover effects animate smoothly 
    over 0.3 seconds instead of snapping instantly.
  */
  transition: all 0.3s ease;
}

.glass-nav-link:hover {
  /* 
    On hover, we increase brightness (make it fully opaque white)
    and add a soft text-shadow for a glowing effect against the dark 3D scene.
  */
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* ============================================
   HERO SECTION & SCROLL ANIMATION
   ============================================ */
.hero-wrapper {
  /* 
    'position: sticky' keeps the hero pinned to the top of the viewport 
    while you scroll down, up to the height of this wrapper. 
    This allows the main-content to slide up OVER it.
  */
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  /* transform-origin center top so it shrinks nicely towards the center */
  transform-origin: center top;
  /* Will-change optimizes the scale animation */
  will-change: transform, opacity;
}

/* Spline 3D background — slightly overscaled to eliminate edge bars */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  contain: strict;
  z-index: -1;
  transform: translateZ(0); /* Hardware acceleration */
  will-change: transform;
}

.hero-bg spline-viewer {
  display: block;
  width: 50vw;
  height: 50vh;
  border: none;
  outline: none;
  transform: scale(2);
  transform-origin: top left;
  pointer-events: auto;
}

/* ============================================
   MAIN CONTENT & SECONDARY HERO
   ============================================ */
.main-content {
  /* 
    This slides over the sticky hero.
    It has a solid background color to mask the hero underneath.
  */
  position: relative;
  z-index: 2;
  background-color: var(--bg-primary);
}

.secondary-hero-bg {
  /* 
    This sticks to the top of the screen *while* you are scrolling 
    through the main-content, acting as a shared background for 
    projects and contact sections.
  */
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  contain: strict;
  z-index: 0;
  transform: translateZ(0); /* Hardware acceleration */
  will-change: transform;
}

.secondary-hero-bg spline-viewer {
  display: block;
  width: 100%;
  height: 100%;
}

.content-overlay {
  /* 
    Sits on top of the secondary hero background. 
    It doesn't have a solid background color so the secondary hero is visible!
  */
  position: relative;
  z-index: 1;
  
  /* CRITICAL: Let mouse events pass completely through this overlay so the 
     Spline 3D scene in the background can track your cursor! */
  pointer-events: none;
}

.content-section {
  /* Full height sections for projects and contact */
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* We only want specific interactive elements to catch mouse events, 
   otherwise the full-width section backgrounds will block the Spline cursor tracking */
.project-list, .contact-container, .marquee-section {
  pointer-events: auto;
}

/* ============================================
   PROJECTS SECTION (BIG TYPOGRAPHY REVEAL)
   ============================================ */
.projects-section {
  /* Center the list on the screen using Flexbox */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px;
}

.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
  max-width: 800px;
  text-align: center;
}

/* 
  SIBLING DIMMING EXPLANATION:
  We want ALL project items to dim when ANY project item is hovered.
  We achieve this by adding a hover rule on the *parent container* (.project-list).
  So, when the parent is hovered, we set ALL its children to low opacity.
*/
.project-list:hover .project-item {
  opacity: 0.2;
}

/* 
  ...But wait, if we dim all of them, the one we are specifically hovering over gets dimmed too!
  To fix this, we add a highly specific hover rule for the item currently being hovered 
  to override the parent rule and bring its opacity back to 1.
*/
.project-list .project-item:hover {
  opacity: 1;
}

.project-item {
  /* Ensure transitions on opacity are smooth */
  transition: opacity 0.5s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-title {
  /* Massive, bold typography */
  font-family: 'Inter', sans-serif;
  font-size: clamp(3rem, 10vw, 7rem); /* Scales dynamically from 3rem up to 7rem based on viewport width */
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: -2px;
  transition: color 0.4s ease;
}

.project-item:hover .project-title {
  color: #8b0000; /* Dark red on hover */
}

.project-desc {
  /* 
    HIDDEN DESCRIPTION EXPLANATION:
    We hide the description initially using a combination of max-height: 0, 
    opacity: 0, and a slight upward translation (translateY(-20px)). 
    This prepares it to slide down and fade in gracefully when hovered.
  */
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  color: #a0a0a0;
  max-width: 500px;
  margin-top: 1rem;
  line-height: 1.6;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-20px);
  transition: all 0.6s var(--ease-out-expo);
}

/* 
  When the parent .project-item is hovered, we animate the description 
  by removing the max-height constraint, setting opacity to 1, and 
  translating it back to its original position (0px).
*/
.project-item:hover .project-desc {
  opacity: 1;
  max-height: 200px; /* An arbitrary height taller than the text will ever be */
  transform: translateY(0);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px;
}

.contact-container {
  text-align: center;
}

.contact-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-link {
  /* Clean, large sans-serif typography */
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: #a0a0a0;
  text-decoration: none;
  position: relative; /* Crucial for positioning the ::after pseudo-element */
  transition: color 0.3s ease;
  display: inline-block;
  align-self: center; /* Center each link individually */
}

/* 
  HOVER ANIMATION EXPLANATION (::after pseudo-element):
  We use an ::after pseudo-element to create an empty, invisible box attached to the link.
  We style this box to look like a colored underline (height: 2px, background: white).
  
  The magic is in `transform: scaleX(0)` and `transform-origin: right`. 
  This squishes the line to 0 width, starting from the right side.
*/
.contact-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out-expo);
}

/* 
  When the user hovers over the link, we change the transform-origin to left, 
  and scale it up to 100% (scaleX(1)). This creates the effect of the line 
  sliding out from left to right.
*/
.contact-link:hover {
  color: #ffffff; /* Subtly brighten text color */
}

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

/* Bottom-edge gradient for smooth transition into next section */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, transparent 75%, var(--bg-secondary) 100%);
  pointer-events: none;
}

@keyframes hero-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: all var(--duration-med) var(--ease-out-expo);
  text-decoration: none;
}

.btn--primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow), 0 0 0 1px rgba(139, 92, 246, 0.3);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 18px 36px;
  font-size: 1.0625rem;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
  padding: var(--section-pad) 0;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.section-num {
  font-family: var(--font-heading);
  font-weight: 700;
}

.section-dash {
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  max-width: 700px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: border-color var(--duration-fast), transform var(--duration-med) var(--ease-out-expo);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-plus {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   WORK / PROJECTS
   ============================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration-med) var(--ease-out-expo),
              border-color var(--duration-fast),
              box-shadow var(--duration-med);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.project-card-img {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.project-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  transition: background var(--duration-fast);
}

.project-card:hover .project-card-img::after {
  background: rgba(0, 0, 0, 0.05);
}

.project-card-num {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1;
}

.project-card-body {
  padding: 24px;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-light);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.project-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.project-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-light);
  transition: gap var(--duration-med) var(--ease-out-expo), color var(--duration-fast);
}

.project-card-link:hover {
  gap: 14px;
  color: var(--accent);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: transform var(--duration-med) var(--ease-out-expo),
              border-color var(--duration-fast),
              box-shadow var(--duration-med);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-med) var(--ease-out-expo);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  margin-bottom: 20px;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-section {
  padding: 28px 0;
  overflow: hidden;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 12px;
  white-space: nowrap;
}

.marquee-content span {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.marquee-dot {
  color: var(--accent) !important;
  font-size: 0.75rem !important;
}

.marquee-section:hover .marquee-track {
  animation-play-state: paused;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  text-align: center;
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.contact-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.social-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--duration-fast);
}

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

.social-link:hover {
  color: var(--accent-light);
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.heart {
  color: #f5576c;
  animation: heartbeat 1.2s ease-in-out infinite;
  display: inline-block;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out-expo),
              transform 0.6s var(--ease-out-expo);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 80px;
    --nav-height: 64px;
  }

  .nav-inner {
    justify-content: flex-end;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(15, 17, 24, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--duration-med) var(--ease-out-expo);
    border-left: 1px solid var(--border);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.125rem;
    padding: 12px 16px;
    width: 100%;
    color: var(--text-secondary);
  }

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

  .nav-link::after {
    background: var(--accent-light);
  }

  .nav-hamburger {
    display: flex;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }


  .contact-socials {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 20px 16px;
  }

  .stat-number {
    font-size: 2rem;
  }
}
