/* --- General Styling & Variables --- */
:root {
 --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
 --ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);
}
html {
 scroll-behavior: smooth;
}
body {
 font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
  Helvetica, Arial, sans-serif;
 background-color: #000;
 color: #fff;
 margin: 0;
 line-height: 1.5;
 cursor: none;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  background-color: transparent;
  transition: transform 0.15s ease;

  /* Animate color + glow */
  animation: cursorColors 6s linear infinite, glowBreath 2s ease-in-out infinite;

  /* Brackets using gradients */
  --t: 20%;   /* thickness */
  --len: 70%; /* arm length */
  background:
    /* top-left ┌ */
    linear-gradient(currentColor, currentColor) top left / var(--len) var(--t) no-repeat,
    linear-gradient(currentColor, currentColor) top left / var(--t) var(--len) no-repeat,
    /* bottom-right ┘ */
    linear-gradient(currentColor, currentColor) bottom right / var(--len) var(--t) no-repeat,
    linear-gradient(currentColor, currentColor) bottom right / var(--t) var(--len) no-repeat;

  /* Instead of box-shadow, glow is added via filter */
  filter: drop-shadow(0 0 6px currentColor) drop-shadow(0 0 15px currentColor);
}

/* CMYKR(G)B cycle */
@keyframes cursorColors {
  0%   { color: #00ffff; }  /* Cyan */
  16%  { color: #ff00ff; }  /* Magenta */
  32%  { color: #ffff00; }  /* Yellow */
  48%  { color: #ff0000; }  /* Red */
  64%  { color: #00ff00; }  /* Green */
  80%  { color: #0000ff; }  /* Blue */
  100% { color: #00ffff; }  /* Loop back */
}

/* Breathing glow intensity */
@keyframes glowBreath {
  0%   { filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 10px currentColor); }
  50%  { filter: drop-shadow(0 0 12px currentColor) drop-shadow(0 0 25px currentColor); }
  100% { filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 10px currentColor); }
}

/* Hide custom cursor on touch/mobile devices */
@media (hover: none) and (pointer: coarse) {
  .cursor {
    display: none !important;
  }
}






/* --- Preloader Styling --- */
/* --- Preloader Styling --- */
body.no-scroll {
 overflow: hidden;
}

#preloader {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-color: #000;
 z-index: 9999;
 display: flex;
 justify-content: center;
 align-items: center;
 transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
 opacity: 0;
 visibility: hidden;
}

/* Add these new rules for the logo */
.preloader-content {
 display: flex;
 flex-direction: column;
 align-items: center;
}

.preloader-logo {
 margin-bottom: 2rem;
 animation: pulse-logo 2.5s ease-in-out infinite;
}

.preloader-logo img {
 height: 40px;
}

@keyframes pulse-logo {
 0%,
 100% {
  opacity: 0.8;
  transform: scale(1);
 }
 50% {
  opacity: 1;
  transform: scale(1.05);
 }
}

.dots-container {
 display: flex;
 gap: 10px;
}

.dot {
 width: 10px;
 height: 10px;
 border-radius: 50%;
 /* Apply the new breathing/glowing animation */
 animation: dot-breath 1.5s ease-in-out infinite;
 box-shadow: 0 0 4px currentColor, 0 0 8px currentColor;
}

/* The new keyframe animation for a breathing/glowing effect.
   It uses currentColor to inherit the color set on each specific dot. */
@keyframes dot-breath {
 0%,
 100% {
  transform: scale(0.8);
  opacity: 0.5;
  box-shadow: 0 0 4px currentColor, 0 0 8px currentColor;
 }
 50% {
  transform: scale(1.1);
  opacity: 1;
  box-shadow: 0 0 12px currentColor, 0 0 24px currentColor;
 }
}

/* Assign CMYK + RGB colors to each dot for both background and glow */
.dot:nth-child(1) {
 background-color: #ff0000;
 color: #ff0000;
 animation-delay: 0s;
} /* Red */
.dot:nth-child(2) {
 background-color: #00ff00;
 color: #00ff00;
 animation-delay: 0.15s;
} /* Green */
.dot:nth-child(3) {
 background-color: #0000ff;
 color: #0000ff;
 animation-delay: 0.3s;
} /* Blue */
.dot:nth-child(4) {
 background-color: #00ffff;
 color: #00ffff;
 animation-delay: 0.45s;
} /* Cyan */
.dot:nth-child(5) {
 background-color: #ff00ff;
 color: #ff00ff;
 animation-delay: 0.6s;
} /* Magenta */
.dot:nth-child(6) {
 background-color: #ffff00;
 color: #ffff00;
 animation-delay: 0.75s;
} /* Yellow */
.dot:nth-child(7) {
 background-color: #ffffff;
 color: #ffffff;
 animation-delay: 0.9s;
} /* White */

/* --- NEW: Breathing Squares Component --- */
.dots-square-container {
    display: flex;    
    align-items: center;
    gap: 10px; /* Space between squares */
    padding-bottom: 30px;
}

@media (max-width: 1024px) {
    .dots-square-container {
        justify-content: center;
    }
}

.dot-square {
    width: 10px;
    height: 10px;
    border-radius: 0px; /* Creates the rounded square shape */
    /* Apply the breathing/glowing animation */
    animation: square-breath 1.8s ease-in-out infinite;
}

/* Keyframe animation for a breathing/glowing effect */
@keyframes square-breath {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.6;
        box-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 15px currentColor, 0 0 30px currentColor;
    }
}

/* Assign CMYK + RGB + White colors and stagger the animation */
.dot-square.red { 
    background-color: #ff0000; 
    color: #ff0000; 
    animation-delay: 0s; 
}
.dot-square.green { 
    background-color: #00ff00; 
    color: #00ff00; 
    animation-delay: 0.15s; 
}
.dot-square.blue { 
    background-color: #0000ff; 
    color: #0000ff; 
    animation-delay: 0.3s; 
}
.dot-square.cyan { 
    background-color: #00ffff; 
    color: #00ffff; 
    animation-delay: 0.45s; 
}
.dot-square.magenta { 
    background-color: #ff00ff; 
    color: #ff00ff; 
    animation-delay: 0.6s; 
}
.dot-square.yellow { 
    background-color: #ffff00; 
    color: #ffff00; 
    animation-delay: 0.75s; 
}
.dot-square.white { 
    background-color: #ffffff; 
    color: #ffffff; 
    animation-delay: 0.9s; 
}

/* --- Animated Horizontal Rule with Breathing Glow --- */
.animated-hr {
  position: relative;
  width: 100px; /* length */
  height: 4px;  /* thickness */
  border-radius: 2px;
  background: linear-gradient(
    90deg, 
    #ff00ff, /* Magenta */
    #ffff00, /* Yellow */
    #00ffff, /* Cyan */
    #ff0000, /* Red */
    #00ff00, /* Green */
    #0000ff, /* Blue */
    #ff00ff  /* Magenta again to loop smoothly */
  );
  background-size: 400% 100%;
  animation: move-hr-gradient 20s linear infinite reverse;
  margin-bottom: 40px;
  z-index: 1;
}

/* Glow layer */
.animated-hr::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: inherit;           /* same gradient */
  background-size: inherit;
  animation: move-hr-gradient 20s linear infinite reverse,
             glowBreathHr 2s ease-in-out infinite;
  filter: blur(10px);            /* glowing blur */
  z-index: -1;                   /* behind line */
}

/* Gradient motion */
@keyframes move-hr-gradient {
  0%   { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

/* Glow breathing */
@keyframes glowBreathHr {
  0%   { opacity: 0.6; filter: blur(0.6px); }
  50%  { opacity: 1;   filter: blur(14px); }
  100% { opacity: 0.6; filter: blur(0.6px); }
}


/* --- Neon Glowing Spotlights --- */
.spotlight-container {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 z-index: 0;
 overflow: hidden;
 pointer-events: none;
}
.spotlight {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    transition: transform 20s ease-in-out, background-color 5s ease;
    /* This line fixes the square rendering bug on iOS/Safari */
    transform: translateZ(0);
}
.spotlight.s1 {
 width: 400px;
 height: 400px;
}
.spotlight.s2 {
 width: 500px;
 height: 500px;
}
.spotlight.s3 {
 width: 350px;
 height: 350px;
}

/* --- Frosted Glass Blur Effect --- */
.blur-overlay {
 position: fixed;
 left: 0;
 width: 100%;
 height: 25vh;
 z-index: 10;
 pointer-events: none;
 -webkit-backdrop-filter: blur(8px);
 backdrop-filter: blur(8px);
}
.blur-overlay.top {
 top: 0;
 -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
 mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}
.blur-overlay.bottom {
 bottom: 0;
 -webkit-mask-image: linear-gradient(to top, black 50%, transparent 100%);
 mask-image: linear-gradient(to top, black 50%, transparent 100%);
}

/* --- Header & Footer --- */
main {
 position: relative;
 z-index: 2;
}
.site-header {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 z-index: 1000;
 padding: 1rem 2rem;
 box-sizing: border-box;
}
.header-container {
 display: flex;
 justify-content: space-between;
 align-items: center;
 max-width: 1400px;
 margin: 0 auto;
}
.logo img {
 height: 35px;
 width: auto;
 display: block;
}
.main-nav ul {
 list-style: none;
 margin: 0;
 padding: 0;
 display: flex;
}
.main-nav li {
 margin-left: 2.5rem;
}
.main-nav a {
 color: #fff;
 text-decoration: none;
 font-weight: 500;
 transition: color 0.3s ease;
}
.main-nav a:hover {
 color: #43e97b;
}
.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
 padding: 0;
 z-index: 1001;
}
.hamburger {
 display: block;
 width: 25px;
 height: 2px;
 background-color: #fff;
 position: relative;
 transition: transform 0.3s ease;
}
.hamburger::before,
.hamburger::after {
 content: "";
 position: absolute;
 left: 0;
 width: 100%;
 height: 2px;
 background-color: #fff;
 transition: transform 0.3s ease;
}
.hamburger::before {
 top: -8px;
}
.hamburger::after {
 bottom: -8px;
}

.site-footer {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #0a0a0a;
    border-top: 4px solid transparent; /* <-- Change this line */
    position: relative;
    z-index: 11;
    overflow: hidden; /* Add this to contain the new gradient */
}

/* --- NEW: Footer Gradient Border --- */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; /* <-- Corrected position */
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg, 
        rgb(255, 0, 255),  /* Magenta */
        rgb(255, 255, 0),  /* Yellow */
        rgb(0, 255, 255),  /* Cyan */
        rgb(255, 0, 0),    /* Red */
        rgb(0, 255, 0),    /* Green */
        rgb(0, 0, 255),    /* Blue */
        rgb(255, 0, 255)   /* Magenta again to loop smoothly */
    );
    background-size: 400% 100%;
    animation: move-gradient-border 60s linear infinite;
}

@keyframes move-gradient-border {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 400% 50%;
    }
}

