/* Desktop Navbar Styles */
.navbar {
    position: fixed;
    left: calc(50% - 525px);
    top: 200px;
    padding: 1.5rem 1rem;
    z-index: 1000;
    animation: subtleSlideIn 0.5s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}
.navbar ul {
    list-style: none;
    padding: 0;
}
.navbar li {
    margin-bottom: 0.25rem;
}
.navbar a {
    color: #888;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
    font-weight: 300;
    font-size: 1rem;
}
.navbar a.active {
    font-weight: 400;
    color:#333;
}
.navbar a:hover {
    color: #333;
}
.navbar .divider {
    height: 1px;
    background: #eee;
    margin: 1rem 0;
}
.navbar .cta {
    color: #333;
    font-weight: 400;
    margin-top: 0.75rem;
    background-color: #f3f4f6;
    padding: 0.75rem 1rem;
    border-radius: 10px;
}
.navbar .cta:focus {
    outline:0;
}
.navbar .cta:hover {
    background-color: #eee;
    color: #333;
}

/* Animation for subtle slide-in effect */
@keyframes subtleSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px); /* Start 20px to the left */
  }
  to {
    opacity: 1;
    transform: translateX(0); /* End at original position */
  }
}

/* Mobile Navbar Styles */
.navbar-mobile {
    display: none;
    z-index: 10000;
}

/* Responsive Adjustments for <= 1050px */
@media (max-width: 1050px) {
    .navbar {
        display: none; /* Hide desktop navbar */
    }
    .navbar-mobile {
        display: block; /* Show mobile navbar */
    }
}





.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    backdrop-filter: blur(10px);
    z-index: 1000;
    
    /* Fade effect properties */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Active state for fade in */
.overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 600px;
    
    /* Scale animation for content */
    transform: translate(-50%, -50%) scale(0.8);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.overlay.active .overlay-content {
    transform: translate(-50%, -50%) scale(1);
}

.overlay-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.overlay-menu li {
    margin: 50px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
}

.overlay.active .overlay-menu li {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delay for menu items */
.overlay.active .overlay-menu li:nth-child(1) { transition-delay: 0.1s; }
.overlay.active .overlay-menu li:nth-child(2) { transition-delay: 0.2s; }
.overlay.active .overlay-menu li:nth-child(3) { transition-delay: 0.3s; }
.overlay.active .overlay-menu li:nth-child(4) { transition-delay: 0.4s; }
.overlay.active .overlay-menu li:nth-child(5) { transition-delay: 0.5s; }

.overlay a {
    color: #1f2937;
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;

    font-family: "Inter", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.overlay a::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.overlay {
    filter: blur(10px);
}
.overlay.active {
    filter: blur(0px);
}