/* Service Detail Page Styles - Restoration & Premium Upgrade */

/* Variables / Theme */
:root {
    --premium-dark: #0f172a;
    --premium-orange: #f97316;
    --premium-orange-dark: #ea580c;
    --premium-gray: #f8fafc;
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.7);
}

/* ------------------------------------------------------------------
   1. HERO & HEADER
   ------------------------------------------------------------------ */
.service-header {
    background: radial-gradient(circle at top center, #fff7ed 0%, #ffffff 60%);
    padding-top: 6.5rem !important; /* Reduced from 8rem or 10rem */
    padding-bottom: 3rem !important;
    position: relative;
    overflow: hidden;
}

@media (max-width: 991px) {
    .service-header {
        padding-top: 5.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

@media (max-width: 576px) {
    .service-header {
        padding-top: 5rem !important;
        padding-bottom: 2rem !important;
    }
}

.service-hero-img-container {
    position: relative;
    border-radius: 3rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.7s ease;
}
.service-hero-img-container:hover {
    transform: translateY(-10px);
}

.service-hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.service-hero-img-container:hover .service-hero-img {
    transform: scale(1.05);
}

/* Typography - Bold & Premium */
.service-header h1 {
    font-weight: 900 !important;
    font-size: clamp(1.85rem, 4.5vw, 3rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.service-header p {
    font-size: clamp(1.15rem, 2vw, 1.35rem) !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    color: #475569;
}

/* ------------------------------------------------------------------
   2. GLOBAL TYPOGRAPHY ENHANCEMENTS
   ------------------------------------------------------------------ */
section h2, 
section h3, 
section h4, 
section h5 {
    font-weight: 900 !important;
    font-size: clamp(1.5rem, 3vw, 1.85rem) !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em;
    color: #0f172a;
}

/* Force Global Section Padding to match standard layout */
section.py-5,
section.section-premium-light.py-5,
section.bg-white.py-5,
section[style*="padding: 5rem"],
section[style*="padding-top: 5rem"] {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
}

/* Reduced margin between internal section components */
section.py-5 .mb-5,
section[style*="padding-top: 5rem"] .mb-5 {
    margin-bottom: 1.5rem !important; 
}

@media (max-width: 768px) {
    section.py-5,
    section[style*="padding: 5rem"],
    section[style*="padding-top: 5rem"] {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    section.py-5 .mb-5,
    section[style*="padding-top: 5rem"] .mb-5 {
        margin-bottom: 1rem !important;
    }
}

/* Gradient Text */
.text-gradient-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900 !important;
}

/* ------------------------------------------------------------------
   3. PREMIUM CARDS (Bento Grid)
   ------------------------------------------------------------------ */
.card-premium {
    background: #ffffff;
    border: 2px solid #f1f5f9;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-radius: 1.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 100%;
}

.card-premium:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 30px -5px rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.4);
}

/* Dynamic Glow */
.card-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(249,115,22,0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -1;
    pointer-events: none;
}
.card-premium:hover::after {
    opacity: 1;
}

/* Icon Box */
.icon-box-premium {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #ea580c;
    margin-bottom: 1.5rem;
    transition: all 0.5s ease;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.1);
}
.card-premium:hover .icon-box-premium {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3);
}

.card-premium h3 { font-weight: 800 !important; margin-bottom: 0.75rem; color: #1e293b; }
.card-premium p { font-size: 1rem !important; color: #64748b; line-height: 1.6; font-weight: 500; }

/* Bento Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 991px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .bento-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   4. NEW PREMIUM LIGHT SECTION (Converted from Dark)
   ------------------------------------------------------------------ */
.section-premium-light {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}
/* Subtle patterned background */
.section-premium-light::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
    z-index: 0;
}

/* Tech Stack Container - Floating White Card */
.tech-stack-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.05);
    border-radius: 2rem;
    padding: 2.5rem;
    position: relative;
    z-index: 1;
}

.tech-stack-container h4 {
    font-size: clamp(0.75rem, 1.5vw, 0.95rem) !important;
    letter-spacing: 0.05em !important;
}

/* Glass Pills - Light Theme Version */
.glass-pill {
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 0.75rem 1.25rem;
    border-radius: 99px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.glass-pill i { color: #f97316; }
.glass-pill:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: #fdba74;
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.15);
    color: #ea580c;
}

/* ------------------------------------------------------------------
   5. PREMIUM ACCORDION
   ------------------------------------------------------------------ */