.footer-logo {
 margin-bottom: 2rem;
}
.footer-logo img {
 height: 35px;
 width: auto;
 margin: 0 auto;
 opacity: 1;
}
.social-links {
 margin-bottom: 1rem;
}
.social-links a {
 margin: 0 1rem;
 display: inline-block;
}
.social-links svg {
 width: 24px;
 height: 24px;
 fill: #888;
 transition: fill 0.3s ease;
}
.social-links a:hover svg {
 fill: #fff;
}

/* --- NEW: Footer Links Styling --- */
.footer-links {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links span {
    color: #555;
}

/* --- General Section Styling --- */
.story-section,
.split-section,
.stats-section,
.logos-section,
.cards-section {
 display: flex;
 justify-content: center;
 align-items: center;
 min-height: 100vh;
 padding: 5rem;
 box-sizing: border-box;
 position: relative;
}
.story-section {
 flex-direction: column;
 text-align: center;
}

/* --- Hero, Video, Scrolling Images Sections --- */
.hero-section {
 height: 100vh;
 position: relative;
 overflow: hidden;
 display: flex;
 justify-content: center;
 align-items: center;
 text-align: center;
}
.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%; /* Adjusted for zoom */
    background-image: url('hero2.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    will-change: transform;
    transform: scale(1.9); /* Start zoomed in */
}

.hero-background-image-2 {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 125%;
 background-image: url("hero6.png");
 background-size: cover;
 background-position: center;
 z-index: 1;
 will-change: transform;
}

.hero-content {
 position: relative;
 z-index: 3;
 display: flex;
 flex-direction: column;
 align-items: center;
}
.video-section {
 height: 100vh;
 position: relative;
 overflow: hidden;
 display: flex;
 justify-content: center;
 align-items: center;
 text-align: center;
}
#background-video {
 position: absolute;
 top: 50%;
 left: 50%;
 min-width: 100%;
 min-height: 100%;
 width: auto;
 height: auto;
 z-index: 1;
 transform: translateX(-50%) translateY(-50%);
 object-fit: cover;
}
.video-overlay {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: rgba(0, 0, 0, 0.5);
 z-index: 2;
}
.video-content {
 position: relative;
 z-index: 3;
}

