.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    background: #FFFFFF; /* Changed from gradient to solid white */
    box-shadow: 0 2px 20px rgba(79, 143, 132, 0.25);
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0; /* Added subtle border */
}

.mobile-header.scrolled {
    background: #FFFFFF; /* Changed from gradient to solid white */
    box-shadow: 0 5px 25px rgba(79, 143, 132, 0.3);
}

.mobile-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    height: 70px;
    max-width: 100%;
    margin: 0 auto;
}

/* Mobile Logo */
.mobile-logo {
    flex: 0 0 auto;
}

.mobile-logo-img {
    height: 46px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.mobile-logo-img:hover {
    transform: scale(1.05);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    background: #4F8F84; /* Changed to green */
    border: 1px solid rgba(79, 143, 132, 0.25);
    border-radius: 50px;
    padding: 10px 20px;
    color: white; /* Text color white for contrast */
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
    backdrop-filter: blur(5px);
}

.mobile-menu-toggle:hover {
    background: #40776e; /* Darker green on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 143, 132, 0.2);
}

.mobile-menu-toggle.active {
    background: #40776e; /* Darker green when active */
}

.menu-text {
    font-weight: 500;
}

.menu-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active .menu-icon {
    transform: rotate(90deg);
}

/* Mobile Dropdown Menu Container */
.mobile-dropdown-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 10px 30px rgba(79, 143, 132, 0.2);
    border-radius: 0 0 20px 20px;
    z-index: 1002;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-dropdown-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Mobile Nav Header */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #4F8F84, #7FB7AE);
    color: white;
}

.mobile-nav-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.mobile-close-menu {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-close-menu:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Mobile Navigation Links */
.mobile-main-nav {
    padding: 15px 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    width: 100%;
    border: none;
    background: transparent;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    background: rgba(79, 143, 132, 0.08);
    color: #4F8F84;
    padding-left: 25px;
}

.mobile-nav-link i:first-child {
    margin-right: 12px;
    color: #4F8F84;
    width: 20px;
    text-align: center;
}

.mobile-nav-link i:last-child {
    color: #999;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-nav-link:hover i:last-child {
    transform: translateX(5px);
    color: #4F8F84;
}

/* Mobile Dropdown Container Styles */
.mobile-dropdown-container {
    position: relative;
    width: 100%;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    width: 100%;
    border: none;
    background: transparent;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.mobile-dropdown-toggle:hover {
    background: rgba(79, 143, 132, 0.08);
    color: #4F8F84;
    padding-left: 25px;
}

.mobile-dropdown-toggle.active {
    background: rgba(79, 143, 132, 0.1);
    color: #4F8F84;
    font-weight: 600;
}

.mobile-dropdown-toggle i:first-child {
    margin-right: 12px;
    color: #4F8F84;
    width: 20px;
    text-align: center;
}

.mobile-dropdown-arrow {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.mobile-dropdown-toggle.active .mobile-dropdown-arrow {
    transform: rotate(180deg);
    color: #4F8F84;
}

/* Mobile Dropdown Submenu Styles */
.mobile-dropdown-submenu {
    display: none;
    background: #f9f9f9;
    padding-left: 20px;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

.mobile-dropdown-submenu.active {
    display: block;
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 500px;
        opacity: 1;
    }
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    width: 100%;
    border: none;
    background: transparent;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    border-left: 3px solid transparent;
    margin-left: 0;
}

.mobile-dropdown-item:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.mobile-dropdown-item:hover {
    background: rgba(79, 143, 132, 0.05);
    color: #4F8F84;
    padding-left: 25px;
    border-left: 3px solid #4F8F84;
}

.mobile-dropdown-item.active {
    background: rgba(79, 143, 132, 0.1);
    color: #4F8F84;
    font-weight: 600;
    border-left: 3px solid #4F8F84;
    padding-left: 25px;
}

.mobile-dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #4F8F84;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-dropdown-item:hover::before {
    transform: scaleY(1);
}

/* Mobile Contact Info */
.mobile-contact-info {
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: #555;
    font-size: 14px;
}

.mobile-contact-item:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.mobile-contact-item i {
    color: #4F8F84;
    width: 20px;
    text-align: center;
}

/* Mobile Social Icons */
.mobile-social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.mobile-social-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #4F8F84, #7FB7AE);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.mobile-social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(79, 143, 132, 0.4);
    background: linear-gradient(135deg, #7FB7AE, #4F8F84);
}

/* Mobile CTA Button */
.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: calc(100% - 40px);
    margin: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #4F8F84, #7FB7AE);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 143, 132, 0.3);
}

.mobile-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 143, 132, 0.4);
    background: linear-gradient(135deg, #7FB7AE, #4F8F84);
}

