/* 
 * Service Pages V2 — High-End Design System
 */

:root {
    --service-accent: #0078ff;
    --service-dark: #0a1628;
    --service-text: #4a5568;
    --service-heading: #0a0f1e;
    --service-bg-light: #f8fafc;
    --service-border: #e2e8f0;
}

/* Base Styles */
.s-reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
.s-reveal.active { opacity: 1; transform: translateY(0); }

/* HERO SECTION */
.service-hero-v2 {
    background: linear-gradient(150deg, #0a1628 0%, #0d1e3a 100%);
    padding: 140px 0 100px;
    color: white;
    position: relative;
    overflow: hidden;
}

.service-hero-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(0, 120, 255, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.hero-grid-v2 {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-text-v2 .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 120, 255, 0.1);
    color: #60b8ff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 120, 255, 0.2);
}

.hero-text-v2 h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-text-v2 h1 span {
    color: var(--service-accent);
}

.hero-text-v2 p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-image-v2 {
    position: relative;
}

.hero-image-v2 img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

/* SECTION COMMON */
.section-v2 { padding: 100px 0; }
.section-v2.bg-light { background: var(--service-bg-light); }

.section-header-v2 { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-header-v2 .label { color: var(--service-accent); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.75rem; display: block; margin-bottom: 12px; }
.section-header-v2 h2 { 
    font-family: 'Playfair Display', serif; 
    font-size: clamp(2rem, 4vw, 2.5rem); 
    color: var(--service-heading); 
    font-weight: 800;
}

/* FEATURES GRID */
.features-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card-v2 {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--service-border);
    transition: all 0.4s ease;
    height: 100%;
}

.feature-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--service-accent);
}

/* ADVANCED CONTENT SECTIONS (Z-Pattern) */
.section-split-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.section-split-v2.reverse { direction: rtl; }
.section-split-v2.reverse > * { direction: ltr; }

.section-image-v2 { position: relative; }
.section-image-v2::after {
    content: ''; position: absolute; inset: -20px;
    border: 2px solid var(--service-accent);
    border-radius: 30px; opacity: 0.1; z-index: -1;
}
.section-image-v2 img { width: 100%; border-radius: 20px; box-shadow: 0 40px 80px rgba(0,0,0,0.1); }

/* BENTO GRID FOR FEATURES */
.bento-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 24px;
}

.bento-item-v2 {
    background: white;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--service-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bento-item-v2:hover {
    transform: scale(1.02);
    border-color: var(--service-accent);
    box-shadow: 0 30px 60px rgba(0, 120, 255, 0.1);
}

.bento-item-v2.large { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
.bento-item-v2.wide { grid-column: span 2; }

.bento-icon-v2 {
    font-size: 2rem;
    color: var(--service-accent);
    margin-bottom: 24px;
    opacity: 0.8;
}

/* PREMIUM STATS / TECH BOX */
.tech-cloud-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.tech-tag-v2 {
    background: var(--service-bg-light);
    color: var(--service-dark);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--service-border);
    transition: 0.3s;
}

.tech-tag-v2:hover {
    background: var(--service-accent);
    color: white;
    border-color: var(--service-accent);
}

.process-step-v2 { text-align: center; position: relative; }
.process-step-v2 .number {
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid var(--service-border);
    color: var(--service-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin: 0 auto 20px;
    font-family: 'Playfair Display', serif;
    position: relative;
    z-index: 2;
}

.process-step-v2 .title { font-weight: 700; color: var(--service-heading); font-size: 0.95rem; display: block; margin-bottom: 8px; }
.process-step-v2 .desc { font-size: 0.8rem; color: var(--service-text); }

/* WHY CHOOSE US */
.why-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.why-item-v2 { display: flex; gap: 20px; align-items: flex-start; }
.why-item-v2 .icon { 
    flex-shrink: 0; color: var(--service-accent); font-size: 1.25rem; margin-top: 4px;
}

.why-item-v2 h4 { font-weight: 700; color: var(--service-heading); margin-bottom: 8px; font-size: 1.1rem; }
.why-item-v2 p { font-size: 0.9rem; color: var(--service-text); line-height: 1.6; }

/* FAQ SECTION */
.faq-accordion-v2 { max-width: 800px; margin: 0 auto; }
.faq-item-v2 { border: 1px solid var(--service-border); border-radius: 12px; margin-bottom: 16px; overflow: hidden; background: white; }
.faq-trigger-v2 { 
    width: 100%; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center;
    background: none; border: none; text-align: left; font-weight: 700; font-size: 1rem; color: var(--service-heading);
    cursor: pointer;
}
.faq-content-v2 { padding: 0 24px 20px; color: var(--service-text); font-size: 0.95rem; line-height: 1.7; display: none; }

/* CTAs */
.service-cta-v2 {
    background: var(--service-accent);
    padding: 80px 0;
    text-align: center;
    color: white;
    border-radius: 30px;
    margin: 0 20px 100px;
}

.btn-v2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary-v2 { background: var(--service-accent); color: white; box-shadow: 0 10px 25px rgba(0, 120, 255, 0.3); }
.btn-primary-v2:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0, 120, 255, 0.4); }

.btn-white-v2 { background: white; color: var(--service-accent); }
.btn-white-v2:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .container { padding: 0 30px; }
    .hero-grid-v2 { grid-template-columns: 1fr; text-align: center; gap: 60px; }
    .hero-text-v2 p { margin-left: auto; margin-right: auto; }
    .hero-image-v2 { order: 2; }
    
    .section-split-v2 { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .section-split-v2.reverse { direction: ltr; }
    .section-image-v2 { order: 2; }
    .section-text-v2 { order: 1; }

    .features-grid-v2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .bento-grid-v2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .process-grid-v2 { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 768px) {
    body { font-size: 15px; }
    .section-v2 { padding: 60px 0; }
    
    .hero-text-v2 h1 { font-size: 2.3rem; margin-bottom: 20px; }
    .hero-text-v2 p { font-size: 1rem; margin-bottom: 30px; }
    .badge { margin-bottom: 20px; }
    
    .features-grid-v2 { grid-template-columns: 1fr; }
    .bento-grid-v2 { grid-template-columns: 1fr !important; }
    .bento-item-v2 { padding: 30px 20px; grid-column: span 1 !important; grid-row: span 1 !important; }
    
    .why-grid-v2 { grid-template-columns: 1fr; gap: 40px; }
    .process-grid-v2 { grid-template-columns: 1fr; gap: 25px; }
    .service-hero-v2 { padding: 100px 0 60px; }
    .service-cta-v2 { padding: 50px 20px; margin: 0 0 40px; border-radius: 0; } /* Remove side margins on mobile to prevent overflow */
    .service-cta-v2 h2 { font-size: 1.8rem !important; }

    .section-header-v2 { margin-bottom: 40px; }
    .section-header-v2 h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .cta-btns-v2 { display: flex; flex-direction: column; gap: 12px; }
    .cta-btns-v2 .btn-v2 { margin-left: 0 !important; width: 100%; justify-content: center; text-align: center; }
}