/* --- Pinned Image Animation Structure --- */
.image-pin-track {
 height: 250vh;
 position: relative;
 z-index: 1;
}
.image-pin-wrapper {
 position: sticky;
 top: 0;
 height: 100vh;
 width: 100%;
 display: flex;
 justify-content: center;
 align-items: center;
 overflow: hidden;
}
.story-image { 
    display: block; 
    width: 90%; 
    max-width: 900px; 
    height: auto; 
    border-radius: 24px; 
    box-shadow: 0 25px 60px rgba(0,0,0,0.5); 
    will-change: transform; 
    /* The translate3d hint helps force GPU acceleration on mobile */
    transform: translateX(-50vw) translate3d(0,0,0); 
}

.animating-content-group {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.vertical-text {
    position: absolute;
    right: 100%; 
    top: 50%;
    margin-right: 2rem; 
    transform-origin: center;
    transform: translateY(-50%) rotate(-90deg);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    z-index: 5;
    pointer-events: none;
    white-space: nowrap;
}

/* --- Animated Bottom Neon Shadow --- */
.story-image.animated-neon-shadow {
 animation: cycle-shadow-color 28s linear infinite;
}
@keyframes cycle-shadow-color {
 0%,
 100% {
  filter: drop-shadow(0 12px 10px rgba(255, 0, 0, 0.4))
   drop-shadow(0 22px 30px rgba(255, 0, 0, 0.2));
 }
 14% {
  filter: drop-shadow(0 12px 10px rgba(0, 255, 0, 0.4))
   drop-shadow(0 22px 30px rgba(0, 255, 0, 0.2));
 }
 28% {
  filter: drop-shadow(0 12px 10px rgba(0, 0, 255, 0.4))
   drop-shadow(0 22px 30px rgba(0, 0, 255, 0.2));
 }
 42% {
  filter: drop-shadow(0 12px 10px rgba(0, 255, 255, 0.4))
   drop-shadow(0 22px 30px rgba(0, 255, 255, 0.2));
 }
 56% {
  filter: drop-shadow(0 12px 10px rgba(255, 0, 255, 0.4))
   drop-shadow(0 22px 30px rgba(255, 0, 255, 0.2));
 }
 70% {
  filter: drop-shadow(0 12px 10px rgba(255, 255, 0, 0.4))
   drop-shadow(0 22px 30px rgba(255, 255, 0, 0.2));
 }
 84% {
  filter: drop-shadow(0 12px 10px rgba(255, 255, 255, 0.4))
   drop-shadow(0 22px 30px rgba(255, 255, 255, 0.2));
 }
}

/* --- Text Styling --- */
.story-text {
 font-size: 4rem;
 font-weight: 600;
 max-width: 1000px;
 letter-spacing: -0.04em;
 margin-bottom: 2rem;
}

/* --- View More Button --- */
.view-more-btn {
 position: relative; /* This is crucial for the pseudo-elements */
 overflow: hidden;
 background: #1a1a1a; /* Dark background for the button */
 border: 1px solid rgba(255, 255, 255, 0);
 color: #fff;
 padding: 0.75rem 1.5rem;
 border-radius: 50px;
 cursor: pointer;
 font-family: "Inter", sans-serif;
 font-weight: 500;
 backdrop-filter: blur(5px);
 transition: all 0.2s ease;
 opacity: 0;
 transform: translateY(20px);
 z-index: 1;
}

/* --- CORRECTED: Animated Button Border on Hover --- */
/* --- FINAL: Animated Button Border on Hover --- */

/* Add z-index and dark background to the main button */
.view-more-btn.animated-border {
    background: #1a1a1a;
    z-index: 1;
}

/* This pseudo-element is the rotating conic gradient */
.view-more-btn.animated-border::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -2;
    background: conic-gradient(
        transparent,
        rgba(0, 255, 255, 0.9), /* Cyan */
        rgba(255, 0, 255, 0.9), /* Magenta */
        rgba(255, 255, 0, 0.9), /* Yellow */
        rgba(0, 255, 0, 0.9),  /* Green */
        transparent 30%
    );
    animation: rotate-border 4s linear infinite;
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* This pseudo-element creates the solid center, revealing only the border */
.view-more-btn.animated-border::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    background: #1a1a1a; /* Must match the button's background */
    border-radius: 50px;
    z-index: -1;
}

