/* Navbar */
#navbar{
    position: sticky;
top: 0;
z-index: 9999;
}
.navbar {
display: flex;
align-items: center;
align-self: top;
justify-content: space-between;
position: sticky;
/* margin-left: 0; */
/* margin-right: 0; */
z-index: 9999;
padding: 15px 8%;
/* width: 99%; */
left: 0;

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;
margin-left: -7px;
}

/* Navigation Links */
.nav-links {
display: flex;
align-items: center;
gap: 30px;
list-style: none;
padding: 20px;
}

.nav-links a {
color: white;
text-decoration: none;
font-size: 15px;
}

.nav-links a:hover {
color: #4da6ff;
}

/* Active navigation link */
.nav-links a.active {
    color: #ff3030;
    text-shadow: 0 0 10px #ff3030;
    border-bottom: 2px solid #ff3030;
    transition: all 0.3s ease;
}
/* 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;
}
.nav-links.active li:nth-child(6) {
transition-delay: 1.2s;
}

.nav-links.active li:nth-child(7) {
transition-delay: 1.5s;
}

.nav-links.active li:nth-child(8) {
transition-delay: 1.8s;
}
}

/* --------Store redirect overlay---------- */
.redirect-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.redirect-overlay.active {
    opacity: 1;
    visibility: visible;
}

.redirect-message {
    color: white;
    font-size: clamp(18px, 3vw, 30px);
    font-weight: bold;
    text-align: center;
    letter-spacing: 1px;

    animation: redirectPulse 1.5s ease-in-out infinite;
}

@keyframes redirectPulse {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}
