/* ================================
   GLOBAL STYLES - head-foot.css
   Shared across all pages
================================ */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #121212;
    color: #fff;
}

/* ================================
   NAVIGATION
================================ */
nav {
    display: flex;
    justify-content: center;
    background: #000;
    padding: 1rem 0;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 999;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    transition: color 0.3s, letter-spacing 0.3s;
}

nav a:hover {
    color: #8ec3e6;
    letter-spacing: 0.5px;
}

nav .dropdown {
    position: relative;
}

nav .dropdown-content {
    display: none;
    position: absolute;
    background: #111;
    padding: 0.5rem;
    border-radius: 0.25rem;
    top: 100%;
    left: 0;
    min-width: 200px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
    border: 1px solid #444;
    backdrop-filter: blur(6px);
}

nav .dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

nav .dropdown-content a {
    display: block;
    margin: 0.5rem 0;
    color: #f5f5f5;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: background 0.3s ease, color 0.3s ease;
}

nav .dropdown-content a:hover {
    background: #222;
    color: #8ec3e6;
}

/* ================================
   FOOTER
================================ */
.site-footer {
    background: #0d0d0d;
    padding: 3rem 2rem 2rem;
    color: #aaa;
    border-top: 1px solid #292929;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-brand {
    text-align: left;
}

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    color: #8ec3e6;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.footer-brand p {
    margin: 0.25rem 0;
    color: #ccc;
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-socials a {
    color: #ccc;
    font-size: 1.25rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
    color: #8ec3e6;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    border-top: 1px solid #222;
    padding-top: 1rem;
    margin-top: 2rem;
}

/* ================================
   COMMON ANIMATIONS
================================ */
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================
   RESPONSIVE NAV
================================ */
@media (max-width: 926px) {
    nav {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        padding: 0.75rem 0.5rem;
        gap: 0.75rem;
    }

    nav a {
        font-size: 0.85rem;
        padding: 0.3rem 0.5rem;
        margin: 0;
        text-align: center;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .dropdown {
        position: relative;
    }

    .dropdown-content {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        min-width: 170px;
        margin-top: 0.5rem;
    }

    .dropdown-content a {
        display: block;
        padding: 0.5rem;
    }
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
        margin-top: 1rem;
    }
}
