/* Redesign Homepage CSS (Externalized from index.php) */

/* 1. Critical Hero Styles (v4) */
.hero-reveal-wrapper { 
    position: relative; width: 100%; height: 100vh; overflow: hidden; background: #000; 
}
.reveal-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }

/* 2. Ultra Modern Redesign Styles (Bento, About, Services v9) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --modern-font: 'Poppins', sans-serif;
    --modern-bg: #ffffff;
    --modern-accent-1: #6366f1;
    --modern-accent-2: #ec4899;
    --modern-text: #0f172a;
    --modern-muted: #475569;
    --modern-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --modern-shadow: 0 40px 100px rgba(0,0,0,0.1);
    --modern-radius: 40px;
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* Cinematic Text-Reveal Hero Slider Styles */
.hero-reveal-wrapper { position: relative; width: 100%; height: 100vh; overflow: hidden; background: #000; }
.reveal-swiper { width: 100%; height: 100%; }

.reveal-bg { 
    position: absolute; inset: 0; 
    background-size: cover; background-position: center; 
}

.reveal-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.2) 60%, transparent); z-index: 2; }

.reveal-container { position: relative; z-index: 10; height: 100%; display: flex; align-items: center; padding: 0 10%; }

.reveal-content-area { 
    max-width: 1000px; 
    position: relative;
    z-index: 10;
    opacity: 1 !important;
}

.reveal-badge { 
    display: inline-block; font-size: 1.8rem; font-weight: 800; color: #fff; 
    text-transform: uppercase; letter-spacing: 5px; 
    margin-bottom: 30px; 
    padding-bottom: 10px; border-bottom: 5px solid #6366f1;
    opacity: 0; transform: translateY(30px); filter: blur(10px);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}
.swiper-slide-active .reveal-badge { opacity: 1; transform: translateY(0); filter: blur(0); transition-delay: 0.2s; }

.reveal-title { 
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3rem, 7vw, 6rem); 
    font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 35px; 
    letter-spacing: -0.02em;
    overflow: hidden;
    opacity: 0; transform: translateY(40px) skewY(2deg); filter: blur(10px);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}
.swiper-slide-active .reveal-title { opacity: 1; transform: translateY(0) skewY(0); filter: blur(0); transition-delay: 0.4s; }

.reveal-title .accent { 
    background: linear-gradient(135deg, #ffffff, #6366f1, #a855f7, #6366f1);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: liquidGradient 8s ease infinite;
    display: inline-block;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
    position: relative;
}

@keyframes liquidGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


.reveal-desc { 
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 2.2rem); 
    font-weight: 300; color: rgba(255,255,255,0.9); 
    margin-bottom: 0; line-height: 1.6; max-width: 800px; 
    opacity: 0; transform: translateY(30px); filter: blur(10px);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}
.swiper-slide-active .reveal-desc { opacity: 1; transform: translateY(0); filter: blur(0); transition-delay: 0.6s; }

/* Modern Segmented Controls */
.modern-controls { 
    position: absolute; bottom: 80px; left: 10%; right: 10%; z-index: 30; 
    display: flex; align-items: flex-end; justify-content: space-between;
}

.segmented-progress { display: flex; gap: 40px; align-items: flex-end; }
.seg-item { position: relative; width: 150px; cursor: pointer; transition: 0.3s; }
.seg-num { display: block; font-size: 0.8rem; font-weight: 900; color: rgba(255,255,255,0.3); margin-bottom: 10px; transition: 0.3s; }
.seg-item.active .seg-num { color: #fff; transform: translateY(-5px); }
.seg-bar-bg { width: 100%; height: 2px; background: rgba(255,255,255,0.1); position: absolute; bottom: 0; left: 0; }
.seg-item::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: rgba(255,255,255,0.05); }
.seg-bar { position: absolute; bottom: 0; left: 0; width: 0%; height: 2px; background: #6366f1; z-index: 5; transition: width 0.1s linear; }

.nav-magnetic-group { display: flex; gap: 20px; }
.mag-arrow { 
    width: 60px; height: 60px; border: 1px solid rgba(255,255,255,0.2); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    color: #fff; cursor: pointer; transition: background 0.3s, border-color 0.3s;
}
.mag-arrow:hover { background: rgba(255,255,255,0.05); border-color: #fff; }

/* Top Progress Container (Hidden) */
.reveal-progress-container { display: none; }

@media (max-width: 991px) {
    .segmented-progress { width: 100%; }
    .seg-item { width: 33.33%; }
    .nav-magnetic-group { display: none; }
}

@media (max-width: 768px) {
    .reveal-container { padding: 0 20px; }
    .reveal-title { font-size: 2.8rem; }
    .reveal-desc { font-size: 1rem; }
    .reveal-actions { flex-direction: column; gap: 15px; }
    .reveal-nav { left: 20px; bottom: 40px; }
}

/* Modern Welcome & Service Grid Section */
.bento-welcome-section { 
    padding: 100px 8%; 
    background: #fdfdfd; 
    position: relative; 
    overflow: hidden; 
}

/* Quantum Drift Background System */
.quantum-drift-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
    /* Adding a subtle technical mesh to \"fill\" the space */
    background-image: radial-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.drift-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.05));
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: shapeDrift 45s infinite linear alternate;
}

