/* General */
:root {
    --primary-color: #112349; /* Official Navy */
    --secondary-color: #801209; /* Official Burgundy */
    --accent-color: #f4f6f9;
    --text-dark: #1a1a1a;
    --text-muted: #666;
    --bg-light: #f8f9fa;
    --border-radius: 20px;
    --font-family: 'Poppins', sans-serif;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --glass-blur: blur(12px);
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
}

/* Glass Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Navbar - Glass Effect */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    /* Replaced by .navbar-glass-pill settings */
}

/* Floating Glass Pill Navbar (New Design - Light Version) */
.navbar-glass-pill {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1300px;
    border-radius: 50px;
    z-index: 1030;
    padding: 0.8rem 2rem;
    
    /* Light Glass Background */
    background: rgba(255, 255, 255, 0.7); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15); /* Soft shadow for lift */
    
    /* Animation */
    animation: showFromTop 0.8s 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0; 
}

/* The Gradient Border Trick (Mask) - Adjusted for Light Theme */
.navbar-glass-pill::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 1px; 
    background: linear-gradient(-35deg, rgba(255,255,255,0.9), rgba(255,255,255,0.2), rgba(255,255,255,0.2), rgba(255,255,255,0.9));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes showFromTop {
    from {
        opacity: 0;
        filter: blur(7px);
        transform: translate(-50%, -80px); 
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translate(-50%, 0);
    }
}

.navbar-brand img {
    max-height: 45px!important;
}

.navbar-glass-pill .nav-link {
    font-weight: 500;
    color: var(--primary-color) !important; /* Dark text for light background */
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    padding: 0.5rem 1.2rem !important;
    border-radius: 20px;
    border: 1px solid transparent;
}

