:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #181a1f;
  --color-text: #fff;
  --color-text-light: #e0e0e0;
  --color-accent: #FFD700;
  --color-accent-alt: #FFA500;
  --color-gold-gradient: linear-gradient(90deg, #FFD700, #FFA500);
}

.custom-header, .header-main, .header-desktop, .header-mobile, .header-nav, .mobile-nav, .mobile-nav-content {
  background: var(--color-bg);
  color: var(--color-text);
}

.header-logo, .logo-link, .logo-symbol, .header-email, .header-contact-btn, .contact-email, .welcome-message, .site-url, .bullet, .welcome-text {
  color: var(--color-text);
}

.header-contact-btn, .mobile-contact-btn {
  background: var(--color-accent);
  color: #000;
}

.header-contact-btn:hover, .mobile-contact-btn:hover {
  background: var(--color-accent-alt);
  color: #000;
}

.nav-list a, .mobile-nav-list a {
  color: var(--color-text);
}

.nav-list a:hover, .mobile-nav-list a:hover, .nav-list .current-menu-item a, .nav-list a.active, .mobile-nav-list .current-menu-item a {
  background: var(--color-gold-gradient);
  color: #000;
}

.nav-separator {
  background: var(--color-accent);
}

/* Refactor all other hardcoded color values and gradients in this file to use the above variables. */

/* Responsive Header Design with Submenus */

/* Main Header */
.custom-header {
    color: #ffffff;
    border-bottom: none;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-main {
    position: relative;
}

/* Desktop Layout (1200px and above) */
.header-desktop {
    display: flex;
    flex-direction: column;
    min-height: 120px;
    padding: 0 24px;
}

/* Top Section */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 15px 0;
    position: relative;
}

/* Logo Section */
.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
}

.logo-symbol {
    display: flex;
    align-items: center;
}

.logo-symbol svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-symbol img {
    width: 100px;
    object-fit: contain;
    position: absolute;
  top: -1px;
  left: 0;
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    margin: 0 40px;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.nav-list li {
    margin: 0;
    padding: 0;
    position: relative;
}

.nav-list a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    position: relative;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-list a:hover {
    color: #ffffff;
    opacity: 0.8;
}

.nav-list .current-menu-item a,
.nav-list a.active {
    background: #3b82f6;
    color: #ffffff;
}

/* Submenu Styles */
.nav-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    margin-top: 10px;
}

.nav-list .sub-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #1f2937;
    border-left: 1px solid #374151;
    border-top: 1px solid #374151;
    transform: rotate(45deg);
}

.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-list .sub-menu li {
    margin: 0;
    padding: 0;
}

.nav-list .sub-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0.5px;
    padding: 12px 20px;
    display: block;
    border-radius: 0;
    border-bottom: 1px solid #374151;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-list .sub-menu a:hover {
    background: #374151;
    color: #ffffff;
    transform: translateX(5px);
}

.nav-list .sub-menu li:last-child a {
    border-bottom: none;
}

