/* ==============================================
   TRIVIKRA TECH — Multi-Page Styles
   Shared across services, about, portfolio, contact
   ============================================== */

/* ──── Page Hero (inner pages) ──── */
.page-hero {
    padding: 160px 0 80px;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, .06) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero .tag {
    animation: fadeInUp .5s ease forwards;
}

.page-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.025em;
    color: #0f172a;
    margin-bottom: 16px;
    max-width: 700px;
}

.page-hero h1 .highlight {
    background: linear-gradient(135deg, #213C72 0%, #3f2a71 50%, #e9d1ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: clamp(.95rem, 1.2vw, 1.1rem);
    color: #64748b;
    max-width: 560px;
    line-height: 1.8;
}

.page-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.page-hero .breadcrumb a {
    color: #6366f1;
    font-weight: 500;
}

.page-hero .breadcrumb a:hover {
    color: #4f46e5;
}

.page-hero .breadcrumb span {
    color: #cbd5e1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ──── Services Detail Page ──── */
.services-detail {
    padding: 80px 0 120px;
    background: #fff;
}

.svc-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.svc-detail-grid:nth-child(even) {
    direction: rtl;
}

.svc-detail-grid:nth-child(even)>* {
    direction: ltr;
}

.svc-detail-visual {
    position: relative;
    padding: 40px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .04) 0%, rgba(139, 92, 246, .04) 100%);
    border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, .08);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svc-detail-visual.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, .04) 0%, rgba(236, 72, 153, .04) 100%);
    border-color: rgba(139, 92, 246, .08);
}

.svc-detail-visual.teal {
    background: linear-gradient(135deg, rgba(20, 184, 166, .04) 0%, rgba(14, 165, 233, .04) 100%);
    border-color: rgba(20, 184, 166, .08);
}

.svc-detail-visual.rose {
    background: linear-gradient(135deg, rgba(236, 72, 153, .04) 0%, rgba(249, 115, 22, .04) 100%);
    border-color: rgba(236, 72, 153, .08);
}

.svc-detail-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 12px 40px rgba(99, 102, 241, .25);
}

.svc-detail-icon.purple {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    box-shadow: 0 12px 40px rgba(139, 92, 246, .25);
}

.svc-detail-icon.teal {
    background: linear-gradient(135deg, #14b8a6, #0ea5e9);
    box-shadow: 0 12px 40px rgba(20, 184, 166, .25);
}

.svc-detail-icon.rose {
    background: linear-gradient(135deg, #ec4899, #f97316);
    box-shadow: 0 12px 40px rgba(236, 72, 153, .25);
}

.svc-detail-visual.amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, .04) 0%, rgba(249, 115, 22, .04) 100%);
    border-color: rgba(245, 158, 11, .08);
}

.svc-detail-icon.amber {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 12px 40px rgba(245, 158, 11, .25);
}

.svc-detail-icon svg {
    width: 48px;
    height: 48px;
}

.svc-detail-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.svc-detail-content p {
    font-size: .95rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 24px;
}

.svc-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.svc-feat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
    font-weight: 500;
    color: #334155;
}

.svc-feat-item svg {
    flex-shrink: 0;
    color: #22c55e;
}

/* ──── Portfolio Page ──── */
.portfolio-section {
    padding: 80px 0 120px;
    background: #fff;
}

.portfolio-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: .85rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all .3s;
}

.filter-btn:hover {
    border-color: #213C72;
    color: #213C72;
}

.filter-btn.active {
    background: linear-gradient(135deg, #213C72 0%, #3f2a71 50%, #e9d1ff 100%);
    color: #fff;
    border-color: None;
    box-shadow: 0 4px 16px rgba(99, 102, 241, .25);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, .12);
    border-color: rgba(99, 102, 241, .2);
}

.portfolio-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.portfolio-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.portfolio-card:hover .portfolio-card-img img {
    transform: scale(1.05);
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, .85), rgba(139, 92, 246, .85));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}

.portfolio-card:hover .portfolio-card-overlay {
    opacity: 1;
}

.portfolio-card-overlay span {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 2px solid #fff;
    border-radius: 999px;
    transition: all .2s;
}

