:root {
    --bs-primary: #006565;
    --bs-primary-rgb: 0, 101, 101;
    --bs-primary-container: #008080;
    --bs-secondary: #a900a9;
    --bs-secondary-rgb: 169, 0, 169;
    --bs-bg: #f7fafa;
    --bs-surface: #ffffff;
    --bs-surface-variant: #e0e3e3;
    --bs-on-surface: #181c1d;
    --bs-on-surface-variant: #3e4949;
    --bs-outline-variant: #bdc9c8;
    --bs-dark-bg: #002020;
}

body {
    background: #f7fafa;
    color: #181c1d;
    font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
    font-family: "Montserrat", sans-serif;
}
.row {
    margin: 0 !important;
    padding: 0 !important;
}
.section {
    padding: 80px 0;
}
.section-dark {
    background: #002020;
    color: #fff;
}
.section-gray {
    background: #f1f4f4;
}

/* glassmorphism */
.glass-panel {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.7);
}

/* neon borders */
.neon-border-teal {
    border-top: 4px solid #008080;
}
.neon-border-magenta {
    border-top: 4px solid #a900a9;
}

/* 3D card */
.card-3d {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card-3d:hover {
    transform: translateY(-8px) scale(1.02);
}

/* hero gradient */
.hero-gradient {
    background: linear-gradient(
        135deg,
        rgba(247, 250, 250, 0.95) 0%,
        rgba(227, 255, 254, 0.6) 100%
    );
}

/* btn */
.btn-primary-custom {
    background: #006565;
    color: #fff;
    border-radius: 12px;
    padding: 12px 36px;
    font-weight: 700;
    transition: 0.3s;
}
.btn-primary-custom:hover {
    background: #004f4f;
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 101, 101, 0.3);
}

.btn-secondary-custom {
    background: #a900a9;
    color: #fff;
    border-radius: 12px;
    padding: 12px 36px;
    font-weight: 700;
    transition: 0.3s;
}
.btn-secondary-custom:hover {
    background: #810081;
    color: #fff;
    box-shadow: 0 8px 25px rgba(169, 0, 169, 0.3);
}

.btn-outline-custom {
    background: transparent;
    color: #008080;
    border: 1px solid rgba(0, 128, 128, 0.3);
    border-radius: 12px;
    padding: 12px 36px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-outline-custom:hover {
    background: #008080;
    color: #fff;
}

/* badge */
.badge-academic {
    display: inline-block;
    background: rgba(0, 128, 128, 0.1);
    color: #008080;
    border: 1px solid rgba(0, 128, 128, 0.2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 5px 16px;
    border-radius: 50px;
}
.badge-magenta {
    display: inline-block;
    background: rgba(169, 0, 169, 0.08);
    color: #a900a9;
    border: 1px solid rgba(169, 0, 169, 0.15);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 5px 16px;
    border-radius: 50px;
}

/* progress bars */
.progress-segmented {
    height: 6px;
    border-radius: 10px;
    background: #ebeeee;
}
.progress-segmented .progress-bar {
    border-radius: 10px;
}
.progress-segmented .progress-bar.bg-secondary {
    background: #a900a9 !important;
}

/* Hero cards */
.hero-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
}
.hero-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px) scale(1.02);
    border-color: transparent;
}
.hero-card .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.hero-card .card-icon.green {
    background: rgba(0, 184, 148, 0.1);
    color: #00b894;
}
.hero-card .card-icon.magenta {
    background: rgba(169, 0, 169, 0.1);
    color: #a900a9;
}
.hero-card .card-icon.teal {
    background: rgba(0, 101, 101, 0.1);
    color: #006565;
}

/* feature icon */
.feat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}
.feat-icon.teal-bg {
    background: rgba(0, 101, 101, 0.08);
    color: #006565;
}
.feat-icon.magenta-bg {
    background: rgba(169, 0, 169, 0.08);
    color: #a900a9;
}
.feat-icon.blue-bg {
    background: rgba(9, 132, 227, 0.08);
    color: #0984e3;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f4f4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #006565, #008080);
    border-radius: 4px;
    transition: background 0.3s;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #004f4f, #006565);
}
* {
    scrollbar-width: thin;
    scrollbar-color: #006565 #f1f4f4;
}

/* Page loader */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #f7fafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;
}
#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
#page-loader .loader-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    animation: loaderPulse 1.4s ease-in-out infinite;
}
#page-loader .loader-ring {
    width: 100px;
    height: 100px;
    border: 3px solid rgba(0, 101, 101, 0.08);
    border-top: 3px solid #006565;
    background: #f7fafa;
    border-radius: 50%;
    animation: loaderSpin 1s linear infinite;
    position: absolute;
}
#page-loader .loader-text {
    margin-top: 24px;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #006565;
    letter-spacing: 2px;
    animation: loaderFade 1.6s ease-in-out infinite;
}
@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}
@keyframes loaderPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}
@keyframes loaderFade {
    0%,
    100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

/* Mobile bottom navbar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: none;
    height: 64px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-bottom-nav .nav-inner {
    display: flex;
    align-items: stretch;
    height: 100%;
    max-width: 500px;
    margin: 0 auto;
}
.mobile-bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #9ba8a8;
    font-size: 10px;
    font-weight: 600;
    gap: 2px;
    transition: color 0.2s;
    position: relative;
    padding: 6px 0;
}
.mobile-bottom-nav .nav-item i {
    font-size: 20px;
    transition: transform 0.2s;
}
.mobile-bottom-nav .nav-item.active {
    color: #006565;
}
.mobile-bottom-nav .nav-item.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #006565;
    border-radius: 0 0 3px 3px;
}
.mobile-bottom-nav .nav-item:active i {
    transform: scale(0.9);
}
.mobile-bottom-nav .nav-item .nav-label {
    font-size: 10px;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .mobile-bottom-nav {
        display: block;
    }
    /* push main content up so bottom nav doesn't overlap */
    main {
        /* padding-bottom: 72px; */
    }
    /* move support float up a bit */
    .support-float {
        bottom: 80px !important;
    }
    /* offcanvas tweaks */
    .offcanvas.offcanvas-end {
        width: 280px !important;
    }
    .offcanvas-body {
        padding-top: 8px !important;
    }
}