/* Dropdown Arrow */
.nav-list .menu-item-has-children > a::after {
    content: '▾';
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-list .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Email Contact on Right Side */
.header-email {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Contact Button */
.header-contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #374151;
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
}

.header-contact-btn:hover {
    background: #4b5563;
    color: #ffffff;
    transform: translateY(-1px);
}

.header-contact-btn i {
    font-size: 16px;
    color: #ffffff;
}

.contact-email {
    font-weight: 500;
    font-size: 14px;
    color: #ffffff;
}

/* Separator Line */
.nav-separator {
    height: 1px;
    background: #ffffff;
    width: 100%;
    margin: 15px 0;
}

/* Bottom Section */
.header-bottom {
    display: flex;
    justify-content: flex-start;
    padding: 10px 0;
}

/* Welcome Message */
.welcome-message {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #ffffff;
    font-weight: 400;
}

.site-url {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bullet {
    font-size: 12px;
    color: #ffffff;
}

.welcome-text {
    font-weight: 400;
    color: #ffffff;
}

/* Enhanced Desktop Submenu Styles */
.nav-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 8px 0;
    backdrop-filter: blur(10px);
    list-style: none;
}

.nav-list .menu-item-has-children:hover .sub-menu,
.nav-list .menu-item-has-children:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-list .sub-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-list .sub-menu li:last-child {
    border-bottom: none;
}

.nav-list .sub-menu a {
    display: block;
    padding: 12px 20px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-list .sub-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-list .sub-menu a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding-left: 25px;
}

.nav-list .sub-menu a:hover::before {
    transform: scaleY(1);
}

/* Desktop Dropdown Arrow */
.nav-list .menu-item-has-children > a::after {
    content: '▾';
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #ffd700;
}

.nav-list .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Mobile Layout (Hidden on desktop) */
.header-mobile {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background: #ffffff;
    opacity: 0.8;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Tablet View (901px - 1199px) */
@media (max-width: 1199px) and (min-width: 901px) {
    .header-desktop {
        padding: 0 20px;
    }

    .nav-list {
        gap: 20px;
    }

    .nav-list a {
        font-size: 13px;
        padding: 6px 12px;
    }

    .header-nav {
        margin: 0 20px;
    }

    .header-contact-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .contact-email {
        font-size: 13px;
    }

    .welcome-message {
        font-size: 13px;
    }
}

/* Mobile View (900px and below) */
@media (max-width: 1000px){
.logo-symbol img{
    position: static;
}

@media (max-width: 900px) {
    .header-desktop {
        display: none;
    }

    .header-mobile {
        display: block;
        padding: 0 16px;
    }

    /* Mobile Top Bar */
    .mobile-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
    }

    .mobile-logo {
        display: flex;
        align-items: center;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile Navigation */
    .mobile-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000000;
        border-top: 1px solid #333333;
        z-index: 1000;
        max-height: calc(100vh - 80px); /* Limit height to viewport minus header */
        overflow-y: auto; /* Enable vertical scrolling */
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    .mobile-nav.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }
    
    /* Custom scrollbar for mobile nav */
    .mobile-nav::-webkit-scrollbar {
        width: 6px;
    }
    
    .mobile-nav::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }
    
    .mobile-nav::-webkit-scrollbar-thumb {
        background: rgba(255, 215, 0, 0.6);
        border-radius: 3px;
    }
    
    .mobile-nav::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 215, 0, 0.8);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-nav-content {
        padding: 20px 16px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mobile-nav-list {
        display: flex;
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 0;
    }

    .mobile-nav-list li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #333333;
    }

    .mobile-nav-list li:last-child {
        border-bottom: none;
    }

    .mobile-nav-list a {
        color: #ffffff;
        text-decoration: none;
        font-weight: 700;
        font-size: 16px;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 15px 0;
        display: block;
        transition: all 0.3s ease;
        font-family: Arial, sans-serif;
    }

    .mobile-nav-list a:hover {
        color: #3b82f6;
        background: rgba(59, 130, 246, 0.1);
        padding-left: 10px;
    }

    .mobile-nav-list .current-menu-item a {
        color: #3b82f6;
        border-left: 3px solid #3b82f6;
        padding-left: 10px;
    }

    /* Mobile Submenu Styles */
    .mobile-nav-list .sub-menu {
        max-height: 0;
        overflow: hidden;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 6px;
        margin: 8px 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(-10px);
        opacity: 0;
    }
    
    .mobile-nav-list .menu-item-has-children.active .sub-menu {
        max-height: 500px; /* Increased from 300px to accommodate more items */
        transform: translateX(0);
        opacity: 1;
        padding: 10px 0;
        overflow-y: auto; /* Enable scrolling within submenu if needed */
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    /* Custom scrollbar for submenus */
    .mobile-nav-list .sub-menu::-webkit-scrollbar {
        width: 4px;
    }
    
    .mobile-nav-list .sub-menu::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 2px;
    }
    
    .mobile-nav-list .sub-menu::-webkit-scrollbar-thumb {
        background: rgba(255, 215, 0, 0.4);
        border-radius: 2px;
    }
    
    .mobile-nav-list .sub-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 215, 0, 0.6);
    }
    
    .mobile-nav-list .sub-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
    }
    
    .mobile-nav-list .sub-menu li:last-child {
        border-bottom: none;
    }
    
    .mobile-nav-list .sub-menu a {
        display: block;
        padding: 12px 20px;
        color: #cccccc;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
        border-left: 3px solid transparent;
    }
    
    .mobile-nav-list .sub-menu a:hover,
    .mobile-nav-list .sub-menu a:focus {
        color: #ffd700;
        background: rgba(255, 215, 0, 0.1);
        border-left-color: #ffd700;
        padding-left: 25px;
    }
    
    /* Enhanced Mobile Dropdown Toggle with + Sign */
    .mobile-nav-list .menu-item-has-children > a {
        position: relative;
        cursor: pointer;
        padding-right: 50px !important; /* Make room for the + button */
    }
    
    .mobile-nav-list .menu-item-has-children > a::after {
        content: '+';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        font-weight: bold;
        color: #ffd700;
        transition: all 0.3s ease;
        width: 25px;
        height: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 215, 0, 0.1);
        border-radius: 50%;
        border: 1px solid rgba(255, 215, 0, 0.3);
        cursor: pointer;
        z-index: 10;
    }
    
    .mobile-nav-list .menu-item-has-children.active > a::after {
        content: '−';
        transform: translateY(-50%) rotate(180deg);
        background: rgba(255, 215, 0, 0.2);
        border-color: rgba(255, 215, 0, 0.5);
    }
    
    /* Mobile Parent Menu Item Styling */
    .mobile-nav-list .menu-item-has-children > a:hover {
        background: rgba(255, 215, 0, 0.05);
    }
    
    /* Animation for submenu items */
    .mobile-nav-list .sub-menu li {
        transform: translateX(-20px);
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-list .menu-item-has-children.active .sub-menu li {
        transform: translateX(0);
        opacity: 1;
    }
    
    .mobile-nav-list .menu-item-has-children.active .sub-menu li:nth-child(1) { transition-delay: 0.1s; }
    .mobile-nav-list .menu-item-has-children.active .sub-menu li:nth-child(2) { transition-delay: 0.15s; }
    .mobile-nav-list .menu-item-has-children.active .sub-menu li:nth-child(3) { transition-delay: 0.2s; }
    .mobile-nav-list .menu-item-has-children.active .sub-menu li:nth-child(4) { transition-delay: 0.25s; }
    .mobile-nav-list .menu-item-has-children.active .sub-menu li:nth-child(5) { transition-delay: 0.3s; }

    .mobile-nav-list .sub-menu a:hover::before {
        transform: scaleY(1);
    }

    /* Desktop Dropdown Arrow */
    .nav-list .menu-item-has-children > a::after {
        content: '▾';
        margin-left: 8px;
        font-size: 12px;
        transition: transform 0.3s ease;
        color: #ffd700;
    }

    .nav-list .menu-item-has-children:hover > a::after {
        transform: rotate(180deg);
    }

    /* Duplicate CSS rules removed - using the earlier definition */
    
    /* Enhanced Mobile Dropdown Toggle */
    .mobile-nav-list .menu-item-has-children > a {
        position: relative;
        cursor: pointer;
        padding-right: 40px;
    }
    
    .mobile-nav-list .menu-item-has-children > a::after {
        content: '+';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        font-weight: bold;
        color: #ffd700;
        transition: all 0.3s ease;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 215, 0, 0.1);
        border-radius: 50%;
    }
    
    .mobile-nav-list .menu-item-has-children.active > a::after {
        content: '−';
        transform: translateY(-50%) rotate(180deg);
        background: rgba(255, 215, 0, 0.2);
        border-color: rgba(255, 215, 0, 0.5);
    }
    
    /* Mobile Parent Menu Item Styling */
    .mobile-nav-list .menu-item-has-children > a:hover {
        background: rgba(255, 215, 0, 0.05);
    }
    
    /* Animation for submenu items */
    .mobile-nav-list .sub-menu li {
        transform: translateX(-20px);
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-list .menu-item-has-children.active .sub-menu li {
        transform: translateX(0);
        opacity: 1;
    }
    
    .mobile-nav-list .menu-item-has-children.active .sub-menu li:nth-child(1) { transition-delay: 0.1s; }
    .mobile-nav-list .menu-item-has-children.active .sub-menu li:nth-child(2) { transition-delay: 0.15s; }
    .mobile-nav-list .menu-item-has-children.active .sub-menu li:nth-child(3) { transition-delay: 0.2s; }
    .mobile-nav-list .menu-item-has-children.active .sub-menu li:nth-child(4) { transition-delay: 0.25s; }
    .mobile-nav-list .menu-item-has-children.active .sub-menu li:nth-child(5) { transition-delay: 0.3s; }