.accordion-premium .accordion-item {
    background: transparent;
    border: none;
    margin-bottom: 1.25rem;
}
.accordion-premium .accordion-button {
    background: white;
    border: 2px solid #f1f5f9;
    border-radius: 1.25rem !important;
    padding: 1.5rem 2rem;
    font-weight: 700 !important;
    font-size: 1.1rem;
    color: #334155;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}
.accordion-premium .accordion-button:hover {
    border-color: #fdba74;
    transform: translateX(5px);
}
.accordion-premium .accordion-button:not(.collapsed) {
    background: linear-gradient(to right, #fff7ed, #fff);
    color: #c2410c;
    border-color: #fdba74;
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.08);
    font-weight: 800 !important;
}
.accordion-premium .accordion-body {
    background: white;
    border: 2px solid #f8fafc;
    border-top: none;
    border-bottom-left-radius: 1.25rem;
    border-bottom-right-radius: 1.25rem;
    padding: 2rem;
    margin-top: -15px;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ------------------------------------------------------------------
   6. SLIM CTA (Dark for Contrast)
   ------------------------------------------------------------------ */
.cta-premium {
    position: relative;
    background: #0f172a; /* Deep elegant dark */
    border-radius: 2.5rem;
    padding: 5rem 2rem;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.4);
}
.cta-premium-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(80px);
    pointer-events: none;
    animation: pulse-glow 4s infinite alternate;
}
@keyframes pulse-glow {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* ------------------------------------------------------------------
   7. UTILITIES & ANIMATIONS
   ------------------------------------------------------------------ */
.hover-scale { transition: transform 0.3s ease; }
.hover-scale:hover { transform: scale(1.05); }



/* Smooth Fade In Up Animation */
@keyframes fadeInUpPremium {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-premium-up {
    opacity: 1 !important; 
    visibility: visible !important;
    transform: none !important;
}

/* Media Queries */
@media (max-width: 768px) {
    .service-header h1 { font-size: 1.85rem !important; }
    section h2, section h3, section h4, section h5 { font-size: 1.5rem !important; }
    .cta-premium { padding: 2rem 1rem !important; }
    
    /* Reduce global service page gaps on mobile */
    .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .pt-5 { padding-top: 2rem !important; }
    .pb-5 { padding-bottom: 2rem !important; }
    .mb-5 { margin-bottom: 1.5rem !important; }
    .mt-5 { margin-top: 1.5rem !important; }
    .my-5 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
    .gy-5 { --bs-gutter-y: 1.5rem !important; }
}
/* =====================================================
   ENQUIRY MODAL STYLES (Consolidated)
   ===================================================== */
.enquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: transparent;
    border: none;
    padding: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.enquiry-modal.is-open {
    opacity: 1;
    pointer-events: auto;
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    z-index: 0;
}

.modal-glass-container {
    position: relative;
    z-index: 10000;
    background: #fff;
    width: 95%;
    max-width: 500px;
    border-radius: 20px;
    padding: 1rem 1.25rem;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow-y: auto;
    max-height: 95vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.enquiry-modal.is-open .modal-glass-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.45rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    line-height: 1.1;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.modal-close {
    background: #f1f5f9;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

.form-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    color: #f97316;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #fed7aa, transparent);
}

.input-wrapper {
    position: relative;
    margin-bottom: 0.6rem;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #1e293b;
    transition: all 0.2s;
}

.modal-form textarea {
    padding-left: 16px;
    min-height: 70px;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #f97316;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.modal-submit-btn {
    width: 100%;
    padding: 0.85rem;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-submit-btn:hover {
    background: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(249, 115, 22, 0.4);
}

/* Aggressive Mobile Optimization to avoid scrolling */
@media (max-width: 576px) {
    .modal-glass-container {
        padding: 0.65rem 0.85rem !important;
        max-height: 98vh !important;
        border-radius: 16px !important;
    }
    .modal-header {
        margin-bottom: 0.4rem !important;
    }
    .modal-title {
        font-size: 1.15rem !important;
    }
    .modal-subtitle {
        font-size: 0.75rem !important;
        margin-top: 0.1rem !important;
    }
    .form-section-title {
        font-size: 0.6rem !important;
        margin-bottom: 0.3rem !important;
    }
    .input-wrapper {
        margin-bottom: 0.3rem !important;
    }
    .modal-form input,
    .modal-form select {
        padding: 8px 12px 8px 36px !important;
        font-size: 0.82rem !important;
    }
    .modal-form textarea {
        min-height: 50px !important;
        padding-top: 8px !important;
        font-size: 0.82rem !important;
        margin-bottom: 0.3rem !important;
    }
    .modal-submit-btn {
        padding: 0.6rem !important;
        font-size: 0.9rem !important;
    }
    .mb-3 {
        margin-bottom: 0.3rem !important;
    }
    .modal-close {
        width: 32px !important;
        height: 32px !important;
    }
    .modal-close svg {
        width: 16px !important;
        height: 16px !important;
    }
    .row.g-3 {
        --bs-gutter-y: 0.3rem !important;
        --bs-gutter-x: 0.3rem !important;
    }
}