.view-more-btn.animated-border:hover::before {
    opacity: 1;
}

/* This simple rotation is all that's needed now */
@keyframes rotate-border {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.is-active .view-more-btn,
.hero-section .view-more-btn {
 opacity: 1;
 transform: translateY(0);
 transition: opacity 0.8s ease 0.3s, transform 0.8s var(--ease-out-quint) 0.5s;
}
.view-more-btn:hover {
 background: rgba(255, 255, 255, 0.2);
 border-color: rgba(255, 255, 255, 0.0);
}

/* --- Info Panel --- */
#info-panel-overlay {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: rgba(0, 0, 0, 0.5);
 z-index: 1999;
 opacity: 0;
 visibility: hidden;
 transition: opacity 0.5s ease, visibility 0.5s ease;
}
#info-panel {
 position: fixed;
 top: 0;
 width: 100%;
 max-width: 450px;
 height: 100%;
 background: rgba(10, 10, 10, 0.7);
 backdrop-filter: blur(20px);
 -webkit-backdrop-filter: blur(20px);
 z-index: 2000;
 transition: transform 0.8s var(--ease-out-quint);
 padding: 3rem;
 box-sizing: border-box;
 overflow-y: auto;
}
#info-panel.from-right {
 right: 0;
 transform: translateX(100%);
}
#info-panel.from-left {
 left: 0;
 transform: translateX(-100%);
}
#info-panel-overlay.is-open {
 opacity: 1;
 visibility: visible;
}
#info-panel.is-open {
 transform: translateX(0);
}
.info-panel-content h3 {
 font-size: 2.5rem;
 letter-spacing: -0.03em;
 margin-top: 2rem;
 line-height: 1.2;
}
.info-panel-content p {
 color: rgba(255, 255, 255, 0.8);
 line-height: 1.7;
 font-size: 1rem;
 margin-top: 1.5rem;
}
.info-panel-content img,
.info-panel-content video {
 width: 100%;
 border-radius: 12px;
 margin-top: 2rem;
}
.close-panel-btn {
 position: absolute;
 top: 1.5rem;
 right: 1.5rem;
 width: 40px;
 height: 40px;
 background: rgba(255, 255, 255, 0.1);
 border: none;
 border-radius: 50%;
 cursor: pointer;
 color: #fff;
 font-size: 20px;
}

