/* Fix for layout shaking - add this after your existing scrollbar code */
html {
  scrollbar-gutter: stable; /* This is the key fix */
}

body {
  overflow-x: hidden; /* Prevent horizontal scroll */
  min-height: 100vh;
  perspective: 1000px; /* Add perspective for 3D effect */
}

/* Fix for marquee section specifically */
.marquee-section {
  margin: -60px auto 30px 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding-left: 60px;
  width: calc(100% - 60px); /* Adjust for padding */
}

.marquee-container {
  width: 100%;
  max-width: calc(100% - 40px);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 999px;
  padding: 8px 0;
  border: 1px solid white;
  overflow: hidden;
  position: relative;
}

/* Add to prevent any layout shift */
.container, .hero-grid, .page {
  transform: translateZ(0); /* Hardware acceleration */
  backface-visibility: hidden;
}
:root{
  --bg: #fbf7f6;
  --panel: rgba(255,255,255,0.6);
  --text: #0b0b0b;
  --muted: #6d6d6d;
  --accent: #b99bf0;
  --glass: rgba(255,255,255,0.55);
  --card-shadow: 0 18px 45px rgba(16,12,32,0.08);
  --max-width: 1200px;
  --card-3d-light: rgba(159, 139, 231, 0.7); /* Purple card in light mode */
  --card-info-light: rgba(221, 241, 96, 0.7); /* Yellow card in light mode */
  --card-3d-dark: rgba(34, 34, 34, 0.9); /* Dark card in dark mode */
  --card-info-dark: rgba(51, 51, 51, 0.9); /* Darker card in dark mode */
  font-family: "Funnel Display", sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Updated DARK theme with card color swap */
:root.dark{
  --bg: #09080b;
  --panel: rgba(20,20,22,0.5);
  --text: #f2f2f2;
  --muted: #a8a8a8;
  --glass: rgba(20,20,22,0.6);
  --card-shadow: 0 18px 45px rgba(0,0,0,0.3);
  --card-3d-light: rgba(51, 51, 51, 0.9); /* Dark in dark mode */
  --card-info-light: rgba(34, 34, 34, 0.9); /* Darker in dark mode */
  --card-3d-dark: rgba(51, 51, 51, 0.9);
  --card-info-dark: rgba(34, 34, 34, 0.9);
}

/* Base reset */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
  font-size:16px;
  padding-left: 60px; /* Shift all content left */
  transform-style: preserve-3d; /* Enable 3D transformations */
}

/* layout container */
.container{
  width: min(1120px, 92%);
  margin:0 auto 0 0; /* Align left */
  margin-top: 15px;
}

/* NAVBAR */
.navbar{
  position: fixed;
  top: 0;
  left: 60px;
  right: 0;
  z-index: 120;

  transition:
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.8s ease,
    background 0.4s ease,
    box-shadow 0.4s ease;
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0;
}


/* hide on scroll (only navbar content) */
/* hide on scroll */
.nav-hidden{
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}



/* brand - Updated with cat logo and two-line text */
.brand{ 
  display:flex; 
  gap:15px; 
  align-items:center; 
  text-decoration:none; 
  color:inherit; 
}
.cat-logo{
  border-radius:12px;
  overflow:visible;
  flex-shrink:0;
}
.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1;
}
.brand-text .brand-name{ 
  font-family: "Funnel Display", sans-serif;  
  font-weight:800; 
  font-size:26px;
  text-transform:lowercase; 
  letter-spacing: 0.5px;
  margin:0;
}
.brand-text .brand-sub{ 
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  font-size:26px;
  color:black; 
  margin-top:2px;
  font-weight:800;
  letter-spacing:5px;
}
html.dark .brand-text .brand-sub{ 
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  font-size:26px;
  color:white; 
  margin-top:2px;
  font-weight:800;
  letter-spacing:5px;
}


/* nav right */
.nav-right{ display:flex; gap:0; align-items:center; }

/* Theme toggle icon styles */
.theme-icon {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Moon icon (light mode) */
html:not(.dark) .theme-icon.sun {
  display: none;
}

html:not(.dark) .theme-icon.moon {
  display: block;
}

/* Sun icon (dark mode) */
html.dark .theme-icon.moon {
  display: none;
}

html.dark .theme-icon.sun {
  display: block;
  color: white; /* Gold color for sun */
}

/* Updated icon-btn with hover background ONLY in light mode */
.icon-btn {
  background: transparent;
  border: 0;
  padding: 8px;
  border-radius: 50%; /* Make it round */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover round background ONLY in light mode */
html:not(.dark) .icon-btn:hover {
  background-color: rgba(0, 0, 0, 0.08); /* Light gray background on hover */
  transform: scale(1.05);
}

/* No hover background in dark mode */
html.dark .icon-btn:hover {
  background-color: transparent;
  transform: scale(1.05);
}

/* UPDATED CTA - Bigger with blur background and black thin border */
.cta{
    left: 30px;
  display:inline-flex; 
  align-items:center; 
  gap:10px;
  padding:14px 22px; /* Bigger padding */
  border-radius:999px; 
  text-decoration:none; 
  font-weight:700;
  font-size:16px;
  background:transparent;
  backdrop-filter: blur(12px); /* Blur effect */
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid black; /* Black thin border */
  position:relative;
  overflow:hidden;
  transition: all 0.5s ease;
  color: var(--text);
}
.cta:hover{
  border-color:black;
  transform: translateY(-2px);
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.cta-text,
.cta-arrow {
  display: inline-block;
  will-change: transform, opacity;
}

/* Hover triggers wave */
.cta:hover .cta-text,
.cta:hover .cta-arrow {
  animation: wave-out-in 0.9s cubic-bezier(0.23, 0.65, 0.74, 1.09) forwards;
}

/* Slight delay for arrow */
.cta:hover .cta-arrow {
  animation-delay: 0.08s;
}
@keyframes wave-out-in {
  0% {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }

  30% {
    opacity: 0;
    transform: translateY(-14px) translateX(8px);
  }

  60% {
    opacity: 0;
    transform: translateY(14px) translateX(-8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}

/* Update CTA button for dark mode */
html.dark .cta {
  border-color: white;
  color: white;
}

html.dark .cta:hover {
  border-color: white;
}


/* PAGE / HERO - Bigger hero section */
.page{ padding-top:40px; } /* Increased padding */

/* HERO SECTION - Remove background and make bigger */
.hero.section {
  background: transparent !important; /* Remove background */
  min-height: 100vh; /* Bigger hero section */
  display: flex;
  align-items: center;
  position: relative;
  padding: 60px 0; /* Increased padding */
}

/* hero grid - Adjusted for bigger layout */
.hero-grid{
  display:grid;
  grid-template-columns: 340px 1fr 460px; /* Increased column widths */
  gap:50px; /* Increased gap */
  align-items:start;
  width:min(var(--max-width), 100%);
  margin: 40px auto 40px 0; /* Align left */
  position: relative;
}

/* LEFT COLUMN CARDS */
.left-col{ display:flex; flex-direction:column; gap:24px; position: relative; z-index: 2; }
.card{
  border-radius:24px; /* Slightly bigger radius */
  padding:26px; /* Increased padding */
  box-shadow: var(--card-shadow);
  position:relative;
  overflow:visible;
}

/* Updated 3D card - increased height */
.card-3d {
  background: var(--card-3d-light);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(12px);
  border: none !important;
  color: var(--text);
  min-height: 440px; /* Increased height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 32px; /* Increased padding */
  position: relative;
  transition: all 0.3s ease;
}

/* In dark mode, swap the card colors */
html.dark .card-3d {
  background: rgba(221, 241, 96, 0.7);
  color: black;
}

/* Card title color adjustment for dark mode */
html.dark .card-title {
  font-weight: 200px;
  color: black;
}

/* Center image - bigger */
.center-image{
  width:220px; /* Bigger */
  height:220px; /* Bigger */
  border-radius:50%;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  animation: spin 14s linear infinite;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25); /* Stronger shadow */
  margin: 24px auto; /* Adjusted margin */
  background: transparent;
}
.center-image img {
  width:100%;
  height:100%;
  object-fit:cover;
  background: transparent;
}

/* Updated floating button - bigger with outgoing animation */
.floating-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.95);
  border: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;

  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
              background 0.3s ease;

  animation: pulse-glow 3s ease-in-out infinite;
}


/* Bigger SVG icon */
.floating-btn svg {
  width: 22px;
  height: 22px;
}


/* Hover effect - outgoing animation */
.floating-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.12);
}

