/* ============================================
   Quantacores - Revamped Stylesheet (Lember-inspired)
   ============================================ */

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #aebccf;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-card: #ffffff;
    --bg-grey: #f3f4f6;
    --bg-grey-alt: #e5e7eb;
    
    --text-primary: #1a1a1a;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(37, 99, 235, 0.2);
    
    /* Button Gradient Colors - Bright & Unique */
    /* --gradient-primary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); */
    --gradient-primary: linear-gradient(135deg, #0d0221, #321450, #6b1e85, #ff6ec7);
    /* --gradient-secondary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); */
    --gradient-secondary: linear-gradient(135deg, #0d0221, #321450, #6b1e85, #ff6ec7);
    --gradient-accent: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-purple: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    /* Shadows - Subtle */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xl2: 1rem;
    /* Typography - Matching leber.io style */
    --font-primary: 'Onest', 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    --font-weight-light: 100;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    transform: scale(0.88);
    transform-origin: top left;
    width: 113.6%;
    height: 113.6%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Base Typography - Matching leber.io */
p, a, span {
    font-size: 1rem;
    line-height: 1.25;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: inherit;
    font-size: inherit;
}

*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: var(--border-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Make logo even larger */
.logo-img {
    height: 70px; /* Increased from 65px */
    width: 145px;
    object-fit: cover;
    transition: transform 0.3s ease;
    transform: scale(1.14); /* Counteract the 0.88 scale */
}

/* Adjust logo container to handle the larger size */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Logo Animation */
.animated-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Main Q body */
.animated-logo {
    position: relative;
    width: 140px;
    height: 140px;
}

.ring {
    position: absolute;
    inset: 0;
    border: 18px solid #000;
    border-radius: 50%;
    z-index: 2;
}

/* Tail of Q (the diagonal cut) */
.tail {
    position: absolute;
    width: 40px;
    height: 18px;
    background: #000;
    bottom: 25px;
    right: 8px;
    transform: rotate(45deg);
    border-radius: 5px;
    z-index: 3;
}

/* Orbiting small orb */
.orbital {
    position: absolute;
    width: 42px;
    height: 42px;
    background: #000;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin-top: -21px;
    margin-left: -21px;
    animation: orbit 3s linear infinite;
    z-index: 1;
}

/* Create a mask to simulate the orb going behind the ring */
.ring-mask {
    position: absolute;
    inset: 0;
    border: 18px solid #f5f5f5; /* Changed to match navbar background */
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

/* Quantacores text */
.animated-logo-text {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    color: #000;
    font-size: 32px;
    margin-left: 0px;
    position: relative;
    top: 18px;
}

/* Central orbit animation */
@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(60px) rotate(0deg);
        z-index: 1;
    }
    25% {
        transform: rotate(90deg) translateX(60px) rotate(-90deg);
        z-index: 1;
    }
    49% {
        z-index: 1;
    }
    50% {
        transform: rotate(180deg) translateX(60px) rotate(-180deg);
        z-index: 4;
    }
    75% {
        transform: rotate(270deg) translateX(60px) rotate(-270deg);
        z-index: 4;
    }
    99% {
        z-index: 4;
    }
    100% {
        transform: rotate(360deg) translateX(60px) rotate(-360deg);
        z-index: 1;
    }
}

/* Add a subtle shine to the orb */
.orbital::after {
    content: '';
    position: absolute;
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    top: 20%;
    left: 20%;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #f5f5f5;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

/* Main logo container */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.logo-text {
    display: none;
}

/* Make logo even larger */
.logo-img {
    height: 70px; /* Increased from 65px */
    width: 145px;
    object-fit: cover;
    transition: transform 0.3s ease;
    transform: scale(1.14); /* Counteract the 0.88 scale */
}

/* Adjust logo container to handle the larger size */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: var(--font-weight-normal);
    font-size: 0.9375rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.btn-cta {
    padding: 0.625rem 1.25rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: var(--font-weight-normal);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: linear-gradient(135deg, #ff6ec7, #6b1e85, #321450, #0d0221);
    box-shadow: 0 0 25px rgba(255, 110, 199, 0.6);
    transform: scale(1.05);
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Mobile menu toggle states */
.mobile-menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive styles for logo animation */
@media (max-width: 768px) {
    .animated-logo {
        width: 100px;
        height: 100px;
    }
    
    .ring {
        border-width: 12px;
    }
    
    .tail {
        width: 28px;
        height: 12px;
        bottom: 18px;
        right: 6px;
    }
    
    .orbital {
        width: 30px;
        height: 30px;
        margin-top: -15px;
        margin-left: -15px;
    }
    
    .ring-mask {
        border-width: 12px;
        border-color: #f5f5f5;
    }
    
    .animated-logo-text {
        font-size: 24px;
        top: 12px;
    }
    
    @keyframes orbit {
        0% {
            transform: rotate(0deg) translateX(43px) rotate(0deg);
            z-index: 1;
        }
        25% {
            transform: rotate(90deg) translateX(43px) rotate(-90deg);
            z-index: 1;
        }
        49% {
            z-index: 1;
        }
        50% {
            transform: rotate(180deg) translateX(43px) rotate(-180deg);
            z-index: 4;
        }
        75% {
            transform: rotate(270deg) translateX(43px) rotate(-270deg);
            z-index: 4;
        }
        99% {
            z-index: 4;
        }
        100% {
            transform: rotate(360deg) translateX(43px) rotate(-360deg);
            z-index: 1;
        }
    }
}

@media (max-width: 480px) {
    .animated-logo-wrapper {
        gap: 6px;
    }
    
    .animated-logo {
        width: 80px;
        height: 80px;
    }
    
    .ring {
        border-width: 10px;
    }
    
    .tail {
        width: 22px;
        height: 10px;
        bottom: 14px;
        right: 5px;
    }
    
    .orbital {
        width: 24px;
        height: 24px;
        margin-top: -12px;
        margin-left: -12px;
    }
    
    .ring-mask {
        border-width: 10px;
    }
    
    .animated-logo-text {
        font-size: 20px;
        top: 8px;
    }
    
    @keyframes orbit {
        0% {
            transform: rotate(0deg) translateX(34px) rotate(0deg);
            z-index: 1;
        }
        25% {
            transform: rotate(90deg) translateX(34px) rotate(-90deg);
            z-index: 1;
        }
        49% {
            z-index: 1;
        }
        50% {
            transform: rotate(180deg) translateX(34px) rotate(-180deg);
            z-index: 4;
        }
        75% {
            transform: rotate(270deg) translateX(34px) rotate(-270deg);
            z-index: 4;
        }
        99% {
            z-index: 4;
        }
        100% {
            transform: rotate(360deg) translateX(34px) rotate(-360deg);
            z-index: 1;
        }
    }
}

/* Mobile navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: #f5f5f5;
        flex-direction: column;
        padding: 2rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: var(--spacing-xl2);
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.15;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
    pointer-events: none;
}

.particle-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl2);
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.title-main {
    font-size: 2.5rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    min-height: 80px;
}

.title-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: var(--font-weight-normal);
    line-height: 1.25;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.25;
    margin: 1.5rem 0;
    min-height: 100px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}


.hero-visual {
    position: relative;
    height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Rubik's Cube Style - Dark Theme
   ============================================ */


.cube-container {
    width: 240px;
    height: 240px;
    margin: 0 auto;
    position: relative;
    perspective: 1200px;
    perspective-origin: center center;
    transform-style: preserve-3d;
    /* CUBE SHADOW - ENHANCED */
    filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.4)) 
            drop-shadow(0 15px 20px rgba(0, 0, 0, 0.3));}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    /* FIXED: Initial rotation set to prevent glitch */
    transform: rotateX(-20deg) rotateY(45deg);
    transition: transform 1.5s cubic-bezier(0.23, 1, 0.32, 1);
    /* FIXED: Ensure cube is visible from start */
    opacity: 1;
    visibility: visible;
}

/* FIXED: Prevent initial load glitch */
.cube-face {
    position: absolute;
    width: 240px;
    height: 240px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: #1a1a1a;
    border: 2px solid #000;
    border-radius: 4px;
    transform-style: preserve-3d;
    backface-visibility: visible;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        0 0 0 1px #333;
    /* FIXED: Ensure faces are rendered immediately */
    will-change: transform;
}

.cube-row {
    display: flex;
    gap: 4px;
    flex: 1;
}

.cube-piece {
    flex: 1;
    background: #000;
    border: 1px solid #333;
    border-radius: 3px;
    box-shadow: 
        inset 2px 2px 4px rgba(255, 255, 255, 0.1),
        inset -2px -2px 4px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

/* Center pieces with Rubik's Cube colors */
.center-piece.orange {
    background: linear-gradient(135deg, #271539, #501F5A) !important;
    box-shadow: 0 0 20px rgba(80,31,90,0.4) !important;
  }
  
  .center-piece.blue {
    background: linear-gradient(135deg, #501F5A, #915BA4) !important;
    box-shadow: 0 0 20px rgba(145,91,164,0.4) !important;
  }
  
  .center-piece.green {
    background: linear-gradient(135deg, #915BA4, #C2649B) !important;
    box-shadow: 0 0 20px rgba(194,100,155,0.4) !important;
  }
  
  .center-piece.red {
    background: linear-gradient(135deg, #C2649B, #E783B5) !important;
    box-shadow: 0 0 20px rgba(231,131,181,0.4) !important;
  }
  
  .center-piece.yellow {
    background: linear-gradient(135deg, #E783B5, #915BA4) !important;
    box-shadow: 0 0 20px rgba(145,91,164,0.4) !important;
  }
  
  .center-piece.white {
    background: linear-gradient(135deg, #271539, #E783B5) !important;
    box-shadow: 0 0 20px rgba(231,131,181,0.4) !important;
  }
  

/* Cube face positions - FIXED */
.cube-face-front { 
    transform: translateZ(120px);
}

.cube-face-back { 
    transform: rotateY(180deg) translateZ(120px);
}

.cube-face-right { 
    transform: rotateY(90deg) translateZ(120px);
}

.cube-face-left { 
    transform: rotateY(-90deg) translateZ(120px);
}

.cube-face-top { 
    transform: rotateX(90deg) translateZ(120px);
}

.cube-face-bottom { 
    transform: rotateX(-90deg) translateZ(120px);
}

/* REMOVED: Duplicate shadow (using filter instead) */

/* Enhanced hover effects */
.cube-container:hover .cube {
    transform: rotateX(-20deg) rotateY(55deg) scale(1.05);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.cube.rotating {
    filter: drop-shadow(0 0 20px rgba(37, 99, 235, 0.3));
}

.cube-container:hover .center-piece {
    filter: brightness(1.2);
    box-shadow: 
        inset 2px 2px 4px rgba(255, 255, 255, 0.4),
        inset -2px -2px 4px rgba(0, 0, 0, 0.5),
        0 0 20px currentColor !important;
}
/* ============================================
   Enhanced Case Studies Section - Carousel Style
   ============================================ */

.cases-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.cases-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.cases-section .container {
    position: relative;
    z-index: 5;
}

.cases-header {
    text-align: center;
    margin-bottom: var(--spacing-xl2);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cases-label {
    display: block;
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.cases-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.cases-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Carousel Container */
.cases-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.cases-carousel {
    display: flex;
    gap: 0;
    overflow: hidden;
    scroll-behavior: smooth;
    padding: 2rem;
    position: relative;
    scroll-snap-type: x mandatory;
}

/* Case Card - Full Width Style */
.case-card {
    flex: 0 0 100%;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    min-height: 400px;
}

.case-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-card:hover::before {
    opacity: 1;
}

/* Case Image */
.case-image {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
    background: var(--bg-grey);
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: var(--font-weight-bold);
    font-size: 2rem;
    text-align: center;
    padding: 2rem;
}

/* Case Content */
.case-content {
    padding: 2rem;
}

.case-content h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.case-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.case-tag {
    padding: 0.375rem 0.75rem;
    background: var(--bg-grey);
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.case-card:hover .case-tag {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.case-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.case-link i {
    transition: transform 0.3s ease;
}

.case-card:hover .case-link i {
    transform: translateX(4px);
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.carousel-nav.left {
    left: 0;
}

.carousel-nav.right {
    right: 0;
}

.carousel-arrow:active {
    transform: scale(0.95);
}

/* Dots Indicator */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background: var(--bg-grey);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.carousel-dot:hover {
    border-color: var(--primary-color);
}

/* Learn More Button */
.cases-footer {
    text-align: center;
    margin-top: 3rem;
}

.cases-footer .btn {
    padding: 0.875rem 2rem;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.case-card {
    animation: slideInLeft 0.6s ease-out;
}

.case-card:nth-child(even) {
    animation: slideInRight 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 968px) {
    .case-card {
        flex: 0 0 380px;
    }
    
    .cases-title {
        font-size: 2rem;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .case-image {
        height: 240px;
    }
}

@media (max-width: 769px) {
    .hero {
        min-height: 115vh;
        padding: 150px 20px;
    }
}

@media (max-width: 640px) {
    .case-card {
        flex: 0 0 320px;
    }
    
    .cases-carousel {
        padding: 1rem;
        gap: 1rem;
    }
    
    .case-content {
        padding: 1.5rem;
    }
    
    .case-content h3 {
        font-size: 1.25rem;
    }
    
    .carousel-nav {
        display: none;
    }
    
    .case-image {
        height: 200px;
    }
    
    .case-image-placeholder {
        font-size: 1.5rem;
    }
}

/* Touch scroll hint for mobile */
@media (max-width: 968px) {
    .cases-carousel::after {
        content: '👉 Swipe';
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        background: var(--bg-card);
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.875rem;
        color: var(--text-secondary);
        border: 1px solid var(--border-color);
        pointer-events: none;
        opacity: 0.8;
        animation: pulse 2s ease-in-out infinite;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.05);
    }
}
/* ============================================
   Floating Images Animation
   ==============

.carousel-arrow {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.carousel-arrow:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}============================== */

/* .floating-images {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1200px;
    overflow: hidden;
}

.floating-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%) scale(0.8);
    max-width: 450px;
    width: 100%;
    height: auto;
    opacity: 0;
    z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

.floating-1 {
    animation: slideCinematic1 12s ease-in-out infinite;
}

.floating-2 {
    animation: slideCinematic2 12s ease-in-out infinite;
}

.floating-3 {
    animation: slideCinematic3 12s ease-in-out infinite;
}

@keyframes slideCinematic1 {
    0% {
        opacity: 0;
        transform: translate3d(100%, -120%, -400px) rotateY(45deg) scale(0.5);
    }
    10% {
        opacity: 1;
        transform: translate3d(-50%, -50%, 0px) rotateY(0deg) scale(1);
    }
    30% {
        transform: translate3d(-50%, -52%, 20px) rotateY(5deg);
    }
    40% {
        opacity: 0;
        transform: translate3d(-80%, 100%, -300px) rotateY(-30deg) scale(0.6);
    }
    100% {
        opacity: 0;
    }
}

@keyframes slideCinematic2 {
    0%, 33% {
        opacity: 0;
        transform: translate3d(120%, -30%, -300px) rotateY(-30deg) scale(0.7);
    }
    38% {
        opacity: 1;
        transform: translate3d(-50%, -50%, 0px) rotateY(0deg) scale(1);
    }
    55% {
        transform: translate3d(-50%, -53%, 40px) rotateX(5deg);
    }
    65% {
        opacity: 0.9;
        transform: translate3d(-50%, -50%, 0px) scale(1.02);
    }
    70% {
        opacity: 0;
        transform: translate3d(-150%, 80%, -400px) rotateY(25deg) scale(0.6);
    }
    100% {
        opacity: 0;
    }
}

@keyframes slideCinematic3 {
    0%, 66% {
        opacity: 0;
        transform: translate3d(200%, -150%, -500px) rotateY(20deg) scale(0.6);
    }
    70% {
        opacity: 1;
        transform: translate3d(-50%, -50%, 0px) rotateY(0deg) scale(1);
    }
    80% {
        transform: translate3d(-50%, -52%, 30px) rotateY(5deg) scale(1.03);
    }
    90% {
        transform: translate3d(-50%, -50%, 0px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate3d(-200%, 100%, -400px) rotateY(-20deg) scale(0.7);
    }
} */

/* ============================================
   Buttons with Bright Gradient Colors
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: var(--font-weight-normal);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    padding: 12px 28px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    box-shadow: 0 0 15px rgba(255, 110, 199, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff6ec7, #6b1e85, #321450, #0d0221);
    box-shadow: 0 0 25px rgba(255, 110, 199, 0.6);
    transform: scale(1.05);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: #fff;
    padding: 12px 28px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    box-shadow: 0 0 15px rgba(255, 110, 199, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #ff6ec7, #6b1e85, #321450, #0d0221);
    box-shadow: 0 0 25px rgba(255, 110, 199, 0.6);
    transform: scale(1.05);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-outline {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    position: relative;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-purple);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-outline:hover {
    color: #000;
    border-color: transparent;
}

.btn-outline:hover::before {
    opacity: 1;
}

/* ============================================
   Sections
   ============================================ */

section {
    padding: var(--spacing-xl) 0;
}

/* Alternate sections with greyish backgrounds */
/* .mission,
.solutions-preview,
.cta,
.why-join {
    background: var(--bg-grey);
    position: relative;
}

.mission::before,
.solutions-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
} */

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-label {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: var(--font-weight-normal);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    line-height: 1.625;
}

/* Heading Section Style */
.heading-section {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

h1 {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1.4;
}

h4 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
}

h5 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
}

h6 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
}

.title-main {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    min-height: 80px;
}

.page-header-content h1 {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

@media (min-width: 1024px) {
    .heading-section {
        margin-top: 1.25rem;
        margin-bottom: 1.25rem;
    }
}

@media (min-width: 1280px) {
    .heading-section {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

@media (max-height: 800px) {
    @media (min-width: 1280px) {
        .heading-section {
            font-size: 1.875rem;
            line-height: 2.25rem;
        }
    }
}

/* ============================================
   Mission Section
   ============================================ */

.mission {
    background: var(--bg-grey);
}

.mission-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    position: relative;
    z-index: 5;
}

.mission-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.mission-card h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.75rem;
}

.mission-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.25;
}

/* ============================================
   Solutions Preview
   ============================================ */

.solution-section {
    position: relative;
    z-index: 5;
}

.solutions-preview {
    background: var(--bg-secondary);
    position: relative;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.solution-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    z-index: 5;
}

.solution-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.solution-card h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.75rem;
}

.solution-icon {
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.solution-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.solution-card ul {
    list-style: none;
    margin: 1.5rem 0;
}

.solution-card ul li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9375rem;
}

.solution-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.card-link:hover {
    gap: 0.75rem;
}

/* ============================================
   CTA Section
   ============================================ */

.cta {
    /* background: linear-gradient(135deg, rgba(91, 104, 240, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color); */
    background: var(--bg-grey);
}

.cta-content {
    text-align: center;
}

.cta h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.cta p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ============================================
   Page Header
   ============================================ */

.page-header {
    padding-top: 120px;
    padding-bottom: var(--spacing-lg);
    text-align: center;
    background: var(--bg-secondary);
    z-index: 15;
    position: relative;
}

/* ============================================
   Services Grid
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    z-index: 5;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: var(--font-weight-bold);
}

.service-features {
    list-style: none;
    margin-top: 1rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.25;
}

.service-features i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: var(--spacing-lg);
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.footer-tagline {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.footer-contact i {
    color: var(--primary-color);
    width: 18px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* ============================================
   Process Steps
   ============================================ */

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-md);
}

.process-step h3 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ============================================
   Industries
   ============================================ */

.industries {
    position: relative;
    z-index: 5;
}

.why-choose {
    position: relative;
    z-index: 5; 
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.industry-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    z-index: 5;
}

.industry-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.industry-icon {
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.industry-card h3 {
    font-size: 1.625rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
}

.industry-features {
    list-style: none;
    margin: 1.5rem 0;
}

.industry-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.industry-features i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.industry-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.industry-cta:hover {
    gap: 0.75rem;
}

/* ============================================
   About Page
   ============================================ */

.about-mission,
.about-vision {
    padding: var(--spacing-xl) 0;
}

.about-vision {
    background: var(--bg-grey);
    z-index: 5;
    position: relative;
}

.mission-wrapper,
.vision-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.mission-visual,
.vision-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    width: 280px;
    height: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-primary);
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
    box-shadow: var(--shadow-card);
    z-index: 5;
}

.mission-statement,
.vision-statement {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    margin: 1rem 0;
    color: var(--text-primary);
    line-height: 1.6;
}

/* ============================================
   Timeline / Roadmap
   ============================================ */

/* .timeline {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-grey);
    padding: var(--spacing-lg);
    border-radius: 16px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 75px;
    top: 0;
    bottom: -3rem;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-year {
    font-size: 2.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
}

.timeline-content h3 {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-semibold);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.timeline-features {
    list-style: none;
    margin-top: 1rem;
}

.timeline-features li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.timeline-features i {
    color: var(--primary-color);
    margin-right: 0.5rem;
} */

.roadmap {
    position: relative;
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  /* padding: 3rem 2rem; */
  background: var(--bg-grey);
  padding: var(--spacing-lg);
  z-index: 999;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

/* The connecting gradient line */
.timeline::before {
  content: '';
  position: absolute;
  left: 60px;
  top: 20px;
  bottom: 25px;
  width: 3px;
  background: linear-gradient(180deg, #0d0221, #321450, #6b1e85, #ff6ec7);
  border-radius: 3px;
  z-index: 0;
}

/* Year bubbles */
.timeline-year {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #0d0221, #321450, #6b1e85, #ff6ec7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.25rem;
  font-weight: 800;
  text-align: left;
}

/* Optional glowing circle behind the text */
.timeline-year::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 38%;
  /* width: 80px; */
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d0221, #321450, #6b1e85, #ff6ec7);
  transform: translate(-50%, -50%);
  filter: blur(15px);
  opacity: 0.6;
  z-index: -1;
}

.timeline-content h3 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #000;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============================================
   Why Grid & Values
   ============================================ */
.why-us {
    position: relative;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.why-card {
    text-align: center;
    padding: 2rem;
}

.why-icon {
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.why-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: var(--font-weight-semibold);
}

.why-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.research-innovation {
    position: relative;
    z-index: 5;
}

.values {
    position: relative;
    z-index: 5;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    z-index: 5;
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.value-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-semibold);
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ============================================
   Careers Page
   ============================================ */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.benefit-card h3 {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-semibold);
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.positions-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.position-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.position-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.position-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
}

.position-title h3 {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-semibold);
}

.position-type {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: var(--font-weight-normal);
}

.position-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
}

.position-meta span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.position-meta i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.position-requirements {
    margin-top: 1.5rem;
}

.position-requirements h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: var(--font-weight-semibold);
}

.position-requirements ul {
    list-style: none;
    margin-top: 0.5rem;
}

.position-requirements li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.btn-apply {
    margin-top: 1.5rem;
}

/* ============================================
   Contact Page
   ============================================ */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
}

.contact-info h2 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
    font-weight: var(--font-weight-bold);
}

.contact-methods {
    margin: 2rem 0;
}

.contact-method {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.method-icon {
    width: 48px;
    height: 48px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    color: var(--text-primary);
}

.method-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
}

.method-content p,
.method-content a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.method-content a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.method-content a:hover {
    color: var(--primary-color);
}

.contact-hours {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.contact-hours h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
}

.contact-hours p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.contact-form {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-medium);
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 104, 240, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.quick-actions {
    background: var(--bg-secondary);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.action-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.action-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: #ffffff;
}

.action-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-semibold);
}

.action-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ============================================
   Animations
   ============================================ */

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 968px) {
    /* .nav-menu {
        display: none;
    } */
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content,
    .mission-wrapper,
    .vision-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .title-main {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .timeline-item {
        grid-template-columns: 100px 1fr;
        gap: 1.5rem;
    }
    
    .timeline-item::before {
        left: 50px;
    }
    
    .cube-container {
        width: 250px;
        height: 250px;
    }
    
    .cube-face {
        width: 250px;
        height: 250px;
        font-size: 1.3rem;
    }
    
    .cube-face-front {
        transform: translateZ(125px);
    }
    
    .cube-face-back {
        transform: rotateY(180deg) translateZ(125px);
    }
    
    .cube-face-right {
        transform: rotateY(90deg) translateZ(125px);
    }
    
    .cube-face-left {
        transform: rotateY(-90deg) translateZ(125px);
    }
    
    .cube-face-top {
        transform: rotateX(90deg) translateZ(125px);
    }
    
    .cube-face-bottom {
        transform: rotateX(-90deg) translateZ(125px);
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .title-main {
        font-size: 1.875rem;
    }
    
    .title-sub {
        font-size: 1.125rem;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-visual {
        height: 350px;
        margin-top: 2rem;
    }
    
    .floating-img {
        max-width: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .visual-card {
        width: 200px;
        height: 200px;
        font-size: 3.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .position-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .position-meta {
        text-align: left;
    }
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(255, 110, 199, 0.4); }
    50% { box-shadow: 0 0 25px rgba(255, 110, 199, 0.8); }
    100% { box-shadow: 0 0 10px rgba(255, 110, 199, 0.4); }
  }
  
  .btn {
    animation: pulseGlow 2s infinite;
  }
  