/* ============================================
   DIGITAL EXPERTS - NAVBAR & FOOTER
   ============================================ */

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-sticky);
    padding: var(--space-5) 0;
    transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--space-4) 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-black);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    position: relative;
    font-weight: var(--font-medium);
    color: var(--gray-300);
    transition: color 0.3s var(--ease-out);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s var(--ease-out);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 968px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--black);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-8);
        transition: right 0.5s var(--ease-out);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: var(--text-2xl);
    }
}

/* FOOTER */
.footer {
    position: relative;
    background: var(--black-light);
    padding: var(--space-20) 0 var(--space-8);
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%230A0A0A' d='M0,50 C360,100 720,0 1080,50 C1260,75 1350,75 1440,50 L1440,0 L0,0 Z'/%3E%3C/svg%3E") repeat-x;
    background-size: 50% 100%;
    animation: wave 20s linear infinite;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

.footer-brand p {
    color: var(--gray-400);
    margin-bottom: var(--space-6);
}

.footer-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-6);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-link {
    color: var(--gray-400);
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--primary-light);
}

.footer-social {
    display: flex;
    gap: var(--space-4);
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--gray-300);
    transition: all 0.3s var(--ease-out);
}

.social-icon:hover {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: var(--text-sm);
}

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* SCROLL TOP */
.scroll-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-out);
    z-index: var(--z-dropdown);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow-lg);
}

/* CURSOR */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    pointer-events: none;
    z-index: var(--z-cursor);
    mix-blend-mode: difference;
    transition: transform 0.15s var(--ease-out), width 0.3s, height 0.3s;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-full);
    pointer-events: none;
    z-index: var(--z-cursor);
    opacity: 0.5;
    transition: transform 0.3s var(--ease-out);
    transform: translate(-50%, -50%);
}

.cursor.hover,
.cursor-follower.hover {
    transform: translate(-50%, -50%) scale(1.5);
}

@media (max-width: 1024px) {

    .cursor,
    .cursor-follower {
        display: none;
    }
}