/* =========================================
   1. KEYFRAMES
   ========================================= */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   2. CUSTOM CURSOR
   ========================================= */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #00f0ff;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 0 10px #00f0ff;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 240, 255, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 240, 255, 0.1);
    border-color: #00f0ff;
}

/* Re-enable default cursor for touch devices */
@media (hover: none) and (pointer: coarse) {

    body,
    a,
    button,
    .project-card,
    input,
    textarea,
    select {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}

/* =========================================
   3. ABSTRACT VISUALS
   ========================================= */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    transition: transform 0.1s linear;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background-color: #bc13fe;
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background-color: #00f0ff;
    bottom: -50px;
    right: -50px;
}

/* =========================================
   4. ANIMATION UTILITIES
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   5. MOBILE MENU & HAMBURGER
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        display: flex !important;
        /* Override Tailwind hidden */
        position: fixed;
        inset: 0;
        background-color: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        height: 100vh;
        width: 100vw;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger animation */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-links a {
        font-size: 2rem;
        color: #ffffff;
    }

    .nav-links a.bg-primary {
        color: #0a0a0a !important;
        /* Force black text for the CTA button */
        font-size: 1rem;
        /* Reset size for the button */
        margin-top: 1rem;
    }
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}