/* =========================================
   HEADER, NAVIGATION & FOOTER
========================================= */

/* --- HEADER & NAVIGATION --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-text-primary);
    text-decoration: none;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active-link {
    color: var(--color-primary);
}

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

.cta-btn {
    background: var(--color-primary);
    color: var(--color-text-on-dark);
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #256a29;
    transform: translateY(-2px);
    color: var(--color-text-on-dark);
}

.cta-btn:hover::after {
    width: 0;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-text-primary);
    transition: all 0.3s ease-in-out;
}

/* --- FOOTER --- */
.footer {
    background: var(--color-footer-bg);
    color: #ccc;
    padding: 4rem 0 2rem 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo {
    color: var(--color-text-on-dark); /* Ensure this variable exists and is light */
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand p {
    margin: 0;
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--color-accent); /* Make sure this matches your brand */
}

/* Bottom Legal & Dev Row */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Softer, more minimalist border */
    font-size: 0.9rem;
    color: #999;
}

.footer-info p {
    margin: 0;
}

.dev-credit {
    font-size: 0.9rem;
}

.dev-credit a {
    color: #fff; /* Replaced the moving gradient with a clean, solid color */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dev-credit a:hover {
    color: var(--color-primary);
}

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

@keyframes gradient-swipe {
  to { background-position: -200% center; }
}

/* --- RESPONSIVE LAYOUT --- */
@media (max-width: 768px) {
    html { scroll-padding-top: 70px; }
    
    .nav-container { height: 70px; }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--color-background-main);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s;
        gap: 0;
    }

    .nav-menu li { width: 100%; }

    .nav-menu a {
        padding: 1.5rem 0;
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--color-border-subtle);
    }

    .nav-menu.active { left: 0; }

    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}