/* Main Extracted Styles */

/* Modal Structural Styles */
.modal-root {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
}

.modal-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.modal-top-bar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.modal-brand {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #111;
    letter-spacing: -0.02em;
}

.modal-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-close-icon {
    font-size: 16px;
}

.modal-content {
    flex: 1;
    display: flex;
}

.modal-left-panel {
    flex-shrink: 0;
    background: #111;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal-right-panel {
    flex: 1;
    background: #f5f5f3;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}

.bg-video-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* overlay layer */
.bg-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    /* adjust darkness */
    pointer-events: none;
}

@media (max-width: 1023px) {
    #services-modal-inner {
        overflow: hidden !important;
    }

    #services-modal-content {
        flex-direction: column !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    #services-left-panel,
    #services-right-panel {
        width: 100% !important;
        min-height: auto !important;
        overflow: visible !important;
    }
}

@media (min-width: 1024px) {
    #services-modal-content {
        flex-direction: row !important;
        overflow: hidden !important;
    }

    #services-left-panel,
    #services-right-panel {
        width: 50% !important;
        min-height: 100% !important;
        overflow-y: auto !important;
    }
}

/* Modal Internal Styles */


.modal-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-label-divider {
    display: block;
    height: 1px;
    width: 32px;
    background: rgba(255, 255, 255, 0.2);
}

#services-right-panel .modal-label-divider {
    background: rgba(0, 0, 0, 0.2);
}

.modal-label-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

#services-right-panel .modal-label-text {
    color: rgba(0, 0, 0, 0.4);
}

.modal-title-container {
    margin-top: 10px;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    line-height: 1.1;
}

#services-right-panel .modal-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: #111;
    line-height: 1.2;
    margin-bottom: 20px;
}

.svc-list {
    list-style: none;
    margin-top: 50px;
    padding: 0;
}

.svc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: opacity 0.3s ease;
    opacity: 0.8;
}

.svc-item:hover {
    transition: 1s ease;
    opacity: 1;
}

.svc-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #fff;
}

.svc-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 18px;
}

.modal-note {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 40px;
    letter-spacing: 0.05em;
}



.modal-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1.0625rem;
    color: rgba(0, 0, 0, 0.55);
    line-height: 1.75;
    max-width: 420px;
}

.modal-whatsapp-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#modal-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    width: fit-content;
    transition: all 0.25s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.modal-whatsapp-note {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    color: rgba(0, 0, 0, 0.35);
}

.modal-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 8px 0;
}

.modal-socials {
    display: flex;
    gap: 24px;
}

.modal-social-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.modal-social-link:hover {
    transition: 1s ease;
    color: #111;
}

/* Section Backgrounds */
.hero-bg {
    padding-top: 6rem;
    background-image: url('../img/optimized/bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-bg {
    background-image: url('../img/optimized/about-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.no-underline {
    text-decoration: none !important;
}

/* Global Smooth Transitions */
button,
a,
.project-card-h,
.glass-card,
.uiverse-btn,
.svc-item,
.mobile-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Project Card Interactivity */
.project-card-h {
    cursor: pointer;
}

.project-card-h:hover {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

/* Section Entry Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    opacity: 0;
}

.reveal-on-scroll.is-visible {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* WhatsApp Widget Specifics */
#wa-popup {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

#wa-popup a {
    text-decoration: none;
}