/* Custom CSS for Eduarea Landing Page System (Ultra-Modern Dark Theme) */
:root {
    --primary-blue: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --accent-blue: #38bdf8;
    --accent-purple: #8b5cf6;
    --bg-dark-page: #050814;
    --bg-dark-surface: #0b1120;
    --bg-card-dark: #0f172a;
    --bg-card-glass: rgba(15, 23, 42, 0.75);
    --text-white: #f8fafc;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --border-dark: rgba(255, 255, 255, 0.08);
    --border-dark-hover: rgba(59, 130, 246, 0.35);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --card-hover-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

body {
    font-family: 'Lato', system-ui, -apple-system, sans-serif;
    color: var(--text-light);
    background-color: var(--bg-dark-page);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading, .text-dark {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    color: var(--text-white) !important;
}

.text-secondary, .text-muted {
    color: var(--text-muted) !important;
}

.bg-white {
    background-color: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.bg-light, .bg-light-blue {
    background-color: #080d1a !important;
}

.border, .border-top, .border-bottom, .border-start, .border-end {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.card {
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}

/* --- Top Header Bar --- */
.top-header-bar {
    background-color: #03060d;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-header-bar a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-header-bar a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* --- Main Navbar --- */
.navbar-custom {
    background-color: rgba(5, 8, 20, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.85rem 0;
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-custom.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(5, 8, 20, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
}

.navbar-brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
    transition: transform 0.3s ease;
}

.navbar-brand-custom:hover .navbar-brand-icon {
    transform: rotate(5deg) scale(1.05);
}

.nav-link-custom {
    font-weight: 600;
    font-size: 0.95rem;
    color: #94a3b8;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link-custom:hover, 
.nav-link-custom.active {
    color: #60a5fa;
    background-color: rgba(59, 130, 246, 0.12);
}

.btn-demo-nav {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff !important;
    font-weight: 700;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    border: none;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-demo-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.55);
    color: #ffffff !important;
}

/* --- Hero Section & Liquid Ether Background --- */
.hero-wrapper {
    position: relative;
    background-color: #050814;
    padding: 6rem 0 7rem 0;
    overflow: hidden;
}

.hero-liquid-ether-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    touch-action: none;
    pointer-events: auto;
}

.hero-ether-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 65% 45%, rgba(5, 8, 20, 0.25) 0%, rgba(5, 8, 20, 0.88) 80%);
    z-index: 2;
    pointer-events: none;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(59, 130, 246, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #60a5fa;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.3rem;
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 580px;
}

/* Hero Right Floating Graphic */
.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-frame {
    position: relative;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(37, 99, 235, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #0b1120;
}

/* Floating 3D Badges (Dark Mode) */
.floating-badge {
    position: absolute;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation: float 4s ease-in-out infinite;
}

.badge-ai {
    top: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    color: #f43f5e;
    font-size: 1.2rem;
    animation-delay: 0s;
}

.badge-cart {
    bottom: -10px;
    left: 45%;
    width: 54px;
    height: 54px;
    color: #fbbf24;
    font-size: 1.3rem;
    animation-delay: 1.5s;
}

.badge-shield {
    top: 40%;
    right: -15px;
    width: 50px;
    height: 50px;
    color: #38bdf8;
    font-size: 1.25rem;
    animation-delay: 2.5s;
}

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

/* --- Section Titles --- */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3.5rem auto;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
}

.section-title-line {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: 4px;
    margin: 0.8rem 0 0 0;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* --- Book a Demo Section (Dark Glass Style) --- */
.demo-section-wrapper {
    background-color: #080d1a;
    padding: 5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.demo-form-card {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.demo-form-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin-bottom: 1.75rem;
}

.form-control-custom {
    height: 48px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: rgba(6, 9, 19, 0.85);
    color: #f8fafc;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control-custom:focus {
    background-color: rgba(10, 15, 30, 0.95);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    color: #ffffff;
    outline: none;
}

.form-control-custom::placeholder {
    color: #64748b;
}

textarea.form-control-custom {
    height: auto;
}

.btn-submit-demo {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.85rem;
    border-radius: 8px;
    border: none;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-submit-demo:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

/* --- Video Walkthrough Section (Dark Style) --- */
.video-section-wrapper {
    padding: 5rem 0;
    background-color: #050814;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.video-player-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0b1120;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.video-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    transition: scale 0.5s ease;
}

.video-player-box:hover .video-poster-img {
    scale: 1.03;
    opacity: 0.9;
}

.play-btn-overlay {
    position: absolute;
    width: 70px;
    height: 48px;
    background-color: #ef4444;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.5);
    transition: all 0.3s ease;
}

.video-player-box:hover .play-btn-overlay {
    transform: scale(1.15);
    background-color: #dc2626;
}

/* --- Features & Module Grid (Dark Style) --- */
.features-section-wrapper {
    background-color: #080d1a;
    padding: 5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 2.2rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--card-shadow);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: var(--card-hover-shadow);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1);
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

.feature-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.85rem;
}

.feature-card-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ALWAYS VISIBLE SLEEK "LEARN MORE" BUTTON WITH HOVER LIFT */
.btn-learn-more-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    background-color: #eff6ff;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 1.5rem;
    border-radius: 25px;
    border: 1px solid #bfdbfe;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-top: auto;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover, .why-choose-card:hover, .team-pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
    border-color: #dbeafe;
}

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

.feature-card:hover .feature-icon-wrapper,
.why-choose-card:hover .why-icon-box {
    background: var(--primary-blue);
    color: #ffffff !important;
    transform: scale(1.08);
}

.feature-card:hover .btn-learn-more-card,
.why-choose-card:hover .btn-learn-more-card,
.team-pillar-card:hover .btn-learn-more-card {
    background-color: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 8px 20px rgba(9, 71, 202, 0.3);
    transform: translateY(-3px) scale(1.03) !important;
}

.btn-learn-more-card:hover {
    background-color: var(--primary-dark) !important;
    color: #ffffff !important;
    border-color: var(--primary-dark) !important;
}

/* --- Transform CTA Dark Banner (AT VERY BOTTOM RIGHT ABOVE FOOTER) --- */
.transform-cta-banner {
    background: linear-gradient(135deg, #031a61 0%, #072ac8 100%);
    color: #ffffff;
    padding: 4.5rem 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(3, 26, 97, 0.25);
    position: relative;
    overflow: hidden;
    margin: 5rem 0 3rem 0;
}

.transform-cta-banner::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.transform-cta-title {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.transform-cta-desc {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.65;
    max-width: 850px;
    margin: 0 auto 2.25rem auto;
}

/* --- WHY CHOOSE CARDS (Matching User Screenshot 1) --- */
.why-choose-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.2rem 1.8rem;
    border: 1px solid #eef2f6;
    box-shadow: 0 8px 24px rgba(9, 71, 202, 0.05);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.why-choose-card-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
}

.why-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.why-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.85rem;
    line-height: 1.3;
}

.why-card-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* --- TEAM PILLARS CARDS (Image 1 Style) --- */
.team-pillar-card {
    background-color: #eaf7fa;
    border-radius: 28px;
    padding: 3rem 2rem;
    border: 1px solid #cceef5;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(9, 71, 202, 0.04);
}

.team-pillar-icon-box {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ffffff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 8px 20px rgba(9, 71, 202, 0.1);
    margin-bottom: 1.75rem;
    transition: transform 0.3s ease;
}

.team-pillar-card:hover .team-pillar-icon-box {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-blue);
    color: #ffffff;
}

.team-pillar-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.team-pillar-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* --- CLIENT LOGOS SECTION (Image 2 Style) --- */
.clients-potential-section {
    background-color: #ebf6fa;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.client-logo-badge {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.1rem 1.4rem;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 800;
    color: var(--primary-dark);
    font-size: 0.92rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    height: 100%;
}

.client-logo-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(9, 71, 202, 0.12);
    border-color: var(--primary-blue);
}

.client-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* --- TESTIMONIAL SLIDER SECTION (Image 3 Style) --- */
.testimonials-section-dark {
    background: linear-gradient(135deg, #031a61 0%, #06277e 100%);
    color: #ffffff;
    padding: 6rem 0 5rem 0;
    position: relative;
    overflow: hidden;
}

.testimonial-card-light {
    background-color: #e6f4f8;
    border-radius: 28px;
    padding: 3.5rem 3rem;
    color: var(--text-dark);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    transition: all 0.4s ease;
}

.testimonial-quote-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #334155;
    font-weight: 500;
    margin-bottom: 2rem;
}

.testimonial-avatar-frame {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.testimonial-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-nav-btn:hover {
    background: #ffffff;
    color: var(--primary-dark);
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 2rem;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    width: 28px;
    border-radius: 10px;
    background: #ffffff;
}

/* --- FAQ ACCORDION SECTION (Image 4 Style) --- */
.faq-landing-section {
    background-color: #ebf6fa;
    padding: 6rem 0;
}

.faq-card-item {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.faq-card-button {
    width: 100%;
    text-align: left;
    background: #ffffff;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.faq-card-button:hover {
    background-color: #f8fafc;
}

.faq-card-body {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: #475569;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Sub-pages Styling */
.page-header-wrapper {
    background: linear-gradient(135deg, #031a61 0%, #0947ca 100%);
    color: #ffffff;
    padding: 4.5rem 0 3.5rem 0;
    text-align: center;
    position: relative;
}

.page-header-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.page-header-lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 650px;
    margin: 0 auto;
}

/* Modal Styling */
.modal-content-custom {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header-custom {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: #ffffff;
    padding: 1.5rem 2rem;
    border: none;
}

.modal-body-custom {
    padding: 2rem;
}

/* Footer Styling */
.footer-wrapper {
    background-color: var(--bg-dark-blue);
    color: #cbd5e1;
    padding: 4.5rem 0 2rem 0;
    font-size: 0.95rem;
}

.footer-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.88rem;
}

/* --- Mobile Navigation Adjustments --- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #ffffff;
        padding: 1rem 0.5rem 0.5rem 0.5rem;
        border-top: 1px solid #f1f5f9;
        margin-top: 0.75rem;
    }
    
    .nav-link-custom {
        padding: 0.6rem 1rem !important;
        font-size: 0.95rem;
    }
    
    .top-header-bar {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   REACTBITS SPLIT FLAP TEXT ANIMATION COMPONENT (Mechanical Departure Board)
   ========================================================================== */

.split-flap-hero-card {
    background: linear-gradient(145deg, #090e1a 0%, #0d172e 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 12px 35px rgba(2, 6, 23, 0.35), 0 0 20px rgba(59, 130, 246, 0.12);
    display: inline-block;
    max-width: 100%;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.split-flap-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #38bdf8, transparent);
}

.split-flap-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.split-flap-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #94a3b8;
    text-transform: uppercase;
    font-family: 'SFMono-Regular', 'Roboto Mono', 'Cascadia Code', Menlo, Consolas, monospace;
}

.split-flap-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: splitFlapPulse 1.8s infinite ease-in-out;
}

@keyframes splitFlapPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.35);
        opacity: 0.55;
    }
}

.split-flap-chip {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
    letter-spacing: 0.04em;
}

.split-flap-board-surface {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.split-flap-board-surface::-webkit-scrollbar {
    display: none;
}

/* ReactBits Split Flap Core */
.split-flap-text {
    --split-flap-tile-color: #111827;
    --split-flap-text-color: #f8fafc;
    --split-flap-radius: 6px;
    --split-flap-gap: 5px;
    --split-flap-font-size: 28px;
    --split-flap-flip-duration: 0.09s;

    display: inline-flex;
    align-items: center;
    gap: var(--split-flap-gap);
    color: var(--split-flap-text-color);
    font-family: 'SFMono-Regular', 'Roboto Mono', 'Cascadia Code', 'Liberation Mono', Menlo, Consolas, monospace;
    font-size: var(--split-flap-font-size);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    white-space: pre;
    user-select: none;
    font-variant-numeric: tabular-nums;
}

.split-flap-text__tile {
    position: relative;
    width: 0.78em;
    height: 1.1em;
    overflow: hidden;
    border-radius: var(--split-flap-radius);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 44%),
        linear-gradient(
            180deg,
            #1e293b,
            var(--split-flap-tile-color)
        );
    box-shadow:
        0 0.035em 0.08em rgba(255, 255, 255, 0.1) inset,
        0 -0.05em 0.1em rgba(0, 0, 0, 0.45) inset,
        0 0.16em 0.38em rgba(0, 0, 0, 0.35);
    perspective: 520px;
    transform-style: preserve-3d;
    isolation: isolate;
}

.split-flap-text__tile::before {
    content: '';
    position: absolute;
    z-index: 8;
    top: calc(50% - 0.5px);
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.22) 18%,
        rgba(0, 0, 0, 0.8) 50%,
        rgba(255, 255, 255, 0.18) 82%,
        transparent
    );
    box-shadow:
        0 -1px 0 rgba(255, 255, 255, 0.09),
        0 1px 0 rgba(0, 0, 0, 0.65);
    pointer-events: none;
}

