:root {
    --navbar-height: 74px;
    --navbar-height-scrolled: 66px;
    --navbar-bg: rgba(255,255,255,.84);
    --navbar-border: rgba(0,0,0,.08);
    --dropdown-shadow: 0 14px 40px rgba(0,0,0,.08),0 3px 10px rgba(0,0,0,.04);
    --hover-bg: #f5f7fb;
    --text-color: #2f3944;
    --primary-soft: #eef4ff;
    --primary: #0d6efd;
    --desc-color: #5a6672;
    --section-padding: 90px;
    --card-radius: 20px;
    --soft-shadow: 0 10px 35px rgba(0,0,0,.05);
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    font-family: 'Nunito',sans-serif;
    padding-top: var(--navbar-height);
    background: #fff;
    animation: fadePage .22s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-color);
}

@keyframes fadePage {
    from {
        opacity: 0;
        transform: translateY(2px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: var(--navbar-bg);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--navbar-border);
    transition: all .22s ease;
}

    .main-navbar.scrolled {
        min-height: var(--navbar-height-scrolled);
        background: rgba(255,255,255,.94);
        box-shadow: 0 6px 24px rgba(0,0,0,.07);
    }

.navbar-inner {
    min-height: var(--navbar-height);
    transition: min-height .2s ease;
}

.main-navbar.scrolled .navbar-inner {
    min-height: var(--navbar-height-scrolled);
}

.navbar-brand-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-brand-img {
    max-width: 220px;
    width: 100%;
    height: auto;
    transition: transform .2s ease,max-width .2s ease,opacity .2s ease;
}

.main-navbar.scrolled .navbar-brand-img {
    max-width: 198px;
}

.navbar-brand-img:hover {
    transform: scale(1.02);
    opacity: .96;
}

.navbar-toggler {
    border: none;
    box-shadow: none !important;
    border-radius: 12px;
    padding: .58rem .72rem;
    transition: background .18s ease,transform .18s ease;
}

    .navbar-toggler:hover {
        background: #eef2f7;
        transform: translateY(-1px);
    }

.navbar-nav {
    align-items: center;
}

    .navbar-nav > .nav-item {
        position: relative;
        margin-right: 4px;
        padding-right: 4px;
    }

        .navbar-nav > .nav-item:not(:last-child)::after {
            content: "";
            position: absolute;
            top: 50%;
            right: -2px;
            transform: translateY(-50%);
            width: 1px;
            height: 20px;
            background: rgba(0,0,0,.07);
        }

    .navbar-nav .nav-link {
        position: relative;
        color: var(--text-color) !important;
        font-size: .96rem;
        font-weight: 700;
        padding: .9rem .85rem !important;
        border-radius: 12px;
        white-space: nowrap;
        transition: background-color .18s ease,color .18s ease,transform .18s ease;
    }

        .navbar-nav .nav-link:hover {
            background: var(--hover-bg);
            color: #111 !important;
        }

        .navbar-nav .nav-link.active {
            background: #edf2f7;
            color: #111 !important;
        }

            .navbar-nav .nav-link.active::after {
                content: "";
                position: absolute;
                left: 14px;
                right: 14px;
                bottom: 6px;
                height: 3px;
                border-radius: 20px;
                background: linear-gradient(90deg,#5b8cff,#0d6efd);
            }

.mega-menu {
    width: 760px;
    max-width: 90vw;
    border: none;
    border-radius: 20px;
    padding: 1.15rem;
    margin-top: .8rem;
    box-shadow: var(--dropdown-shadow);
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transform-origin: top center;
    will-change: transform,opacity;
    transition: opacity .16s ease,transform .18s cubic-bezier(.2,.8,.2,1),visibility .18s;
}

    .mega-menu.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        display: block;
    }

.mega-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 16px;
}

.mega-section {
    background: #fff;
    border-radius: 16px;
    padding: .35rem;
}

.mega-header {
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #7b8794;
    margin-bottom: 10px;
    padding-left: 12px;
}

.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    padding: 13px;
    border-radius: 14px;
    transition: background-color .15s ease,transform .15s ease,box-shadow .15s ease;
}

    .mega-item:hover {
        background: var(--primary-soft);
        transform: translateY(-1px);
        box-shadow: 0 5px 16px rgba(0,0,0,.05);
        text-decoration: none;
    }

    .mega-item.active {
        background: #e9f2ff;
    }

        .mega-item.active .mega-title {
            color: var(--primary);
        }

.mega-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#eef4ff,#dde9ff);
    color: #3b5bdb;
    font-size: 1rem;
    transition: transform .18s ease;
}

.mega-item:hover .mega-icon {
    transform: scale(1.05);
}

.mega-content {
    min-width: 0;
}

.mega-title {
    font-weight: 700;
    font-size: .96rem;
    color: #1f2933;
    margin-bottom: 3px;
}

