/* 
 * Apple-Style Product Launch Login Page
 * Glassmorphism design with scroll-driven animations
 * Light theme only - no dark mode support
 */

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

/* Font Face Declarations */
@font-face {
    font-family: 'IndustryTest-Bold';
    src: url('/static/assets/fonts/IndustryTest-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IndustryTest-Demi';
    src: url('/static/assets/fonts/IndustryTest-Demi.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IndustryTest-Medium';
    src: url('/static/assets/fonts/IndustryTest-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Muli';
    src: url('/static/assets/fonts/Muli.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Muli';
    src: url('/static/assets/fonts/Muli-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    height: 100%;
    -webkit-overflow-scrolling: touch; /* iOS momentum scroll */
}

body {
    font-family: 'Muli', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f8fafe 0%, #ffffff 100%);
    overflow-x: hidden;
    height: 100%;
}

/* ===== APPLE-STYLE SECTION SYSTEM ===== */
.scroll-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden; /* Prevent morphing elements from showing outside */
}

.scroll-container {
    height: 100vh;
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* ===== CONTINUOUS MORPHING ANIMATIONS ===== */
:root {
    --hero-opacity: 1;
    --mission-opacity: 0;
    --values-opacity: 0;
    --modules-opacity: 0;
    --login-opacity: 0;
    --bg-opacity: 1;
    --animation-intensity: 0;
}

/* Smooth transitions for all morphing elements */
.hero-content,
.brand-logo,
.mission-glass-panel,
.mission-statement,
.value-card,
.module-showcase,
.login-card {
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Enable hardware acceleration for smooth morphing */
.mission-animated-bg,
.particles-container,
.hero-overlay {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* 3D perspective container for morphing effects */
.hero-section,
.mission-section,
.values-section,
.modules-section,
.login-section {
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* ===== MORPHING TRANSITION STATES ===== */

/* Hero content morphing states */
.hero-content {
    transform-origin: center center;
    position: relative;
    z-index: 5;
}

.brand-logo {
    transform-origin: center center;
    position: relative;
    z-index: 10;
    transition: transform 0.08s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Mission panel morphing */
.mission-glass-panel {
    transform-origin: center center;
    position: relative;
    z-index: 8;
}

/* Mission statement word morphing */
.mission-statement .word {
    display: inline-block;
    transform-origin: bottom center;
    transition: transform 0.06s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.06s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Value cards morphing */
.value-card {
    transform-origin: center center;
    position: relative;
    z-index: 6;
}

/* Module cards morphing */
.module-showcase {
    transform-origin: center center;
    position: relative;
    z-index: 7;
}

/* Login card morphing */
.login-card {
    transform-origin: center center;
    position: relative;
    z-index: 9;
}

/* Background layers morphing */
.mission-animated-bg {
    opacity: var(--animation-intensity, 0);
    transform-origin: center center;
}

/* Values section background opacity */
.values-section {
    background: linear-gradient(135deg, 
        rgba(248, 250, 254, var(--bg-opacity, 1)) 0%, 
        rgba(232, 242, 255, var(--bg-opacity, 1)) 100%);
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Reduce animations on low-performance devices */
@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .brand-logo,
    .mission-glass-panel,
    .mission-statement,
    .value-card,
    .module-showcase,
    .login-card {
        transition: none !important;
    }
    
    .mission-animated-bg,
    .particles-container,
    .hero-overlay {
        animation: none !important;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    /* Reduce 3D effects on mobile for better performance */
    .hero-section,
    .mission-section,
    .values-section,
    .modules-section,
    .login-section {
        perspective: none;
        transform-style: flat;
    }
    
    /* Simplify morphing transitions on mobile */
    .hero-content,
    .brand-logo,
    .mission-glass-panel,
    .value-card,
    .module-showcase,
    .login-card {
        transition: transform 0.2s ease-out,
                    opacity 0.2s ease-out;
        will-change: auto;
    }
    
    /* Disable complex background animations on mobile */
    .mission-animated-bg .geometric-pattern,
    .mission-animated-bg .floating-particles,
    .mission-animated-bg .gradient-mesh {
        animation-play-state: paused !important;
    }
}

/* ===== GLASS MORPHISM SYSTEM ===== */
.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.glass-panel-light {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.glass-panel-strong {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ===== HERO SECTION ===== */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.7;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(19, 150, 212, 0.15);
    z-index: -1;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(109, 198, 255, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    top: 40%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 6s;
}

.particle:nth-child(3) {
    top: 70%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    top: 60%;
    left: 70%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    top: 30%;
    left: 50%;
    animation-delay: 3s;
    animation-duration: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(20px, -20px) scale(1.2);
        opacity: 1;
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 600px;
    padding: 0 20px;
}

.glass-brand-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 40px 30px;
    margin-bottom: 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(20px);
    opacity: 0;
    animation: heroCardEnter 1.2s ease-out 0.5s both;
}

@keyframes heroCardEnter {
    0% {
        transform: translateY(40px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.brand-logo-container {
    margin-bottom: 20px;
}

.brand-logo {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.brand-name {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    font-family: 'IndustryTest-Bold', 'IndustryTest-Demi', 'IndustryTest-Medium', 'Muli', sans-serif;
}

.brand-tagline {
    font-size: 18px;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
}

.hero-cta {
    transform: translateY(20px);
    opacity: 0;
    animation: heroCtaEnter 1s ease-out 1s both;
}

@keyframes heroCtaEnter {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-subtitle {
    font-size: 16px;
    color: #8b9bb3;
    margin-bottom: 40px;
}

/* ===== HERO LOGIN SECTION ===== */
.hero-login-section {
    margin: 30px 0 40px 0;
    text-align: center;
}

.hero-sso-button {
    position: relative;
    background: var(--brand-primary, #1396d4);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(19, 150, 212, 0.3);
    margin-bottom: 15px;
    display: inline-block;
    min-width: 220px;
}

.hero-sso-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(19, 150, 212, 0.4);
    background: #0d7db8;
}

.hero-sso-button:active {
    transform: translateY(0);
    box-shadow: 0 6px 24px rgba(19, 150, 212, 0.3);
}

.hero-sso-button:focus {
    outline: none;
    box-shadow: 
        0 8px 32px rgba(19, 150, 212, 0.3),
        0 0 0 3px rgba(19, 150, 212, 0.2);
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.button-content i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.hero-sso-button:hover .button-content i {
    transform: scale(1.1);
}

.button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.hero-sso-button:hover .button-shine {
    left: 100%;
}

.hero-login-note {
    font-size: 14px;
    color: #8b9bb3;
    margin: 0;
    font-style: italic;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    color: var(--brand-primary, #1396d4);
    transform: translateY(-2px);
}

.scroll-indicator i {
    font-size: 20px;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 20px;
    font-weight: 500;
    font-family: 'IndustryTest-Demi', 'Muli', sans-serif;
    letter-spacing: 0.5px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* ===== MISSION SECTION ===== */
.mission-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafe 100%);
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mission-glass-panel {
    background: linear-gradient(
        180deg,
        rgba(109, 198, 255, 0.10),
        rgba(255, 255, 255, 0.20)
    );
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(109, 198, 255, 0.35);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 40px rgba(109, 198, 255, 0.20);
    position: relative;
    animation: mission-breathe 4s ease-in-out infinite;
    overflow: hidden; /* Ensure decorative top bar clips to rounded corners */
}

.mission-glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    background: var(--brand-primary, #1396d4);
    opacity: 0.95;
}

@keyframes mission-breathe {
    0%, 100% { 
        transform: scale(1) translateY(0px);
        box-shadow: 
            0 16px 48px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    50% { 
        transform: scale(1.01) translateY(-2px);
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
}

.mission-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--brand-primary, #1396d4);
    margin-bottom: 30px;
    letter-spacing: -0.5px;
    opacity: 0;
    animation: text-reveal 1.2s ease-out 0.8s both;
    font-family: 'IndustryTest-Bold', 'IndustryTest-Demi', 'IndustryTest-Medium', 'Muli', sans-serif;
}

@keyframes text-reveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

.mission-statement {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.7;
    color: #4a5568;
    margin: 0;
    font-weight: 400;
}

.mission-statement[data-animate="word-reveal"] {
    opacity: 0;
}

.mission-statement .word {
    opacity: 0;
    display: inline-block;
    animation: word-fade-in 0.8s ease-out both;
}

@keyframes word-fade-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

/* ===== MISSION ANIMATED BACKGROUND ===== */
.mission-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* Geometric Patterns */
.geometric-pattern {
    position: absolute;
    opacity: 0.03;
    pointer-events: none;
}

/* Disable spinning artifacts on mission background */
.mission-animated-bg .geometric-pattern {
    animation: none !important;
    transform: none !important;
    display: none !important;
    background: none !important;
}

.pattern-1 {
    width: 400px;
    height: 400px;
    top: -10%;
    left: -5%;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000' opacity='0.4'%3E%3Cpath d='M20 20h20v20H20V20zm0-20h20v20H20V0z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: drift 25s ease-in-out infinite;
}

.pattern-2 {
    width: 300px;
    height: 300px;
    top: 60%;
    right: -10%;
    background: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='15' cy='15' r='2' fill='%23000' opacity='0.3'/%3E%3C/svg%3E") repeat;
    animation: drift 20s ease-in-out infinite reverse;
}

.pattern-3 { display: none; }

/* Floating Particles */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(19, 150, 212, 0.1);
    pointer-events: none;
}

.particle-1 {
    width: 4px;
    height: 4px;
    top: 15%;
    left: 10%;
    animation: float-particle 8s ease-in-out infinite;
}

.particle-2 {
    width: 6px;
    height: 6px;
    top: 25%;
    right: 20%;
    animation: float-particle 12s ease-in-out infinite 2s;
}

.particle-3 {
    width: 3px;
    height: 3px;
    top: 70%;
    left: 25%;
    animation: float-particle 15s ease-in-out infinite 4s;
}

.particle-4 {
    width: 5px;
    height: 5px;
    top: 80%;
    right: 15%;
    animation: float-particle 10s ease-in-out infinite 1s;
}

.particle-5 {
    width: 4px;
    height: 4px;
    top: 45%;
    left: 80%;
    animation: float-particle 14s ease-in-out infinite 3s;
}

.particle-6 {
    width: 7px;
    height: 7px;
    top: 55%;
    right: 40%;
    animation: float-particle 11s ease-in-out infinite 5s;
}

/* Gradient Mesh */
.gradient-mesh {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.05;
}

.mesh-1 { display: none; }

.mesh-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(19, 150, 212, 0.2) 0%, transparent 70%);
    animation: mesh-pulse 12s ease-in-out infinite 4s;
}

/* Parallax Layers */
.parallax-layer {
    position: absolute;
    width: 100%;
    height: 120%;
    opacity: 0.02;
}

/* Hide parallax layers within the mission background to remove faint vertical bars */
.mission-animated-bg .parallax-layer {
    display: none !important;
    background: none !important;
}

.layer-1 {
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23000' stroke-width='1'%3E%3Cpath d='M30,30 L45,15 L45,45 Z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    top: 0;
    animation: parallax-move 40s linear infinite;
}

.layer-2 {
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='20' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") repeat;
    top: -20%;
    animation: parallax-move 60s linear infinite reverse;
}

.layer-3 {
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M25,25 L75,25 L50,75 Z' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") repeat;
    top: -10%;
    animation: parallax-move 80s linear infinite;
}

/* Animations */
@keyframes drift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -15px) rotate(90deg);
    }
    50% {
        transform: translate(-10px, 10px) rotate(180deg);
    }
    75% {
        transform: translate(15px, -5px) rotate(270deg);
    }
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(20px, -30px) scale(1.2);
        opacity: 0.7;
    }
    50% {
        transform: translate(-15px, -50px) scale(0.8);
        opacity: 0.3;
    }
    75% {
        transform: translate(10px, -20px) scale(1.1);
        opacity: 0.6;
    }
}

@keyframes mesh-pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.05;
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.08;
    }
}

@keyframes parallax-move {
    0% {
        transform: translateX(-50px);
    }
    100% {
        transform: translateX(50px);
    }
}

/* ===== VALUES SECTION ===== */
.values-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
    background: linear-gradient(135deg, #f8fafe 0%, #e8f2ff 100%);
}

.values-header {
    text-align: center;
    margin-bottom: 80px;
}

.values-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    font-family: 'IndustryTest-Bold', 'IndustryTest-Demi', 'IndustryTest-Medium', 'Muli', sans-serif;
}

.values-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin: 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.values-grid .value-card:nth-child(4) {
    grid-column: 1 / 2;
}

.values-grid .value-card:nth-child(5) {
    grid-column: 2 / 3;
}

.value-card {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-primary, #1396d4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.value-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(109, 198, 255, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--brand-primary, #1396d4);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(19, 150, 212, 0.2);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--brand-primary, #1396d4);
    box-shadow: 0 12px 48px rgba(19, 150, 212, 0.3);
}

.value-icon i {
    font-size: 32px;
    color: white;
}

.value-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
    font-family: 'IndustryTest-Bold', 'IndustryTest-Demi', 'IndustryTest-Medium', 'Muli', sans-serif;
}

.value-description {
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

.value-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(109, 198, 255, 0.2);
    border: 2px solid rgba(109, 198, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-primary, #1396d4);
    transition: all 0.3s ease;
}

.value-card:hover .value-number {
    background: rgba(109, 198, 255, 0.3);
    border-color: rgba(109, 198, 255, 0.5);
    transform: scale(1.1);
}

/* ===== MODULES SECTION ===== */
.modules-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafe 100%);
}

.modules-header {
    text-align: center;
    margin-bottom: 80px;
}

.modules-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    font-family: 'IndustryTest-Bold', 'IndustryTest-Demi', 'IndustryTest-Medium', 'Muli', sans-serif;
}

.modules-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin: 0;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.module-showcase {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 40px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.module-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(109, 198, 255, 0.05), 
        transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.module-showcase:hover::before {
    opacity: 1;
    animation: moduleGlow 2s ease-in-out infinite;
}

@keyframes moduleGlow {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.05;
    }
    50% { 
        transform: scale(1.1) rotate(180deg); 
        opacity: 0.1;
    }
}

.module-showcase:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(109, 198, 255, 0.4);
    box-shadow: 
        0 24px 60px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.module-icon {
    width: 80px;
    height: 80px;
    background: var(--brand-primary, #1396d4);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.module-showcase:hover .module-icon {
    transform: scale(1.1) rotate(-5deg);
    background: var(--brand-primary, #1396d4);
    box-shadow: 0 12px 48px rgba(19, 150, 212, 0.3);
}

.module-icon i {
    font-size: 36px;
    color: white;
}

.module-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    line-height: 1.3;
    font-family: 'IndustryTest-Demi', 'IndustryTest-Medium', 'Muli', sans-serif;
}

.module-description {
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 20px;
}

.module-features {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.feature-badge {
    padding: 6px 12px;
    background: rgba(109, 198, 255, 0.15);
    border: 1px solid rgba(109, 198, 255, 0.25);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-primary, #1396d4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.module-showcase:hover .feature-badge {
    background: rgba(109, 198, 255, 0.25);
    border-color: rgba(109, 198, 255, 0.4);
    transform: scale(1.05);
}

/* ===== LOGIN SECTION ===== */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafe 100%);
    text-align: center;
}

.login-content {
    max-width: 500px;
    margin: 0 auto;
}

.login-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 
        0 24px 60px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.login-header {
    margin-bottom: 40px;
}

.login-logo {
    max-height: 60px;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    font-family: 'IndustryTest-Demi', 'IndustryTest-Medium', 'Muli', sans-serif;
}

.login-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.login-form {
    margin-bottom: 40px;
}

.sso-button {
    width: 100%;
    padding: 18px 24px;
    background: var(--brand-primary, #1396d4);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin-bottom: 20px;
    box-shadow: 
        0 8px 24px rgba(19, 150, 212, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sso-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 16px 40px rgba(19, 150, 212, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: #0d7db8;
}

.sso-button:active {
    transform: translateY(-1px) scale(1);
    transition-duration: 0.1s;
}

.sso-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.sso-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.sso-button:hover .sso-icon {
    transform: rotate(-10deg) scale(1.1);
}

.sso-shimmer {
    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.6s ease;
    z-index: 1;
}

.sso-button:hover .sso-shimmer {
    left: 100%;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.security-badge i {
    color: var(--brand-primary, #1396d4);
}

.trust-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(109, 198, 255, 0.1);
    border: 1px solid rgba(109, 198, 255, 0.2);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    transition: all 0.3s ease;
}

.trust-item:hover {
    background: rgba(109, 198, 255, 0.2);
    border-color: rgba(109, 198, 255, 0.3);
    transform: translateY(-1px);
}

.trust-item i {
    color: var(--brand-primary, #1396d4);
}

.brand-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.brand-footer p {
    font-size: 14px;
    color: #8b9bb3;
    margin: 0;
}

/* ===== LOADING OVERLAY ===== */
.auth-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(19, 150, 212, 0.95), 
        rgba(40, 120, 163, 0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s ease;
}

.auth-loading-overlay.active {
    visibility: visible;
    opacity: 1;
}

.loading-content {
    text-align: center;
    color: white;
    transform: scale(0.9);
    transition: transform 0.5s ease;
}

.auth-loading-overlay.active .loading-content {
    transform: scale(1);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: 'IndustryTest-Demi', 'IndustryTest-Medium', 'Muli', sans-serif;
}

.loading-message {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress-bar {
    height: 100%;
    background: white;
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s ease-out;
}

/* ===== FLASH MESSAGES ===== */
.flash-region {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.flash {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: flashEnter 0.4s ease-out both;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

@keyframes flashEnter {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.flash-primary { 
    background: rgba(19, 150, 212, 0.9);
    color: white;
}

.flash-success { 
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

.flash-danger { 
    background: rgba(220, 53, 69, 0.9);
    color: white;
}

.flash-warning { 
    background: rgba(255, 193, 7, 0.9);
    color: #2c3e50;
}

/* ===== SCROLL ANIMATIONS ===== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SCROLL-PROGRESS ANIMATIONS ===== */
.mission-glass-panel {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mission-glass-panel.scroll-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.mission-statement .word {
    opacity: 0;
    transform: translateY(20px);
    display: inline-block;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mission-statement.scroll-animating .word {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced mission background animations triggered by scroll */
.mission-animated-bg {
    opacity: 0;
    transform: scale(0.9);
    transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mission-animated-bg.scroll-active {
    opacity: 1;
    transform: scale(1);
}

.mission-animated-bg.scroll-active .geometric-pattern,
.mission-animated-bg.scroll-active .floating-particles .particle,
.mission-animated-bg.scroll-active .gradient-mesh {
    animation-play-state: running;
}

.mission-animated-bg:not(.scroll-active) .geometric-pattern,
.mission-animated-bg:not(.scroll-active) .floating-particles .particle,
.mission-animated-bg:not(.scroll-active) .gradient-mesh {
    animation-play-state: paused;
}

/* ===== SCROLL PROGRESS INDICATOR ===== */
.scroll-progress-indicator {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.progress-bar {
    width: 3px;
    height: 200px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 0 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg,
        var(--brand-primary, #1396d4),
        color-mix(in srgb, var(--brand-primary, #1396d4) 80%, black));
    border-radius: 2px;
    transition: height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 8px rgba(19, 150, 212, 0.4);
}

.progress-dots {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-dot.active {
    background: var(--brand-primary, #1396d4);
    border-color: color-mix(in srgb, var(--brand-primary, #1396d4) 80%, black);
    transform: scale(1.2);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(19, 150, 212, 0.5),
        0 4px 12px rgba(19, 150, 212, 0.3);
}

.progress-dot:hover {
    transform: scale(1.15);
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.4);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.9),
        0 3px 8px rgba(0, 0, 0, 0.15);
}

.progress-dot.active:hover {
    transform: scale(1.3);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.95),
        0 0 24px rgba(19, 150, 212, 0.6),
        0 6px 16px rgba(19, 150, 212, 0.4);
}

/* Hide on mobile */
@media (max-width: 768px) {
    .scroll-progress-indicator {
        display: none;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 0 20px;
    }
    
    .glass-brand-card {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .brand-logo {
        max-height: 60px;
    }
    
    .mission-glass-panel {
        padding: 40px 30px;
    }
    
    .impact-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .metric-item {
        padding: 15px;
    }
    
    .journey-timeline {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .journey-timeline::before {
        display: none;
    }
    
    .timeline-item {
        max-width: 100px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .values-grid .value-card:nth-child(4),
    .values-grid .value-card:nth-child(5) {
        grid-column: 1;
    }
    
    .value-card {
        padding: 30px 25px;
    }
    
    .expandable-card.expanded .value-expanded-content {
        max-height: 250px;
        padding: 20px;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .module-showcase {
        padding: 30px 25px;
    }
    
    
    .login-card {
        padding: 40px 30px;
        margin: 0 20px;
    }
    
    .trust-indicators {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .flash-region {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .glass-brand-card {
        padding: 25px 15px;
    }
    
    .mission-glass-panel {
        padding: 30px 20px;
    }
    
    .impact-metrics {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .metric-value {
        font-size: 24px;
    }
    
    .timeline-item {
        max-width: 80px;
    }
    
    .value-card {
        padding: 25px 20px;
    }
    
    .module-showcase {
        padding: 25px 20px;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .sso-button {
        padding: 16px 20px;
        font-size: 16px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .particles-container {
        display: none;
    }
    
    .floating-shape {
        animation: none;
    }
    
    .loading-spinner {
        animation: spin 2s linear infinite;
    }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .glass-panel,
    .glass-panel-light,
    .glass-panel-strong,
    .glass-brand-card,
    .mission-glass-panel,
    .value-card,
    .module-showcase,
    .login-card {
        border: 2px solid currentColor;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .sso-button {
        border: 2px solid white;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .hero-video,
    .particles-container,
    .auth-loading-overlay,
    .flash-region,
    .parallax-bg {
        display: none !important;
    }
    
    .hero-section,
    .mission-section,
    .values-section,
    .modules-section,
    .login-section {
        page-break-inside: avoid;
        background: white !important;
    }
}