.navbar-glass-pill .nav-link:hover,
.navbar-glass-pill .nav-link.active {
    color: var(--secondary-color) !important;
    background: rgba(17, 35, 73, 0.05); /* Subtle dark hover bg */
    border-color: rgba(17, 35, 73, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.navbar-toggler {
    border: none;
    color: var(--primary-color);
}

.navbar-toggler-icon {
    /* Dark hamburger icon */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2817, 35, 73, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* Bootstrap Overrides - FORCE COLORS */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }

/* Animated Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a75 100%);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(17, 35, 73, 0.2);
    transition: all 0.5s;
    
    /* Animation Props */
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    border-radius: 6em !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0b1836 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(17, 35, 73, 0.4);
}

.btn-primary::after {
    content: "";
    display: inline-block;
    height: 100%;
    width: 100%;
    border-radius: 100px !important;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: all .8s;
    background-color: var(--primary-color);
}

.btn-primary:hover::after {
    transform: scaleX(1.2) scaleY(1.4);
    opacity: 0;
}

.btn-secondary-custom {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #a01a10 100%);
    border: none;
    color: #fff !important;
    padding: 0.8rem 2rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(128, 18, 9, 0.3);
    transition: all 0.5s;
    
    /* Animation Props */
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    border-radius: 6em !important;
}

.btn-secondary-custom:hover {
    background: linear-gradient(135deg, #600d07 0%, var(--secondary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(128, 18, 9, 0.5);
}

.btn-secondary-custom::after {
    content: "";
    display: inline-block;
    height: 100%;
    width: 100%;
    border-radius: 100px !important;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: all .8s;
    background-color: var(--secondary-color);
}

.btn-secondary-custom:hover::after {
    transform: scaleX(1.2) scaleY(1.4);
    opacity: 0;
}

.btn-outline-primary {
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
    padding: 0.8rem 2rem;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.6) !important;
}

.btn-rounded { border-radius: 50px; }

/* Hero Section - LIQUID GLASS */
.hero-section {
    padding: 180px 0 120px;
    min-height: 100vh;
    background-color: #0b162e; /* Darker base for liquid contrast */
    position: relative;
    overflow: hidden;
    color: #fff;
}

/* New Rotating Aurora Effect */
.hero-rotating-aurora {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 60%;
    filter: blur(180px);
    width: 1154px;
    height: 1154px; /* Matched to width for circle */
    z-index: 0; /* Behind content but visible */
    animation: 10s linear infinite turn;
    transform-origin: center;
    
    /* Gradient to make the rotation visible and fit theme */
    background: conic-gradient(from 0deg, 
        var(--primary-color), 
        var(--secondary-color), 
        #1f3a75, 
        var(--primary-color)
    );
    opacity: 0.5;
    border-radius: 50%;
}

@keyframes turn {
    0% {
        transform: translate(-50%, -50%) rotate(0);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Liquid Blobs Animation (Legacy/Fallback) */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    animation: moveBlob 20s infinite alternate;
    display: none; /* Hiding old blobs in favor of new aurora */
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: #1f3a75;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: #4a0a05; /* Dark Burgundy */
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: #112349;
    animation-delay: -10s;
}

@keyframes moveBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Glass Card for Hero Content (Optional wrapper if needed, otherwise clean text) */
.hero-glass-wrapper {
    /* Optional: Encapsulate hero text in glass? 
       For now, clean text on dark bg is better for readability. 
    */
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Hero Image Glass Container - Restored Glass BG for Hero Image */
.hero-img-glass-container {
    position: relative;
    z-index: 1; /* Lower z-index than gallery */
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.hero-img-base {
    border-radius: 30px;
    width: 100%;
    display: block;
}

/* 3D Gallery Overlay - Positioned at Bottom */
.hero-3d-gallery-overlay {
    height: 150px; /* Compact height for overlay */
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    position: absolute; /* Overlay positioning */
    bottom: -80px; /* Push down to overlap bottom edge */
    left: 0;
    width: 100%;
    z-index: 10; /* Top layer */
}

.gallery-img {
    position: absolute;
    width: 140px; /* Smaller thumbnail size */
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: blur(0px); /* Clean look */
    cursor: pointer;
    opacity: 1;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.8); /* Stronger border for visibility */
    will-change: transform;
}

/* Hover Interaction - Pop Out */
.gallery-img:hover {
    /* Removed massive zoom on hover as requested, keeping standard active state interaction */
    animation-play-state: paused;
    transform: scale(1.1) translateY(-10px) rotateY(0) rotateX(0) !important;
    border-color: #fff;
    cursor: pointer;
}

@keyframes floatRow {
    0%, 100% { transform: translateY(0) rotateY(var(--rotY)) rotateX(var(--rotX)); }
    50% { transform: translateY(-10px) rotateY(var(--rotY)) rotateX(var(--rotX)); }
}

/* Row Layout with Diagonal Tilt */
.img-1 { --rotY: 15deg; --rotX: 10deg; left: 0%;   top: 15%; z-index: 11; animation: floatRow 6s ease-in-out infinite; }
.img-2 { --rotY: 15deg; --rotX: 10deg; left: 14%;  top: 10px; z-index: 12; animation: floatRow 6.5s ease-in-out infinite 0.2s; }
.img-3 { --rotY: 15deg; --rotX: 10deg; left: 28%;  top: 30px; z-index: 13; animation: floatRow 5.5s ease-in-out infinite 0.4s; }
.img-4 { --rotY: 15deg; --rotX: 10deg; left: 42%;  top: 10px; z-index: 14; animation: floatRow 7s ease-in-out infinite 0.6s; }
.img-5 { --rotY: 15deg; --rotX: 10deg; left: 56%;  top: 30px; z-index: 15; animation: floatRow 6s ease-in-out infinite 0.8s; }
.img-6 { --rotY: 15deg; --rotX: 10deg; left: 70%;  top: 10px; z-index: 16; animation: floatRow 6.2s ease-in-out infinite 1s; }
.img-7 { --rotY: 15deg; --rotX: 10deg; left: 84%;  top: 25px; z-index: 17; animation: floatRow 6.8s ease-in-out infinite 1.2s; }

/* Hide legacy class */
.hero-img { display: none; }

/* Floating Glass Badge */
.floating-glass-badge {
    position: absolute;
    top: 30px; /* Moved to top */
    right: -30px; /* Moved to right side for balance */
    bottom: auto; /* Reset bottom */
    left: auto; /* Reset left */
    background: rgba(255, 255, 255, 0.15); /* More opaque glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 20; /* Higher than gallery */
    animation: float 6s ease-in-out infinite;
}

.floating-glass-badge .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.floating-glass-badge h6 {
    color: #fff !important;
}

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

/* Glass Cards (System Overview) */
.glass-card {
    display: flex;
    flex-direction: column;
    height: 320px; /* Adjusted height for better content fit */
    /* width: 200px; - Removed fixed width to respect grid col-md-6 col-lg-3 */
    background: rgba(255, 255, 255, 0.7); /* Light glass for light section - Keeping glass base */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    transition: 0.4s ease-out;
    position: relative;
    /* left: 0px; - Not suitable for grid layout */
    box-shadow: -1rem 0 1rem rgba(17, 35, 73, 0.1); /* Adapted shadow color to theme */
}

/* Specific hover effect requested */
.glass-card:hover {
    transform: translateY(-20px);
    transition: 0.4s ease-out;
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(17, 35, 73, 0.15); /* Keep original hover shadow for depth */
}

/* Sibling hover effect - adapted for grid */
/* Note: The "~" selector works for following siblings. 
   In a Bootstrap grid, divs are siblings. 
   We need to target the column wrapper's hover to affect siblings, 
   but since structure is col > card, this CSS selector logic:
   selector .card:hover ~ .card 
   won't work directly across columns (col ~ col).
   
   However, applying the requested style directly to the card class:
*/

.icon-box-glass {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.4));
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.icon-box-glass i {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

/* Incrive Icon Hover Animation */
.glass-card:hover .icon-box-glass {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 15px 30px rgba(17, 35, 73, 0.25);
}

.glass-card:hover .icon-box-glass i {
    animation: iconPop 0.6s ease-in-out forwards;
}

@keyframes iconPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.4) rotate(-10deg); }
    60% { transform: scale(1.1) rotate(10deg); }
    80% { transform: scale(1.2) rotate(-5deg); }
    100% { transform: scale(1.2) rotate(0); }
}