.mega-description {
    font-size: .84rem;
    line-height: 1.54;
    color: var(--desc-color);
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg,#5b8cff,#0d6efd);
    z-index: 2000;
    transition: width .08s linear;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-tight {
    padding: 60px 0;
}

.section-light {
    background: #f8fafc;
}

.content-width {
    max-width: 1320px;
    margin: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.hero-section {
    padding: 140px 0 110px;
    background: linear-gradient(180deg,#f8fbff 0%,#ffffff 100%);
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: "";
        position: absolute;
        top: -120px;
        right: -120px;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        background: radial-gradient(circle,rgba(13,110,253,.09),transparent 70%);
    }

.hero-title {
    font-size: clamp(2.6rem,5vw,4.6rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #111827;
    max-width: 900px;
    margin-bottom: 24px;
}

.hero-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #5f6b77;
    max-width: 820px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    transition: all .18s ease;
}

.btn-modern-primary {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 10px 30px rgba(13,110,253,.18);
}

    .btn-modern-primary:hover {
        background: #0b5ed7;
        color: #fff;
        transform: translateY(-1px);
    }

.btn-modern-secondary {
    background: #eef4ff;
    color: #0d6efd;
}

    .btn-modern-secondary:hover {
        background: #dde9ff;
        color: #0d6efd;
        transform: translateY(-1px);
    }

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-align: center;
    margin-bottom: 20px;
}

    .section-title h2 {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: clamp(2rem,4vw,3rem);
        font-weight: 800;
        letter-spacing: -.03em;
        color: #2c6f7c;
        margin-bottom: 14px;
    }

    .section-title p {
        font-size: 1.06rem;
        color: #2c6f7c;
        max-width: 780px;
        margin: auto;
        line-height: 1.8;
    }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 28px;
    margin-top: 50px;
}

.card-soft {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 34px;
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(0,0,0,.04);
    transition: all .2s ease;
    height: 100%;
}

    .card-soft:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 45px rgba(0,0,0,.08);
    }

.card-soft-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#eef4ff,#dde9ff);
    color: #0d6efd;
    font-size: 1.35rem;
    margin-bottom: 22px;
}

.card-soft h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1f2933;
    margin-bottom: 12px;
}

.card-soft p {
    font-size: .98rem;
    line-height: 1.8;
    color: #2c6f7c;
    margin-bottom: 0;
}

.info-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.info-panel {
    background: #fff;
    border-radius: 24px;
    padding: 42px;
    box-shadow: var(--soft-shadow);
    color: #2c6f7c;
}

    .info-panel h3 {
        font-size: 2rem;
        font-weight: 800;
        margin-bottom: 20px;
        color: #2c6f7c;
    }

    .info-panel p {
        font-size: 1.02rem;
        line-height: 1.9;
        color: #2c6f7c;
    }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 24px;
    margin-top: 50px;
}

.stat-box {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--soft-shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0d6efd;
    line-height: 1;
}

.stat-label {
    margin-top: 10px;
    color: #66707c;
    font-weight: 700;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: .92rem;
}

    .footer-links a {
        text-decoration: none;
        color: #6c757d;
        transition: color .18s ease;
    }

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

.fade-in-section {
    opacity: 0;
    transform: translateY(18px);
    transition: all .5s ease;
}

    .fade-in-section.visible {
        opacity: 1;
        transform: none;
    }

.body-content {
    overflow-x: hidden;
}

footer {
    padding: 28px 0;
    color: #6c757d;
    font-size: .95rem;
    background: #fafbfc;
    border-top: 1px solid rgba(0,0,0,.05);
}

@media (max-width:1450px) {
    .navbar-brand-img {
        max-width: 185px;
    }

    .navbar-nav .nav-link {
        font-size: .92rem;
        padding-left: .55rem !important;
        padding-right: .55rem !important;
    }

    .mega-menu {
        width: 680px;
    }
}

@media (max-width:1199px) {
    body {
        padding-top: 72px;
    }

    .navbar-collapse {
        margin-top: 14px;
        padding-bottom: 15px;
    }

    .navbar-nav {
        align-items: stretch;
    }

        .navbar-nav > .nav-item {
            margin-right: 0;
            padding-right: 0;
        }

            .navbar-nav > .nav-item::after {
                display: none;
            }

        .navbar-nav .nav-link {
            white-space: normal;
            padding: 1rem !important;
            border-radius: 14px;
        }

    .mega-menu {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        display: none;
        position: static !important;
        border: none;
        box-shadow: none;
        padding: .5rem 0 .8rem 1rem;
        width: auto;
        max-width: none;
        background: transparent;
        backdrop-filter: none;
    }

        .mega-menu.show {
            display: block;
        }

    .mega-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 120px 0 90px;
    }

    .info-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stats-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .navbar-brand-img {
        max-width: 165px;
    }
}

@media (max-width:768px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 70px 0;
    }

    .card-soft {
        padding: 28px;
    }
}

footer {
    background: rgba(8,22,38,.82);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 20px 0 !important;
}

    footer a {
        color: rgba(255,255,255,.72) !important;
    }

        footer a:hover {
            color: #fff !important;
        }

    footer .text-center {
        color: rgba(255,255,255,.5) !important;
    }

.mega-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 18px;
    opacity: .96;
}

.mega-section {
    position: relative;
}

.mega-image img {
    filter: saturate(.92);
    width: 260px;
    height: auto;
    display: block;
}

.mega-content,
.mega-header,
.mega-item {
    position: relative;
    z-index: 2;
}

.mega-image {
    position: absolute;
    right: 0;
    bottom: 20px;
    width: 320px;
    z-index: 1;
    opacity: .92;
    pointer-events: none;
}
