:root {
    --primary: #26549E;
    --primary-mid: #3d71c4;
    --primary-lite: #6d9be8;
    --text-dark: #12284b;
    --text-mid: #1b3d75;
    --text-soft: #12284b;
}

/* ─── Base ─────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

body {
    background: url('../img/futuristic.png') no-repeat center center fixed;
    background-size: 100% 100%;
    font-family: 'Inter', 'Space Grotesk', 'Outfit', system-ui, sans-serif;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    color: var(--text-dark);
    animation: backgroundPan 60s ease-in-out infinite;
    letter-spacing: -0.01em;
}

@keyframes backgroundPan {
    0% {
        background-size: 110% 110%;
        background-position: 0% 0%;
    }

    25% {
        background-size: 115% 115%;
        background-position: 100% 0%;
    }

    50% {
        background-size: 120% 120%;
        background-position: 100% 100%;
    }

    75% {
        background-size: 115% 115%;
        background-position: 0% 100%;
    }

    100% {
        background-size: 110% 110%;
        background-position: 0% 0%;
    }
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(235, 243, 255, 0.85);
    z-index: -1;
    pointer-events: none;
}

/* ─── Header & Footer ───────────────────────────────── */
.main-header,
.footer {
    background: linear-gradient(135deg, #1a3565 0%, #26549E 60%, #1e4a8a 100%) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), 0 1px 0 rgba(255, 255, 255, 0.06);
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.25rem 0;
    border-bottom: 2px solid #FF5C0A;
    backdrop-filter: blur(10px);
}

/* Maintenance Announcement */
.maintenance-announcement {
    background: #FF5C0A;
    color: #fff;
    text-align: center;
    padding: 0.5rem;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 2000;
}


.header-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-logo {
    height: 38px;
}

.header-title {
    color: #fff;
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 1.43rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 0.9;
    margin: 0 !important;
    padding: 0 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.header-subtitle {
    color: rgba(255, 200, 120, 0.9);
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2.8px;
    line-height: 1;
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 3px !important;
}

.footer {
    padding: 0.3rem 0;
    color: rgba(255, 255, 255, 0.9);
    border-top: 2px solid #FF5C0A;
}

.x-small {
    font-size: 0.91rem;
}

/* ─── Animation ─────────────────────────────────────── */
.animate-up {
    animation: slideUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Page Wrapper ──────────────────────────────────── */
.portal-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2.5vw, 1.75rem);
}

/* ─── Hero Section ──────────────────────────────────── */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 10px 0;
    margin-top: -30px;
    background: transparent;
    position: relative;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: var(--primary);
    font-size: 0.97rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 5px 14px;
    border-radius: 50px;
    text-transform: uppercase;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 6px #22c55e;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 4px #22c55e;
    }

    50% {
        box-shadow: 0 0 12px #22c55e, 0 0 20px #22c55e44;
    }
}

/* Hero Title */
.hero-title {
    font-size: clamp(1.69rem, 4vw, 2.39rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin: 0;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
}

.hero-title-accent {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
}

/* Hero Description */
.hero-description {
    font-size: clamp(1.38rem, 3vw, 1.48rem);
    line-height: 1.7;
    color: #002244;
    font-weight: 600;
    width: 100%;
    margin: 0;
    text-align: justify;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.9), 0 0 15px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 255, 255, 0.9), 0 0 45px rgba(255, 255, 255, 0.6);
}

.hero-description strong {
    color: var(--primary);
    font-weight: 600;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat-value {
    font-size: clamp(1.34rem, 2.5vw, 1.59rem);
    font-weight: 600;
    color: var(--primary);
    line-height: 1;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.4);
}

.hero-stat-label {
    font-size: 0.91rem;
    font-weight: 600;
    color: #002244;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 3px;
}

.hero-stat-divider {
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, transparent, rgba(96, 165, 250, 0.4), transparent);
}

/* ─── Directory Header ──────────────────────────────── */
.dir-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.dir-header-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(96, 165, 250, 0.5), transparent);
}

.dir-header-text {
    text-align: center;
    flex-shrink: 0;
}

.dir-title {
    font-size: clamp(1.29rem, 3vw, 1.54rem);
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 2px;
    text-shadow: 0 0 14px rgba(96, 165, 250, 0.5);
}

.dir-subtitle {
    font-size: clamp(0.97rem, 2vw, 1.07rem);
    color: #002244;
    font-weight: 600;
    margin: 0;
    opacity: 1;
}

/* ─── About Section ─────────────────────────────────── */
.about-section {
    width: 100%;
}

