/* Navigation Styles */
.navbar {
    position: fixed;
    width: 100%;
    /* increase stacking context so dropdown can appear above other page elements */
    z-index: 9998;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.5s ease-in-out;
}

.navbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.nav-link {
    color: #1f2937;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #f97316;
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.mobile-menu.open {
    max-height: 500px;
}

/* Service cards */
.service-card {
    background: #1f2937;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #374151;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Project containers */
.project-container {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-container.expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background: #000;
    border-radius: 0;
    border: none;
}

/* Glass effect */
.glass {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    backdrop-filter: blur(6px);
}

/* Close button */
.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

/* Video containers - Fixed for mobile */
.video-container-mobile {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
}

.video-container-mobile video {
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100vw !important;
    object-fit: contain !important;
}

.video-parent {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100vw !important;
    overflow: hidden !important;
}

/* Ensure desktop services dropdown is visible on hover even if some styles override Tailwind */
.desktop-services-menu {
    /* keep default hidden (Tailwind .hidden) but provide a safe fallback */
    display: none;
    /* ensure this menu stacks above everything else */
    position: absolute;
    z-index: 9999 !important;
}

/* If anything is preventing the Tailwind utility from taking effect, force visibility
   when parent .group is hovered. This is a narrow, targeted override. */
.navbar .group:hover > .desktop-services-menu {
    display: block !important;
}