/* ============================================
   CreaNext Services — Modern & Premium
   ============================================ */

/* --- Variables --- */
:root {
    --sv-blue: #3b82f6;
    --sv-purple: #8b5cf6;
    --sv-gold: #eab308;
    --sv-emerald: #10b981;
    --sv-rose: #f43f5e;
    --sv-orange: #f97316;
    --sv-cyan: #06b6d4;
    --sv-bg: #0a0a0f;
    --sv-card: rgba(255,255,255,0.05);
    --sv-card-hover: rgba(255,255,255,0.08);
    --sv-border: rgba(255,255,255,0.1);
    --sv-text: #f1f5f9;
    --sv-muted: #cbd5e1;
    --sv-radius: 16px;
    --sv-grad: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

[data-theme="light"] {
    --sv-bg: #f8fafc;
    --sv-card: rgba(255,255,255,0.85);
    --sv-card-hover: rgba(255,255,255,0.95);
    --sv-border: rgba(0,0,0,0.08);
    --sv-text: #0f172a;
    --sv-muted: #64748b;
}

/* --- Hero --- */
.sv-hero {
    padding: 8rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.sv-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, rgba(139,92,246,0.06) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.sv-hero .container {
    position: relative;
    z-index: 1;
}
.sv-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    color: var(--sv-blue);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}
.sv-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--sv-text);
    margin-bottom: 1rem;
    line-height: 1.15;
}
.sv-hero h1 .gradient-text {
    background: var(--sv-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sv-hero-sub {
    color: var(--sv-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}
.sv-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Stats Bar --- */
.sv-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 3rem auto 0;
}
.sv-stat {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--sv-radius);
    background: var(--sv-card);
    border: 1px solid var(--sv-border);
}
.sv-stat-num {
    font-size: 2rem;
    font-weight: 800;
    background: var(--sv-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.25rem;
}
.sv-stat-label {
    font-size: 0.8rem;
    color: var(--sv-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* --- Category Filter --- */
.sv-filter {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.sv-filter-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 1px solid var(--sv-border);
    background: transparent;
    color: var(--sv-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}
.sv-filter-btn:hover {
    color: var(--sv-text);
    border-color: rgba(255,255,255,0.25);
}
.sv-filter-btn.active {
    background: var(--sv-grad);
    color: #fff;
    border-color: transparent;
}
[data-theme="light"] .sv-filter-btn:hover {
    border-color: rgba(0,0,0,0.2);
}

/* --- Section Title --- */
.sv-section {
    padding: 4rem 0;
}
.sv-section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--sv-text);
    text-align: center;
    margin-bottom: 0.5rem;
}
.sv-section-sub {
    text-align: center;
    color: var(--sv-muted);
    font-size: 1rem;
    margin-bottom: 3rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Service Cards Grid --- */
.sv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.sv-card {
    background: var(--sv-card);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: default;
}
.sv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--sv-grad);
    opacity: 0;
    transition: opacity 0.3s;
}
.sv-card:hover {
    transform: translateY(-6px);
    background: var(--sv-card-hover);
    border-color: rgba(59,130,246,0.3);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.3);
}
.sv-card:hover::before {
    opacity: 1;
}
.sv-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    flex-shrink: 0;
}
.sv-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sv-text);
    margin-bottom: 0.6rem;
}
.sv-card p {
    color: var(--sv-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex: 1;
}
.sv-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.sv-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.06);
    color: var(--sv-muted);
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.06);
}
[data-theme="light"] .sv-tag {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.06);
}
.sv-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--sv-blue);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s;
    margin-top: auto;
}
.sv-card-link:hover {
    gap: 0.8rem;
}

/* Icon color variations */
.sv-icon-blue { background: rgba(59,130,246,0.12); color: #60a5fa; }
.sv-icon-purple { background: rgba(139,92,246,0.12); color: #a78bfa; }
.sv-icon-gold { background: rgba(234,179,8,0.12); color: #fbbf24; }
.sv-icon-emerald { background: rgba(16,185,129,0.12); color: #34d399; }
.sv-icon-rose { background: rgba(244,63,94,0.12); color: #fb7185; }
.sv-icon-orange { background: rgba(249,115,22,0.12); color: #fb923c; }
.sv-icon-cyan { background: rgba(6,182,212,0.12); color: #22d3ee; }

/* --- Featured / Highlight Card --- */
.sv-card.sv-featured {
    border-color: rgba(59,130,246,0.3);
    background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(139,92,246,0.04));
}
.sv-card.sv-featured::before {
    opacity: 1;
}
.sv-featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--sv-grad);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Process Section --- */
.sv-process {
    padding: 4rem 0;
}
.sv-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}
.sv-process-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sv-blue), var(--sv-purple), transparent);
    opacity: 0.3;
}
.sv-step {
    text-align: center;
    position: relative;
    z-index: 1;
}
.sv-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--sv-grad);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 20px rgba(59,130,246,0.3);
}
.sv-step h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sv-text);
    margin-bottom: 0.4rem;
}
.sv-step p {
    font-size: 0.85rem;
    color: var(--sv-muted);
    line-height: 1.5;
}

/* --- Tech Stack --- */
.sv-tech {
    padding: 3rem 0;
}
.sv-tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}
.sv-tech-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    background: var(--sv-card);
    border: 1px solid var(--sv-border);
    font-size: 0.85rem;
    color: var(--sv-text);
    font-weight: 500;
    transition: all 0.3s;
}
.sv-tech-item:hover {
    border-color: rgba(59,130,246,0.3);
    transform: translateY(-2px);
}
.sv-tech-item i {
    font-size: 1.1rem;
    color: var(--sv-blue);
}

/* --- CTA Section --- */
.sv-cta {
    text-align: center;
    padding: 4rem 0 2rem;
}
.sv-cta-box {
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(139,92,246,0.06));
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 20px;
    padding: 3.5rem 2rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.sv-cta-box::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.sv-cta-box h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--sv-text);
    margin-bottom: 0.75rem;
}
.sv-cta-box p {
    color: var(--sv-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.sv-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Testimonial Strip --- */
.sv-testimonials {
    padding: 3rem 0;
}
.sv-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
.sv-testimonial {
    background: var(--sv-card);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    padding: 1.5rem;
}
.sv-testimonial-quote {
    color: var(--sv-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}
.sv-testimonial-quote::before {
    content: '"';
    font-size: 2rem;
    color: var(--sv-blue);
    font-weight: 800;
    line-height: 0.5;
    display: inline;
    margin-right: 0.2rem;
}
.sv-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.sv-testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sv-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.sv-testimonial-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sv-text);
}
.sv-testimonial-role {
    font-size: 0.75rem;
    color: var(--sv-muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .sv-hero {
        padding: 7rem 0 2rem;
    }
    .sv-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .sv-grid {
        grid-template-columns: 1fr;
    }
    .sv-process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }
    .sv-process-grid::before {
        display: none;
    }
    .sv-hero-actions {
        flex-direction: column;
        align-items: center;
    }
}
@media (max-width: 480px) {
    .sv-stats {
        grid-template-columns: 1fr 1fr;
    }
    .sv-process-grid {
        grid-template-columns: 1fr;
    }
    .sv-cta-box {
        padding: 2.5rem 1.5rem;
    }
}