.split-flap-text__tile::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: inherit;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25) inset;
    pointer-events: none;
}

.split-flap-text__half,
.split-flap-text__flap {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
        var(--split-flap-tile-color);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.split-flap-text__half--top,
.split-flap-text__flap--front {
    top: 0;
}

.split-flap-text__half--bottom,
.split-flap-text__flap--back {
    bottom: 0;
    background:
        linear-gradient(0deg, rgba(255, 255, 255, 0.06), transparent 38%),
        #0b1120;
}

.split-flap-text__char {
    position: absolute;
    left: 0;
    width: 100%;
    height: 200%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--split-flap-text-color);
    text-shadow:
        0 0.03em 0 rgba(255, 255, 255, 0.18),
        0 0.09em 0.18em rgba(0, 0, 0, 0.55);
}

.split-flap-text__half--top .split-flap-text__char,
.split-flap-text__flap--front .split-flap-text__char {
    top: 0;
}

.split-flap-text__half--bottom .split-flap-text__char,
.split-flap-text__flap--back .split-flap-text__char {
    bottom: 0;
}

.split-flap-text__flap {
    z-index: 6;
    will-change: transform, filter;
    transform-style: preserve-3d;
}

.split-flap-text__flap--front {
    transform-origin: center bottom;
    animation: split-flap-front var(--split-flap-flip-duration) cubic-bezier(0.23, 1, 0.32, 1) both;
}

