/* Navbar */
.navbar {
display: flex;
align-items: center;
justify-content: space-between;
position: relative;


padding: 15px 8%;

background: linear-gradient(
120deg,
#0f0f0f,
#2a2a2a 50%,
#151515
);

box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Logo */
.logo img {
width: 120px;
height: auto;
display: block;
}

/* Navigation Links */
.nav-links {
display: flex;
align-items: center;
gap: 30px;
list-style: none;
}

.nav-links a {
color: white;
text-decoration: none;
font-size: 15px;
}

.nav-links a:hover {
color: #4da6ff;
}

/* Hamburger Button */
.menu-toggle {
display: none;
flex-direction: column;
justify-content: space-between;

width: 30px;
height: 22px;
padding: 0;

background: transparent;
border: none;
cursor: pointer;
z-index: 10001;
}

/* Three Lines */
.menu-toggle span {
width: 30px;
height: 3px;
background-color: white;
border-radius: 3px;

transition: transform 0.4s ease, opacity 0.3s ease;
transform-origin: center;
}

/* Active: Turn into X */
.menu-toggle.active span:nth-child(1) {
transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
transform: translateY(-9.5px) rotate(-45deg);
}

/*======================= TABLET AND MOBILE ============================= ======================= TABLET AND MOBILE ==================================================== TABLET AND MOBILE =============================*/
@media (max-width: 1024px) {

.menu-toggle {
display: flex !important;
}

.nav-links {
display: flex;
flex-direction: column;
gap: 0;

position: absolute;
top: 100%;
left: 0;
width: 100%;
z-index: 9999;

background: #171717;
padding: 12px;
text-align: center;

/* Animation setup */
max-height: 0;
overflow: hidden;
opacity: 0;

transition:
max-height 0.8s ease,
opacity 0.6s ease,
padding 0.8s ease;
}

/* Open menu */
.nav-links.active {
max-height: 400px;
opacity: 1;
padding: 15px 0;
}

.nav-links li {
list-style: none;
padding: 15px;

/* Individual link animation */
transform: translateY(-10px);
opacity: 0;

transition:
transform 0.6s ease,
opacity 0.6s ease;
}

/* Animate links into position */
.nav-links.active li {
transform: translateY(0);
opacity: 1;
}
/* Touch feedback */
.nav-links a:active {
color: #4da6ff;
transform: scale(0.95);
}

/* Staggered animation */
.nav-links.active li:nth-child(1) {
transition-delay: 0.5s;
}

.nav-links.active li:nth-child(2) {
transition-delay: 0.6s;
}

.nav-links.active li:nth-child(3) {
transition-delay: 0.7s;
}

.nav-links.active li:nth-child(4) {
transition-delay: 0.8s;
}

.nav-links.active li:nth-child(5) {
transition-delay: 0.9s;
}
}
