/* ==========================================================
   NAVBAR 
   ========================================================== */

.site-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: hidden; 
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-accent) 45%,
        #21D4C8 50%,
        var(--color-accent) 55%,
        transparent 100%
    );
    animation: navTraceSweep 6s linear infinite;
}
@keyframes navTraceSweep {
    from { transform: translateX(0); }
    to   { transform: translateX(25%); }
}

@media (prefers-reduced-motion: reduce) {
    .site-header::before { animation: none; }
}

.navbar {
    padding: 0.85rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ---- Logo: subtle breathing glow, no JS ---- */
.navbar-brand .logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-brand .logo-img {
    height: 46px;
    width: auto;
    display: block;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.navbar-brand .logo:hover .logo-img {
    transform: scale(1.06);
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.35));
}

/* ---- Equal-width nav items ---- */
.navbar-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: stretch;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
}

.nav-links li {
    flex: 1 1 0;
    display: flex;
}

.nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    padding: 0.65rem 1.4rem;
    white-space: nowrap;
    position: relative;
    letter-spacing: 0;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 4px 6px;
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(33,212,200,0.1));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.nav-link:hover {
    color: var(--color-accent);
    letter-spacing: 0.02em;
}
.nav-link:hover::before {
    transform: scaleY(1);
}

/* ---- Contact as a distinct CTA pill within the equal-width row ---- */
.nav-links li:last-child .nav-link {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark, #2563eb) 100%);
    color: #fff;
    border-radius: 2rem;
    margin: 0.15rem 0.15rem 0.15rem 0.5rem;
    box-shadow: 0 8px 20px -8px rgba(59, 130, 246, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nav-links li:last-child .nav-link::before { display: none; }
.nav-links li:last-child .nav-link:hover {
    color: #fff;
    letter-spacing: 0;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -8px rgba(59, 130, 246, 0.6);
}

/* ---- Mobile toggle (unchanged, kept for completeness) ---- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}
.mobile-menu-toggle:hover { background-color: rgba(15, 20, 25, 0.05); }
.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--color-primary);
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    .site-header {
        overflow: visible;  
    }
    .site-header::before {
        display: none;       
    }
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
        border-bottom: 1px solid var(--color-border);
        padding: var(--space-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.35s ease, visibility 0.35s;
        box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.4rem;
        width: 100%;
    }
    .nav-links li { flex: none; }
    .nav-link { justify-content: flex-start; padding: 0.85rem 1rem; }
    .nav-link::before { inset: 2px; border-radius: 0.5rem; }

    .nav-links li:last-child .nav-link {
        justify-content: center;
        margin: 0.5rem 0 0;
    }
}
/* ==========================================================
   FOOTER 
   ========================================================== */

.site-footer {
    position: relative;
    background: linear-gradient(160deg, var(--color-primary) 0%, #16202c 100%);
    color: white;
    padding: var(--space-lg) 0 var(--space-md);
    margin-top: var(--space-xl);
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-accent) 45%,
        #21D4C8 50%,
        var(--color-accent) 55%,
        transparent 100%
    );
    animation: footerTraceSweep 7s linear infinite;
}
@keyframes footerTraceSweep {
    from { transform: translateX(0); }
    to   { transform: translateX(25%); }
}

.site-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .site-footer::before { animation: none; }
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-section h4 {
    color: white;
    margin-bottom: var(--space-sm);
    font-size: 1.05rem;
    font-family: var(--font-display);
    position: relative;
    padding-bottom: 0.65rem;
}

/* Accent underline that glows softly rather than sitting flat */
.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-accent), #21D4C8);
    box-shadow: 0 0 8px 1px rgba(59, 130, 246, 0.5);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9375rem;
    line-height: 1.8;
    text-decoration: none;
}

/* ---- Footer links: sliding accent marker on hover, CSS-only ---- */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    position: relative;
    display: inline-block;
    padding-left: 0;
    transition: padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), #21D4C8);
    transform: translateY(-50%);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 14px;
}
.footer-links a:hover::before {
    width: 8px;
}

.footer-section > p > a {
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}
.footer-section > p > a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .footer-links a:hover { padding-left: 10px; }
}