:root {
    --cream: #f6f3ec;
    --navy: #002645;
    --light-navy: #003d6b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
}

.bg-cream {
    background-color: var(--cream);
}

.bg-navy {
    background-color: var(--navy);
}

.text-cream {
    color: var(--cream);
}

.text-navy {
    color: var(--navy);
}

#navbar {
    background-color: var(--cream) !important;
    height: 80px;
}

#navbar.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background-color: var(--cream) !important;
}

.nav-link {
    position: relative;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--navy);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.logo-img {
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

.brand-text {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.brand-text::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--navy);
    transition: width 0.3s ease;
}

.brand-text:hover::after {
    width: 100%;
}

.hamburger-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    position: relative;
    z-index: 60;
    transition: transform 0.3s ease;
}

.hamburger-btn:hover {
    transform: scale(1.1);
}

.hamburger-btn.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.hamburger-icon {
    width: 26px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.line {
    width: 100%;
    height: 3px;
    background-color: var(--navy);
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.line-1 {
    transform: translateY(0) rotate(0);
}

.line-2 {
    opacity: 1;
    transform: scaleX(1);
}

.line-3 {
    transform: translateY(0) rotate(0);
}

.hamburger-btn.active .line-1 {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger-btn.active .line-2 {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.active .line-3 {
    transform: translateY(-8.5px) rotate(-45deg);
}

.mobile-menu-container {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--cream);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, box-shadow 0.3s ease-out;
    z-index: 45;
}

.mobile-menu-container.open {
    max-height: 400px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mobile-menu-content {
    padding: 1rem 1.5rem;
}

.mobile-menu-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--navy);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 38, 69, 0.1);
    cursor: pointer;
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

.mobile-menu-link:hover {
    color: rgba(0, 38, 69, 0.7);
    padding-left: 0.5rem;
}

.mobile-menu-link:active {
    background-color: rgba(0, 38, 69, 0.05);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

a,
button {
    transition: all 0.3s ease;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--navy);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #003d6b;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    .text-5xl {
        font-size: 2.5rem;
    }

    .text-4xl {
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .mobile-menu-container {
        display: none;
    }

    .hamburger-btn {
        display: none !important;
    }
}

.separator {
    --from: transparent;
    --to: transparent;
    --separator-height: clamp(48px, 6vh, 120px);
    height: var(--separator-height);
    min-height: 48px;
    inline-size: 100%;
    background: linear-gradient(180deg, var(--from) 0%, var(--from) 60%, var(--to) 100%);
    pointer-events: none;
    transition: background 0.3s ease, height 0.3s ease;
    display: block;
    margin: 0;
}

.sep-cream-to-navy {
    --from: var(--cream);
    --to: var(--light-navy);
}

.sep-navy-to-cream {
    --from: var(--light-navy);
    --to: var(--cream);
}

.icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-container i {
    stroke-width: 2;
}

.bg-navy {
    background-color: var(--light-navy);
}

.glass-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 38, 69, 0.15);
}

.glass-card-dark {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.hover-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.hover-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hover-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 38, 69, 0.3);
}

.hover-card:hover::before {
    left: 100%;
}

#scroll-progress {
    position: fixed;
    top: 80px;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #002645, #00a8e8, #002645);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
    z-index: 9999;
    transition: width 0.1s ease-out;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.counter {
    display: inline-block;
}

.icon-glow {
    filter: drop-shadow(0 0 8px rgba(0, 166, 232, 0.5));
    transition: filter 0.3s ease;
}

.hover-card:hover .icon-glow {
    filter: drop-shadow(0 0 15px rgba(0, 166, 232, 0.8));
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.pulse-on-hover:hover {
    animation: pulse 1s ease-in-out infinite;
}