.info-panel-buttons {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.panel-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.panel-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}


/* --- Polished Scrollbar Styling (WebKit) --- */
#info-panel::-webkit-scrollbar {
    width: 8px; /* Set the width of the scrollbar */
}

#info-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05); /* Color of the track */
    border-radius: 4px;
}

#info-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff00ff, #00ffff); /* The gradient */
    border-radius: 4px;
}

#info-panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff80ff, #80ffff); /* Brighter on hover */
}

/* --- Split Section (Text/Image) --- */
.split-section {
 gap: 4rem;
 text-align: left;
}
.split-text,
.split-image {
 flex: 1;
 opacity: 0;
 transform: translateY(30px);
 transition: opacity 1s ease, transform 1s ease;
}
.split-section.is-active .split-text {
 opacity: 1;
 transform: translateY(0);
 transition-delay: 0.1s;
}
.split-section.is-active .split-image {
 opacity: 1;
 transform: translateY(0);
 transition-delay: 0.2s;
}

.split-section.reverse {
 flex-direction: row-reverse;
}
.split-image img {
 width: 100%;
 border-radius: 16px;
}

.split-image video {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.split-text h2 {
 font-size: 3rem;
 letter-spacing: -0.03em;
 margin-top: 0;
}
.split-text p {
 font-size: 1.1rem;
 color: rgba(255, 255, 255, 0.7);
}

/* --- Stats Section (Number Counters) --- */
.stats-section {
 flex-direction: column;
}
.stats-section h2 {
 font-size: 3rem;
 margin-bottom: 4rem;
}
.stats-grid {
 display: flex;
 gap: 4rem;
 text-align: center;
}
.stat-item .stat-number {
 font-size: 4rem;
 font-weight: 700;
 margin: 0;
}
.stat-item p {
 margin-top: 0.5rem;
 color: rgba(255, 255, 255, 0.7);
}

/* --- Scrolling Images (Marquee) --- */
.scrolling-images-track {
 height: 200vh;
 padding: 0;
}
.scrolling-images-wrapper {
 position: sticky;
 top: 0;
 height: 100vh;
 overflow: hidden;
 display: flex;
 align-items: center;
}
.scrolling-images-row {
 display: flex;
 gap: 2rem;
 will-change: transform;
}
.scrolling-images-row img {
 height: 40vh;
 width: auto;
 border-radius: 12px;
}

/* --- Logos Section --- */
.logos-section {
 flex-direction: column;
}
.logos-section h2 {
 margin-bottom: 3rem;
 color: rgba(255, 255, 255, 0.7);
 font-size: 1.2rem;
 text-transform: uppercase;
 letter-spacing: 0.2em;
}
.logos-grid {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 align-items: center;
 gap: 4rem;
}
.logos-grid img {
 height: 40px;
 width: auto;
 opacity: 0.6;
 filter: grayscale(100%);
 transition: all 0.3s ease;
}
.logos-grid img:hover {
 opacity: 1;
 filter: grayscale(0%);
}

/* --- Gradient Styles --- */
.gradient-text-1 {
 background: linear-gradient(90deg, #ff8a00, #e52e71);
 -webkit-background-clip: text;
 background-clip: text;
 color: transparent;
}
.gradient-text-2 {
 background: linear-gradient(90deg, #4facfe, #00f2fe);
 -webkit-background-clip: text;
 background-clip: text;
 color: transparent;
}
.gradient-text-3 {
 background: linear-gradient(90deg, #43e97b, #38f9d7);
 -webkit-background-clip: text;
 background-clip: text;
 color: transparent;
}
.gradient-text-4 {
 background: linear-gradient(90deg, #fa709a, #fee140);
 -webkit-background-clip: text;
 background-clip: text;
 color: transparent;
}
.gradient-text-5 {
 background: linear-gradient(90deg, #a18cd1, #fbc2eb);
 -webkit-background-clip: text;
 background-clip: text;
 color: transparent;
}

.gradient-text-6 {
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.gradient-text-7 {
    background: linear-gradient(90deg, #84fab0, #8fd3f4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.gradient-text-8 {
    background: linear-gradient(90deg, #c79081, #dfa579);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.gradient-text-9 {
    background: linear-gradient(90deg, #f093fb, #f5576c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.gradient-text-10 {
    background: linear-gradient(90deg, #4481eb, #04befe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.gradient-text-11 {
    background: linear-gradient(90deg, #5ee7df, #b490ca);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.gradient-text-12 {
    background: linear-gradient(90deg, #d299c2, #fef9d7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.gradient-text-13 {
    background: linear-gradient(90deg, #ff0844, #ffb199);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.gradient-text-14 {
    background: linear-gradient(90deg, #00c9ff, #92fe9d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.gradient-text-15 {
    background: linear-gradient(90deg, #f6d365, #fda085);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-text-16 {
    background: linear-gradient(
        90deg, 
        cyan, 
        magenta, 
        yellow,
		cyan
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Animate Gradient (continuous left-to-right) --- */
.animated-gradient {
  background-size: 200% auto; /* make gradient wider */
  animation: gradientScroll 20s linear infinite reverse;
}

/* Keyframes for continuous scroll */
@keyframes gradientScroll {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
 .story-text,
 .split-text h2 {
  font-size: 4rem;
  letter-spacing: -0.03em;
 }
 .story-image {
  max-width: 700px;
 }
 .split-section {
  flex-direction: column !important;
  text-align: center;
 }
 .stats-grid {
  gap: 2rem;
 }
}
@media (max-width: 768px) {
 .story-text,
 .split-text h2 {
  font-size: 3rem;
  letter-spacing: -0.02em;
 }
 #info-panel {
  max-width: 85%;
 }
 .stats-grid {
  flex-direction: column;
 }
 .main-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-in-out-cubic);
 }
 .main-nav.is-open {
  transform: translateX(0);
 }
 .main-nav ul {
  flex-direction: column;
  align-items: center;
 }
 .main-nav li {
  margin: 0;
  padding: 1.5rem 0;
 }
 .main-nav a {
  font-size: 1.5rem;
 }
 .nav-toggle {
  display: block;
 }
 .nav-toggle.is-open .hamburger {
  transform: rotate(45deg);
 }
 .nav-toggle.is-open .hamburger::before {
  transform: translate(0, 8px) rotate(90deg);
 }
 .nav-toggle.is-open .hamburger::after {
  transform: translate(0, -8px) rotate(90deg);
 }
}

/* --- Cookie Consent Banner --- */
#cookie-consent-banner {
 position: fixed;
 bottom: 2rem;
 left: 2rem;
 max-width: 320px;
 padding: 1.5rem;
 background-color: rgba(20, 20, 20, 0.7);
 backdrop-filter: blur(10px);
 -webkit-backdrop-filter: blur(10px);
 border: 1px solid rgba(255, 255, 255, 0.1);
 border-radius: 16px;
 z-index: 999;
 font-size: 14px;
 line-height: 1.6;
 color: rgba(255, 255, 255, 0.8);
 transform: translateY(calc(100% + 2rem));
 opacity: 0;
 visibility: hidden;
 transition: transform 0.8s var(--ease-out-quint), opacity 0.8s ease,
  visibility 0.8s;
}
#cookie-consent-banner.visible {
 transform: translateY(0);
 opacity: 1;
 visibility: visible;
}
#cookie-consent-banner p {
 margin: 0 0 1rem 0;
}
#cookie-consent-banner button {
 width: 100%;
 padding: 0.75rem 1rem;
 border: none;
 border-radius: 8px;
 background-color: #fff;
 color: #000;
 font-weight: 600;
 font-family: "Inter", sans-serif;
 cursor: pointer;
 transition: background-color 0.3s ease, color 0.3s ease;
}
#cookie-consent-banner button:hover {
 background-color: #43e97b;
}

/* --- REVISED: Lightbox --- */
[data-lightbox] {
    cursor: pointer;
}

[data-lightbox] img {
    transition: transform 0.3s ease;
}

[data-lightbox]:hover img {
    transform: scale(1.02);
}

.lightbox {
    position: fixed;
    z-index: 2500;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.lightbox-header {
    flex-shrink: 0;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}
.lightbox-close {
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}
.lightbox-content-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.lightbox-content-wrapper img,
.lightbox-content-wrapper iframe {
    max-width: 95vw;
    max-height: 95%;
    display: block;
    border: none;
    border-radius: 8px;
}
.lightbox-content-wrapper iframe {
    width: 90vw;
    height: 90%;
    background: #fff; /* White background for PDFs */
}

/* --- CTA Section --- */
.cta-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #00000000;
    min-height: auto;
    padding: 6rem 2rem;
}

.cta-title {
    font-size: 3.5rem;
    letter-spacing: -0.03em;
    margin: 0;
}
.cta-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin: 1.5rem 0 2.5rem 0;
}
.cta-button {
    background: #fff;
    color: #000;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.cta-button:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 2.5rem;
    }
}

/* --- Department Cards Section --- */
.cards-section {
    flex-direction: column;
    padding: 6rem 2rem; /* Reduced padding for a tighter look */
}
.cards-header {
    text-align: center;
    margin-bottom: 4rem;
}
.cards-header h2 {
    font-size: 3rem;
    letter-spacing: -0.03em;
    margin: 0;
}
.cards-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 1rem auto 0 auto;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}
.card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.1), 0 0 35px rgb(255 255 255 / 60%);
}
.card-image-container {
    height: 180px;
    background-color: #000;
    overflow: hidden;
}
.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-content {
    padding: 1.5rem;
    position: relative;
    text-align: left;
}
.card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}
.card-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}
.card-plus-btn {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    line-height: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.card:hover .card-plus-btn {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .cards-section {
        padding: 4rem 1rem;
    }
    .cards-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
 #cookie-consent-banner {
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: none;
 }
}
