/* ============================================
   GLOBAL STYLES - Common across all pages
   ============================================ */

/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Pivenor Labs Brand Colors */
    --primary-color: #E8654E;
    --primary-magenta: #6B1448;
    --primary-navy: #000C55;
    --primary-dark: #1A0B2E;

    /* Legacy support */
    --secondary-color: #6B1448;
    --accent-color: #000C55;

    /* Text Colors */
    --text-dark: #1A0B2E;
    --text-medium: #000C55;
    --text-light: #6B7280;

    /* Background Colors */
    --bg-light: #FFFFFF;
    --bg-gray: #FAFAFA;
    --border-color: #E5E7EB;

    /* Neomorphism Variables */
    --neo-bg: #e8eaed;
    --neo-shadow-dark: #d1d9e6;
    --neo-shadow-light: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #E8654E 0%, #6B1448 50%, #000C55 100%);
    --gradient-full: linear-gradient(135deg, #E8654E 0%, #6B1448 33%, #000C55 66%, #1A0B2E 100%);

    /* Shadows */
    --shadow: 0 4px 6px -1px rgba(26, 11, 46, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(26, 11, 46, 0.15);
    --shadow-colored: 0 10px 30px -5px rgba(232, 101, 78, 0.3);

    /* Animation */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    background: var(--neo-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: radial-gradient(circle at 20% 30%, rgba(232, 101, 78, 0.03) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
}

/* ========================================
   NAVIGATION (Common across all pages)
   ======================================== */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--neo-bg);
    z-index: 1000;
    transition: all 0.3s var(--ease);
    box-shadow:
            0 4px 12px rgba(209, 217, 230, 0.5),
            0 -2px 6px rgba(255, 255, 255, 0.8);
}

nav.scrolled {
    box-shadow:
            0 6px 16px rgba(209, 217, 230, 0.6),
            0 -2px 8px rgba(255, 255, 255, 0.9);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    margin: 0 24px;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s var(--ease);
    letter-spacing: -0.02em;
}

.logo span {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 600;
    letter-spacing: 0;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-image {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: all 0.3s var(--ease);
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s var(--ease);
    position: relative;
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    background: var(--neo-bg);
}

.nav-links a:hover {
    color: var(--primary-color);
    box-shadow:
            inset 4px 4px 8px var(--neo-shadow-dark),
            inset -4px -4px 8px var(--neo-shadow-light);
}

.nav-links a.active {
    color: white;
    background: var(--gradient-primary);
    box-shadow:
            6px 6px 12px rgba(232, 101, 78, 0.3),
            -3px -3px 8px rgba(255, 255, 255, 0.5);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    width: 50px;
    height: 50px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    padding: 8px;
    border-radius: 50%;
    background: var(--neo-bg);
    box-shadow:
            6px 6px 12px var(--neo-shadow-dark),
            -6px -6px 12px var(--neo-shadow-light);
    transition: all 0.3s var(--ease);
}

.mobile-toggle:active {
    box-shadow:
            inset 4px 4px 8px var(--neo-shadow-dark),
            inset -4px -4px 8px var(--neo-shadow-light);
}

.hamburger-line {
    width: 24px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
    position: absolute;
}

.hamburger-line:nth-child(1) {
    transform: translateY(-7px);
}

.hamburger-line:nth-child(2) {
    opacity: 1;
}

.hamburger-line:nth-child(3) {
    transform: translateY(7px);
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(0) rotate(45deg);
    background: var(--primary-color);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
    background: var(--primary-color);
}

.nav-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.6s var(--ease);
    pointer-events: none;
    visibility: hidden;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

/* ========================================
   BUTTONS (Common across all pages)
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.125rem 2.25rem;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s var(--ease);
    cursor: pointer;
    position: relative;
    border: none;
    background: var(--neo-bg);
    box-shadow:
            8px 8px 16px var(--neo-shadow-dark),
            -8px -8px 16px var(--neo-shadow-light);
}

.btn i {
    transition: transform 0.3s var(--ease);
}

.btn:hover i {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow:
            8px 8px 16px rgba(232, 101, 78, 0.3),
            -4px -4px 12px rgba(255, 255, 255, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
            10px 10px 20px rgba(232, 101, 78, 0.4),
            -6px -6px 16px rgba(255, 255, 255, 0.6);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow:
            6px 6px 12px rgba(232, 101, 78, 0.35),
            -3px -3px 8px rgba(255, 255, 255, 0.45);
}

.btn-secondary {
    background: var(--neo-bg);
    color: var(--text-dark);
    box-shadow:
            8px 8px 16px var(--neo-shadow-dark),
            -8px -8px 16px var(--neo-shadow-light);
}

.btn-secondary:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow:
            10px 10px 20px var(--neo-shadow-dark),
            -10px -10px 20px var(--neo-shadow-light);
}

.btn-secondary:active {
    box-shadow:
            inset 4px 4px 8px var(--neo-shadow-dark),
            inset -4px -4px 8px var(--neo-shadow-light);
    transform: translateY(-1px);
}

.btn-large {
    padding: 1.25rem 2.75rem;
    font-size: 1.05rem;
}

/* ========================================
   FOOTER (Common across all pages)
   ======================================== */

footer {
    background: var(--neo-bg);
    color: var(--text-dark);
    padding: 3rem 2rem;
    box-shadow:
            0 -6px 16px rgba(209, 217, 230, 0.6),
            0 2px 8px rgba(255, 255, 255, 0.8);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s var(--ease);
    position: relative;
    padding: 0.75rem 1.25rem;
    border-radius: 16px;
    background: var(--neo-bg);
    font-weight: 600;
    box-shadow:
            4px 4px 8px var(--neo-shadow-dark),
            -4px -4px 8px var(--neo-shadow-light);
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow:
            6px 6px 12px var(--neo-shadow-dark),
            -6px -6px 12px var(--neo-shadow-light);
}

.footer-links a:active {
    box-shadow:
            inset 3px 3px 6px var(--neo-shadow-dark),
            inset -3px -3px 6px var(--neo-shadow-light);
    transform: translateY(-1px);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem 0;
}

.footer-social a {
    width: 50px;
    height: 50px;
    background: var(--neo-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s var(--ease);
    box-shadow:
            6px 6px 12px var(--neo-shadow-dark),
            -6px -6px 12px var(--neo-shadow-light);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-4px);
    box-shadow:
            8px 8px 16px rgba(232, 101, 78, 0.4),
            -4px -4px 12px rgba(255, 255, 255, 0.6);
}

.footer-social a:active {
    transform: translateY(-2px);
}

.copyright {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 2px solid transparent;
    text-align: center;
    color: var(--text-light);
    position: relative;
}

.copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: var(--neo-bg);
    box-shadow:
            0 2px 4px var(--neo-shadow-dark),
            0 -1px 2px var(--neo-shadow-light);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    nav .container {
        margin: 0;
        padding: 1.5rem 1.4rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: var(--neo-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 2.5rem 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow:
                -12px 0 24px rgba(209, 217, 230, 0.6),
                12px 0 24px rgba(255, 255, 255, 0.4);
        z-index: 999;
        gap: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1.05rem;
        font-weight: 600;
        transition: all 0.3s var(--ease);
        border-radius: 14px;
        margin-bottom: 0.5rem;
    }

    .nav-links a:hover {
        padding-left: 2rem;
        color: var(--primary-color);
    }

    .mobile-toggle {
        display: flex;
    }

    footer {
        padding: 2.5rem 1.5rem;
    }

    .footer-logo {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-links {
        gap: 1rem;
        margin: 1.5rem 0;
        flex-wrap: wrap;
        padding: 0 1rem;
    }

    .footer-links a {
        font-size: 0.9rem;
        padding: 0.625rem 1rem;
    }

    .footer-social {
        gap: 0.875rem;
        margin: 1.5rem 0;
    }

    .footer-social a {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .copyright {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        font-size: 0.875rem;
    }

    .copyright p {
        line-height: 1.6;
    }

    #copyright-text {
        margin-bottom: 0.5rem;
    }

    #footer-clock {
        font-size: 0.875rem;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    nav .container {
        margin: 0;
        padding: 1.5rem 1.4rem;
    }

    .btn {
        padding: 1rem 1.75rem;
        font-size: 0.875rem;
    }

    footer {
        padding: 2rem 1rem;
    }

    .footer-logo {
        font-size: 1.35rem;
        margin-bottom: 1.25rem;
    }

    .footer-links {
        gap: 0.75rem;
        margin: 1.25rem 0;
        padding: 0 0.5rem;
    }

    .footer-links a {
        font-size: 0.85rem;
        padding: 0.5rem 0.875rem;
    }

    .footer-social {
        gap: 0.75rem;
        margin: 1.25rem 0;
    }

    .footer-social a {
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }

    .copyright {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
        font-size: 0.8125rem;
    }

    #copyright-text {
        font-size: 0.8125rem;
    }

    #footer-clock {
        font-size: 0.8125rem;
        margin-top: 0.4rem;
    }
}

@media (max-width: 360px) {
    .footer-links {
        gap: 0.625rem;
    }

    .footer-links a {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}
