/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', sans-serif;
}

/* Root variables */
:root {
    /* Colors */
    --primary-dark: #000000;
    --secondary-dark: #01111d;
    --accent-blue: #0066cc;
    --accent-cyan: #00ffff;
    --text-primary: #ffffff;
    --text-secondary: #7aa8d8;
    
    /* Z-index scale */
    --z-nav: 1000;             
    --z-nav-beams: 1001;      
    --z-mobile-nav: 999;      
    --z-burger: 1002;         
    --z-dropdown: 1003;
}

/* Navigation styles */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 3rem;  /* Increased side padding */
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: var(--z-nav);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid rgba(0,255,255,0.1);
    transform: none;
    visibility: visible;
    opacity: 1;
    transition: none;
    pointer-events: auto;
    will-change: transform;
}

/* Navigation beam effects */
.nav-top-beam,
.nav-bottom-beam {
    position: fixed;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    z-index: var(--z-nav-beams); 
    pointer-events: none;
    overflow: hidden;
    display: block;
}

.nav-top-beam {
    top: 0;
}

.nav-bottom-beam {
    top: 80px; 
}

.nav-top-beam::before,
.nav-bottom-beam::before {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background: var(--accent-cyan);
    left: -50%;
    animation: moveBackAndForth 4s linear infinite;
    box-shadow: 0 0 10px var(--accent-cyan),
                0 0 20px var(--accent-cyan),
                0 0 30px var(--accent-cyan);
    display: block;
}

/* Nav links container */
.nav-links {
    list-style: none;
    gap: clamp(0.24rem, 0.96vw, 0.8rem);
    margin-left: clamp(1rem, 1.5vw, 1.8rem);
    height: 100%;  /* Changed from 200vh to 100% */
    z-index: var(--z-nav);
    display: flex;
    align-items: stretch; /* Changed from center */
}

/* List items */
.nav-links li {
    position: relative;
    height: 100%;  /* Changed from 200vh to 100% */
    display: flex;
    align-items: stretch; /* Changed from center */
    margin-left: clamp(0.5rem, 0.75vw, 0.8rem);
}

/* Link elements */
.nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 0.8rem;
    font-size: clamp(1vw, 1.75vw, 1.75vw);
    padding: 0 clamp(0.56rem, 0.8vw, 0.96rem);  /* Increased vertical padding */
    white-space: nowrap;
    transition: all 0.3s ease;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-links li:not(.dropdown) a:hover {
    color: #ffffff;
    transform: translateY(-2px);
    opacity: 0.8;
}

.nav-links li:not(.dropdown) a::after {
    display: none;
}

.nav-links li:not(.dropdown) a:hover::after {
    width: 0;
}

.nav-links a i {
    font-size: 1.84rem;
    text-align: center;
    line-height: 2.2;
    display: flex;
    align-items: center;
}

/* Add right margin to the last navigation item (More button) */
.nav-links li:last-child {
    margin-right: clamp(1rem, 2vw, 2rem);  /* Space from right edge */
}

/* Dropdown styles */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown .nav-link {
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #ffffff;
    position: relative;
    z-index: 1002;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent-cyan);
    border-radius: 4px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

.dropdown-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

/* Desktop specific dropdown styles */
@media screen and (min-width: 769px) {
    .dropdown {
        position: relative;
    }
    
    .dropdown-content {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 5px;
    }
}

.dropdown-content a {
    padding: 1rem 1.5rem;
    gap: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-size: 1.4rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.dropdown-content a:hover {
    padding-left: 2rem;
}

.dropdown-content a i {
    font-size: 1.2rem;
    width: auto;
    color: inherit;
}

.dropdown .nav-link:hover {
    color: var(--accent-cyan);
}

/* Navigation icon colors */
.nav-links a .fa-home { color: #ffa502; }         
.nav-links a .fa-tools { color: #2ed573; }        
.nav-links a .fa-user { color: #70a1ff; }         
.nav-links a .fa-envelope { color: #a29bfe; }     
.nav-links a .fa-handshake { color: #eccc68; }    
.nav-links a .fa-blog { color: #ff7f50; }        
.nav-links a .fa-book { color: #00fa9a; }        
.nav-links a .fa-video { color: #ff69b4; }       
.nav-links a .fa-store { color: #40e0d0; }       

/* Icon hover effects */
.nav-links a:hover i {
    transform: scale(1.2);           
    filter: brightness(1.3);         
}

/* Logo styles */
.logo-wrapper {
    margin-right: 2rem;

}

.logo, .logo a {
    font-size: clamp(2.07rem, 2.53vw, 2.53rem);
    font-weight: 900;
    letter-spacing: 1px;
    position: relative;
    white-space: nowrap;
    z-index: var(--z-nav);
    line-height: 1.5;
    margin-top: 1vh;
    
}

.logo a {
    text-decoration: none;
    animation: rotateColors 8s linear infinite;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
    margin-left: -2rem;
}

.logo::after {
    display: none;
}



/* Animations */
@keyframes moveBackAndForth {
    0% { left: -50%; }
    45% { left: 100%; }
    50% { left: 100%; }
    95% { left: -50%; }
    100% { left: -50%; }
}

@keyframes logoFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes logoLineSlide {
    0%, 100% {
        transform: translateX(-5%);
    }
    50% {
        transform: translateX(5%);
    }
}

@keyframes rotateColors {
    0% { color: #00ffff; }    /* Cyan */
    12.5% { color: #ff0000; } /* Bright Red */
    25% { color: #00ff00; }   /* Bright Green */
    37.5% { color: #ff00ff; } /* Magenta */
    50% { color: #ffff00; }   /* Yellow */
    62.5% { color: #ff8c00; } /* Orange */
    75% { color: #9932ff; }   /* Purple */
    87.5% { color: #00bfff; } /* Deep Sky Blue */
    100% { color: #00ffff; }  /* Back to Cyan */
}

/* Add new responsive adjustments */
@media screen and (max-width: 1200px) {
    .nav-links a {
        font-size: clamp(1.1rem, 1.2vw, 1.3rem);
        padding: 0.6rem 0.6rem;
        gap: 0.3rem;
    }
    
    .nav-links {
        gap: clamp(0.3rem, 1vw, 0.8rem);
    }
}

@media screen and (max-width: 1000px) {
    .nav-links a {
        font-size: 1.3rem;
        letter-spacing: 0.5px;
    }
}

/* Update responsive breakpoints */
@media screen and (max-width: 1400px) {
    .nav-links a {
        font-size: clamp(1.2rem, 1.3vw, 1.5rem);
        padding: 0.7rem 0.7rem;
        gap: 0.4rem;
    }
}
