/* 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: 8rem;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

@media (max-width: 991px) {
    .service-header {
        padding-top: 140px !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(2.5rem, 5vw, 4.5rem) !important;
    line-height: 1.1 !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 {
    font-weight: 900 !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.03em;
    color: #0f172a;
}
section h3 {
    font-weight: 800 !important;
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
    line-height: 1.3 !important;
    letter-spacing: -0.02em;
}
section h4, section h5 {
    font-weight: 700 !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;
}

/* 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 {
    animation: fadeInUpPremium 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Media Queries */
@media (max-width: 768px) {
    .service-header h1 { font-size: 2.75rem !important; }
    .cta-premium { padding: 3rem 1.5rem; }
}
/* =====================================================
   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: 90%;
    max-width: 550px;
    border-radius: 28px;
    padding: 2.5rem;
    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: 90vh;
    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: 2rem;
}

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

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

.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.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    color: #f97316;
    margin-bottom: 1.25rem;
    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: 1.25rem;
}

.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: 14px 16px 14px 48px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    color: #1e293b;
    transition: all 0.2s;
}

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

.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: 1.25rem;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.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);
}