/* Individual Shape Mapping for full coverage */
.shape-1 { width: 150px; height: 150px; border-radius: 30% 70% 70% 30%; top: 5%; left: -2%; animation-delay: 0s; }
.shape-2 { width: 220px; height: 220px; border-radius: 50%; top: 70%; right: -5%; animation-delay: -10s; background: rgba(168, 85, 247, 0.04); }
.shape-3 { width: 120px; height: 120px; transform: rotate(45deg); top: 15%; right: 25%; animation-delay: -22s; border-radius: 24px; }
.shape-4 { width: 350px; height: 350px; border-radius: 40% 60% 70% 30%; bottom: -10%; left: 15%; animation-delay: -5s; opacity: 0.2; }
.shape-5 { width: 90px; height: 90px; border-radius: 50%; top: 45%; left: 35%; animation-delay: -15s; border: 1px dashed rgba(99, 102, 241, 0.2); background: transparent; }
.shape-6 { width: 180px; height: 180px; border-radius: 60% 40% 30% 70%; top: 30%; right: 15%; animation-delay: -28s; background: rgba(14, 165, 233, 0.05); }
.shape-7 { width: 130px; height: 130px; border-radius: 50%; bottom: 20%; left: 5%; animation-delay: -12s; border: 1px solid rgba(236, 72, 153, 0.15); }
.shape-8 { width: 250px; height: 250px; border-radius: 50%; top: -5%; right: 5%; animation-delay: -35s; opacity: 0.15; }
.shape-9 { width: 110px; height: 110px; transform: rotate(-15deg); bottom: 10%; right: 35%; animation-delay: -18s; border-radius: 30px; background: rgba(99, 102, 241, 0.08); }
.shape-10 { width: 300px; height: 300px; border-radius: 50%; top: 50%; left: 60%; animation-delay: -42s; opacity: 0.1; }

@keyframes shapeDrift {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(60px, 120px) rotate(120deg) scale(1.05); }
    66% { transform: translate(-120px, 60px) rotate(240deg) scale(0.95); }
    100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

/* Maintain Top/Bottom Strips on top of drift */
.bento-welcome-section-strip-pattern {
    z-index: 15 !important;
}

/* Pattern overlay for the bands */
.bento-welcome-section-strip-pattern {
    position: absolute; left: 0; right: 0; height: 6px; z-index: 6; opacity: 0.3;
    background-image: url(\"data:image/svg+xml,%3Csvg width='20' height='6' viewBox='0 0 20 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 6L10 0M10 6L20 0' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E\");
}
.strip-top { top: 0; }
.strip-bottom { bottom: 0; }

.bento-container { 
    max-width: 1400px; margin: 0 auto; 
    display: grid; grid-template-columns: repeat(3, 1fr); 
    grid-auto-rows: minmax(320px, auto); gap: 30px; 
    position: relative; z-index: 10;
}

.bento-item { 
    backdrop-filter: blur(15px) saturate(160%);
    -webkit-backdrop-filter: blur(15px) saturate(160%);
    border: 1px solid rgba(0, 0, 0, 0.04); 
    border-radius: 45px; padding: 60px;
    display: flex; flex-direction: column; justify-content: center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s;
    box-shadow: 0 15px 45px rgba(0,0,0,0.02);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    /* Initial Load Animation Base */
    opacity: 1; 
}

.bento-card-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }

/* Reveal state: hidden before animation triggers */
.bento-item.reveal-hidden {
    opacity: 0;
    transform: translateY(40px);
}

.bento-item.animate-in {
    opacity: 1;
    transform: translateY(0) !important;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Different Light Gradient Backgrounds */
.bento-header-item { 
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); 
    position: relative;
    overflow: hidden;
}

