:root {
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-blur: 15px;
    --topbar-bg: #00041b;
    --topbar-text: rgba(255, 255, 255, 0.8);
    --primary-color: #3090c7;
    --hover-color: #0d6efd;
    --nav-link-color: #333;
}


/* Fix body padding to prevent content jump */
body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden !important;
}

/* Main Header Wrapper */
.glass-header-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    height: fit-content;
    width: 100%;
    z-index: 9999;
    transition: all 0.3s ease;
}

/* Topbar */
.glass-topbar {
    background: var(--topbar-bg);
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--topbar-text);
    transition: all 0.3s;
}

.glass-topbar a {
    color: var(--topbar-text);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 1rem;
}

.glass-topbar a:hover {
    color: #fff;
}

.glass-topbar i {
    margin-right: 6px;
}

.topbar-divider {
    color: rgba(255,255,255,0.2);
    margin: 0 10px;
}

/* Navbar */
.glass-navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 10px 0;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 55px; /* Adjust logo height */
    width: auto;
    transition: transform 0.3s;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--nav-link-color) !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 15px !important;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Underline Effect */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

/* Contact Button in Navbar */
/* Contact Button in Navbar */
.btn-nav-contact {
    background: var(--primary-color);
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-left: 15px;
    border: 1px solid var(--primary-color);
}

.btn-nav-contact:hover {
    background: white;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-nav-contact::after {
    display: none; /* No underline for button */
}

/* Mobile Toggler */
.navbar-toggler {
    border: none;
    padding: 0;
    color: var(--primary-color);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Mobile Menu */
@media (max-width: 991px) {
    .glass-topbar {
        display: none; /* Hide topbar on mobile for cleaner look, or keep */
    }
    
    .glass-navbar {
        padding: 15px 0;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        padding: 20px;
        border-radius: 12px;
        margin-top: 15px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        border: 1px solid rgba(0,0,0,0.05);
    }

    .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(0,0,0,0.03);
    }

    .btn-nav-contact {
        margin: 15px 0 0 0;
        display: inline-block;
        text-align: center;
        width: 100%;
    }
}

/* Dropdown Styles */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 1rem 0;
    min-width: 220px;
    margin-top: 10px !important;
    border-top: 3px solid var(--primary-color);
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dropdown-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-item-link {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 12px;
}

.dropdown-item-link:hover {
    background: rgba(48, 144, 199, 0.1);
    color: var(--primary-color);
}

.dropdown-item-link i {
    width: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    opacity: 0.8;
}

/* Hide toggle arrow on Desktop if preferred, or keep small */
.dropdown-toggle::after {
    display: none; /* Hide default arrow */
}

.navbar-expand-lg .navbar-nav .dropdown-menu {
    top: 30px !important;
}

/* Show dropdown on hover for desktop */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu-glass {
        display: block;
        opacity: 1;
        visibility: visible;
        animation: slideDownNav 0.3s forwards;
    }
}

@keyframes slideDownNav {
    from {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Mobile Adjustments (max-width: 991px) */
@media (max-width: 991px) {
    .dropdown-menu-glass {
        display: none !important; /* Forces removal of dropdown on mobile */
    }
    
    .dropdown-toggle::after {
        display: none !important;
    }
    
    .nav-item.dropdown .nav-link {
        pointer-events: auto !important; /* Ensure link is clickable */
    }
}

/* Custom Image Cursor */
.custom-cursor-machine {
    width: 12px;
    height: 12px;
    background: transparent;
    border: none;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s, height 0.3s, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translate(-50%, -50%);
}

.custom-cursor-machine img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 100000;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(48, 144, 199, 0.5);
}

/* Hover States */
.custom-cursor-machine.cursor-active {
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%) scale(1.1);
}

.custom-cursor-dot.dot-active {
    width: 0;
    height: 0;
    opacity: 0;
}

/* Custom Image Cursor Follower */
.custom-cursor-machine {
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s, height 0.3s, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Offset so it follows behind the actual cursor tip slightly */
    transform: translate(0, 0); 
}

.custom-cursor-machine img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.custom-cursor-dot {
    display: none !important; /* Hidden as per request to use actual cursor */
}

/* Hover States */
.custom-cursor-machine.cursor-active {
    width: 48px;
    height: 48px;
    transform: scale(1.1);
}

/* System cursor is now visible by default (removed cursor: none) */

@media (max-width: 991px) {
    .custom-cursor-machine {
        display: none !important;
    }
}