/* Arrow outgoing animation on hover */
.floating-btn:hover svg {
  animation: arrow-fly 0.55s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

/* Pulsing animation for the button */
@keyframes arrow-fly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  40% {
    opacity: 0;
    transform: translate(28px, -28px) scale(1.3);
  }

  41% {
    opacity: 0;
    transform: translate(-28px, 28px) scale(0.8);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

.floating-btn {
  animation: pulse-glow 3s ease-in-out infinite;
}
html.dark .floating-btn
{
  background: black;
  color: white;
}

/* title inside 3d card */
.card-title{ 
  font-size: 26px; /* Bigger */
  line-height: 1.15;
  font-weight:800; 
  margin:0; 
  text-align: left;
  align-self: flex-start;
  text-shadow: none;
  margin-top: auto;
  color: white;
  padding-bottom: 12px;
}

/* Card subtitle */
.card-subtitle {
  font-size: 13px;
  color: rgba(11, 11, 11, 0.6);
  font-weight: 500;
  margin-top: 10px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  backdrop-filter: blur(6px);
}

/* info card */
.card-info{ 
  min-height:180px; /* Taller */
  background: var(--card-info-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text); 
  font-weight:600; 
  font-size:16px;
}

html.dark .card-info {
  background: rgba(159, 139, 231, 0.7);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* CENTER - Bigger center column */
.center-col{ 
  padding-top:50px; /* More padding */
  position: relative; 
  z-index: 2;
  min-width: 520px; /* Wider */
}

/* Simple Stacked Avatars - No Hover Effect */
.avatar-stack {
    
  position: relative;
  width: 68px;
  height: 68px;
}

.avatar-item {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bg);
}

.avatar-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Stack positioning - all images visible */
.avatar-item.first {
  z-index: 1;
  top: 0;
  left: 0;
}

.avatar-item.second {
  z-index: 2;
  top: 0;
  left: 45px; /* Offset to show part of the second image */
}

.avatar-item.third {
  z-index: 3;
  top: 0;
  left: 90px; /* Offset to show part of the third image */
}

/* Updated trusted section layout */
.trusted {
    margin-top: -50px;
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.trusted-text {
  color: rgba(48, 48, 48);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: 80px;
  font-weight: bold;
}

/* Update trusted text colors for dark mode */
html.dark .trusted-line {
  color: rgba(255, 255, 255, 0.9);
}

html.dark .trusted-text {
  color: rgba(255, 255, 255, 0.9);
}

.trusted-line {
  color: rgba(48, 48, 48);
  font-size: 18px;
  line-height: 1.2;
}

.trusted-link {
  color: rgba(48, 48, 48);
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  position: relative;
  width: fit-content;
}

html.dark .trusted-link {
  color: rgba(255, 255, 255, 0.9);
}

/* Default underline (by default showing) */
.trusted-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--text);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
}

html.dark .trusted-link::after {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Hover effect - ease out (underline disappears) */
.trusted-link:hover::after {
  transform: scaleX(0);
  transform-origin: right;
}

.trusted-link strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: opacity 0.3s ease;
}

/* Slight fade on hover */
.trusted-link:hover strong {
  opacity: 0.9;
}

/* Remove old avatar styles */
.av-first, .av-hover, .av-second, .av-third {
  display: none;
}

/* UPDATED hero title - Bigger two lines */
.hero-title{ 
  font-size: 95px; /* Bigger font */
  line-height: 0.95; 
  margin: 10px 0 29px; /* More margin */
  font-weight: 600; 
  letter-spacing:5px;
  display: flex;
  flex-direction: column;
  max-width: 900px;
  width: 900px;
}

/* First line: "Design, tech and" - prevent wrapping */
.title-line.first-line {
  display: block;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: visible;
}

/* Second line: "✧ some magic" */
.title-line.second-line {
  margin-left: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  overflow: visible;
}

/* Magic star with new animation - Bigger */
.magic-star {
  display: block;
  font-size: 40px; /* Bigger */
 animation: magic-sparkle 20s ease-in-out infinite;
  margin-right: 10px;
}

.wrap-magic{ 
  display:inline; 
}

/* keywords columns - Bigger */
.keywords{ 
  display:grid; 
  grid-template-columns:1fr 1fr; 
  gap:200px; 
  margin-top:28px; 
  color: black;
}
.keywords ul{ 
  list-style:none; 
  padding:0; 
  margin:0; 
  color:black; 
  font-weight:300; 
  font-size:16px; /* Bigger text */
}

/* Update keywords color for dark mode */
html.dark .keywords ul {
  color: rgba(255, 255, 255, 0.9);
}

html.dark .keywords {
  color: rgba(255, 255, 255, 0.9);
}

/* RIGHT - Bigger right column */
.right-col{ 
  position:relative; 
  min-height:460px; /* Taller */
  display:flex; 
  align-items:flex-start;
  justify-content:flex-end;
  z-index: 1;
  padding-top: 100px; /* More padding */
}

/* Side images styles - Bigger */
.side-image {
  position: absolute;
  border-radius: 18px; /* Bigger radius */
  overflow: hidden;
  z-index: -10;
  background: transparent;
}

/* Left side image - bigger and adjusted left position */
.left-image {
  width: 320px; /* Bigger */
  height: 320px; /* Bigger */
  left: -90px; /* Adjusted for left shift */
  top: 320px;
  z-index: -10;
}

/* Right side image - bigger and brought more into view */
.right-image {
  width: 450px; /* Bigger */
  height: 450px; /* Bigger */
  top: 250px; /* Positioned lower */
  right: 30px; /* Brought more into view (was -50px) */
  left: auto;
  z-index: -10;
}

.side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  display: block;
}

/* Remove BG shapes */
.bg-shape{ display: none; }

/* small features section to demo fade-in - Aligned left */
.section.features{ 
  margin:80px auto 80px 0; /* Align left */
  display:grid; 
  grid-template-columns:1fr 1fr; 
  gap:32px; /* Bigger gap */
  position: relative; 
  z-index: 2; 
}
.feature{ 
  background:#fff; 
  padding:30px; /* More padding */
  border-radius:16px; /* Bigger radius */
  box-shadow:var(--card-shadow); 
  opacity:0; 
  transform:translateY(16px); 
  transition:all .7s cubic-bezier(.2,.9,.2,1); 
}
.feature.inview{ opacity:1; transform:translateY(0); }

/* Update feature card for dark mode */
html.dark .feature {
  background: rgba(30, 30, 32, 0.9);
  color: white;
}

/* footer - Aligned left */
.footer{ 
  padding:50px 0; /* More padding */
  text-align:left; /* Changed from center to left */
  color:var(--muted); 
  position: relative; 
  z-index: 2; 
}

/* Update footer text for dark mode */
html.dark .footer {
  color: rgba(255, 255, 255, 0.7);
}

/* ANIMATIONS - UPDATED */
@keyframes spin { from{ transform:rotate(0) } to{ transform:rotate(360deg) } }

/* NEW: Synchronized up-down animation for both images */
@keyframes synchronized-up-down {
  0%, 100% { 
    transform: translateY(0px); 
  }
  50% { 
    transform: translateY(-25px); 
  }
}

/* NEW: Magic star animation */
@keyframes magic-sparkle {
 0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(2);
    opacity: 1;
  }
}

/* Apply synchronized animation to BOTH side images */
.floating, .floating-slow { 
  animation: synchronized-up-down 3s ease-in-out infinite; 
}

/* Ensure all text is white in dark mode */
html.dark {
  color: #ffffff;
}

html.dark body {
  background: var(--bg);
  color: var(--text);
}

/* ================================
   UPDATED HAMBURGER CIRCLE MENU
   (White in dark mode, Black in light mode)
   Menu content removed - keeping button only
================================ */

/* Hamburger button - Black in light mode, White in dark mode */
/* ================================
   HAMBURGER BUTTON - COMPLETELY FIXED
   Outside page container, never moves
================================ */

.hamburger-circle {
  position: fixed !important;
  top: 37px !important;
  right: 80px !important;
  width: 60px;
  height: 60px;
  background: #0b0b0b;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999 !important;
  transition: transform 0.3s ease, background 0.3s ease;
  overflow: hidden;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  
}

html.dark .hamburger-circle {
  background: #f2f2f2;
}

.hamburger-circle:hover {
  transform: scale(1.05);
}

.hamburger-lines {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.4s cubic-bezier(0.23, 0.65, 0.74, 1.09);
  transform-origin: center;
}

html.dark .hamburger-line {
  background: #0b0b0b;
}

.hamburger-circle.active .line-1 {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-circle.active .line-2 {
  opacity: 0;
  transform: scale(0);
}

.hamburger-circle.active .line-3 {
  transform: translateY(-8px) rotate(-45deg);
}

/* Remove any transform effects from parent containers */
body, #page, .page {
  transform: none !important;
}

/* Ensure hamburger stays on top of everything */
.hamburger-circle {
  transform: none !important;
}

/* Responsive adjustments */
@media (max-width: 1150px) {
  .hamburger-circle {
    right: 60px !important;
  }
}

@media (max-width: 960px) {
  .hamburger-circle {
    right: 50px !important;
    width: 50px;
    height: 50px;
    top: 30px !important;
  }
  
  .hamburger-lines {
    width: 20px;
    height: 16px;
  }
  
  .hamburger-line {
    width: 20px;
  }
}

@media (max-width: 600px) {
  .hamburger-circle {
    right: 40px !important;
    width: 45px;
    height: 45px;
    top: 25px !important;
  }
}

/* ================================
   HORIZONTAL SCROLLING MARQUEE
   (Thinner and more elegant)
================================ */
/* ================================
   MARQUEE SECTION
================================ */
.marquee-section {
 margin: -60px auto 30px 0;   /* little top gap */
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding-left: 60px;
  
}

/* ================================
   MARQUEE CONTAINER (GLASS)
================================ */
.marquee-container {
   /* transparent glass */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-radius: 999px;
  padding: 8px 0;             /* thinner height */

  border: 1px solid white;
  overflow: hidden;
  position: relative;

  max-width: calc(100% - 40px); /* longer */
}

