body {
    background-color: #0F0F0F;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

html {
    overflow: hidden;
    background-color: #0F0F0F;
}

::selection {
    background: #555555;
    color: #ffffff;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem; 
    background-color: #1A1A1A; 
    border-bottom: 1px solid #333;
    box-sizing: border-box;
    min-height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-self: start;
}

.logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1f1f1f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    border: 2px solid #00FF9D;
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.4);
    text-shadow: 0 0 5px rgba(0, 255, 157, 0.8);
}

.brand-title {
    color: #f0f0f0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
    white-space: nowrap;
}

.brand-subtitle {
    color: #f0f0f0;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.7;
    white-space: nowrap;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px; 
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f0f0f0;
    text-decoration: none; 
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease; 
    -webkit-tap-highlight-color: transparent; 
    white-space: nowrap; 
}


@media screen and (max-width: 1250px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        padding: 8px 8px;
        font-size: 0.95rem;
    }

    .brand-title {
        font-size: 1rem;
    }

    .brand-subtitle {
        font-size: 0.7rem;
    }
}

.nav-links a.active,
.nav-links a:active {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.8), 0 0 20px rgba(0, 255, 157, 0.6); /* Emerald glow */
}

@media (hover: hover) {
    .nav-links a:hover {
        transform: scale(1.15); 
        color: #fff;
        text-shadow: 0 0 10px rgba(0, 255, 157, 0.8), 0 0 20px rgba(0, 255, 157, 0.6); /* Emerald glow */
    }
}

#nav-indicator {
    position: absolute;
    bottom: 8px; 
    height: 4px; 
    background: #00FF9D; 
    box-shadow: 0 0 10px #00FF9D, 0 0 20px #00FF9D;
   
    transition: left 1.5s cubic-bezier(0.23, 1, 0.32, 1), width 1.5s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}


#nav-indicator.no-transition {
    transition: none !important;
}


.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    height: 25px;
    width: 30px;
    z-index: 1001; 
}

.hamburger div {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 2px;
    transform-origin: center;
}


@media screen and (max-width: 1050px) {
    .navbar {
        display: flex;
        justify-content: space-between;
    }

    .desktop-socials {
        display: none;
    }

    .mobile-socials {
        display: flex;
        margin-left: 0;
        margin-top: auto; /* Push to bottom */
        margin-bottom: 40px;
        flex-wrap: wrap;
        justify-content: center;
    }

    body {
        overflow-x: hidden;
    }

    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0; 
        background-color: #1A1A1A;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; 
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 1000;
        padding-top: 100px; 
        box-shadow: -2px 0 10px rgba(0,0,0,0.5);
        gap: 0px; 
    }

    .nav-links li {
        opacity: 0;
        margin: 10px 0; 
    }

    .nav-links a {
        font-size: 1.3rem;
    }

    .hamburger {
        display: flex;
    }

    /* Hide the slider on mobile */
    #nav-indicator {
        display: none;
    }
}

.nav-active {
    transform: translateX(0%) !important;
}

/* Animate Links */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

/* Hamburger to Cross Animation */
.toggle .line1 {
    transform: translateY(8.5px) rotate(45deg);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Glow Logic */

/* Default (Touch/No-Hover) Behavior: Always Glow */
.hamburger div {
    box-shadow: 0 0 10px #00FF9D, 0 0 20px #00FF9D;
}

.hamburger.toggle div {
    box-shadow: 0 0 10px red, 0 0 20px red;
}

/* Hover-Capable Devices: Only Glow on Hover */
@media (hover: hover) {
    /* Reset default glow */
    .hamburger div {
        box-shadow: none;
    }
    .hamburger.toggle div {
        box-shadow: none;
    }

    /* Apply glow on hover */
    .hamburger:hover div {
        box-shadow: 0 0 10px #00FF9D, 0 0 20px #00FF9D;
    }

    .hamburger.toggle:hover div {
        box-shadow: 0 0 10px red, 0 0 20px red;
    }
}


@media screen and (max-width: 600px) {
    .nav-links {
        width: 80%;
    }
}