.about-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: clamp(1rem, 2vw, 1.25rem) clamp(1rem, 2vw, 1.5rem);
    border-radius: 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.about-card-icon {
    font-size: 1.79rem;
    flex-shrink: 0;
    margin-top: 2px;
    line-height: 1;
}

.about-card-title {
    font-size: clamp(1.24rem, 3vw, 1.39rem);
    font-weight: 600;
    color: #002244;
    margin-bottom: 0.6rem;
    letter-spacing: 0.2px;
}

.about-card-text {
    font-size: clamp(1.07rem, 2vw, 1.14rem);
    line-height: 1.75;
    color: #002244;
    font-weight: 600;
    margin-bottom: 0.6rem;
    text-align: justify;
    text-shadow: 0 0 4px rgba(255, 255, 255, 1), 0 0 10px rgba(255, 255, 255, 0.9), 0 0 25px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.6);
}

.about-card-text strong {
    color: var(--primary);
    font-weight: 600;
}

/* ─── Module Grid ───────────────────────────────────── */
.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(8px, 1.5vw, 12px);
    width: 100%;
}

@media (max-width: 900px) {
    .module-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .module-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Module Card ───────────────────────────────────── */
.module-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: clamp(10px, 1.5vw, 14px) clamp(12px, 2vw, 16px);
    border-radius: 12px;
    text-decoration: none;
    overflow: hidden;
    background: rgba(139, 188, 249, 0.15);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.module-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.module-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6), inset 0 0 40px rgba(4, 113, 246, 0.564);
}

.module-card:hover::before {
    opacity: 1;
    border-color: #67A4F4;
}

/* Hover glow blob */
.module-card-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: #8b66f417;
    opacity: 0;
    filter: blur(16px);
    border-radius: 50%;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.module-card:hover .module-card-glow {
    opacity: 0.18;
}

/* Body */
.module-body {
    flex: 1;
    min-width: 0;
    z-index: 1;
    width: 100%;
}

/* Icon + Title header row */
.module-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

/* Icon wrap */
.module-icon-wrap {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    background: transparent;
    position: relative;
    z-index: 1;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.module-card:hover .module-icon-wrap {
    transform: scale(1.12) rotate(-3deg);
}

.module-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: filter 0.3s ease;
}

.module-card:hover .module-img {
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

.module-fa-icon {
    font-size: 1.94rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
    transition: filter 0.3s ease;
}

.module-card:hover .module-fa-icon {
    filter: drop-shadow(0 0 10px #BAD8FD);
}

/* Body */
.module-body {
    flex: 1;
    min-width: 0;
    z-index: 1;
}

.module-title {
    font-weight: 600;
    font-size: clamp(1.14rem, 2.5vw, 1.24rem);
    color: #131480;
    margin: 0;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: text-shadow 0.3s ease;
}

.module-card:hover .module-title {
    text-shadow: 0 0 16px rgba(186, 216, 253, 0.8);
}

.module-desc {
    font-size: clamp(0.99rem, 2vw, 1.07rem);
    color: #002244;
    margin: 0;
    line-height: 1.5;
    font-weight: 600;
    text-align: justify;
    text-shadow: 0 0 4px rgba(255, 255, 255, 1), 0 0 10px rgba(255, 255, 255, 0.9), 0 0 25px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.6);
}

/* Arrow */
.module-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.1);
    color: var(--primary);
    font-size: 0.97rem;
    flex-shrink: 0;
    z-index: 1;
    transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.module-card:hover .module-arrow {
    background: #BAD8FD;
    color: #fff;
    transform: translateX(3px);
}

/* ─── Responsive Tweaks ─────────────────────────────── */
@media (max-width: 480px) {
    .hero-section::before {
        border-left-width: 3px;
    }

    .hero-stats {
        gap: 1rem;
    }

    .module-card {
        padding: 14px 16px;
        gap: 14px;
    }

    .module-arrow {
        display: none;
    }
}

/* ─── Taglines Section ──────────────────────────────── */
.taglines-section {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    animation-delay: 0.3s;
}

.tagline-card {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.tagline-card:hover {
    transform: translateY(-3px);
}

.tagline-icon-wrap {
    background: rgba(103, 164, 244, 0.2);
    padding: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tagline-img {
    object-fit: contain;
}

.tagline-img--speed {
    width: 42px;
    height: 42px;
}

.tagline-img--secure {
    width: 37px;
    height: 37px;
}

.tagline-text {
    display: flex;
    flex-direction: column;
}

.tagline-title {
    margin: 0 0 4px 0;
    color: #FF5C0A;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.6);
}

.tagline-desc {
    margin: 0;
    color: #002244;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.9;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}