/* Dark mode support */
html.dark .marquee-container {
  background: rgba(10, 10, 12, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ================================
   MARQUEE TRACK
================================ */
.marquee-track {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}

/* ================================
   MARQUEE CONTENT (ANIMATION)
================================ */
.marquee-content {
  display: flex;
  align-items: center;
  animation: marquee-scroll 15s linear infinite; /* faster */
  will-change: transform;
  padding-left: 24px; /* smaller initial gap */
}

/* ================================
   MARQUEE ITEM (TEXT)
================================ */
.marquee-item {
  font-family: "Funnel Display", sans-serif;
  font-size: 22px;
  font-weight: bold;
  color: var(--text);

  padding: 0 14px;        /* less gap */
  letter-spacing: 0.6px;
  text-transform: lowercase;

  opacity: 0.85;
  position: relative;
  transition: all 0.3s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

.marquee-item::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

/* ================================
   STAR / SEPARATOR
================================ */
.marquee-separator {
  font-size: 12px;
  color: #000;            /* black star */
  opacity: 0.6;
  margin: 0 8px;          /* less gap */
  animation: separator-sparkle 3s ease-in-out infinite;
}

/* Dark mode star */
html.dark .marquee-separator {
  color: #fff;
  opacity: 0.4;
}

/* ================================
   ANIMATIONS
================================ */
@keyframes marquee-scroll {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}


@keyframes separator-sparkle {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* ================================
   SCROLL TO TOP BUTTON
   (Fixed for entire page)
================================ */
.scroll-to-top {
 position: sticky;
bottom: 50px;
left: 1300px;   /* ← RIGHT side */
right: auto;

width: 52px;
height: 52px;

background: rgba(0, 0, 0, 0.02);
backdrop-filter: blur(22px);
-webkit-backdrop-filter: blur(22px);

border: 1px solid rgba(255, 255, 255, 0.18);
border-radius: 50%;

display: flex;
align-items: center;
justify-content: center;
cursor: pointer;

z-index: 9999;
opacity: 0;
visibility: hidden;
transform: translateY(20px);
transition: all 0.5s cubic-bezier(0.23, 0.65, 0.74, 1.09);

}

html.dark .scroll-to-top {
  background: rgba(20, 20, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.scroll-arrow svg {
  width: 100%;
  height: 100%;
  color: var(--text);
  transform: rotate(-90deg); /* Arrow points up */
  transition: all 0.3s ease;
  position: absolute;
}

/* Arrow animation on hover - exits from top, enters from bottom */
.scroll-to-top:hover .scroll-arrow svg {
  animation: arrow-cycle 1s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

@keyframes arrow-cycle {
  0% {
    transform: translateY(0) rotate(-90deg);
    opacity: 1;
  }
  30% {
    transform: translateY(-120%) rotate(-90deg);
    opacity: 0;
  }
  31% {
    transform: translateY(120%) rotate(-90deg);
    opacity: 0;
  }
  70% {
    transform: translateY(0) rotate(-90deg);
    opacity: 1;
  }
  100% {
    transform: translateY(0) rotate(-90deg);
    opacity: 1;
  }
}

/* Adjust for dark mode */
html.dark .scroll-arrow svg {
  color: #fff;
}

/* responsive */
@media (max-width:1150px){
  body {
    padding-left: 40px; /* Less padding on medium screens */
  }
  .navbar {
    left: 40px;
  }
  .hamburger-circle {
    right: 60px;
  }
  .hero-grid{ 
    grid-template-columns: 300px 1fr 350px; 
    gap:30px; 
  }
  .hero-title{ 
    font-size: 72px; 
  }
  .title-line.first-line,
  .title-line.second-line {
    white-space: normal;
  }
  .title-line.second-line {
    gap: 10px;
  }
  .magic-star {
    font-size: 40px;
  }
  .avatar-item.second {
    left: 35px;
  }
  .avatar-item.third {
    left: 70px;
  }
  .trusted-link strong {
    font-size: 16px;
  }
  .left-image { 
    left: -30px; /* Adjusted for left shift */
    width: 180px; 
    height: 180px; 
  }
  .right-image { 
    width: 280px; 
    height: 280px; 
    right: 30px; /* Adjusted for left shift */
    top: 200px;
  }
  .card-3d {
    min-height: 400px;
  }
  .center-col {
    min-width: 450px;
  }
  .hamburger-circle {
    right: 40px;
  }
  /* Marquee responsive */
  .marquee-section {
    margin: 50px auto 70px 0;
    padding-left: 40px;
  }
  
  .marquee-container {
    max-width: calc(100% - 80px);
  }
  
  .marquee-item {
    font-size: 20px;
    padding: 0 16px;
  }
  
  /* Scroll to top responsive */
  .scroll-to-top {
    right: 40px;
    bottom: 40px;
    width: 48px;
    height: 48px;
  }
}
@media (max-width:960px){
  body {
    padding-left: 30px; /* Even less padding on tablet */
  }
  .navbar {
    left: 30px;
  }
  .hamburger-circle {
    right: 50px;
  }
  .hero-grid{ 
    grid-template-columns: 1fr; 
    gap:24px; 
    padding:20px 0; 
  }
  .left-col{ 
    flex-direction:row; 
    gap:16px; 
  }
  .card-3d{ 
    min-height:300px; 
    width:48%; 
  }
  .card-info{ 
    min-height:180px; 
    width:48%; 
  }
  .hero-title{ 
    font-size:48px;
    line-height: 1.1;
  }
  .magic-star {
    font-size: 32px;
  }
  .title-line.second-line {
    gap: 8px;
  }
  .right-col{ 
    display:none; 
  }
  .nav-right .cta{ 
    padding:12px 18px; 
    font-size:15px;
  }
  .left-image, .right-image { 
    display: none; 
  }
  .center-col {
    min-width: auto;
    padding-top: 30px;
  }
  .hero.section {
    min-height: auto;
    padding: 40px 0;
  }
  .avatar-item {
    width: 55px;
    height: 55px;
  }
  .avatar-item.second {
    left: 30px;
  }
  .avatar-item.third {
    left: 60px;
  }
  .hamburger-circle {
    width: 50px;
    height: 50px;
    top: 30px;
  }
  
  .hamburger-lines {
    width: 20px;
    height: 16px;
  }
  
  .hamburger-line {
    width: 20px;
  }
  
  /* Marquee responsive */
  .marquee-section {
    margin: 40px auto 60px 0;
    padding-left: 30px;
  }
  
  .marquee-container {
    border-radius: 20px;
    padding: 12px 0;
    max-width: calc(100% - 60px);
  }
  
  .marquee-item {
    font-size: 18px;
    padding: 0 14px;
  }
  
  .marquee-separator {
    font-size: 12px;
    margin: 0 10px;
  }
  
  .marquee-content {
    padding-left: 30px;
  }
  
  /* Scroll to top responsive */
  .scroll-to-top {
    right: 30px;
    bottom: 30px;
    width: 44px;
    height: 44px;
  }
  
  .scroll-arrow {
    width: 18px;
    height: 18px;
  }
}
@media (max-width:600px){
  body {
    padding-left: 20px; /* Minimum padding on mobile */
  }
  .navbar {
    left: 20px;
  }
  .hamburger-circle {
    right: 40px;
  }
  .brand-text .brand-name {
    font-size: 22px;
  }
  .brand-text .brand-sub {
    font-size: 12px;
  }
  .cat-logo {
    width: 36px;
    height: 36px;
  }
  .cta {
    padding: 10px 16px;
    font-size: 14px;
  }
  .hero-title {
    font-size: 36px;
  }
  .left-col {
    flex-direction: column;
  }
  .card-3d, .card-info {
    width: 100%;
  }
  .avatar-item {
    width: 50px;
    height: 50px;
  }
  .avatar-item.second {
    left: 25px;
  }
  .avatar-item.third {
    left: 50px;
  }
  .trusted-link strong {
    font-size: 14px;
  }
  .trusted-line {
    font-size: 12px;
  }
  .hamburger-circle {
    width: 45px;
    height: 45px;
    top: 25px;
  }
  
  /* Marquee responsive */
  .marquee-section {
    margin: 30px auto 50px 0;
    padding-left: 20px;
  }
  
  .marquee-container {
    border-radius: 16px;
    padding: 10px 0;
    max-width: calc(100% - 40px);
  }
  
  .marquee-item {
    font-size: 16px;
    padding: 0 12px;
    letter-spacing: 0.5px;
  }
  
  .marquee-item::after {
    left: 12px;
    right: 12px;
  }
  
  .marquee-separator {
    font-size: 10px;
    margin: 0 8px;
  }
  
  .marquee-content {
    padding-left: 20px;
  }
  
  /* Scroll to top responsive */
  .scroll-to-top {
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
  }
  
  .scroll-arrow {
    width: 16px;
    height: 16px;
  }
}

/* small helpers */
a{ color:inherit }

#page {
  opacity: 0;
  transform: translateY(30px) scale(1.15); /* Added scale for zoom effect */
  transition:
    opacity 2s cubic-bezier(0.23, 0.65, 0.74, 1.09),
    transform 2s cubic-bezier(0.23, 0.65, 0.74, 1.09);
  transform-origin: top center; /* Changed to top center for better zoom */
}

#page.page-loaded {
  opacity: 1;
  transform: translateY(0) scale(1.15); /* Start zoomed in */
}

/* Remove old hamburger styles */
.sticky-hamburger {
  display: none;
}
/* ================================
   SCROLL STACK - CLEAN VERSION
=============================== */

/* ================================
   SCROLL STACK - FORWARD STACKING
   New images come in front (forward)
=============================== */

.scroll-stack {
  height: 500vh; /* Enough height for all images */
  position: relative;
  margin: 100px 0;
  padding: 60px 0;
}

/* Sticky wrapper */
.stack-wrapper {
  position: sticky;
  top: 15vh;
  height: 70vh;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

/* ALL IMAGES SAME SIZE & POSITION */
.stack-image {
  position: absolute;
  left: 49%;
  
  /* ALL images same size */
  width: 89vw;
  max-width: 1300px;
  height: 70vh;
  min-height: 500px;
  
  border-radius: 90px;
  overflow: hidden;
  
  
  /* Start from bottom (off screen) */
  transform: translateX(-50%) translateY(100vh);
  opacity: 0;
  
  /* Smooth slide animation */
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* Sharp rendering */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

/* POSITION CLASSES FOR FORWARD STACKING */
/* Image 1 position (oldest/behind) */
.stack-image.pos-0 {
  transform: translateX(-50%) translateY(0);
  opacity: 0.7;
  z-index: 7; /* Lowest z-index - goes behind */
}

/* Image 2 position (second oldest) */
.stack-image.pos-1 {
  transform: translateX(-50%) translateY(0);
  opacity: 0.8;
  z-index: 8; /* Higher than pos-0 */
  
}

/* Image 3 position (second newest) */
.stack-image.pos-2 {
  transform: translateX(-50%) translateY(0);
  opacity: 0.9;
  z-index: 9; /* Higher than pos-1 */
 
}

/* Image 4 position (newest/most recent - IN FRONT) */
.stack-image.pos-3 {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  z-index: 10; /* Highest z-index - in front */
}

/* NEXT image - waiting at bottom (off screen) */
.stack-image.next {
  transform: translateX(-50%) translateY(100vh);
  opacity: 0;
  z-index: 6; /* Below all visible images */
}

/* HIDDEN image - off screen */
.stack-image.hidden {
  transform: translateX(-50%) translateY(-100vh);
  opacity: 0;
  z-index: 5; /* Lowest */
}

/* Image styling */
.stack-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Simple border - more visible on front images */
.stack-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

/* Make the front image border slightly more visible */
.stack-image.pos-3::after {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Dark mode adjustments for scroll stack */
html.dark .stack-image::after {
  border: 1px solid rgba(255, 255, 255, 0.05);
}

html.dark .stack-image.pos-3::after {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 960px) {
  .scroll-stack {
    height: 450vh;
    margin: 80px 0;
  }

  .stack-wrapper {
    top: 10vh;
    height: 75vh;
  }

  .stack-image {
    width: 90vw;
    height: 65vh;
    min-height: 400px;
  }
}

@media (max-width: 600px) {
  .scroll-stack {
    height: 400vh;
    margin: 60px 0;
  }

  .stack-wrapper {
    top: 5vh;
    height: 80vh;
  }

  .stack-image {
    width: 94vw;
    height: 60vh;
    min-height: 300px;
    border-radius: 18px;
  }
}
.image-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
}

/* IMAGE */
.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* TEXT OVERLAY */
.image-overlay {
  position: absolute;
  left: 40px;
  bottom: 40px;
  z-index: 5;
  color: white;
}

/* TITLE */
.image-overlay h2 {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.1;
}

/* TAGS */
.tags {
  display: flex;
  gap: 10px;
}

.tags span {
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  font-weight: 500;
  backdrop-filter: blur(6px);
}

/* ================================
   APPROACH SECTION ANIMATIONS
================================ */
.approach-section {
  padding: 5px 100px;
  background: #fbf7f6;
  margin-left: -70px;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.2s cubic-bezier(0.23, 0.65, 0.74, 1.09), 
              transform 1.2s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

.approach-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.approach-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  column-gap: -1px;
  align-items: start;
}

.approach-title {
  font-size: 80px;
  font-weight: 500;
  line-height: 0.95;

  background-image: linear-gradient(to right, #b5b5b5 0%, #b5b5b5 100%);
  background-size: 100% 100%;
  background-repeat: no-repeat;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;

  display: flex;
  will-change: background-image;

  margin-top: 30px; /* 👈 move up (adjust value) */
}

/* Dark mode approach section */
html.dark .approach-section {
  background: #09080b;
}

html.dark .approach-title {
  background-image: linear-gradient(to right, #666 0%, #666 100%);
}

/* RIGHT CONTENT */
.approach-content {
  padding-top: 20px;
  margin-right: 50px;
}

.approach-desc {
  font-size: 20px;
  line-height: 1.6;
  color: #222;
  max-width: 520px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

html.dark .approach-desc {
  color: #f2f2f2;
}

.approach-section.visible .approach-desc {
  opacity: 1;
  transform: translateX(0);
}

/* LISTS */
.approach-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 30px;
}

.approach-lists ul {
  list-style: none;
  padding: 0;
}

.approach-lists li {
  font-size: 18px;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.dark .approach-lists li {
  color: #f2f2f2;
}

.approach-section.visible .approach-lists li {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for list items */
.approach-section.visible .approach-lists li:nth-child(1) { transition-delay: 0.4s; }
.approach-section.visible .approach-lists li:nth-child(2) { transition-delay: 0.5s; }
.approach-section.visible .approach-lists li:nth-child(3) { transition-delay: 0.6s; }
.approach-section.visible .approach-lists li:nth-child(4) { transition-delay: 0.7s; }
.approach-section.visible .approach-lists li:nth-child(5) { transition-delay: 0.8s; }
.approach-section.visible .approach-lists li:nth-child(6) { transition-delay: 0.9s; }
.approach-section.visible .approach-lists li:nth-child(7) { transition-delay: 1.0s; }
.approach-section.visible .approach-lists li:nth-child(8) { transition-delay: 1.1s; }
.approach-section.visible .approach-lists li:nth-child(9) { transition-delay: 1.2s; }
.approach-section.visible .approach-lists li:nth-child(10) { transition-delay: 1.3s; }
.approach-section.visible .approach-lists li:nth-child(11) { transition-delay: 1.4s; }
.approach-section.visible .approach-lists li:nth-child(12) { transition-delay: 1.5s; }

/* BUTTON */
.about-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border: 2px solid #111;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: #111;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 1.6s, transform 0.8s ease 1.6s;
}

html.dark .about-btn {
  border: 2px solid #fff;
  color: #fff;
}

.approach-section.visible .about-btn {
  opacity: 1;
  transform: translateY(0);
}

/* ABOUT BUTTON HOVER ANIMATION */
.about-btn span {
  display: inline-block;
  transition: transform 0.3s ease;
}

.about-btn:hover span {
  animation: arrow-slide 0.6s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

@keyframes arrow-slide {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  40% {
    transform: translateX(20px);
    opacity: 0;
  }
  41% {
    transform: translateX(-20px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* GRID */
.services-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.12fr; /* LEFT bigger, RIGHT smaller */
  gap: 28px;
  max-width: 1300px;
  margin-top: 90px;
  margin-left: 20px;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease, transform 1s ease;
}

.services-grid.visible {
  opacity: 1;
  transform: translateY(0);
}

/* CARD BASE */
.service-card {
  position: relative;
  padding: 120px 45px;
  border-radius: 50px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* force left alignment */
  text-align: left;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.services-grid.visible .service-card {
  opacity: 1;
  transform: translateY(0);
}

.services-grid.visible .service-card:first-child {
  transition-delay: 0.2s;
}

.services-grid.visible .service-card:last-child {
  transition-delay: 0.4s;
}

/* ================================
   ZOOM-OUT EFFECT FOR SERVICE CARDS
   AND ZOOM-IN FOR IMAGES
================================ */
.service-card {
  transition: all 0.6s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

/* Zoom-out effect on hover for cards */
.service-card:hover {
  transform: scale(0.97) translateY(-5px);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.25);
}

/* Zoom-in effect for images inside service cards */
.service-card:hover .service-image img {
  transform: scale(1.08);
  transition: transform 0.7s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

/* CARD BACKGROUNDS (like screenshot) */
.service-card:first-child {
  background: #0f0f10;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 22px 60px rgba(0,0,0,0.18);
}
.service-card:last-child {
  background-color: rgb(159, 139, 231);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 22px 60px rgba(0,0,0,0.18);

}

/* Dark mode adjustments for service cards */
html.dark .service-card:first-child {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.2);
}

html.dark .service-card:last-child {
  background-color: rgba(159, 139, 231, 0.8);
  border: 1px solid rgba(255,255,255,0.2);
}

/* HEADER */
.service-header {
  margin-top: -80px;
  width: 100%;
  display: flex;
  align-items: left;
  text-align: left;
  justify-content:left;
  margin-bottom: 25px;
  
}
.service-header h2 {
  font-size: 44px;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}

/* ARROW BUTTON */
.arrow {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  
}
.service-card:first-child .arrow {
  background: #d8f26a;
  color: #000;
}

.service-card:last-child .arrow {
  background: #ffffff;
  color: #000;
}

/* Dark mode adjustments for arrows */
html.dark .service-card:first-child .arrow {
  background: #d8f26a;
  color: #000;
}

html.dark .service-card:last-child .arrow {
  background: #ffffff;
  color: #000;
}

/* TAGS */
.service-tags {
  display: flex;
  gap: 12px;
  margin: 28px 0;
  flex-wrap: nowrap;          /* force one line */
  overflow: hidden;
  max-width: 100%;
  margin-top: 30px;
}

.service-tags span {
  padding: 9px 16px;
  border: 1px solid #ffffff;
  border-radius: 30px;
  color: #ffffff;
  font-size: 14px;
  white-space: nowrap;
  background: transparent;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.services-grid.visible .service-tags span {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for tags */
.services-grid.visible .service-tags span:nth-child(1) { transition-delay: 0.6s; }
.services-grid.visible .service-tags span:nth-child(2) { transition-delay: 0.7s; }
.services-grid.visible .service-tags span:nth-child(3) { transition-delay: 0.8s; }
.services-grid.visible .service-tags span:nth-child(4) { transition-delay: 0.9s; }
.services-grid.visible .service-tags span:nth-child(5) { transition-delay: 1.0s; }

/* TEXT */
.service-text {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.65;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.services-grid.visible .service-text {
  opacity: 1;
  transform: translateY(0);
}

.services-grid.visible .service-card:first-child .service-text {
  transition-delay: 1.1s;
}

.services-grid.visible .service-card:last-child .service-text {
  transition-delay: 1.2s;
}

.service-card:last-child .service-text {
  max-width: 420px;
  line-height: 1.75;
  font-size: 17px;
  opacity: 0.95;
}

/* Dark mode adjustments for text */
html.dark .service-text {
  color: rgba(255, 255, 255, 0.9);
}

/* IMAGE POSITIONING (IMPORTANT PART) */
.service-image {
  position: absolute;
  top: 290px;
  right: -5px;
  width: 590px;              /* matches screenshot scale */
  max-width: 59%;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.services-grid.visible .service-image {
  opacity: 1;
  transform: translateX(0);
}

.services-grid.visible .service-card:first-child .service-image {
  transition-delay: 1.3s;
}

.services-grid.visible .service-card:last-child .service-image {
  transition-delay: 1.4s;
}

.service-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}
.service-image img.i
{
  position: absolute;
  top: 50px;
  right: 50px;
  width: 390px;              /* matches screenshot scale */
}
/* RESPONSIVE */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-image {
    position: relative;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    margin: 30px auto 0;
  }

  .service-header h2 {
    font-size: 32px;
  }
}

/* GRID */
.services-grid1 {
  display: grid;
  grid-template-columns:1.12fr; /* LEFT bigger, RIGHT smaller */
  gap: 28px;
max-width: 1300px;   /* wider section */
 margin-top: 90px;
  margin-left: 20px;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease, transform 1s ease;
}

.services-grid1.visible {
  opacity: 1;
  transform: translateY(0);
}
/* CARD BASE */
.service-card1 {
  position: relative;
  padding: 200px 45px;
  border-radius: 50px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* force left alignment */
  text-align: left;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.services-grid1.visible .service-card1 {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   ZOOM-OUT EFFECT FOR SERVICE CARDS 1
   AND ZOOM-IN FOR IMAGES
================================ */
.service-card1 {
  transition: all 0.6s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

/* Zoom-out effect on hover for cards */
.service-card1:hover {
  transform: scale(0.97) translateY(-5px);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.25);
}

/* Zoom-in effect for images inside service cards */
.service-card1:hover .service-image1 img {
  transform: scale(1.08);
  transition: transform 0.7s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

.service-card1:last-child {
  background-color: white;
  color: black;
  border: none;
  box-shadow: 0 22px 60px rgba(0,0,0,0.18);

}

/* Dark mode adjustments */
html.dark .service-card1:last-child {
  background-color: rgba(30, 30, 32, 0.9);
  color: white;
}

/* HEADER */
.service-header1 {
  margin-top: -150px;
  width: 100%;
  display: flex;
  align-items: left;
  text-align: left;
  justify-content:left;
}
.service-header1 h2 {
  font-size: 44px;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}

/* ARROW BUTTON */
.arrow1 {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
}

.service-card1:last-child .arrow1 {
  background:black;
  color: white;
}

/* Dark mode adjustments */
html.dark .service-card1:last-child .arrow1 {
  background: white;
  color: black;
}

/* TAGS */
.service-tags1 {
 padding-top: 190px;
  display: flex;
  text-align:end;
  gap: 12px;
  margin-top: 20px;   /* move down */
  margin-bottom: -200px;
  flex-wrap: nowrap;
  overflow: hidden;
  max-width: 100%;
}

.service-tags1 span {
  padding: 10px 16px;
  border: 1px solid black;
  border-radius: 30px;
  color: black;
  font-size: 14px;
  white-space: nowrap;
  background: transparent;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html.dark .service-tags1 span {
  border: 1px solid white;
  color: white;
}

.services-grid1.visible .service-tags1 span {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for tags */
.services-grid1.visible .service-tags1 span:nth-child(1) { transition-delay: 0.8s; }
.services-grid1.visible .service-tags1 span:nth-child(2) { transition-delay: 0.9s; }
.services-grid1.visible .service-tags1 span:nth-child(3) { transition-delay: 1.0s; }
.services-grid1.visible .service-tags1 span:nth-child(4) { transition-delay: 1.1s; }
.services-grid1.visible .service-tags1 span:nth-child(5) { transition-delay: 1.2s; }

/* TEXT */
.service-text1 {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.65;
  margin-top: 230px;
  margin-bottom: -130px;    /* move down */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

html.dark .service-text1 {
  color: rgba(255, 255, 255, 0.9);
}

.services-grid1.visible .service-text1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.3s;
}

.service-card1:last-child .service-text {
  max-width: 420px;
  line-height: 1.75;
  font-size: 17px;
  opacity: 0.95;
}

/* IMAGE POSITIONING (IMPORTANT PART) */
/* IMAGE COMMON */
.service-image1 {
  position: absolute;
  width: 360px;
  max-width: 45%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.services-grid1.visible .service-image1 {
  opacity: 1;
  transform: translateY(0);
}

/* Top image animation */
.services-grid1.visible .image-top {
  transition-delay: 1.4s;
}

/* Bottom image animation */
.services-grid1.visible .image-bottom {
  transition-delay: 1.5s;
}

.service-image1 img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

/* TOP IMAGE */
.image-top {
  top:-190px;
  right: 290px;
}

/* BOTTOM IMAGE */
.image-bottom {
  bottom: -200px;
  right: -50px;
  width: 500px;
  max-width: 60%;
}
/* RESPONSIVE */
@media (max-width: 900px) {
  .services-grid1 {
    grid-template-columns: 1fr;
  }

  .service-image1 {
    position: relative;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    margin: 30px auto 0;
  }

  .service-header1 h2 {
    font-size: 32px;
  }
}

/* GRID */
.services-grid2 {
  display: grid;
  grid-template-columns: 1.12fr 1.6fr; /* LEFT bigger, RIGHT smaller */
  gap: 28px;
  max-width: 1300px;
  margin-top: 90px;
  margin-left: 20px;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease, transform 1s ease;
}

.services-grid2.visible {
  opacity: 1;
  transform: translateY(0);
}

/* CARD BASE */
.service-card2 {
  position: relative;
  padding: 120px 45px;
  border-radius: 50px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* force left alignment */
  text-align: left;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.services-grid2.visible .service-card2 {
  opacity: 1;
  transform: translateY(0);
}

.services-grid2.visible .service-card2:first-child {
  transition-delay: 0.2s;
}

.services-grid2.visible .service-card2:last-child {
  transition-delay: 0.4s;
}

/* ================================
   ZOOM-OUT EFFECT FOR SERVICE CARDS 2
   AND ZOOM-IN FOR IMAGES
================================ */
.service-card2 {
  transition: all 0.6s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

/* Zoom-out effect on hover for cards */
.service-card2:hover {
  transform: scale(0.97) translateY(-5px);
}

/* Zoom-in effect for images inside service cards */
.service-card2:hover .service-image2 img {
  transform: scale(1.08);
  transition: transform 0.7s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

/* CARD BACKGROUNDS (like screenshot) */
.service-card2:first-child {
  background: #0f0f10;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
  
}
.service-card2:last-child {
  background-color: rgb(159, 139, 231);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
  

}

/* Dark mode adjustments */
html.dark .service-card2:first-child {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.2);
}

html.dark .service-card2:last-child {
  background-color: rgba(159, 139, 231, 0.8);
  border: 1px solid rgba(255,255,255,0.2);
}

/* HEADER */
.service-header2 {
  padding-top: 90px;
  font-size: 30px;
  margin-top: -120px;
  width: 100%;
  display: flex;
  align-items: left;
  text-align: left;
  justify-content:left;
  margin-bottom: -40px;
}
.service-header h2 {
  font-size: 44px;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
  justify-content:left;
  margin-bottom: -40px;
}
.service-header h2.h {
  font-size: 44px;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
  justify-content:left;
  margin-bottom: -40px;
}

/* ARROW BUTTON */
.arrow2 {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  z-index: 5;
}
.service-card2:first-child .arrow2 {
  background: #d8f26a;
  color: #000;
}

.service-card2:last-child .arrow2 {
  background: #ffffff;
  color: #000;
}

/* Dark mode adjustments */
html.dark .service-card2:first-child .arrow2 {
  background: #d8f26a;
  color: #000;
}

html.dark .service-card2:last-child .arrow2 {
  background: #ffffff;
  color: #000;
}

/* TAGS */
.service-tags2 {
  z-index: 3;
  display: flex;
  flex-wrap: wrap;        /* allow next line */
  column-gap: 12px;       /* space between tags horizontally */
  row-gap: 14px;          /* 👈 SPACE BETWEEN LINES */
  margin: 30px 0 20px 0;
  max-width: 100%;
  margin-bottom: -90px;

}


.service-tags2 span {
  margin-bottom: 4px;
  padding: 9px 16px;
  border: 1px solid #ffffff;
  border-radius: 30px;
  color: #ffffff;
  font-size: 14px;
  white-space: nowrap;
  background: transparent;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.services-grid2.visible .service-tags2 span {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for tags */
.services-grid2.visible .service-tags2 span:nth-child(1) { transition-delay: 0.6s; }
.services-grid2.visible .service-tags2 span:nth-child(2) { transition-delay: 0.7s; }
.services-grid2.visible .service-tags2 span:nth-child(3) { transition-delay: 0.8s; }
.services-grid2.visible .service-tags2 span:nth-child(4) { transition-delay: 0.9s; }


/* TEXT */
.service-text2 {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.65;
  padding-top: 90px;
  margin-bottom: -50px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

html.dark .service-text2 {
  color: rgba(255, 255, 255, 0.9);
}

.services-grid2.visible .service-text2 {
  opacity: 1;
  transform: translateY(0);
}

.services-grid2.visible .service-card2:first-child .service-text2 {
  transition-delay: 1.0s;
}

.services-grid2.visible .service-card2:last-child .service-text2 {
  transition-delay: 1.1s;
}

.service-card2:last-child .service-text2 {
  max-width: 420px;
  line-height: 1.75;
  font-size: 17px;
  opacity: 0.95;
}
/* IMAGE POSITIONING (IMPORTANT PART) */
.service-image2 {
  position: absolute;
  top:20px;
  right: -50px;
  width: 250px;              /* matches screenshot scale */
  max-width: 59%;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.services-grid2.visible .service-image2 {
  opacity: 1;
  transform: translateX(0);
}

.services-grid2.visible .service-card2:first-child .service-image2 {
  transition-delay: 1.2s;
}

.services-grid2.visible .service-card2:last-child .service-image2 {
  transition-delay: 1.3s;
}

.service-image2 img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.23, 0.65, 0.74, 1.09);


}
.service-image2 img.i2
{
  position: absolute;
  top: 210px;
  right: -15px;
  width: 360px;              /* matches screenshot scale */
}
/* RESPONSIVE */
@media (max-width: 900px) {
  .services-grid2 {
    grid-template-columns: 1fr;
  }

  .service-image2 {
    position: relative;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    margin: 30px auto 0;
  }

  .service-header2 h2 {
    font-size: 32px;
  }
}

/* ================================
   AWARDS SECTION - UPDATED
================================ */
/* SECTION */
.awards-section {
  margin-right: 20px;
  padding: 13px;
  background: #fbf7f6;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease, transform 1s ease;
}

.awards-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Dark mode awards section */
html.dark .awards-section {
  background: #09080b;
}

/* TITLE */
.section-title {
  font-size: 80px;
  margin-bottom: 60px;
  transform: translateX(-20px); /* Increased from -12px */
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.award-title {
  transition: transform 0.35s ease 0.1s;
}
/* LIST */
.awards-list {
  max-width: 1400px; /* 👈 narrower row width */
  border-top: 2px solid #111;
}

/* Dark mode awards list */
html.dark .awards-list {
  border-top: 2px solid #fff;
}

/* ROW */
.award-row {
  position: relative;
  display: grid;
  grid-template-columns: 30px 2fr 1fr auto;
  align-items: center;
  padding: 20px 0;
  border-bottom: 2px solid #111;
  cursor: none;
  overflow: visible; /* track clamp */
  transition: opacity 0.3s ease;
}

/* Dark mode award rows */
html.dark .award-row {
  border-bottom: 2px solid #fff;
}

/* DIM OTHERS */
.awards-list:hover .award-row {
  opacity: 0.25;
}
.awards-list:hover .award-row:hover {
  opacity: 1;
}

/* ARROW - BIGGER */
.row-arrow {
  font-size: 28px; /* Increased from 18px */
  opacity: 0;
  transform: translateX(-20px); /* Increased from -12px */
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* TEXT GROUP */
.award-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.35s ease;
}
.section-title:hover  {
  opacity: 1;
  transform: translateX(0);
}

/* TITLE */
.award-content h3 {
  font-size: 34px;
  font-weight: 500;
  transition: transform 0.35s ease;
}

/* Dark mode award content */
html.dark .award-content h3 {
  color: #fff;
}

/* META */
.meta span {
  display: block;
  font-size: 15px;
  color: #444;
  transition: transform 0.35s ease 0.1s;
}

/* Dark mode meta */
html.dark .meta span {
  color: #aaa;
}

/* YEAR */
.year {
  font-size: 14px;
  transition: transform 0.35s ease 0.2s;
}

/* Dark mode year */
html.dark .year {
  color: #aaa;
}

/* PUSH ANIMATION */
.award-row:hover .row-arrow {
  opacity: 1;
  transform: translateX(0);
}

.award-row:hover .award-content h3 {
  transform: translateX(16px); /* 👈 pushed by arrow */
}

.award-row:hover .meta span {
  transform: translateX(16px); /* 👈 pushed by arrow */
}

.award-row:hover .year {
  transform: translateX(16px); /* 👈 pushed by arrow */
}
.award-row:hover .award-title {
  transform: translateX(16px); /* 👈 pushed by arrow */
}

/* CURSOR IMAGE (TRACKED) - FIXED SIZE */
.row-image {
  position: absolute;
  left: 0;
  top: 40%;
  width: 200px;
  height: 200px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease;
  z-index: 5;
}


.award-row:hover .row-image {
  opacity: 1;
}

.row-image img {
  width: 100%;
  height: 100%;
  margin-top: -20px;
  border-radius: 12px;

  /* POP animation setup */
  transform: scale(0.85);
  opacity: 0;
}
.award-row:hover .row-image img {
  animation: imagePop 0.45s cubic-bezier(0.23, 0.65, 0.74, 1.09) forwards;
}
@keyframes imagePop {
  0% {
    transform: scale(0.85);
    opacity: 0;
  }
  60% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ================================
   WEBSITE-WIDE SCROLL ANIMATIONS
================================ */
/* Reveal animation for sections */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s cubic-bezier(0.23, 0.65, 0.74, 1.09),
              transform 1s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children animation */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.visible.stagger-children > * {
  opacity: 1;
  transform: translateY(0);
}

/* Apply reveal animation to all main sections */
.services-section,
.services-section1,
.services-section2 {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease, transform 1s ease;
}

.services-section.visible,
.services-section1.visible,
.services-section2.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   SMOOTH SCROLL ANIMATION
================================ */
/* Apply smooth reveal to all content */
[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.23, 0.65, 0.74, 1.09),
              transform 0.8s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

[data-scroll-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Different directions for variety */
[data-scroll-reveal="left"] {
  transform: translateX(-40px);
}

[data-scroll-reveal="right"] {
  transform: translateX(40px);
}

[data-scroll-reveal="left"].visible,
[data-scroll-reveal="right"].visible {
  transform: translateX(0);
}

/* Scale animation */
[data-scroll-reveal="scale"] {
  transform: translateY(40px) scale(0.95);
}

[data-scroll-reveal="scale"].visible {
  transform: translateY(0) scale(1);
}

.team-slider {
  width: 100%;
  overflow: hidden;
  
  margin-top: 50px;
  margin-left: -20px;
}

.slider-track {
  display: flex;
  width: max-content;
  animation: scroll 15s linear infinite;
}

/* SLIDES */
.slide {
  flex-shrink: 0;
  width: 460px;
  height: 520px;
  border-radius: 28px;
  overflow: hidden;
  margin-right: 30px; 
}

/* IMAGE */
.slide.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PURPLE CARD */
.slide.card {
  background: #9f8cf1;
  color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slide.card h3 {
  font-size: 32px;
  line-height: 1.1;
  margin-top: 300px;
}

/* Dark mode adjustments for team slider */
html.dark .slide.card {
  background: rgba(159, 139, 231, 0.9);
}

/* ================================
   SLIDE CARD BUTTON STYLES
================================ */
.slide.card button {
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  padding: 10px 22px; /* Increased padding for better size */
  display: inline-flex; /* Changed from flex to inline-flex */
  gap: 8px; /* Space between text and arrow */
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.23, 0.65, 0.74, 1.09);
  min-height: 44px; /* Minimum height for consistent sizing */
  text-align: center;
  margin-bottom: 20px; /* Added margin for spacing */
  width: max-content;
}

/* Hover state */
.slide.card button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Button text and arrow wrapper */
.slide.card button span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Text animation */
.slide.card button .btn-text {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Arrow animation */
.slide.card button .btn-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}


/* ALTERNATIVE HOVER ANIMATION 3: Arrow rotates and moves */
.slide.card.rotate button:hover .btn-arrow {
  animation: arrow-rotate-move 0.7s cubic-bezier(0.23, 0.65, 0.74, 1.09) forwards;
}

@keyframes arrow-rotate-move {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  40% {
    transform: translateX(10px) rotate(45deg);
    opacity: 0.7;
  }
  100% {
    transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
}

/* For dark mode or different backgrounds */
.slide.card.dark button {
  border-color: #000;
  color: #000;
}

.slide.card.dark button:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .slide.card button {
    padding: 8px 18px;
    font-size: 15px;
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  .slide.card button {
    padding: 7px 16px;
    font-size: 14px;
    min-height: 38px;
  }
}

/* ANIMATION */
@keyframes scroll {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}
/* ================================
   INSIGHTS SECTION
================================ */
.insights-section {
  padding: 100px 80px;
  background: #faf7f4;
  position: relative;
  overflow: hidden;
}

/* HEADER */
.insights-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 60px;
  position: relative;
}

/* TITLE WITH PROGRESS ANIMATION */
.insights-title {
  font-size: 84px;
  line-height: 0.95;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.title-line {
  display: block;
  position: relative;
  overflow: hidden;
}

/* Gradient mask for scroll progress animation */
.insights-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, #111 0%, #111 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 2;
  transition: width 1.2s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

/* Dark mode support */
html.dark .insights-title::before {
  background: transparent;
}

.insights-title.progress-25::before { width: 25%; }
.insights-title.progress-50::before { width: 50%; }
.insights-title.progress-75::before { width: 75%; }
.insights-title.progress-100::before { width: 100%; }

/* DESCRIPTION */
.insights-desc {
  max-width: 320px;
  font-size: 16px;
  line-height: 1.6;
  margin-left: auto;
  position: relative;
  padding-top: 90px;
  right: 400px;
  font-weight: 500px;
}

.insights-desc p {
  right: 400px;
  align-items: center;
  margin: 0 0 30px 0;
  color: #555;
  text-align: center;
  font-weight: 500px;
}

/* Dark mode insights description */
html.dark .insights-desc p {
  color: #aaa;
}

/* ALL ARTICLES BUTTON */
.all-articles-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding: 15px 34px;
  border: 2px solid #000;
  border-radius: 999px;
  text-decoration: none;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.23, 0.65, 0.74, 1.09);
  position: relative;
  overflow: hidden;
  background: transparent;
  right: -500px;
  top: -100px;
}

.all-articles-btn:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Dark mode all articles button */
html.dark .all-articles-btn {
  border-color: #fff;
  color: #fff;
}

html.dark .all-articles-btn:hover {
  background: #fff;
  color: #000;
}

/* Button arrow animation */
.all-articles-btn span {
  display: inline-block;
  transition: transform 0.3s ease;
}

.all-articles-btn:hover span {
  animation: button-arrow-slide 0.6s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

@keyframes button-arrow-slide {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  40% {
    transform: translateX(6px);
    opacity: 0.7;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* GRID */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* CARD */
.insight-card {
  text-decoration: none;
  color: #000;
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.6s ease, opacity 0.6s ease;
  position: relative;
}

.insight-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* IMAGE WRAPPER */
.image-wrap {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 20px;
}

.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.4s ease, transform 0.8s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

/* TAGS ON IMAGE */
.image-wrap .tags {
  position: absolute;
  top: 420px;
  left: 20px;
  z-index: 3;
  display: flex;
  gap: 8px;
  opacity: 1;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tags span {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #000;
  font-weight: 500;
}

/* Dark mode tags */
html.dark .tags span {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* OVERLAY */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

/* EYE ICON - BIGGER, NO BACKGROUND */
.eye {
  color: white;
  font-size: 48px; /* Bigger size */
  display: grid;
  place-items: center;
  background: transparent !important; /* No background */
  width: auto;
  height: auto;
  border-radius: 0;
  animation: eye-pulse 2s ease-in-out infinite;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

@keyframes eye-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* HOVER EFFECT */
.insight-card:hover {
  transform: translateY(-8px);
}

.insight-card:hover img {
  filter: blur(3px) brightness(0.9);
  transform: scale(1.08); /* Zoom in effect */
}

.insight-card:hover .overlay {
  opacity: 1;
}

.insight-card:hover .tags {
  opacity: 1;
  transform: translateY(0);
}

/* ZOOM OUT ALTERNATIVE */
.insight-card.zoom-out:hover img {
  transform: scale(0.95); /* Zoom out effect */
  filter: brightness(0.8);
}

/* TITLE */
.insight-card h3 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
  margin: 0;
  padding: 0 10px;
  transition: color 0.3s ease;
}

.insight-title {
  position: relative;
  display: inline-block;
  color: #333;
}

/* Dark mode insight title */
html.dark .insight-title {
  color: #fff;
}

/* underline */
.insight-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 1.5px;
  width: 100%;
  background: #111;

  /* hidden initially */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

/* Dark mode underline */
html.dark .insight-title::after {
  background: #fff;
}

/* hover animation */
.insight-card:hover .insight-title::after {
  transform: scaleX(1);
}


/* DARK MODE SUPPORT */
html.dark .insights-section {
  background: #0a0a0a;
}

html.dark .insights-desc p {
  color: #aaa;
}

html.dark .all-articles-btn {
  border-color: #fff;
  color: #fff;
}

html.dark .all-articles-btn:hover {
  background: #fff;
  color: #000;
}

html.dark .insight-card {
  color: #fff;
}

html.dark .insight-card:hover h3 {
  color: #ccc;
}

html.dark .tags span {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .insights-section {
    padding: 80px 60px;
  }
  
  .insights-header {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .insights-title {
    font-size: 64px;
  }
  
  .insights-desc {
    margin-left: 0;
    padding-right: 0;
  }
  
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .insights-section {
    padding: 60px 40px;
  }
  
  .insights-title {
    font-size: 48px;
  }
  
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .image-wrap img {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .insights-section {
    padding: 50px 20px;
  }
  
  .insights-title {
    font-size: 36px;
  }
  
  .image-wrap img {
    height: 280px;
  }
  
  .eye {
    font-size: 36px;
  }
}

/* ================================
   MEGA FOOTER - UPDATED WITH 3 CARDS
   AND SCROLL ZOOM-OUT ANIMATION
================================ */

.mega-footer {
  position: relative;
  padding: 100px 60px 100px;
  background: #fbf8f6;
  overflow: visible;
  font-family: Inter, sans-serif;
}

/* Dark mode mega footer */
html.dark .mega-footer {
  background: #09080b;
}

/* BIG TEXT */
.footer-bg-text {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18vw;
  font-weight: 800;
  color: #111;
  white-space: nowrap;
  z-index: 0;
}

/* Dark mode footer bg text */
html.dark .footer-bg-text {
  color: white;
}

/* GRID */
.footer-cards {
  top: 250px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  gap: 24px; /* Reduced gap for tighter layout */
  z-index: 2;
}

/* CARD BASE - UPDATED FOR SCROLL ANIMATION */
.footer-card {
  background: #fff;
  border-radius: 28px;
  padding: 36px 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.8s cubic-bezier(0.23, 0.65, 0.74, 1.09);
  transform-origin: center center;
  position: relative;
  overflow: hidden;
}

/* Dark mode footer cards */
html.dark .footer-card {
  background: rgba(20, 20, 22, 0.8);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* SCROLL-TRIGGERED ZOOM-OUT ANIMATION */
.footer-card.scroll-zoom-out {
  opacity: 0;
  transform: translateY(40px) scale(1.15);
}

.footer-card.scroll-zoom-out.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Different delays for staggered animation */
.footer-card:nth-child(1).scroll-zoom-out.visible {
  transition-delay: 0.1s;
}

.footer-card:nth-child(2).scroll-zoom-out.visible {
  transition-delay: 0.2s;
}

.footer-card:nth-child(3).scroll-zoom-out.visible {
  transition-delay: 0.3s;
}

/* CARD HOVER EFFECTS */
.footer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Dark mode hover */
html.dark .footer-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* LEFT CARD - NAVIGATION */
.nav-card {
  /* Specific styles for navigation card */
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list li {
  font-size: 32px; /* Slightly smaller */
  font-weight: 600;
  margin-bottom: 14px;
  padding: 4px 0;
  transition: transform 0.3s ease;
}

.nav-list li:hover {
  transform: translateX(5px);
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  background: #a48cf3;
  color: #fff;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 999px;
}

.footer-links {
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

html.dark .footer-links {
  border-top: 1px solid #333;
}

.footer-links a {
  font-size: 14px;
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

html.dark .footer-links a {
  color: #aaa;
}

.footer-links a:hover {
  color: #111;
}

html.dark .footer-links a:hover {
  color: #fff;
}

/* MIDDLE CARD - CONTACT (SPLIT INTO 2 CARDS) */
/* Remove the old contact-card styles and replace with these: */

/* Card 2: Contact Email */
.contact-email-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.contact-box {
  background: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 500;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

html.dark .contact-box {
  background: rgba(30, 30, 32, 0.8);
  border: 1px solid #333;
  color: #fff;
}

.contact-box:hover {
  border-color: #a48cf3;
  background: #f9f7ff;
}

html.dark .contact-box:hover {
  border-color: #a48cf3;
  background: rgba(30, 30, 32, 0.9);
}

.contact-box:first-child {
  margin-bottom: 20px;
}

.contact-box:before {
  content: '✦';
  margin-right: 10px;
  color: #a48cf3;
}

/* Card 3: Subscribe */
.subscribe-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.subscribe-box h3 {
  font-size: 32px; /* Slightly smaller */
  margin-bottom: 30px;
  line-height: 1.2;
}

html.dark .subscribe-box h3 {
  color: #fff;
}

.subscribe-input {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #111;
  padding-bottom: 12px;
  margin-top: auto;
}

html.dark .subscribe-input {
  border-bottom: 2px solid #fff;
}

.subscribe-input input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 18px;
  background: transparent;
  padding: 8px 0;
  color: #111;
}

html.dark .subscribe-input input {
  color: #fff;
}

html.dark .subscribe-input input::placeholder {
  color: #aaa;
}

.subscribe-input .arrow {
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.3s ease;
  color: #111;
}

html.dark .subscribe-input .arrow {
  color: #fff;
}

.subscribe-input:hover .arrow {
  transform: translateX(5px);
}

/* RIGHT CARD - ECOSYSTEM */
.ecosystem-card h3 {
  font-size: 32px; /* Slightly smaller */
  margin-bottom: 20px;
  line-height: 1.2;
}

html.dark .ecosystem-card h3 {
  color: #fff;
}

.ecosystem-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ecosystem-card li {
  font-size: 18px;
  margin-bottom: 12px;
  padding: 6px 0;
  transition: transform 0.3s ease;
  color: #111;
}

html.dark .ecosystem-card li {
  color: #fff;
}

.ecosystem-card li:hover {
  transform: translateX(5px);
  color: #a48cf3;
}

/* ================================
   PAGE-WIDE SCROLL ZOOM-OUT ANIMATION
   Entire page zooms from larger to smaller
================================ */

/* Apply to the main page container */
#page {
  transform-origin: top center;
  transition: transform 1.5s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

/* Initial zoomed-in state */
.page-zoom-initial {
  transform: scale(1.15) translateY(20px);
  opacity: 0.95;
}

/* Zoomed-out state during scroll */
.page-zoom-scrolling {
  transform: scale(1);
  opacity: 1;
}

/* ================================
   PROGRESSIVE ZOOM EFFECT
================================ */

/* Subtle zoom based on scroll position */
.progressive-zoom-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  transform-origin: center center;
  will-change: transform;
}

/* ================================
   SMOOTH ENTRY FOR SECTIONS
================================ */

/* All sections will have this base animation */
.scroll-zoom-section {
  opacity: 0;
  transform: translateY(60px) scale(1.1);
  transition: all 0.9s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

.scroll-zoom-section.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered delays for smooth entry */
.scroll-zoom-section:nth-child(1) { transition-delay: 0.1s; }
.scroll-zoom-section:nth-child(2) { transition-delay: 0.2s; }
.scroll-zoom-section:nth-child(3) { transition-delay: 0.3s; }
.scroll-zoom-section:nth-child(4) { transition-delay: 0.4s; }
.scroll-zoom-section:nth-child(5) { transition-delay: 0.5s; }

/* ================================
   PARALLAX BACKGROUND EFFECT
================================ */

/* Add subtle depth with parallax */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: linear-gradient(180deg, 
    var(--bg) 0%,
    rgba(251, 247, 246, 0.95) 50%,
    rgba(251, 247, 246, 0.85) 100%
  );
  transform: translateZ(-1px) scale(1.2);
  transition: transform 0.8s ease-out;
}

html.dark .parallax-bg {
  background: linear-gradient(180deg, 
    var(--bg) 0%,
    rgba(9, 8, 11, 0.95) 50%,
    rgba(9, 8, 11, 0.85) 100%
  );
}

/* ================================
   ENHANCED SCROLL INDICATOR
================================ */

/* Make scroll progress bar more visible during zoom */
.scroll-progress {
  transform: scaleX(1.1);
  transform-origin: left;
  transition: transform 0.4s ease;
}

/* ================================
   RESPONSIVE ADJUSTMENTS
================================ */

@media (max-width: 768px) {
  .page-zoom-initial {
    transform: scale(1.08) translateY(15px);
  }
  
  .scroll-zoom-section {
    transform: translateY(40px) scale(1.08);
  }
}

@media (max-width: 480px) {
  .page-zoom-initial {
    transform: scale(1.05) translateY(10px);
  }
  
  .scroll-zoom-section {
    transform: translateY(30px) scale(1.05);
  }
}

/* ================================
   PAGE-WIDE SCROLL ZOOM-OUT ANIMATION
   Starts from services-section and affects subsequent content
================================ */

/* Apply zoom-out effect to the main content container */
.page-content-zoom {
  transform-origin: center center;
  transition: transform 1.2s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

/* When services-section is in view, start the zoom-out animation */
.services-section.active ~ * {
  animation: page-zoom-out 2s cubic-bezier(0.23, 0.65, 0.74, 1.09) forwards;
}

/* Apply to all sections after services-section */
.services-section.active ~ .services-section1,
.services-section.active ~ .services-section2,
.services-section.active ~ .awards-section,
.services-section.active ~ .team-slider,
.services-section.active ~ .insights-section,
.services-section.active ~ .mega-footer {
  opacity: 0;
  transform: translateY(40px) scale(1.08);
  transition: all 0.8s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

/* Reveal with zoom-out effect */
.services-section.active ~ .services-section1.visible,
.services-section.active ~ .services-section2.visible,
.services-section.active ~ .awards-section.visible,
.services-section.active ~ .team-slider.visible,
.services-section.active ~ .insights-section.visible,
.services-section.active ~ .mega-footer.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered delays for sections after services-section */
.services-section.active ~ .services-section1.visible {
  transition-delay: 0.1s;
}
.services-section.active ~ .services-section2.visible {
  transition-delay: 0.2s;
}
.services-section.active ~ .awards-section.visible {
  transition-delay: 0.3s;
}
.services-section.active ~ .team-slider.visible {
  transition-delay: 0.4s;
}
.services-section.active ~ .insights-section.visible {
  transition-delay: 0.5s;
}
.services-section.active ~ .mega-footer.visible {
  transition-delay: 0.6s;
}

/* Individual section zoom-out animations */
.section-zoom-out {
  opacity: 0;
  transform: translateY(60px) scale(1.12);
  transition: all 0.9s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

.section-zoom-out.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Add scroll-triggered zoom class to page */
.page.scroll-zoom-active main > section {
  transform-origin: center center;
  transition: transform 1.5s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

/* Zoom animation keyframes */
@keyframes page-zoom-out {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(1.15);
  }
  60% {
    opacity: 0.8;
    transform: translateY(10px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Progressive zoom effect based on scroll */
.progressive-zoom {
  transform-origin: center center;
  will-change: transform;
}

/* Smooth entry animation for sections */
.scroll-zoom-section {
  opacity: 0;
  transform: translateY(80px) scale(1.2);
  transition: all 1s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

.scroll-zoom-section.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Dark mode support for zoom animations */
html.dark .scroll-zoom-section {
  background: rgba(10, 10, 12, 0.95);
}

/* ================================
   RESPONSIVE UPDATES
================================ */

@media (max-width: 1024px) {
  .footer-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .footer-card {
    padding: 28px 24px;
  }
  
  .nav-list li {
    font-size: 28px;
  }
  
  .subscribe-box h3,
  .ecosystem-card h3 {
    font-size: 28px;
  }
  
  /* Responsive adjustments for zoom animation */
  .scroll-zoom-section {
    transform: translateY(60px) scale(1.15);
  }
}

@media (max-width: 768px) {
  .mega-footer {
    padding: 80px 40px;
  }
  
  .footer-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-bg-text {
    font-size: 15vw;
  }
  
  .nav-list li {
    font-size: 24px;
  }
  
  /* Responsive adjustments for zoom animation */
  .scroll-zoom-section {
    transform: translateY(40px) scale(1.1);
  }
  
  @keyframes page-zoom-out {
    0% {
      opacity: 0;
      transform: translateY(30px) scale(1.1);
    }
    60% {
      opacity: 0.8;
      transform: translateY(5px) scale(1.02);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

@media (max-width: 480px) {
  .mega-footer {
    padding: 60px 20px;
  }
  
  .footer-card {
    padding: 24px 20px;
    border-radius: 20px;
  }
  
  .footer-bg-text {
    top: -20px;
    font-size: 12vw;
  }
  
  /* Mobile adjustments for zoom animation */
  .scroll-zoom-section {
    transform: translateY(30px) scale(1.08);
  }
}

/* ================================
   SCROLL STACK TEXT OVERLAY STYLES
================================ */

/* Image content wrapper */
.image-content {
  position: absolute;
  left: 40px;
  bottom: 40px;
  z-index: 5;
  color: white;
  max-width: 80%;
}

/* Title styles */
.image-content h2 {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Tags container */
.image-content .tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Individual tag styles */
.image-content .tags span {
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  font-weight: 500;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Dark mode adjustments for tags */
html.dark .image-content .tags span {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments for scroll stack text */
@media (max-width: 960px) {
  .image-content {
    left: 30px;
    bottom: 30px;
  }
  
  .image-content h2 {
    font-size: 36px;
  }
  
  .image-content .tags span {
    padding: 5px 12px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .image-content {
    left: 20px;
    bottom: 20px;
  }
  
  .image-content h2 {
    font-size: 28px;
    margin-bottom: 12px;
  }
  
  .image-content .tags {
    gap: 8px;
  }
  
  .image-content .tags span {
    padding: 4px 10px;
    font-size: 12px;
  }
}
/* ================================
   HAMBURGER MENU OVERLAY – FULL CSS
================================ */

/* Overlay */
.menu-overlay {
  position: fixed;
  top: 10vh;
  left: 10vw;
  width: 80vw;
  height: 80vh;
  background: #0b0b0b;
  border-radius: 50px;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.1);
  transform-origin: top right;
  transition: all 0.8s cubic-bezier(0.23, 0.65, 0.74, 1.09);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

html.dark .menu-overlay {
  background: #f2f2f2;
}

/* ================================
   MENU CONTENT
================================ */

.menu-content {
  width: 100%;
  height: 100%;
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.23, 0.65, 0.74, 1.09) 0.3s;
  position: relative;
}

.menu-overlay.active .menu-content {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   TOP LEFT TEXT
================================ */

.menu-top-left {
  position: absolute;
  top: 40px;
  left: 50px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  padding-top: 40px;
}

html.dark .menu-top-left {
  color: rgba(0, 0, 0, 0.7);
}

.menu-top-left span {
  display: inline-block;
}

/* ================================
   LEFT COLUMN - NAVIGATION
================================ */

.menu-nav {
  display: flex;
  align-items: center;
  height: 100%;
  padding-top: 30px;
}

.menu-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.menu-nav li {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* Menu links */
.menu-link {
  font-family: "Funnel Display", sans-serif;
  font-size: 56px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.23, 0.65, 0.74, 1.09);
  position: relative;
  display: inline-block;
  flex: 1;
}

html.dark .menu-link {
  color: #0b0b0b;
}

/* Stagger animation */
.menu-overlay.active .menu-nav li:nth-child(1) .menu-link { 
  transition-delay: .4s; 
  transform: translateY(0); 
}
.menu-overlay.active .menu-nav li:nth-child(2) .menu-link { 
  transition-delay: .5s; 
  transform: translateY(0); 
}
.menu-overlay.active .menu-nav li:nth-child(3) .menu-link { 
  transition-delay: .6s; 
  transform: translateY(0); 
}
.menu-overlay.active .menu-nav li:nth-child(4) .menu-link { 
  transition-delay: .7s; 
  transform: translateY(0); 
}
.menu-overlay.active .menu-nav li:nth-child(5) .menu-link { 
  transition-delay: .8s; 
  transform: translateY(0); 
}

/* Hover underline */
.menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #b99bf0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

.menu-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-link:hover {
  color: #b99bf0;
}
html.dark .menu-link:hover {
  color: #5a31a0;
}
/* ================================
   SVG STAR - IN FRONT OF TEXT
================================ */

.menu-star {
  width: 500px;
  height: 500px;
  fill: currentColor;
  opacity: 0.8;
  transform: translateY(0);
  margin-right: 250px;
  order: 1; /* This puts star before text */
  color: white;
}
.menu-star:hover {
  color: #b99bf0;
}
html.dark .menu-star:hover {
  color: #5a31a0;
}

html.dark .menu-star {
  opacity: 0.8;
  color: #0b0b0b;
}

/* Star animation */
.menu-nav li:hover .menu-star {
  animation: star-spin 0.6s cubic-bezier(0.23, 0.65, 0.74, 1.09);
}

@keyframes star-spin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.3);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* ================================
   RIGHT COLUMN
================================ */

.menu-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-top: 80px;
}

/* Right info text */
.menu-right-info {
  margin-bottom: 40px;
  max-width: 320px;
}

.menu-right-info p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  margin-bottom: -70px;
}

html.dark .menu-right-info p {
  color: rgba(0, 0, 0, 0.8);
}

/* ================================
   VIDEO RECTANGLE
================================ */

.video-rectangle {
  width: 100%;
  height: 280px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: #111;
  margin-top: 20px;
}

.video-rectangle video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-rectangle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    rgba(185, 155, 240, 0.15),
    rgba(216, 242, 106, 0.12)
  );
  z-index: 1;
  pointer-events: none;
}

.video-rectangle video {
  position: relative;
  z-index: 2;
}

html.dark .video-rectangle {
  background: #222;
}

/* ================================
   FOOTER
================================ */

.menu-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 30px;
  font-family: 'Inter', sans-serif;
}

html.dark .menu-bottom {
  color: rgba(0, 0, 0, 0.6);
}

.menu-bottom span {
  display: inline-block;
}

/* ================================
   BODY LOCK
================================ */

body.menu-open {
  overflow: hidden;
}

/* Remove scrollbar when menu is open */
body.menu-open::-webkit-scrollbar {
  display: none;
}

body.menu-open {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1200px) {
  .menu-overlay {
    width: 85vw;
    height: 85vh;
    top: 7.5vh;
    left: 7.5vw;
  }
  
  .menu-content {
    padding: 40px;
    gap: 40px;
  }
  
  .menu-link {
    font-size: 48px;
  }
}

@media (max-width: 1024px) {
  .menu-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .menu-nav {
    padding-top: 40px;
    height: auto;
  }
  
  .menu-right {
    padding-top: 0;
    height: auto;
  }
  
  .menu-link {
    font-size: 42px;
  }
  
  .video-rectangle {
    height: 240px;
  }
  
  .menu-top-left {
    top: 30px;
    left: 40px;
  }
}

@media (max-width: 768px) {
  .menu-overlay {
    width: 92vw;
    height: 92vh;
    top: 4vh;
    left: 4vw;
    border-radius: 30px;
  }
  
  .menu-content {
    padding: 30px;
    gap: 30px;
  }
  
  .menu-link {
    font-size: 36px;
  }
  
  .menu-star {
    width: 16px;
    height: 16px;
    margin-right: 20px;
  }
  
  .video-rectangle {
    height: 200px;
  }
  
  .menu-right-info p {
    font-size: 16px;
  }
  
  .menu-top-left {
    top: 25px;
    left: 30px;
    font-size: 14px;
  }
  
  .menu-close {
    top: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .menu-overlay {
    width: 96vw;
    height: 96vh;
    top: 2vh;
    left: 2vw;
    border-radius: 20px;
  }
  
  .menu-content {
    padding: 25px 20px;
  }
  
  .menu-link {
    font-size: 28px;
  }
  
  .menu-nav li {
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .menu-star {
    width: 14px;
    height: 14px;
    margin-right: 15px;
  }
  
  .video-rectangle {
    height: 180px;
    border-radius: 16px;
  }
  
  .menu-right-info .badge {
    font-size: 12px;
    padding: 5px 12px;
  }
  
  .menu-right-info p {
    font-size: 14px;
  }
  
  .menu-bottom {
    font-size: 12px;
    flex-direction: column;
    gap: 8px;
  }
  
  .menu-top-left {
    top: 20px;
    left: 20px;
    font-size: 12px;
  }
  
  .menu-close {
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}

/* Animation for menu items */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth background transition */
.menu-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(11, 11, 11, 0.95) 0%,
    rgba(20, 20, 22, 0.98) 100%);
  z-index: -1;
}

html.dark .menu-overlay::before {
  background: linear-gradient(135deg, 
    rgba(242, 242, 242, 0.95) 0%,
    rgba(255, 255, 255, 0.98) 100%);
}