/* --- Global Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* --- Navbar Base --- */
.navbar {
    --nav-text-color: #fff;

    background: rgba(255, 255, 255, 0);
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed; /* Keep it at the top */
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
}

/* On desktop, text remains white by default (visible on dark hero) */
@media (min-width: 769px) {
    .navbar {
        --nav-text-color: #fff;
    }
}

/* --- Scrolled State (Glass Effect) --- */
.navbar.scrolled {
    --nav-text-color: #111;

    height: 70px;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* When scrolled, make dropdown menus light so they contrast the white nav */
.navbar.scrolled .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* When the navbar becomes solid/opaque (on scroll), switch to dark text for legibility */
.navbar.scrolled .navbar-link,
.navbar.scrolled .dropdown-link {
    color: #111;
}

.navbar.scrolled .navbar-link:hover,
.navbar.scrolled .dropdown-link:hover {
    color: #F00;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
}

.navbar-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111;
    text-decoration: none;
    transition: 0.3s;
}

/* --- Desktop Menu --- */
.navbar-menu {
    display: flex;
    align-items: center;
    list-style: none;
}

.navbar-item { margin-left: 30px; }

.navbar-link {
    text-decoration: none;
    color: var(--nav-text-color);
    font-weight: 500;
    transition: 0.3s;
}

.navbar-link:hover { color: #F00; }

/* Ensure dropdown text is also visible on dark/transparent backgrounds */
.dropdown-link {
    color: var(--nav-text-color);
}

.dropdown-link:hover { color: #F00; }

/* --- Dropdown Logic (Desktop) --- */
.dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    min-width: 160px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: 0.3s ease;
	list-style: none; /* This removes the bullet point */
    padding: 10px 0;  /* Keeps the vertical spacing clean */
    /* ... keep your other existing styles like position, background, etc. ... */
}

.dropdown-link {
    color: #fff;
}

.dropdown-link:hover { background: rgba(255,255,255,0.1); color: #F00; }

.dropdown-menu li {
    list-style: none;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu-menu {
    position: absolute;
    top: -10px;
    left: calc(100% - 6px);
    min-width: 220px;
    background: rgba(0, 0, 0, 0.82);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: 0.25s ease;
    list-style: none;
}

.navbar.scrolled .dropdown-submenu-menu {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.dropdown-submenu:hover .dropdown-submenu-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-link i {
    margin-right: 10px; /* Space between icon and text */
    width: 20px;       /* Fixed width so text aligns vertically */
    text-align: center;
    color: #F00;    /* Makes the icons match your theme blue */
    transition: 0.3s;
}

/* Optional: Make the icon change color when you hover over the link */
.dropdown-link:hover i {
    color: #F00;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    padding: 10px 20px;
    display: block;
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
    white-space: nowrap; /* keep multi-word items like "Special effects" on one line */
}

.dropdown-link:hover { background: rgba(255,255,255,0.1); color: #F00; }

/* --- CTA Button --- */
.navbar-btn {
    background: #F00;
    color: #FFF;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    white-space: nowrap; /* keep "Contact Us" on one line */
}

.navbar-btn:hover { background: #ff4d4d; transform: scale(1.05); }

/* --- Mobile Toggle --- */
.navbar-toggle { display: none; cursor: pointer; background: none; border: none; color: var(--nav-text-color); }
.bar { display: block; width: 25px; height: 3px; margin: 5px; background: currentColor; transition: 0.3s; }

/* Mobile-only contact info (hidden on desktop) */
.mobile-contact-info {
    display: none;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    color: #444;
    text-align: center;
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
    .navbar-toggle { display: block; position: relative; z-index: 1200; }

    /* Ensure navbar has white background on mobile when menu is open */
    .navbar.menu-open {
        background: #ffffff !important;
    }

    /* Make toggle black when menu is open (white background) */
    .navbar.menu-open .navbar-toggle {
        color: #111;
    }

    .navbar-menu {
        position: fixed;
        top: 90px;
        left: 0;
        transform: translateX(-110%);
        flex-direction: column;
        background: #ffffff;
        width: 100%;
        height: calc(100vh - 90px);
        transition: transform 0.4s ease, visibility 0.4s ease, opacity 0.4s ease, top 0.4s ease, height 0.4s ease;
        pointer-events: none; /* avoid accidental interaction when hidden */
        visibility: hidden;
        opacity: 0;
        z-index: 1050; /* menu sits behind the toggle button */
    }

    /* When navbar is scrolled, move menu up to fill the gap */
    .navbar.scrolled ~ #mobile-menu ~ #nav-menu,
    .navbar.scrolled .navbar-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .navbar-menu.active {
        --nav-text-color: #111;

        transform: translateX(0);
        pointer-events: auto;
        visibility: visible;
        opacity: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Prevent the page behind the menu from scrolling when the mobile menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* show contact info only when the mobile menu is open */
    .navbar-menu.active .mobile-contact-info {
        display: flex;
    }

    /* Ensure dropdown items are always dark when the mobile menu is open */
    .navbar-menu.active .dropdown-link {
        color: #111 !important;
    }

    .navbar-menu.active .dropdown-toggle.is-open,
    .navbar-menu.active .dropdown-submenu-toggle.is-open {
        color: #F00 !important;
    }

    .navbar-item { margin: 20px 0; width: 100%; text-align: center; }

    /* Top-level nav links larger and bold on mobile only */
    .navbar-item > .navbar-link,
    .navbar-item > .dropdown-toggle {
        font-size: 1.25rem;
        font-weight: 700;
    }

    /* Mobile Dropdown Slide-Down */
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: #ffffff;
        visibility: visible;
        opacity: 1;
        transform: none;
        list-style: none;
        padding: 0;
    }
	
	.dropdown-menu li {
        list-style: none;
    }

    .dropdown-submenu-menu {
        position: static;
        min-width: 0;
        display: none;
        box-shadow: none;
        background: #ffffff;
        border-radius: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown-submenu-menu.show {
        display: block;
        padding: 6px 0 16px;
    }

    .dropdown-submenu > .dropdown-link {
        display: block;
    }

    .dropdown-menu.show { 
        display: block;
        padding: 10px 0 18px;
    }

    /* Hamburger Animation */
    .navbar-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .navbar-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .navbar-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}