/* Optional: Ripple effect inside the icon box */
.icon-box-glass::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    transition: all 0.4s ease;
}

.glass-card:hover .icon-box-glass::after {
    transform: scale(2);
    opacity: 1;
    transition: 0s;
}

/* Story Section */
.story-section {
    padding: 100px 0;
    background-color: #fcfcfc;
}

.story-img-container {
    position: relative;
    height: 400px; /* Fixed height container to allow absolute positioning */
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.story-img-glass {
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
    display: block;
}

/* Card Dealing Animation - Scroll Controlled */
.story-card-img {
    position: absolute;
    width: 280px;
    border-radius: 20px;
    /* Glass Effect Border */
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    z-index: 2;
    opacity: 0; /* Initially hidden */
    /* Initial state far off to the RIGHT */
    transform: translate(200%, 0) rotate(45deg); 
    will-change: transform, opacity;
    
    /* Liquid Glass Effect */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Card 1 Target Position */
.card-1 {
    top: 20%;
    right: -10%;
    transform-origin: center right;
}

/* Card 2 Target Position */
.card-2 {
    bottom: 10%;
    left: -10%;
    transform-origin: center left;
    /* Initial state ALSO far off to the RIGHT */
    transform: translate(200%, 0) rotate(45deg); 
}

/* Active State (Triggered by JS on Scroll) - Legacy, now handled by JS directly but kept for fallback */
.story-card-img.scrolled-in {
    opacity: 1;
}

.story-blob {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(128, 18, 9, 0.1), rgba(17, 35, 73, 0.1));
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

.impact-line-glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    border-left: 5px solid var(--secondary-color);
    padding: 1.5rem;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 0 15px 15px 0;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Utilities */
.text-secondary-custom { color: var(--secondary-color) !important; }

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 120px;
        text-align: center;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .blob {
        opacity: 0.4; /* Tone down blobs on mobile */
    }
    .hero-img-glass-container {
        margin-top: 3rem;
    }
    .floating-glass-badge {
        position: relative;
        bottom: auto;
        left: auto;
        display: inline-flex;
        margin-top: -20px;
        background: rgba(255, 255, 255, 0.9); /* More solid on mobile for readability */
        color: #333;
    }
    .floating-glass-badge h6 { color: #333 !important; }
    .floating-glass-badge .text-muted { color: #666 !important; }
}

/* Real-World Scenarios - Elegant Infographic */
.scenarios-section {
    background: linear-gradient(180deg, #0b162e 0%, #112349 100%);
    position: relative;
    z-index: 1;
}

.timeline-container {
    padding: 3rem 0;
}

/* The horizontal line for desktop */
.timeline-line {
    position: absolute;
    top: 88px; /* Aligned with the center of the icons (approx 40px + padding/margin adjustments) */
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 1) 100%
    );
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: width 0.1s linear; /* Smooth linear update from JS */
}

.timeline-item {
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.timeline-marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Fine Glass Icon */
.glass-icon-fine {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.glass-icon-fine.active-icon {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.glass-icon-fine:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.marker-dot {
    width: 12px;
    height: 12px;
    background-color: #333; /* Dark/inactive initially */
    border-radius: 50%;
    box-shadow: none;
    position: absolute;
    bottom: 0; /* Align at the bottom of the marker container area */
    top: 90px; /* Position right below the icon (80px + gap) */
    z-index: 2;
    border: 2px solid #0b162e; /* Match bg to simulate cutout */
    transition: all 0.3s ease;
}

.marker-dot.active-dot {
    background-color: #ff0000; /* Red light */
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8), 0 0 30px rgba(255, 0, 0, 0.4);
}

/* Typography refinement for this section */
.timeline-content h5 {
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Text Animation Keyframes */
.animate-text {
    -webkit-animation: texto 1.2s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: texto 1.2s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes texto {
  0% {
    -webkit-filter: blur(10px);
            filter: blur(10px);
    opacity: 0;
  }
  100% {
    -webkit-filter: blur(0px);
            filter: blur(0px);
    opacity: 1;
  }
}

@keyframes texto {
  0% {
    -webkit-filter: blur(10px);
            filter: blur(10px);
    opacity: 0;
  }
  100% {
    -webkit-filter: blur(0px);
            filter: blur(0px);
    opacity: 1;
  }
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .timeline-line {
        display: none !important; 
    }
    
    .timeline-item {
        margin-bottom: 3rem;
    }
    
    .marker-dot {
        display: none; /* Hide dot on mobile for cleaner stack */
    }
}

/* 
========================================
   AI CHARACTERS SECTION (NEW)
   Visual: Innovative, Futuristic, Glass+Hologram
========================================
*/

.ai-characters-section {
    background: radial-gradient(circle at 70% 50%, #1a1f3c 0%, #080d21 100%);
    /* Deep mysterious tech background */
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* Floating Particles (CSS only) */
.ai-particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(circle, rgba(64, 224, 208, 0.2) 1px, transparent 1px),
        radial-gradient(circle, rgba(138, 43, 226, 0.15) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 20px 20px;
    animation: particleMove 60s linear infinite;
    z-index: 0;
}

@keyframes particleMove {
    0% { background-position: 0 0, 20px 20px; }
    100% { background-position: 100px 100px, 120px 120px; }
}

.ai-glow-orb {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(64, 224, 208, 0.15), transparent 70%);
    filter: blur(80px);
    z-index: 0;
    animation: orbPulse 8s ease-in-out infinite alternate;
}

@keyframes orbPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

/* Typography Enhancements */
.tracking-wider { letter-spacing: 0.1em; font-size: 0.75rem; }
.text-gradient-cyan {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Cards Stack */
.ai-cards-stack {
    position: relative;
    padding-left: 1rem;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.ai-glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    cursor: default;
}

.ai-glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(64, 224, 208, 0.3);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.ai-icon-box {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4facfe;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Visual Container & Holographic Effects */
.ai-visual-container {
    position: relative;
    display: inline-block;
    padding: 2rem;
}

.ai-main-img {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
    animation: floatImg 6s ease-in-out infinite;
    max-height: 500px;
    object-fit: contain;
}

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

/* Holographic Rings */
.holo-ring-back, .holo-ring-front {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(64, 224, 208, 0.3);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.holo-ring-back {
    width: 120%;
    height: 120%;
    border-color: rgba(64, 224, 208, 0.1);
    box-shadow: 0 0 50px rgba(64, 224, 208, 0.1);
    animation: rotateRing 20s linear infinite reverse;
    z-index: 1;
}

.holo-ring-front {
    width: 110%;
    height: 110%;
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-width: 2px;
    animation: rotateRing 15s linear infinite;
    z-index: 3;
}

@keyframes rotateRing {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Floating Data Points */
.data-point {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(16, 22, 47, 0.8);
    border: 1px solid rgba(64, 224, 208, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    box-shadow: 0 0 15px rgba(64, 224, 208, 0.3);
}

.data-point::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #00f2fe;
    border-radius: 50%;
    animation: pulsePoint 2s infinite;
}

.data-point.p1 { top: 20%; left: 0%; animation: floatPoint 4s infinite alternate; }
.data-point.p2 { top: 60%; right: -5%; animation: floatPoint 5s infinite alternate-reverse; }
.data-point.p3 { bottom: 10%; left: 10%; animation: floatPoint 6s infinite alternate; }

@keyframes pulsePoint {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes floatPoint {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* Mobile Adjustments for AI Section */
@media (max-width: 991px) {
    .ai-characters-section {
        text-align: center;
    }
    
    .ai-cards-stack {
        border-left: none;
        padding-left: 0;
    }
    
    .ai-glass-card {
        text-align: left; /* Keep card text aligned for readability */
    }
    
    .holo-ring-back, .holo-ring-front {
        width: 100%; /* Constrain rings on mobile */
        height: 100%;
    }
    
    .ai-visual-container {
        margin-top: 3rem;
    }
}

/* 
========================================
   ACADEMIC STRUCTURE SECTION (NEW)
   Visual: Clean, Tech-Academic, Professional
========================================
*/

.academic-structure-section {
    background-color: #ffffff;
}

/* Visual Left Side */
.academic-visual-wrapper {
    position: relative;
    padding: 2rem;
}

.academic-bg-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: #f0f4ff;
    border-radius: 40px;
    z-index: 0;
    transform: translate(-50%, -50%) rotate(-5deg);
    transition: all 0.5s ease;
}

.academic-visual-wrapper:hover .academic-bg-shape {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.05);
}

.academic-img-container {
    position: relative;
    z-index: 2;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    background: #fff;
    transform: perspective(1000px) rotateY(5deg);
    transition: all 0.5s ease;
}

.academic-visual-wrapper:hover .academic-img-container {
    transform: perspective(1000px) rotateY(0deg);
}

.academic-img {
    width: 100%;
    display: block;
}

/* Floating Badges */
.academic-badge {
    position: absolute;
    background: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(17, 35, 73, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-color);
    z-index: 3;
    transition: all 0.3s ease;
    border: 1px solid rgba(17, 35, 73, 0.05);
}

.academic-badge i {
    color: #4facfe;
}

.badge-1 {
    top: 10%;
    left: -10px;
    animation: floatBadge 4s ease-in-out infinite;
}

.badge-2 {
    bottom: 10%;
    right: -10px;
    animation: floatBadge 5s ease-in-out infinite reverse;
}

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

/* Skills Cards */
.skill-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: #e0e0e0;
}

.skill-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: #f0f7ff !important;
    color: #0066cc !important;
}

/* LMS Section */
.lms-section {
    background-color: #fff;
}

.lms-phase-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    transition: all 0.4s ease;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.lms-phase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(17, 35, 73, 0.1);
}

.lms-phase-card.active-phase {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 20px 50px rgba(17, 35, 73, 0.25);
}

.phase-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0,0,0,0.03);
    line-height: 1;
}

.active-phase .phase-number {
    color: rgba(255,255,255,0.05);
}

.icon-box-lms {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: #f0f4ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.active-phase .icon-box-lms {
    background: #fff !important;
    color: var(--primary-color) !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .academic-bg-shape {
        width: 90%;
        height: 90%;
    }
    
    .badge-1 { left: 0; }
    .badge-2 { right: 0; }
}

/* Lenis Recommended CSS */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}


/* Cinematic Trailer Video Background */
.video-background-container {
    z-index: 0;
}

/* Aspect Ratio Hack for Video Cover */
.video-foreground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.video-foreground iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 Aspect Ratio */
    transform: translate(-50%, -50%);
}

@media (min-aspect-ratio: 16/9) {
    .video-foreground iframe {
        /* If screen is wider than 16:9, fit width */
        height: 56.25vw;
        width: 100vw;
    }
}
@media (max-aspect-ratio: 16/9) {
    .video-foreground iframe {
        /* If screen is narrower than 16:9, fit height */
        width: 177.77vh;
        height: 100vh;
    }
}

/* Glass Play Button */
.btn-play-glass {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    transition: all 0.4s ease;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.btn-play-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.4);
    color: #fff;
}

.btn-play-glass i {
    margin-left: 5px; /* Visual center adjustment for play icon */
}


#video-fallback {
    transition: opacity 1s ease;
}

/* MOUSE LIGHT EFFECT */
.meio {
    position: relative;
    /* Default variables to center to avoid invalid property if JS delays */
    --mouse-x: 50%;
    --mouse-y: 50%;
}

/* Ensure content sits above the light effect */
.meio > * {
    position: relative;
    z-index: 5;
}

.meio:before, .meio:after{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none; /* Prevent interference */
}

.meio:before{ /*efeito de luz*/
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(14, 193, 255, 0.4), transparent 40%); 
    filter: blur(20px); /* Reduced blur for visibility */
    /* mix-blend-mode: screen; - Removed for visibility test on dark bg */
    z-index: 3;
}

.meio:after {
    /* Optional border glow or secondary effect */
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.1), transparent 40%);
    z-index: 1;
}