.portfolio-card-body {
    padding: 24px;
}

.portfolio-card-body h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.portfolio-card-body p {
    font-size: .85rem;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 16px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.portfolio-tag {
    padding: 4px 10px;
    background: #f3f4f6;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 500;
    color: #64748b;
}

/* Case Study Stats */
.case-study-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 60px 0;
    margin: 60px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.cs-stat {
    text-align: center;
}

.cs-stat .cs-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #213C72 0%, #3f2a71 50%, #e9d1ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cs-stat p {
    font-size: .82rem;
    color: #64748b;
    margin-top: 4px;
}

/* ──── About Page ──── */
.about-detail {
    padding: 80px 0;
    background: #fff;
}

.about-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-detail-img {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .08);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.value-card {
    padding: 28px;
    background: #fafbfc;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    transition: all .3s;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, .08);
    border-color: rgba(99, 102, 241, .15);
}

.value-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.value-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.value-card p {
    font-size: .85rem;
    color: #64748b;
    line-height: 1.65;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background: #fafbfc;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-card {
    text-align: center;
    padding: 32px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    transition: all .3s;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(99, 102, 241, .1);
    border-color: rgba(99, 102, 241, .2);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}

.team-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.team-card span {
    font-size: .78rem;
    color: #64748b;
}

/* ──── Contact Page — Multi-step Form ──── */
.contact-page {
    padding: 80px 0 120px;
    background: #fff;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

/* Multi-step Form */
.multistep-form {
    padding: 40px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .04);
}

.step-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    border: 2px solid #e5e7eb;
    color: #94a3b8;
    transition: all .3s;
}

.step-dot.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, .3);
}

.step-dot.completed {
    background: #22c55e;
    border-color: transparent;
    color: #fff;
}

.step-line {
    width: 40px;
    height: 2px;
    background: #e5e7eb;
    border-radius: 999px;
}

.step-line.active {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: stepFade .4s ease;
}

@keyframes stepFade {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

.step-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.step-subtitle {
    font-size: .88rem;
    color: #64748b;
    margin-bottom: 28px;
    line-height: 1.6;
}

.form-step .form-field {
    margin-bottom: 20px;
}

.btn-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.btn-back {
    padding: 12px 28px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all .2s;
}

.btn-back:hover {
    background: #e5e7eb;
    color: #0f172a;
}

/* Service selection cards */
.service-select-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.service-select-card {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    cursor: pointer;
    transition: all .3s;
    text-align: center;
}

.service-select-card:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, .03);
}

.service-select-card.selected {
    border-color: #6366f1;
    background: rgba(99, 102, 241, .06);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .1);
}

.service-select-card .ss-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.service-select-card h5 {
    font-family: 'Outfit', sans-serif;
    font-size: .88rem;
    font-weight: 600;
    color: #0f172a;
}

/* Budget range */
.budget-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.budget-option {
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all .3s;
    font-size: .85rem;
    font-weight: 500;
    color: #334155;
    font-family: 'Inter', sans-serif;
}

.budget-option:hover {
    border-color: #6366f1;
}

.budget-option.selected {
    border-color: #6366f1;
    background: rgba(99, 102, 241, .06);
    color: #6366f1;
    font-weight: 600;
}

/* Lead magnet CTA */
.lead-magnet {
    padding: 40px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .04), rgba(139, 92, 246, .04));
    border: 1px solid rgba(99, 102, 241, .1);
    border-radius: 20px;
    text-align: center;
    margin-top: 40px;
}

.lead-magnet h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.lead-magnet p {
    font-size: .9rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.7;
}

.lead-magnet-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.lead-magnet-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 500;
    color: #334155;
}

/* ──── Responsive ──── */
@media (max-width: 1024px) {
    .svc-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .svc-detail-grid:nth-child(even) {
        direction: ltr;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .case-study-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .svc-features-list {
        grid-template-columns: 1fr;
    }

    .service-select-grid {
        grid-template-columns: 1fr;
    }

    .budget-options {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .lead-magnet-features {
        flex-direction: column;
        align-items: center;
    }
}