:root,
html[data-theme="green"] {
    --primary: #0f766e;
    --primary-light: #14b8a6;
    --primary-dark: #064e4e;
    --gold: #facc15;
    --gold-dark: #eab308;
    --dark: #0f172a;
    --white: #ffffff;
    --body-bg: #f8fafc;
    --text-dark: #1e293b;
}

html[data-theme="navy"] {
    --primary: #071f3a;
    --primary-light: #0b3a66;
    --primary-dark: #041426;
    --gold: #d6a84f;
    --gold-dark: #b8892f;
}

html[data-theme="blue"] {
    --primary: #1d4ed8;
    --primary-light: #38bdf8;
    --primary-dark: #172554;
    --gold: #facc15;
    --gold-dark: #eab308;
}

html[data-theme="maroon"] {
    --primary: #7f1d1d;
    --primary-light: #dc2626;
    --primary-dark: #450a0a;
    --gold: #facc15;
    --gold-dark: #eab308;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--body-bg);
    overflow-x: hidden;
    margin: 0;
    color: var(--text-dark);
}

/* TOPBAR */
.topbar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary)) !important;
    color: var(--white);
    font-size: 13px;
    min-height: 46px;
    position: relative;
    z-index: 1000;
    border-bottom: 2px solid var(--gold);
}

.topbar a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    margin-right: 28px;
    transition: .3s;
}

.topbar a:hover {
    color: var(--gold);
}

.topbar i {
    cursor: pointer;
    transition: .3s;
}

.topbar i:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

.topbar-search {
    width: 210px;
    position: relative;
}

.topbar-search input {
    width: 100%;
    height: 32px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.12);
    color: white;
    padding: 0 38px 0 14px;
    font-size: 12px;
    outline: none;
}

.topbar-search input::placeholder {
    color: #dbeafe;
}

.topbar-search button {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: var(--gold);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    transition: .3s;
    box-shadow: 0 6px 18px rgba(0,0,0,.2);
}

.theme-toggle-btn:hover {
    transform: translateY(-3px) rotate(15deg);
}

/* SOCIAL */
.social-icons a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    background: rgba(255,255,255,0.14);
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-icons a:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

.social-icons a:nth-child(1):hover {
    background: #E4405F;
}

.social-icons a:nth-child(2):hover {
    background: #1877F2;
}

.social-icons a:nth-child(3):hover {
    background: #FF0000;
}

.social-icons a:nth-child(4):hover {
    background: #000000;
}

/* THEME SWITCHER */
.theme-switcher {
    display: flex !important;
    align-items: center;
    gap: 7px;
    position: relative;
    z-index: 99999;
}

.theme-btn {
    width: 24px;
    height: 24px;
    display: inline-block;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.85);
    cursor: pointer;
    padding: 0;
    transition: .3s;
    text-decoration: none;
}

.theme-btn:hover {
    transform: scale(1.18);
    box-shadow: 0 0 0 4px rgba(255,255,255,.18);
}

.theme-green {
    background: #0f766e;
}

.theme-navy {
    background: #071f3a;
}

.theme-blue {
    background: #1d4ed8;
}

.theme-maroon {
    background: #7f1d1d;
}

/* NAVBAR */
.main-nav {
    background: linear-gradient(
        135deg,
        var(--primary-dark) 0%,
        var(--primary) 55%,
        var(--primary-light) 100%
    ) !important;
    min-height: 108px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .25);
    overflow: visible;
}

.main-nav::before {
    content: "";
    position: absolute;
    right: -70px;
    top: -90px;
    width: 260px;
    height: 260px;
    border: 14px solid color-mix(in srgb, var(--gold) 45%, transparent);
    border-radius: 50%;
    z-index: 1;
}

.main-nav::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 220px;
    height: 7px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark)) !important;
    border-radius: 50px 0 0 50px;
    z-index: 3;
}

.navbar .container-fluid {
    position: relative;
    z-index: 5;
}

.navbar-brand {
    color: white !important;
    border: 2px solid rgba(255,255,255,.88);
    border-radius: 10px;
    padding: 8px 16px;
    background: rgba(255,255,255,.09);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 28px rgba(0,0,0,.16);
    transition: .3s;
}

.navbar-brand:hover {
    background: rgba(255,255,255,.16);
    transform: translateY(-2px);
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 27px;
}

.brand-text {
    color: white;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .3px;
}

.navbar {
    overflow: visible !important;
}

.navbar-nav .dropdown-menu {
    position: absolute;
    z-index: 9999;
    top: 100%;
}

.navbar-nav .nav-link {
    position: relative;
    color: white !important;
    font-weight: 800;
    letter-spacing: 1.4px;
    font-size: 13px;
    padding: 18px 13px !important;
    transition: .3s;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 8px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    border-radius: 30px;
    transform: scaleX(0);
    transition: .3s;
}

.navbar-nav .nav-link:hover {
    color: var(--gold) !important;
}

.navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
}

/* DROPDOWN */
.dropdown-menu {
    border: none;
    border-radius: 0 0 18px 18px;
    padding: 14px;
    min-width: 270px;
    box-shadow: 0 20px 45px rgba(0,0,0,.22);
    border-top: 4px solid var(--gold);
}