/* Modern 'Topographic Wave' Pattern for Header */
.bento-header-item::after {
    content: ''; position: absolute; inset: 0;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(99,102,241,0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(99,102,241,0.06) 0%, transparent 50%),
        url(\"data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 100 Q 100 0, 200 100 T 400 100 M0 150 Q 100 50, 200 150 T 400 150 M0 200 Q 100 100, 200 200 T 400 200 M0 250 Q 100 150, 200 250 T 400 250' stroke='rgba(99,102,241,0.06)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E\");
    background-size: 100% 100%, 100% 100%, 400px 400px;
    opacity: 0.8; z-index: 0;
}
.bento-item:nth-child(2) { background: linear-gradient(135deg, #fffaf5 0%, #fff7ed 100%); } /* Light Orange */
.bento-item:nth-child(2)::after {
    content: ''; position: absolute; inset: 0;
    background-image: 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='none' stroke='rgba(249,115,22,0.08)' stroke-width='0.8'%3E%3Cpath d='M0 20h40M20 0v40'/%3E%3C/g%3E%3C/svg%3E\");
    background-size: 30px 30px; z-index: 1; pointer-events: none;
}
.bento-item:nth-child(3) { background: linear-gradient(135deg, #f5faff 0%, #eff6ff 100%); } /* Light Blue */
.bento-item:nth-child(3)::after {
    content: ''; position: absolute; inset: 0;
    background-image: url(\"data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60L60 0M-10 10L10 -10M50 70L70 50' stroke='rgba(59,130,246,0.08)' stroke-width='0.8'/%3E%3C/svg%3E\");
    background-size: 40px 40px; z-index: 1; pointer-events: none;
}
.bento-item:nth-child(4) { background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%); } /* Light Teal */
.bento-item:nth-child(4)::after {
    content: ''; position: absolute; inset: 0;
    background-image: url(\"data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(13,148,136,0.08)' stroke-width='0.8'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3Ccircle cx='100' cy='100' r='2'/%3E%3Cpath d='M20 20L100 100'/%3E%3C/g%3E%3C/svg%3E\");
    background-size: 80px 80px; z-index: 1; pointer-events: none;
}
.bento-item:nth-child(5) { background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%); } /* Light Red */

/* Modern Image Layer for Bento Tiles */
.bento-img-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    opacity: 0.1; /* Very subtle watermark */
    filter: grayscale(100%); /* Desaturate to prevent color clashing */
    mix-blend-mode: luminosity; /* Blend with tile background color */
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.8s ease;
    pointer-events: none;
}

.bento-item:hover .bento-img-layer {
    opacity: 0.2;
    transform: scale(1.05);
}

.bg-mgmt { background-image: url('assets/bento-bg-management.png'); }
.bg-higher-edu { background-image: url('assets/bento-bg-higher-edu.png'); }
.bg-preschool { background-image: url('assets/bento-bg-preschool.png'); }

/* Subtle glass sheen overlay */
.bento-item::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 60%);
    opacity: 0.4; transition: 0.6s; z-index: 1;
}

.bento-item:hover { 
    transform: translateY(-10px) scale(1.02); 
    box-shadow: 0 30px 80px rgba(0,0,0,0.07); 
    border-color: rgba(99,102,241,0.15);
}

.bento-header-item { grid-column: span 2; padding: 80px; }
.bento-header-item h2 { 
    font-family: 'Poppins', sans-serif; 
    font-size: clamp(1.8rem, 3.8vw, 2.6rem); 
    font-weight: 900; color: #0f172a; 
    line-height: 1.2; margin-bottom: 25px; 
    letter-spacing: -0.04em;
    white-space: nowrap;
}
.bento-header-item .accent { transition: color 0.5s ease; }
.bento-header-item p { font-size: 17px; color: #475569; line-height: 1.8; font-weight: 300; max-width: 650px; }

.bento-service-item { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 50px; }
.bento-icon-area { 
    width: 80px; height: 80px; border-radius: 25px; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 4.0rem; margin-bottom: 40px; 
    background: #f8fafc; color: #64748b; transition: 0.5s; 
    position: relative;
}
.bento-icon-area::after { 
    content: ''; position: absolute; inset: 0; border-radius: 25px; 
    opacity: 0; transition: 0.5s; z-index: -1; filter: blur(20px);
}

.bento-service-item:hover .bento-icon-area { background: #fff; transform: scale(1.1) rotate(5deg); }
.bento-service-item:hover .bento-icon-area::after { opacity: 0.4; transform: scale(1.5); }

/* Icon Aura Colors */
.icon-orange { color: #f97316; } .bento-item:hover .icon-orange::after { background: #f97316; }
.icon-blue { color: #3b82f6; } .bento-item:hover .icon-blue::after { background: #3b82f6; }
.icon-teal { color: #0d9488; } .bento-item:hover .icon-teal::after { background: #0d9488; }
.icon-red { color: #e11d48; } .bento-item:hover .icon-red::after { background: #e11d48; }

.bento-service-item h3 { 
    font-size: 16px; font-weight: 800; color: #0f172a; 
    margin-bottom: 20px; line-height: 1.1; 
    letter-spacing: -0.02em;
}
.bento-service-item p { 
    font-size: 17px; color: #64748b; 
    line-height: 1.7; font-weight: 300; 
    margin-bottom: 30px; flex-grow: 1; 
}

.bento-link { 
    font-size: 0.9rem; font-weight: 700; color: #0f172a; 
    text-decoration: none !important; 
    display: inline-flex; align-items: center; 
    padding: 0; border-radius: 10px;
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-top: auto;
    overflow: hidden;
    width: fit-content;
}

.bento-link-text { padding: 12px 20px; border-right: 1px solid rgba(15, 23, 42, 0.08); transition: 0.5s; }
.bento-link i { padding: 12px 18px; font-size: 0.8rem; color: #6366f1; transition: 0.5s; }

.bento-link:hover { 
    background: #4f46e5; border-color: #4f46e5;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.2);
}
.bento-link:hover .bento-link-text { color: #ffffff; border-color: rgba(255,255,255,0.1); }
.bento-link:hover i { 
    color: #ffffff; 
    animation: sentinelSlide 0.6s cubic-bezier(0.45, 0, 0.55, 1); 
}

@keyframes sentinelSlide {
    0% { transform: translateX(0); opacity: 1; }
    49% { transform: translateX(20px); opacity: 0; }
    50% { transform: translateX(-20px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@media (max-width: 1200px) {
    .bento-container { grid-template-columns: repeat(2, 1fr); }
    .bento-header-item { grid-column: span 2; }
}
@media (max-width: 768px) {
    .bento-container { grid-template-columns: 1fr; }
    .bento-header-item { 
        grid-column: span 1; 
        padding: 30px 20px; 
    }
    .bento-header-item h2 { font-size: 1.5rem; white-space: normal; margin-bottom: 15px; }
    .bento-header-item p { font-size: 15px; line-height: 1.6; }
    .bento-service-item { padding: 30px 20px; }
    .bento-welcome-section { padding: 80px 5%; }
}

/* The Kinetic Flux Mesh (Tile 1 Exclusive - v6) */
.bento-header-item { position: relative; overflow: hidden; background: #ffffff !important; }
.bento-flux-layer { 
    position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.9;
    filter: blur(60px);
}
.flux-blob {
    position: absolute; border-radius: 50%;
    mix-blend-mode: multiply;
    animation: fluxMorph 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}
.blob-1 { 
    width: 400px; height: 400px; background: rgba(99, 102, 241, 0.15); 
    top: -10%; left: -10%; animation-delay: 0s;
}
.blob-2 { 
    width: 500px; height: 500px; background: rgba(168, 85, 247, 0.1); 
    bottom: -15%; right: -15%; animation-delay: -5s;
}
.blob-3 { 
    width: 350px; height: 350px; background: rgba(14, 165, 233, 0.12); 
    top: 50%; left: 30%; animation-delay: -10s;
}

.flux-grid {
    position: absolute; inset: 0; z-index: 2; opacity: 0.4;
    background-image: url(\"data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='1.5' fill='rgba(99,102,241,0.25)'/%3E%3Cpath d='M45 50L55 50M50 45L50 55' stroke='rgba(99,102,241,0.1)' stroke-width='0.5'/%3E%3C/svg%3E\");
    background-size: 100px 100px;
    animation: fluxGridPulse 10s ease-in-out infinite;
}

@keyframes fluxMorph { 
    0% { transform: translate(0, 0) scale(1); } 
    33% { transform: translate(100px, 50px) scale(1.2); }
    66% { transform: translate(-50px, 150px) scale(0.8); }
    100% { transform: translate(0, 0) scale(1); } 
}
@keyframes fluxGridPulse { 
    0%, 100% { opacity: 0.2; } 
    50% { opacity: 0.5; } 
}

/* Unified Glass-Mosaic About Section (v9) */
.glass-mosaic-section { padding: 180px 8%; background: #0f172a; position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: center; }

/* Animated Mesh Backdrop */
.mesh-background { 
    position: absolute; inset: 0; 
    background: 
        radial-gradient(at 10% 10%, rgba(99,102,241,0.2) 0, transparent 50%), 
        radial-gradient(at 90% 10%, rgba(192,132,252,0.2) 0, transparent 50%), 
        radial-gradient(at 50% 90%, rgba(6,182,212,0.2) 0, transparent 50%); 
    filter: blur(80px); animation: meshPulse 10s ease-in-out infinite alternate;
}
@keyframes meshPulse { 0% { opacity: 0.5; transform: scale(1); } 100% { opacity: 0.8; transform: scale(1.1); } }

.glass-mosaic-container { display: grid; grid-template-columns: 1fr 1.25fr; gap: 80px; align-items: center; max-width: 1440px; margin: 0 auto; z-index: 5; position: relative; width: 100%; }

.glass-card { 
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(25px) saturate(180%); 
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 45px; 
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
    position: relative; overflow: hidden; transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-visual { position: relative; height: 750px; display: flex; align-items: center; }
.main-panel { width: 90%; height: 70%; z-index: 2; border-radius: 50px; }
.main-panel img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }

.decor-panel { 
    position: absolute; top: 0; right: -20px; width: 50%; height: 40%; z-index: 1; 
    border-radius: 40px; transform: scale(0.9); opacity: 0.6; padding: 15px;
}
.decor-panel img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }

.glass-accent { position: absolute; width: 100px; height: 100px; background: rgba(99,102,241,0.5); filter: blur(40px); z-index: -1; }
.bottom-right { bottom: -20px; right: -20px; }

.content-panel { padding: 80px; }
.glass-label-badge { 
    display: inline-block; padding: 10px 25px; 
    background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.3);
    border-radius: 100px; 
}

.accent { 
    color: #6366f1; 
    font-weight: 800;
    position: relative;
}

/* Typewriter Cursor - Now specific to the typewriter element */
#typewriter.accent::after {
    content: '|';
    margin-left: 2px;
    animation: blink 0.7s infinite;
    color: #6366f1;
    font-weight: 400;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.glass-label-badge { font-size: 1.3rem;color: #fff; text-transform: uppercase; letter-spacing: 0.2rem; margin-bottom: 40px; }

.glass-headline { font-family: 'Poppins', sans-serif; font-size: 4rem; font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 40px; }
.glass-highlight { background: linear-gradient(135deg, #6366f1, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.glass-text p { font-size: 17px; line-height: 1.8; color: rgba(255,255,255,0.7); font-weight: 300; margin-bottom: 35px; }
.glass-text p strong { font-weight: 700; color: #fff; }

.btn-glass-cta { 
    display: inline-flex; align-items: center; gap: 20px; 
    padding: 22px 50px; background: #6366f1; color: #fff !important; 
    border-radius: 35px; text-decoration: none !important; font-weight: 800; 
    transition: 0.5s; font-size: 1.1rem; box-shadow: 0 20px 40px rgba(99,102,241,0.3);
}
.btn-glass-cta:hover { transform: translateY(-8px) scale(1.05); background: #4f46e5; box-shadow: 0 30px 60px rgba(99,102,241,0.5); }

@media (max-width: 1200px) {
    .glass-mosaic-container { grid-template-columns: 1fr; gap: 80px; }
    .glass-visual { height: 500px; }
    .content-panel { padding: 60px 40px; }
    .glass-headline { font-size: 3rem; }
}
@media (max-width: 768px) {
    .main-panel { width: 100%; border-radius: 35px; }
    .decor-panel { display: none; }
    .glass-mosaic-section { padding: 100px 20px; }
}

/* Institutions Showcase Redesign (v2 - Premium Mosaic) */
.inst-showcase-section { 
    background: #ffffff; padding: 180px 0; overflow: hidden; position: relative;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.inst-header { margin-bottom: 100px; padding: 0 8%; }
.inst-label { display: block; font-size: 0.9rem; font-weight: 900; color: #6366f1; text-transform: uppercase; letter-spacing: 0.5rem; margin-bottom: 25px; }
.inst-headline { font-family: 'Poppins', sans-serif; font-size: 4.5rem; font-weight: 900; color: #0f172a; line-height: 1.1; letter-spacing: -0.04em; }

.inst-marquee-wrapper { 
    position: relative; width: 100%; overflow: hidden; 
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.inst-marquee-container { display: flex; width: fit-content; animation: instMarquee 60s linear infinite; gap: 40px; padding: 40px 0; }
.inst-marquee-container:hover { animation-play-state: paused; }

@keyframes instMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.inst-card { 
    flex-shrink: 0; width: 420px; padding: 45px;
    background: rgba(255, 255, 255, 0.7); 
    backdrop-filter: blur(20px) saturate(180%); 
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5); 
    border-radius: 40px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.03);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex; flex-direction: column; gap: 30px; cursor: pointer;
}

.inst-card:hover { 
    transform: translateY(-20px) scale(1.05) !important; 
    background: #fff; border-color: #6366f1;
    box-shadow: 0 40px 100px rgba(99,102,241,0.12);
}

.inst-logo-box { height: 80px; display: flex; align-items: center; justify-content: flex-start; margin-bottom: 10px; }
.inst-logo-box img { max-height: 65px; width: auto; filter: grayscale(100%); opacity: 0.6; transition: 0.5s; }
.inst-card:hover .inst-logo-box img { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }

.inst-image-box { width: 100%; height: 260px; border-radius: 30px; overflow: hidden; position: relative; }
.inst-image-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.8s; }
.inst-card:hover .inst-image-box img { transform: scale(1.15); }

.inst-image-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 23, 42, 0.4), transparent); opacity: 0; transition: 0.5s; }
.inst-card:hover .inst-image-overlay { opacity: 1; }

.inst-name { font-family: 'Poppins', sans-serif; font-size: 1.6rem; font-weight: 800; color: #0f172a; margin: 0; letter-spacing: -0.02em; }
.inst-badge { display: inline-flex; padding: 6px 15px; background: rgba(99,102,241,0.05); color: #6366f1; font-size: 0.8rem; font-weight: 700; border-radius: 10px; margin-top: auto; align-self: flex-start; }

@media (max-width: 991px) {
    .inst-headline { font-size: 3.2rem; }
    .inst-card { width: 340px; padding: 30px; }
    .inst-image-box { height: 200px; }
}

/* Glass-Orbit Services Section (v2 - Frosted Pearl) */
.glass-services-section { padding: 180px 8%; background: #f8fafc; position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: center; }
.service-mesh-bg { 
    position: absolute; inset: 0; z-index: 1;
    background: 
        radial-gradient(circle at 10% 10%, rgba(99,102,241,0.2) 0, transparent 40%), 
        radial-gradient(circle at 90% 10%, rgba(244,63,94,0.15) 0, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(245,158,11,0.15) 0, transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(6,182,212,0.15) 0, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(139,92,246,0.15) 0, transparent 40%);
    filter: blur(100px); animation: serviceMeshPulse 20s ease-in-out infinite alternate;
}
@keyframes serviceMeshPulse { 
    0% { opacity: 0.5; transform: scale(1) rotate(0deg); } 
    50% { opacity: 0.8; transform: scale(1.1) rotate(5deg); }
    100% { opacity: 0.6; transform: scale(1) rotate(-5deg); } 
}

/* Light-Bauhaus Color-Blocking (v1) - Reinforced structural anchors */
.bauhaus-container { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; opacity: 0.4; }
.bauhaus-block { position: absolute; filter: blur(40px); animation: bauhausFloat 60s linear infinite alternate; }

.block-circle { width: 600px; height: 600px; border-radius: 50%; background: hsla(239, 84%, 67%, 0.08); bottom: -100px; right: -100px; }
.block-rect { width: 400px; height: 800px; background: hsla(330, 81%, 60%, 0.08); top: -200px; left: -100px; transform: rotate(-15deg); }
.block-square { width: 300px; height: 300px; background: hsla(38, 92%, 50%, 0.08); top: 20%; right: 10%; transform: rotate(45deg); }

@keyframes bauhausFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(10deg); }
}

.service-pattern-bg { 
    position: absolute; inset: 0; opacity: 0.02; z-index: 3; pointer-events: none;
    background-image: radial-gradient(#6366f1 1px, transparent 1px);
    background-size: 40px 40px;
    animation: patternDrift 40s linear infinite;
}

/* Animating World Map Background (v2) */
.service-world-map {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image: url('assets/world-map-dots.png');
    background-repeat: repeat-x;
    background-size: contain;
    background-position: center;
    opacity: 0.08;
    mix-blend-mode: luminosity;
    pointer-events: none;
    animation: worldMapGlide 80s linear infinite;
}

@keyframes worldMapGlide {
    from { background-position: 100% center; }
    to { background-position: -100% center; }
}

@keyframes patternDrift { 0% { background-position: 0 0; } 100% { background-position: 40px 40px; } }

.glass-orbit-container { max-width: 1440px; margin: 0 auto; z-index: 5; position: relative; width: 100%; }
.service-header { margin-bottom: 80px; }
.service-pre { display: block; font-size: 0.9rem; font-weight: 900; color: #6366f1; text-transform: uppercase; letter-spacing: 0.4rem; margin-bottom: 20px; }
.service-headline { font-family: 'Poppins', sans-serif; font-size: 4rem; font-weight: 900; color: #0f172a; line-height: 1.1; margin-bottom: 20px; }
.service-sub { font-size: 1.5rem; color: #475569; font-weight: 300; }

.services-orbit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.service-panel { 
    padding: 60px 40px; height: 100%; text-align: center; border-radius: 40px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 30px;
    /* Frosted Pearl Texture */
    background: rgba(255, 255, 255, 0.7); 
    backdrop-filter: blur(25px) saturate(200%); 
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.4); 
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.08);
}

/* Icon Auras - Adjusted for Light Mode */
.service-aura { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.08; transition: 0.5s; z-index: -1; }
.aura-indigo { background: radial-gradient(circle at center, #6366f1, transparent); }
.aura-emerald { background: radial-gradient(circle at center, #10b981, transparent); }
.aura-cyan { background: radial-gradient(circle at center, #06b6d4, transparent); }
.aura-rose { background: radial-gradient(circle at center, #f43f5e, transparent); }
.aura-amber { background: radial-gradient(circle at center, #f59e0b, transparent); }
.aura-violet { background: radial-gradient(circle at center, #8b5cf6, transparent); }

.service-panel:hover .service-aura { opacity: 0.15; transform: scale(1.3); }

.service-icon { 
    width: 100px; height: 100px; border-radius: 35px; 
    background: #fff; border: 1px solid rgba(99,102,241,0.1);
    display: flex; align-items: center; justify-content: center; 
    color: #6366f1; font-size: 2.8rem; transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(99,102,241,0.1);
}
.service-panel:hover .service-icon { background: #6366f1; border-color: transparent; transform: translateY(-10px) rotate(10deg); color: #fff; box-shadow: 0 20px 45px rgba(99,102,241,0.3); }

.service-title { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: #0f172a; 
    line-height: 1.3; 
    margin: 0; 
    transition: 0.4s; 
    white-space: nowrap; 
}
.service-desc { 
    font-size: 17px; 
    color: #475569; 
    font-weight: 300; 
    margin: 0; 
    line-height: 1.7; 
    max-width: 300px; 
}
.service-panel:hover .service-title { color: #6366f1; }

.service-glow { 
    position: absolute; bottom: 0; left: 50%; width: 50%; height: 2px; 
    background: linear-gradient(to right, transparent, #6366f1, transparent);
    transform: translateX(-50%) scaleX(0); transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.service-panel:hover .service-glow { transform: translateX(-50%) scaleX(1); }

@media (max-width: 1200px) {
    .services-orbit-grid { grid-template-columns: repeat(2, 1fr); }
    .service-headline { font-size: 3rem; }
}
@media (max-width: 768px) {
    .services-orbit-grid { grid-template-columns: 1fr; }
    .glass-services-section { padding: 80px 20px; }
    .service-panel { padding: 40px 20px; }
    .service-headline { font-size: 2.2rem; }
    .service-sub { font-size: 1.1rem; white-space: nowrap; }
}

/* 3. Premium Institutions Showcase Section (The Crystal Infinite Stream v16) */
#crystal-stream-v16 {
    background-color: #0f172a !important; 
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.crystal-bloom {
    position: absolute;
    top: 50%; left: 50%;
    width: 150%; height: 500px;
    background: radial-gradient(ellipse at center, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(236, 72, 153, 0.05) 50%, 
        transparent 80%);
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: blur(80px);
}

.crystal-header {
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 10;
}

.crystal-label {
    font-size: 1.5rem;
    font-weight: 800;
    color: #6366f1;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.crystal-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.04em;
}

/* Infinite Marquee Engine */
.crystal-marquee-container {
    position: relative;
    width: 100%;
    padding: 40px 0;
    z-index: 5;
    display: flex;
}

.crystal-track {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    /* Animation will be handled by JS/CSS for linear smoothness */
    animation: crystalGlide 45s linear infinite;
    width: max-content;
}

@keyframes crystalGlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* The Monolith Card v16 */
.crystal-monolith {
    flex: 0 0 350px;
    height: 480px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.crystal-monolith:hover {
    transform: scale(1.03); /* Stable Expansion */
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 40px 100px rgba(99, 102, 241, 0.2);
}

/* Prism Blade Architecture v17 */
.prism-blade {
    position: absolute;
    top: 0; left: 0;
    width: 150px; height: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.crystal-monolith:hover .prism-blade {
    background: rgba(255, 255, 255, 0.12);
    width: 170px;
}

/* The Luminous Emblem v17 */
.prism-logo-box {
    width: 125px;
    height: 125px;
    background: rgba(255, 255, 255, 0.95); /* Pearl High Contrast */
    border: 2px solid rgba(255, 255, 255, 0.6); /* Silver Edge */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 20;
}

.crystal-monolith:hover .prism-logo-box {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.5);
    border-color: #6366f1;
}

.prism-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* High Visibility Backdrop */
.crystal-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.5; /* High visibility */
    transition: opacity 0.5s ease;
}
.crystal-monolith:hover .crystal-backdrop { opacity: 0.75; }
.crystal-backdrop img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* Text Protection Mesh */
.crystal-backdrop::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 75%;
    background: linear-gradient(to top, #0f172a 0%, transparent 100%);
}

.crystal-info {
    position: relative;
    z-index: 15;
    padding: 40px 30px 40px 180px; /* Offset for wider Prism Blade */
    text-align: left;
    transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.crystal-monolith:hover .crystal-info { padding-left: 200px; }

.crystal-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.crystal-badge {
    font-size: 0.6rem;
    font-weight: 900;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* --- Global Header & Mobile Menu Modern Glass Styles (v6) --- */
:root {
    --m-navy: #0f172a;
    --m-accent: #6366f1;
    --m-text: #1e293b;
    --m-text-muted: #64748b;
    --m-glass: rgba(255, 255, 255, 0.9);
    --m-border: rgba(0, 0, 0, 0.05);
    --m-font-size: 16px;
    --m-height: 110px;
}

body { margin: 0; }

/* 1. Slim Integrated Top Bar */
.m-top-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 35px;
    background: #f1f5f9; /* Soft Matte Silver */
    color: #1e293b; /* Deep Slate Text */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    z-index: 1001;
    transition: 0.4s;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
body.scrolled .m-top-bar { transform: translateY(-100%); }
.m-top-bar a { color: inherit; text-decoration: none; transition: 0.3s; }
.m-top-bar a:hover { color: var(--m-accent); }
.m-top-info { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }

/* 2. Modern Glass Minimalist Header */
.m-header {
    position: fixed;
    top: 35px; left: 0; right: 0;
    height: var(--m-height);
    background: var(--m-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--m-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 3000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.scrolled .m-header {
    top: 0;
    height: 75px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

/* Multi-color Bottom Accent Line */
.m-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899, #3b82f6, #3bc7f6, #6366f1);
    background-size: 300% 100%;
    animation: mFlowLine 5s linear infinite;
    z-index: 10;
}

@keyframes mFlowLine {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Pure Crystal Floating Logo Section */
.m-logo-float {
    position: relative;
    background: transparent;
    padding: 5px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    z-index: 5;
    margin-right: 20px;
}

.m-logo img {
    max-height: 80px;
    width: auto;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.05));
}

/* Minimal Hover Feedback */
.m-logo-float:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.1));
}

body.scrolled .m-logo-float { margin-top: 0; }
body.scrolled .m-logo img { max-height: 55px; }

/* Navigation Menu */
.m-nav { display: flex; align-items: center; gap: 30px; }
.m-nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: 5px; }

.m-nav-item { position: relative; }
.m-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    color: var(--m-text);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: var(--m-font-size);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: 10px;
    transition: all 0.3s;
}
.m-nav-link i { font-size: 0.75rem; opacity: 0.4; transition: 0.3s; }
.m-nav-item:hover > .m-nav-link { background: rgba(99, 102, 241, 0.05); color: var(--m-accent); }
.m-nav-item:hover > .m-nav-link i { transform: rotate(180deg); opacity: 1; color: var(--m-accent); }

/* 3. Standard Vertical Dropdowns (No Mega Menu) */
.m-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 240px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.04);
    z-index: 100;
}
.m-nav-item:hover .m-dropdown { opacity: 1; visibility: visible; transform: translateY(5px); }

.m-dropdown-list { list-style: none; padding: 0; margin: 0; }
.m-dropdown-link {
    display: block;
    padding: 10px 15px;
    color: var(--m-text-muted);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: 0.3s;
}
.m-dropdown-link:hover { background: #f8fafc; color: var(--m-accent); transform: translateX(5px); }

/* Modern Action CTA */
.m-cta {
    position: relative;
    padding: 12px 35px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff !important;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 0px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.25);
}

.m-cta-text { transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
.m-cta-icon {
    position: absolute;
    right: 20px;
    transform: translateX(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    font-size: 1.1rem;
}

.m-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.35);
    padding-right: 45px;
}

.m-cta:hover .m-cta-text { transform: translateX(-5px); }
.m-cta:hover .m-cta-icon { transform: translateX(0); opacity: 1; }

/* Shine Sweep Animation */
.m-cta::after {
    content: '';
    position: absolute;
    top: -50%; left: -60%;
    width: 50px; height: 200%;
    background: rgba(255,255,255,0.2);
    transform: rotate(30deg);
    transition: 0.8s;
    pointer-events: none;
}
.m-cta:hover::after { left: 120%; }

/* 4. The Aurora Lateral (Mobile Redesign v8) */
.m-mobile-toggle {
    display: none;
    width: 45px; height: 45px;
    background: transparent; border: none; cursor: pointer;
    position: relative; z-index: 4000;
}
.m-burger {
    display: block; width: 26px; height: 2px;
    background: var(--m-navy); margin: 0 auto;
    position: relative; transition: 0.4s;
}
.m-burger::before, .m-burger::after {
    content: ''; position: absolute; width: 100%; height: 2px;
    background: var(--m-navy); transition: 0.4s;
}
.m-burger::before { top: -8px; }
.m-burger::after { bottom: -8px; }

/* Minimalist Morph */
.mobile-open .m-burger { background: transparent; }
.mobile-open .m-burger::before { transform: rotate(45deg); top: 0; background: var(--m-navy); }
.mobile-open .m-burger::after { transform: rotate(-45deg); bottom: 0; background: var(--m-navy); }

.m-mobile-overlay {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 340px; max-width: 90vw;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    z-index: 3500;
    display: flex; flex-direction: column;
    padding: 100px 40px 40px;
    box-shadow: -15px 0 50px rgba(0,0,0,0.1);
    transform: translateX(105%);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.mobile-open .m-mobile-overlay { transform: translateX(0); }

.m-mobile-list { list-style: none; padding: 0; margin: 0; }
.m-mobile-item { border-bottom: 1px solid rgba(0,0,0,0.05); }

.m-mobile-link-wrapper { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 22px 0; cursor: pointer; transition: 0.3s;
}
.m-mobile-link { 
    font-family: 'Poppins', sans-serif; 
    font-size: 1.25rem; font-weight: 700; 
    color: var(--m-navy); text-decoration: none; 
    letter-spacing: -0.01em;
}
.m-mobile-link-wrapper i { font-size: 0.8rem; color: var(--m-text-muted); transition: 0.3s; }
.m-mobile-item.active .m-mobile-link-wrapper i { transform: rotate(180deg); color: var(--m-accent); }
.m-mobile-item.active .m-mobile-link { color: var(--m-accent); }

/* Accordion Logic */
.m-mobile-sub-container { 
    max-height: 0; overflow: hidden; 
    transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
}
.m-mobile-item.active .m-mobile-sub-container { max-height: 500px; }

.m-mobile-sub { list-style: none; padding: 0 0 20px 0; margin: 0; }
.m-mobile-sub-link { 
    font-family: 'Poppins', sans-serif; 
    font-size: 1rem; color: var(--m-text-muted); 
    text-decoration: none; display: block; 
    padding: 10px 0; transition: 0.3s;
}
.m-mobile-sub-link:hover { color: var(--m-accent); padding-left: 5px; }

.m-mobile-footer { 
    margin-top: auto; padding-top: 30px; 
    opacity: 0; transform: translateY(20px);
    transition: all 0.6s 0.4s ease;
}
.mobile-open .m-mobile-footer { opacity: 1; transform: translateY(0); }

.m-mobile-cta {
    display: block; text-align: center;
    padding: 18px; background: var(--m-navy); color: #fff;
    text-decoration: none; font-weight: 700; font-size: 0.9rem;
    border-radius: 12px; transition: 0.3s;
}
.m-mobile-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(15,23,42,0.2); }

@media (max-width: 991px) {
    .m-nav, .m-top-bar { display: none; }
    .m-mobile-toggle { display: block; }
    .m-header { top: 0; height: 80px; padding: 0 25px; background: #fff !important; }
    body { padding-top: 80px; }
    body.mobile-open { overflow: hidden; }
}

/* --- Mobile Optimization v11 (Final Fix) --- */
@media (max-width: 768px) {
    .bento-item {
        padding: 30px 25px !important;
        display: block !important;
        height: auto !important;
        min-height: auto !important;
    }

    .bento-service-item .bento-card-content {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        height: auto !important;
        text-align: left !important;
    }
    
    .bento-icon-area {
        width: 60px !important;
        height: 60px !important;
        margin: 0 15px 0 0 !important;
        flex-shrink: 0 !important;
        font-size: 2rem !important;
        border-radius: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .bento-service-item h3 {
        margin: 0 !important;
        flex: 1 !important;
        font-size: 15px !important;
        line-height: 1.2 !important;
        text-transform: uppercase !important;
        font-weight: 800 !important;
        color: #0f172a !important;
    }
    
    .bento-service-item p {
        width: 100% !important;
        margin: 15px 0 !important;
        font-size: 15px !important;
        line-height: 1.6 !important;
        color: #64748b !important;
    }
    
    .bento-link {
        width: fit-content !important;
        margin: 0 !important;
        display: inline-flex !important;
    }

    /* Glass Content Group: Smaller Section */
    .glass-mosaic-section {
        padding: 60px 6% !important;
        min-height: auto !important;
    }
    
    .content-panel {
        padding: 35px 25px !important;
        border-radius: 30px !important;
    }
    
    .glass-headline {
        font-size: 1.6rem !important;
        margin-bottom: 20px !important;
    }
    
    .glass-label-badge {
        font-size: 0.75rem !important;
        margin-bottom: 15px !important;
    }

    .glass-text p {
        font-size: 15px !important;
        line-height: 1.6 !important;
        margin-bottom: 25px !important;
    }
    
    .btn-glass-cta {
        padding: 16px 30px !important;
        font-size: 0.95rem !important;
    }

    /* Hero Slider Height Reduction */
    .hero-reveal-wrapper {
        height: 75vh !important;
        min-height: 550px !important;
    }

    .modern-controls {
        bottom: 35px !important;
        left: 5% !important;
        right: 5% !important;
    }
    
    .segmented-progress {
        gap: 15px !important;
    }
    
    .seg-item {
        width: 30% !important;
    }

    .reveal-title {
        font-size: 2.2rem !important;
        margin-bottom: 20px !important;
    }

    .reveal-badge {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
    }

    /* Glass Services (Orbit) Mobile Optimization */
    .service-panel {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        text-align: left !important;
        padding: 30px 25px !important;
        gap: 20px !important;
        height: auto !important;
    }
    
    .service-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.8rem !important;
        margin: 0 !important;
        border-radius: 18px !important;
        flex-shrink: 0 !important;
    }
    
    .service-title {
        flex: 1 !important;
        font-size: 1.1rem !important;
        white-space: normal !important;
        margin: 0 !important;
    }
    
    .service-desc {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        font-size: 15px !important;
    }
    
    .service-glow {
        display: none !important;
    }

    /* Hide Mosaic Visuals on Mobile */
    .glass-visual {
        display: none !important;
    }
}