/* Bubble effects for mobile elements */
.mobile-menu-toggle,
.mobile-nav-link,
.mobile-cta-btn,
.mobile-social-icon,
.mobile-close-menu,
.mobile-dropdown-toggle,
.mobile-dropdown-item {
    position: relative;
    cursor: pointer;
}

/* Animation for mobile dropdown menu */
@keyframes slideDownFull {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .mobile-header-container {
        padding: 10px 15px;
        height: 60px;
    }
    
    .mobile-logo-img {
        height: 40px;
        max-width: 130px;
    }
    
    .mobile-menu-toggle {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .mobile-dropdown-menu {
        top: 60px;
    }
    
    .mobile-nav-header {
        padding: 15px;
    }
    
    .mobile-nav-header h3 {
        font-size: 16px;
    }
    
    .mobile-nav-link,
    .mobile-dropdown-toggle {
        padding: 14px 15px;
        font-size: 15px;
    }
    
    .mobile-dropdown-item {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .mobile-contact-item {
        font-size: 13px;
        padding: 10px 0;
    }
    
    .mobile-social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .mobile-cta-btn {
        padding: 14px;
        font-size: 15px;
    }
    
    .mobile-dropdown-submenu {
        padding-left: 15px;
    }
}

@media (max-width: 360px) {
    .mobile-header-container {
        padding: 8px 12px;
        height: 55px;
    }
    
    .mobile-logo-img {
        height: 36px;
        max-width: 110px;
    }
    
    .mobile-menu-toggle {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .menu-text {
        display: none;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
    }
    
    .mobile-dropdown-menu {
        top: 55px;
    }
    
    .mobile-nav-link,
    .mobile-dropdown-toggle {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .mobile-dropdown-item {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .mobile-dropdown-submenu {
        padding-left: 12px;
    }
}

/* Mobile dropdown adjustments for desktop dropdowns on mobile */
@media (max-width: 768px) {
    .dropdown-container {
        width: 100%;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-menu {
        position: relative;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin-top: 5px;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .dropdown-item {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(79, 143, 132, 0.1);
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
}

/* ============ YOUTUBE VIDEO MOBILE POSITIONING FIX ============ */
@media (max-width: 768px) {
    /* Fix YouTube video positioning on mobile */
    .youtube-background {
        position: absolute !important;
        top: -50px !important; /* Move video upward to show behind content */
        left: 0 !important;
        width: 100% !important;
        height: calc(100% + 50px) !important; /* Extend height to compensate */
        z-index: 0 !important;
        overflow: hidden !important;
    }
    
    /* YouTube iframe adjustments */
    .youtube-iframe {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 100vw !important;
        height: 56.25vw !important; /* 16:9 aspect ratio */
        min-height: calc(100% + 50px) !important;
        min-width: 177.78vh !important;
        z-index: 0 !important;
    }
    
    /* Ensure YouTube player covers properly */
    #youtubePlayer {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
    }
    
    /* Adjust hero section to accommodate moved video */
    .hero-section {
        height: 65vh !important;
        min-height: 500px !important;
        padding-top: 100px !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    /* Adjust video container */
    .hero-video-container {
        position: absolute !important;
        top: -50px !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100% + 50px) !important;
        overflow: hidden !important;
        z-index: 0 !important;
    }
    
    /* Video placeholder should match new position */
    .video-placeholder {
        top: -50px !important;
        height: calc(100% + 50px) !important;
    }
    
    /* YouTube video overlay adjustment */
    .youtube-video-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.5) 30%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.5) 70%,
            rgba(0, 0, 0, 0.8) 100%
        ) !important;
        z-index: 1 !important;
    }
    
    /* Adjust ripple container */
    .ripple-container {
        top: 0 !important;
        height: 100% !important;
        pointer-events: none !important;
    }
    
    /* Ensure hero content stays on top */
    .hero-content {
        position: absolute !important;
        bottom: 15% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        z-index: 3 !important;
        background: rgba(0, 0, 0, 0.3) !important; /* Semi-transparent background */
        backdrop-filter: blur(5px) !important;
        border-radius: 15px !important;
        padding: 20px !important;
        text-align: center !important;
    }
}

/* ============ ALTERNATIVE: SIMPLER FIX ============ */
/* If the above doesn't work, try this simpler approach */
@media (max-width: 768px) {
    /* Force YouTube video to cover entire background */
    .hero-section::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: -1 !important;
        background: #1a3c34 !important; /* Fallback color */
    }
    
    /* Make YouTube container absolutely positioned to cover */
    .youtube-background {
        position: fixed !important; /* Use fixed to escape container constraints */
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important; /* Full viewport height */
        z-index: -2 !important; /* Behind everything */
    }
    
    /* YouTube iframe adjustments for mobile */
    .youtube-iframe {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(1.2) !important; /* Slight zoom to cover */
        width: 100vw !important;
        height: 56.25vw !important;
        min-height: 100vh !important;
        min-width: 177.78vh !important;
    }
    
    /* Adjust hero section for new background */
    .hero-section {
        background: transparent !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* Ensure content is above video */
    .hero-content {
        position: relative !important;
        z-index: 2 !important;
    }
}

/* ============ SPECIFIC FIX FOR SMALL MOBILE DEVICES ============ */
@media (max-width: 480px) {
    /* Adjust upward movement for smaller screens */
    .youtube-background {
        top: -30px !important;
        height: calc(100% + 30px) !important;
    }
    
    .hero-video-container {
        top: -30px !important;
        height: calc(100% + 30px) !important;
    }
    
    .video-placeholder {
        top: -30px !important;
        height: calc(100% + 30px) !important;
    }
    
    .hero-content {
        bottom: 10% !important;
        width: 95% !important;
        padding: 15px !important;
    }
}

/* ============ FIX FOR LANDSCAPE ORIENTATION ============ */
@media (max-width: 768px) and (orientation: landscape) {
    .youtube-background {
        top: -20px !important;
        height: calc(100% + 20px) !important;
    }
    
    .hero-video-container {
        top: -20px !important;
        height: calc(100% + 20px) !important;
    }
    
    .video-placeholder {
        top: -20px !important;
        height: calc(100% + 20px) !important;
    }
    
    .hero-content {
        bottom: 25% !important;
        left: 5% !important;
        transform: none !important;
        width: 90% !important;
        text-align: left !important;
    }
}

/* ============ Z-INDEX LAYERING FIX ============ */
/* Ensure proper layer ordering */
@media (max-width: 768px) {
    .hero-section {
        position: relative !important;
        z-index: 1 !important;
    }
    
    .youtube-background {
        z-index: 0 !important;
    }
    
    .youtube-video-overlay {
        z-index: 1 !important;
    }
    
    .ripple-container {
        z-index: 2 !important;
    }
    
    .hero-content {
        z-index: 3 !important;
    }
    
    .video-controls {
        z-index: 4 !important;
    }
}

/* ============ FALLBACK FIX ============ */
/* If video is still hidden, try forcing it to show with higher z-index */
@media (max-width: 768px) {
    /* Emergency override to force video visibility */
    .youtube-background {
        z-index: 9998 !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
    
    .youtube-background iframe,
    #youtubePlayer {
        z-index: 9999 !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
    
    /* Push content down slightly if video is on top */
    .hero-content {
        margin-top: 20px !important;
    }
}

/* ============ DEBUG BORDERS (Remove after testing) ============ */
/* Uncomment to see element boundaries */
/*
@media (max-width: 768px) {
    .youtube-background {
        border: 2px solid red !important;
    }
    
    #youtubePlayer {
        border: 2px solid blue !important;
    }
    
    .hero-content {
        border: 2px solid green !important;
    }
    
    .hero-section {
        border: 2px solid yellow !important;
    }
}
*/