.split-flap-text__flap--back {
    transform-origin: center top;
    transform: rotateX(90deg);
    animation: split-flap-back var(--split-flap-flip-duration) cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes split-flap-front {
    0% {
        transform: rotateX(0deg);
        filter: brightness(1.08);
    }
    100% {
        transform: rotateX(-90deg);
        filter: brightness(0.48);
    }
}

@keyframes split-flap-back {
    0%,
    45% {
        transform: rotateX(90deg);
        filter: brightness(0.55);
    }
    100% {
        transform: rotateX(0deg);
        filter: brightness(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .split-flap-text__flap {
        animation: none !important;
    }
}

/* Responsive Split Flap Sizes */
@media (max-width: 991.98px) {
    .split-flap-text {
        --split-flap-font-size: 24px;
        --split-flap-gap: 4px;
        --split-flap-radius: 5px;
    }
    .split-flap-hero-card {
        padding: 12px 14px;
    }
}

@media (max-width: 575.98px) {
    .split-flap-text {
        --split-flap-font-size: 16px;
        --split-flap-gap: 3px;
        --split-flap-radius: 4px;
    }
    .split-flap-hero-card {
        padding: 10px 10px;
        margin-bottom: 1.25rem;
    }
    .split-flap-status {
        font-size: 0.68rem;
    }
    .split-flap-chip {
        font-size: 0.65rem;
        padding: 2px 8px;
    }
}

@media (max-width: 400px) {
    .split-flap-text {
        --split-flap-font-size: 13.5px;
        --split-flap-gap: 2px;
        --split-flap-radius: 3px;
    }
}

/* ==========================================================================
   FULLSCREEN OPENING SCREEN (ReactBits Split Flap Grand Full-Width)
   ========================================================================== */

.landing-opening-screen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background-color: #060913;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s;
    overflow: hidden;
}

.landing-opening-screen.opening-screen--hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    pointer-events: none;
}

.opening-screen-center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 98vw;
    max-width: 1550px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.opening-screen-center::-webkit-scrollbar {
    display: none;
}

/* Split Flap Grand Sizing across full width */
.landing-opening-screen .split-flap-text {
    --split-flap-tile-color: #0f172a;
    --split-flap-text-color: #ffffff;
    --split-flap-radius: clamp(6px, 1vw, 14px);
    --split-flap-gap: clamp(4px, 0.8vw, 12px);
    --split-flap-font-size: clamp(24px, 6.2vw, 84px);
    --split-flap-flip-duration: 0.08s;
    width: auto;
    justify-content: center;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.7));
}

@media (max-width: 1400px) {
    .landing-opening-screen .split-flap-text {
        --split-flap-font-size: clamp(22px, 5.8vw, 68px);
        --split-flap-gap: 8px;
    }
}

@media (max-width: 768px) {
    .landing-opening-screen .split-flap-text {
        --split-flap-font-size: clamp(18px, 6vw, 32px);
        --split-flap-gap: 4px;
        --split-flap-radius: 5px;
    }
}

@media (max-width: 480px) {
    .landing-opening-screen .split-flap-text {
        --split-flap-font-size: clamp(14px, 6vw, 22px);
        --split-flap-gap: 2.5px;
        --split-flap-radius: 4px;
    }
}

