/* Hide PR Sparkz logo in service cards */
#services img[src="/pr sparkz final logo_1.png"],
#services img[src*="pr sparkz final logo"],
#services img[alt="PR Sparkz Logo"],
#services .w-8.h-8.object-contain {
    display: none !important;
}

/* Hide any white patch/dot in service cards */
#services .group .absolute.top-2.right-2,
#services .group .absolute.top-4.right-4 {
    display: none !important;
}

/* Hide icons in Why Choose section but keep images */
.group .absolute:has(svg):not(:has(img)) {
    display: none !important;
}

/* Fix hero section video responsiveness */
#home video {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    min-width: 100% !important;
    min-height: 100% !important;
}

/* Ensure video container maintains proper aspect ratio on mobile */
@media (max-width: 768px) {
    #home {
        min-height: 100vh !important;
    }
    
    #home video {
        object-fit: cover !important;
        height: 100% !important;
    }
    
    #home > div:first-child {
        height: 100% !important;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    #home video {
        object-position: center center !important;
    }
}

/* Mobile Menu Fixes */
/* Ensure mobile menu button is always visible on small screens */
@media (max-width: 1024px) {
    .lg\:hidden {
        display: flex !important;
    }
    
    /* Make sure hamburger button is clickable */
    button[aria-label="Toggle menu"],
    .lg\:hidden button,
    header button,
    nav button {
        z-index: 1002 !important;
        position: relative !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.5rem !important;
        background: transparent !important;
        border: none !important;
    }
    
    /* Hamburger icon styling */
    button svg {
        width: 1.5rem !important;
        height: 1.5rem !important;
        color: #374151 !important;
    }
    
    /* Ensure mobile menu overlay works properly */
    nav[role="navigation"] {
        position: relative !important;
    }
}