.dropdown-item {
    padding: 11px 14px;
    border-radius: 11px;
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    transition: .25s;
}

.dropdown-item:hover {
    background: #ecfeff;
    color: var(--primary-dark);
    padding-left: 20px;
}

/* LOGIN & SEARCH */
.login {
    height: 46px;
    padding: 0 30px;
    background: rgba(15, 23, 42, .88);
    display: flex;
    align-items: center;
    font-weight: 700;
    color: white;
}

.search-box {
    height: 46px;
    width: 56px;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* HERO */
.hero {
    min-height: 670px;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, .84), rgba(15, 118, 110, .38), rgba(2, 6, 23, .64)),
        url("https://images.unsplash.com/photo-1607237138185-eedd9c632b0b?auto=format&fit=crop&w=1900&q=80");
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 850px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(250,204,21,.16);
    border: 1px solid rgba(250,204,21,.45);
    color: #fde68a;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 22px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 76px;
    line-height: .98;
    font-weight: 700;
    text-shadow: 0 10px 28px rgba(0,0,0,.45);
    margin-bottom: 22px;
}

.hero p {
    font-size: 20px;
    font-weight: 600;
    max-width: 680px;
    line-height: 1.7;
    margin-bottom: 40px;
    color: #f8fafc;
}

.btn-gold {
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    color: #111827;
    padding: 17px 34px;
    border-radius: 12px;
    font-weight: 800;
    border: none;
    transition: .3s;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(250, 204, 21, .25);
}

.btn-outline-hero {
    color: white;
    border: 1px solid rgba(255,255,255,.65);
    padding: 17px 30px;
    border-radius: 12px;
    font-weight: 700;
    margin-left: 10px;
    transition: .3s;
}

.btn-outline-hero:hover {
    background: white;
    color: var(--primary-dark);
}

/* QUICK CARD */
.quick-card {
    margin-top: -70px;
    position: relative;
    z-index: 10;
}

.glass-card {
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 26px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, .16);
    overflow: hidden;
}

.quick-item {
    padding: 28px 16px;
    border-right: 1px solid #e5e7eb;
}

.quick-item h3 {
    color: var(--primary-dark);
    font-weight: 800;
}

/* SECTION */
.section-title {
    color: var(--primary-dark);
    font-weight: 900;
    font-size: 36px;
}

.feature-box,
.prodi-card,
.news-card,
.service-card {
    transition: .3s;
}

.feature-box:hover,
.prodi-card:hover,
.news-card:hover,
.service-card:hover {
    transform: translateY(-6px);
}

.feature-box {
    padding: 26px;
    border-radius: 22px;
    background: white;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    height: 100%;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}

.prodi-card {
    background: white;
    border-radius: 20px;
    padding: 22px;
    height: 100%;
    border-left: 6px solid var(--primary);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
    font-weight: 700;
    color: #1e293b;
}

.news-card {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(15, 23, 42, .10);
    height: 100%;
}

.news-card img {
    height: 220px;
    object-fit: cover;
}

.service-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: white;
    padding: 26px;
    border-radius: 24px;
    height: 100%;
    box-shadow: 0 15px 35px rgba(15, 118, 110, .20);
}

footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 48px 0;
    border-top: 6px solid var(--gold);
}

.floating-chat {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dark), #334155);
    color: white;
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    transition: .3s;
}

.floating-chat:hover {
    transform: translateY(-5px);
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .topbar {
        display: none !important;
    }

    .main-nav {
        min-height: auto;
        padding: 10px 0;
    }

    .brand-text {
        font-size: 10px;
    }

    .hero {
        min-height: 560px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .btn-outline-hero {
        margin-left: 0;
        margin-top: 10px;
    }

    .quick-card {
        margin-top: 30px;
    }

    .quick-item {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .topbar-search {
        display: none;
    }
}

html[data-theme="green"] {
    --primary: #0f766e;
    --primary-light: #14b8a6;
    --primary-dark: #064e4e;
    --gold: #facc15;
    --gold-dark: #eab308;
}

html[data-theme="navy"] {
    --primary: #071f3a;
    --primary-light: #0b3a66;
    --primary-dark: #041426;
    --gold: #d6a84f;
    --gold-dark: #b8892f;
}

html[data-theme="green"] .topbar,
html[data-theme="navy"] .topbar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary)) !important;
    border-bottom-color: var(--gold) !important;
}

html[data-theme="green"] .main-nav,
html[data-theme="navy"] .main-nav {
    background: linear-gradient(
        135deg,
        var(--primary-dark) 0%,
        var(--primary) 55%,
        var(--primary-light) 100%
    ) !important;
}

html[data-theme="green"] .main-nav::after,
html[data-theme="navy"] .main-nav::after {
    background: linear-gradient(90deg, var(--gold), var(--gold-dark)) !important;
}

.theme-toggle-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #111827 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
    transition: .3s;
}

.theme-toggle-btn:hover {
    transform: translateY(-2px) rotate(15deg);
}