/* ===============================
   ROOT VARIABLES (DESIGN SYSTEM)
================================= */
:root {
    --primary-blue: #1e5eff;
    --primary-blue-dark: #1746c9;
    --primary-blue-light: #e9f0ff;

    --white: #ffffff;
    --grey-50: #f8f9fc;
    --grey-100: #eef1f6;
    --grey-300: #c7cbd6;
    --grey-500: #6b7280;
    --grey-700: #374151;
    --grey-900: #111827;
    --green-500: #10b981;

    --font-main: 'Poppins', sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);

    --max-width: 1200px;
}

/* ===============================
   GLOBAL RESET
================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: var(--white);
    color: var(--grey-900);
    line-height: 1.6;
}

/* ===============================
   GLOBAL CONTAINER
================================= */
.container {
    max-width: var(--max-width);
    margin: auto;
    padding: 0 20px;
}

/* ===============================
   HEADER
================================= */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.header-container {
    max-width: var(--max-width);
    margin: auto;
    padding: 15px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-area img {
    width: 36px;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--grey-900);
}

.logo-highlight {
    color: var(--primary-blue);
}

/* NAVIGATION */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-item {
    text-decoration: none;
    color: var(--grey-700);
    font-size: 0.95rem;
    position: relative;
    transition: 0.3s;
}

/* Hover underline effect */
.nav-item::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary-blue);
    transition: 0.3s;
}

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

.nav-item:hover {
    color: var(--primary-blue);
}

/* ACTION BUTTONS */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* BUTTONS */
.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
}

.btn-secondary {
    border: 1px solid var(--primary-blue);
    color: var(--grey-700);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: var(--grey-100);
}

/* SMALL BUTTON */
.small {
    padding: 8px 14px;
    font-size: 0.85rem;
}

/* ===============================
   MOBILE NAV
================================= */
.menu-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: var(--white);

        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 15px;

        display: none;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .nav-actions {
        width: 100%;
        flex-direction: column;
    }

    .nav-actions a {
        width: 100%;
        text-align: center;
    }
}





/* =========================================
   FOOTER
========================================= */
.main-footer {
    background: #0f172a; /* deep dark for contrast */
    color: #e5e7eb;
    padding: 50px 20px 30px;
    margin-top: 60px;
}

/* INNER */
.footer-inner {
    max-width: var(--max-width);
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

/* =========================================
   BRAND
========================================= */
.footer-brand h3 {
    font-size: 18px;
    color: white;
}

.footer-brand p {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 6px;
    max-width: 260px;
}

/* =========================================
   LINKS
========================================= */
.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    font-size: 13px;
    color: #9ca3af;
    transition: 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

/* =========================================
   COPYRIGHT
========================================= */
.footer-copy {
    font-size: 12px;
    color: #6b7280;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 768px) {

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-links {
        justify-content: center;
    }
}











/* =========================================
   HEADER UPGRADE (GLASS + SCROLL)
========================================= */
.main-header {
    transition: all 0.3s ease;
}

/* SCROLLED STATE */
.main-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* =========================================
   NAV IMPROVEMENTS
========================================= */
.nav-item {
    font-weight: 500;
}

/* ACTIVE LINK */
.nav-item.active {
    color: var(--primary-blue);
}

/* =========================================
   BUTTON POLISH (GLOBAL SAFE)
========================================= */
.btn-primary {
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    cursor: pointer;
}

/* =========================================
   SMOOTH PAGE FEEL
========================================= */
html {
    scroll-behavior: smooth;
}

/* =========================================
   MAIN SPACING CONTROL
========================================= */
main {
    min-height: 70vh;
}

/* =========================================
   FOOTER POLISH (SUBTLE)
========================================= */
.footer-links a {
    position: relative;
}

.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1px;
    background: white;
    transition: 0.3s;
}

.footer-links a:hover::after {
    width: 100%;
}


.main-header .btn-secondary {
    background: rgba(30, 94, 255, 0.08);
    border: 1px solid rgba(30, 94, 255, 0.3);
    color: var(--primary-blue);
}

.main-header .btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
}
