/* ============================================
   BOOKING MODAL STYLES
   ============================================ */
.booking-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.booking-modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.booking-modal-content {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    width: 95%;
    max-width: 1200px;
    max-height: 95vh;
    overflow: visible;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(61, 217, 184, 0.3);
}

.booking-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: 300;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.8);
    transition: all 0.3s ease;
}

.booking-modal-close:hover {
    color: var(--primary-blue);
    background: rgba(61, 217, 184, 0.2);
    transform: rotate(90deg);
}

.booking-modal-body {
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    visibility: visible !important;
    opacity: 1 !important;
}

.booking-modal-body iframe {
    min-height: 950px;
    height: 950px;
    max-height: 85vh;
    border-radius: 8px;
    display: block !important;
    visibility: visible !important;
}

.booking-modal-body script {
    display: block !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Booking Modal */
@media (max-width: 768px) {
    .booking-modal-content {
        width: 95%;
        max-height: 92vh;
        margin: 10px auto;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    
    .booking-modal-body {
        padding: 5px;
        overflow: visible;
        max-height: none;
        position: relative;
        height: 100%;
    }
    
    .booking-modal-body iframe {
        min-height: 2200px;
        height: auto;
        max-height: none;
        width: 100%;
        border: none;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        touch-action: manipulation;
        overscroll-behavior: contain;
    }
    
    .booking-modal-close {
        right: 10px;
        top: 10px;
        font-size: 28px;
        width: 36px;
        height: 36px;
        z-index: 10000;
        position: sticky;
    }
}

/* ============================================
   SERVICES DROPDOWN NAVIGATION
   ============================================ */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 12px;
    min-width: 280px;
    padding: 0.5rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    list-style: none;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu li a:hover {
    background: rgba(61, 217, 184, 0.1);
    color: var(--primary-blue);
    border-left-color: var(--primary-blue);
    padding-left: 1.5rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Services Dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static !important;
        display: none;
        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        left: auto !important;
        right: auto !important;
        text-align: center !important;
        border-radius: 8px;
        min-width: auto !important;
        width: 100% !important;
        box-shadow: none;
        border: none;
        background: rgba(61, 217, 184, 0.05);
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    .dropdown-menu li {
        text-align: center !important;
        margin: 0 auto !important;
        display: block !important;
        width: 100% !important;
    }
    
    .dropdown-menu li a {
        padding: 0.6rem 1rem !important;
        font-size: 0.95rem;
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        margin: 0 auto !important;
        justify-content: center !important;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
}

/* ============================================
   HOME PAGE SPECIFIC STYLES
   ============================================ */
.hero-image-wrapper .floating-card.card-4 {
    position: absolute;
    bottom: 10%;
    right: 10%;
    animation: floatAnimation 4s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Who We Work With Grid - 3 columns desktop, 2 columns mobile */
@media (max-width: 768px) {
    section .container > div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    section .container > div[style*="grid-template-columns: repeat(3, 1fr)"] > div {
        padding: 1.25rem 0.75rem !important;
    }
    
    section .container > div[style*="grid-template-columns: repeat(3, 1fr)"] h3 {
        font-size: 0.9rem !important;
    }
    
    section .container > div[style*="grid-template-columns: repeat(3, 1fr)"] i {
        font-size: 1.75rem !important;
        margin-bottom: 0.75rem !important;
    }
}