.meio:hover:before{
    opacity: 1;
}

#bgluz:hover .meio:after, #bgluz-ai:hover .meio:after{
    opacity: 1;
}

/* --- Glassmorphism Form & Animations --- */

/* Modal Style Override - FIX WHITE BACKGROUND */
.glass-modal {
    background: linear-gradient(135deg, #112349 0%, #0b162e 100%) !important; /* Force Navy Blue */
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5) !important;
}

.glass-modal .modal-header,
.glass-modal .modal-footer {
    border: none !important;
}

.glass-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.glass-modal h3, 
.glass-modal p, 
.glass-modal label {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Input Transparente com Brilho */
.glass-form-control {
    background: rgba(255, 255, 255, 0.1) !important; /* Aumentei opacidade para visibilidade */
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border-radius: 12px !important;
    height: 50px;
    padding: 10px 15px;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}
.glass-form-control:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(0, 242, 254, 0.8) !important; /* Cyan glow mais forte */
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.2) !important;
    outline: none;
    color: #fff !important;
}
.glass-form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important; /* Placeholder mais visível */
}

/* Ajustes do Intl-Tel-Input no Modal Escuro */
.iti { width: 100%; }
.iti__country-list {
    background-color: #0b162e; /* Navy Blue */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    z-index: 10500 !important; /* Acima do Modal */
}
.iti__country:hover { background-color: rgba(255, 255, 255, 0.1); }
.iti input.glass-form-control { padding-left: 50px !important; }

/* Botão com Loading */
.btn-loader { display: inline-flex; align-items: center; gap: 8px; }

/* Animação de Sucesso */
#demoSuccess { animation: fadeInUp 0.5s ease; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