/* Fix mobile navigation menu positioning and visibility */
@media (max-width: 1024px) {
    /* Mobile menu container when open */
    .lg\:flex:not(.hidden),
    .lg\:flex.flex-col.absolute,
    nav .lg\:flex:not(.hidden) {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 1000 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2rem !important;
        padding: 2rem !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure hidden class works */
    .lg\:flex.hidden {
        display: none !important;
    }
    
    /* Mobile menu links */
    .lg\:flex:not(.hidden) a,
    .lg\:flex.flex-col.absolute a,
    nav .lg\:flex:not(.hidden) a {
        font-size: 1.5rem !important;
        font-weight: 600 !important;
        padding: 1rem 2rem !important;
        color: #374151 !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        border-radius: 0.5rem !important;
        text-align: center !important;
        min-width: 200px !important;
        display: block !important;
    }
    
    .lg\:flex:not(.hidden) a:hover,
    .lg\:flex.flex-col.absolute a:hover,
    nav .lg\:flex:not(.hidden) a:hover {
        background: #f3f4f6 !important;
        color: #7c3aed !important;
        transform: translateY(-2px) !important;
    }
    
    /* Close button or menu items container */
    .lg\:flex:not(.hidden) > *,
    nav .lg\:flex:not(.hidden) > * {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
}

/* Body overflow control when menu is open */
body.overflow-hidden {
    overflow: hidden !important;
}

/* ===== DESKTOP NAVIGATION DROPDOWN FIXES ===== */

/* Ensure More dropdown appears on hover */
.lg\:flex .relative.group:hover .absolute {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    z-index: 9999 !important;
}

/* Desktop dropdown container enhancements */
@media (min-width: 1024px) {
    /* More button hover area expansion */
    .lg\:flex .relative.group {
        position: relative;
    }
    
    .lg\:flex .relative.group::before {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        z-index: -1;
    }
    
    /* Desktop dropdown positioning and visibility */
    .lg\:flex .relative.group .absolute[class*="top-full"] {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        margin-top: 0.5rem !important;
        z-index: 9999 !important;
        display: none;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.2s ease-in-out;
    }
    
    /* Show dropdown on parent hover */
    .lg\:flex .relative.group:hover .absolute[class*="top-full"] {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
    
    /* Dropdown content styling */
    .lg\:flex .relative.group .absolute[class*="top-full"] {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(147, 51, 234, 0.1) !important;
        border-radius: 1rem !important;
        box-shadow: 0 20px 60px rgba(134, 102, 165, 0.25), 0 0 0 1px rgba(134, 102, 165, 0.08) !important;
        min-width: 16rem !important;
    }
    
    /* Dropdown items hover effects */
    .lg\:flex .relative.group .absolute[class*="top-full"] a:hover,
    .lg\:flex .relative.group .absolute[class*="top-full"] [class*="cursor-pointer"]:hover {
        background: rgba(147, 51, 234, 0.05) !important;
        color: rgb(147, 51, 234) !important;
    }
    
    /* Ensure dropdown stays open when hovering over it */
    .lg\:flex .relative.group .absolute[class*="top-full"]:hover {
        display: block !important;
        opacity: 1 !important;
    }
    
    /* Force dropdown visibility for More menu specifically */
    nav .relative.group:hover div[style*="zIndex"] {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    /* Additional fallback for dropdown detection */
    .relative.group:hover [class*="dropdown"],
    .relative.group:hover [class*="menu"] {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Fix dropdown UI issues when options are showing */
    .lg\:flex .relative.group .absolute[class*="top-full"] {
        /* Improved positioning */
        position: absolute !important;
        top: calc(100% + 0.5rem) !important;
        left: 0 !important;
        right: auto !important;
        
        /* Enhanced visibility */
        display: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px) scale(0.95);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        
        /* Better styling */
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border: 1px solid rgba(134, 102, 165, 0.12) !important;
        border-radius: 12px !important;
        box-shadow: 
            0 20px 25px -5px rgba(134, 102, 165, 0.15),
            0 10px 10px -5px rgba(134, 102, 165, 0.08),
            0 0 0 1px rgba(134, 102, 165, 0.05) !important;
        
        /* Size constraints */
        min-width: 240px !important;
        max-width: 280px !important;
        width: max-content !important;
        
        /* Layering */
        z-index: 9999 !important;
        pointer-events: none;
    }
    
    /* Show dropdown with smooth animation */
    .lg\:flex .relative.group:hover .absolute[class*="top-full"] {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) scale(1) !important;
        pointer-events: auto !important;
    }
    
    /* Dropdown content enhancements */
    .lg\:flex .relative.group .absolute[class*="top-full"] > div {
        padding: 8px !important;
    }
    
    /* Dropdown items styling */
    .lg\:flex .relative.group .absolute[class*="top-full"] a,
    .lg\:flex .relative.group .absolute[class*="top-full"] [class*="cursor-pointer"] {
        display: block !important;
        padding: 12px 16px !important;
        margin: 2px 0 !important;
        border-radius: 8px !important;
        color: #000000 !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
        transition: all 0.15s ease-in-out !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    /* Dropdown items hover effects */
    .lg\:flex .relative.group .absolute[class*="top-full"] a:hover,
    .lg\:flex .relative.group .absolute[class*="top-full"] [class*="cursor-pointer"]:hover {
        background: linear-gradient(135deg, rgba(134, 102, 165, 0.08), rgba(134, 102, 165, 0.12)) !important;
        color: #000000 !important;
        transform: translateX(4px) !important;
    }
    
    /* Dropdown separator line */
    .lg\:flex .relative.group .absolute[class*="top-full"] > div:first-child {
        background: linear-gradient(90deg, #8666A5, #a890cc) !important;
        height: 3px !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* More button active state when dropdown is open */
    .lg\:flex .relative.group:hover > div[class*="nav-item"] {
        background: rgba(134, 102, 165, 0.1) !important;
        transform: translateY(-1px) !important;
    }
    
    /* Prevent dropdown from closing when hovering */
    .lg\:flex .relative.group .absolute[class*="top-full"]:hover {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Arrow indicator for dropdown */
    .lg\:flex .relative.group:hover > div[class*="nav-item"]::after {
        content: '' !important;
        position: absolute !important;
        bottom: -8px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 0 !important;
        height: 0 !important;
        border-left: 6px solid transparent !important;
        border-right: 6px solid transparent !important;
        border-bottom: 6px solid rgba(255, 255, 255, 0.98) !important;
        z-index: 10000 !important;
    }
}
