/* ===== Portfolio + Services Page Styles — Light Theme (2026) ===== */
/* Extends styles.css. Inherits root variables. */

/* Active nav link */
.nav-link.active { color: var(--pop); }

/* ===== Hero (work + services) ===== */
.portfolio-hero {
    padding: 170px 0 80px;
    background:
        radial-gradient(circle at 90% 10%, var(--pop-tint), transparent 55%),
        var(--bg);
    border-bottom: 1px solid var(--border-soft);
}
.portfolio-hero .hero-eyebrow {
    color: var(--pop);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}
.portfolio-hero .hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin-bottom: 1.25rem;
    font-weight: 800;
    color: var(--ink);
}
.portfolio-hero .hero-subtitle {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--ink-soft);
    max-width: 680px;
    margin-bottom: 2rem;
    line-height: 1.5;
}
.portfolio-hero .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* ===== Section padding override for portfolio pages ===== */
.reel-section,
.case-studies,
.tech-stack-section,
.portfolio-cta,
.service-detail,
.how-it-works,
.faq-section {
    padding: 90px 0;
}
.service-detail.alt {
    background: var(--bg-alt);
}

/* ===== Reel ===== */
.reel-wrapper {
    margin-top: 2.5rem;
    width: min(100%, 520px);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 9/16;
    border-radius: 24px;
    overflow: hidden;
    padding: 12px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.22);
    background: linear-gradient(145deg, #0f0f11 0%, #17191d 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.reel-wrapper iframe {
    width: 100%; height: 100%; border: 0;
}
.reel-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at center, var(--pop-tint), transparent 60%),
        var(--bg-alt);
}
.reel-placeholder-inner { text-align: center; color: var(--ink); }
.reel-icon {
    font-size: 3rem;
    color: var(--pop);
    margin-bottom: 1rem;
    width: 80px;
    height: 80px;
    border-radius: 999px;
    background: var(--pop-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.reel-placeholder-inner p {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.4rem;
}
.reel-placeholder-inner span {
    color: var(--ink-muted);
    font-size: 0.95rem;
}

/* ===== Case studies ===== */
.case-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.25s ease;
}
.case-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--pop);
}
.case-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.case-tag {
    background: var(--pop-soft);
    color: var(--pop);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
}
.case-title {
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--ink);
}
.case-summary {
    color: var(--ink-soft);
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
    max-width: 780px;
    line-height: 1.55;
}
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}
.case-block h4 {
    color: var(--pop);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}
.case-block p {
    color: var(--ink);
    font-size: 0.98rem;
    line-height: 1.55;
}
.case-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-soft);
}
.case-stack span {
    background: var(--bg-alt);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.32rem 0.7rem;
    border-radius: 6px;
    border: 1px solid var(--border);
}

/* ===== Tech stack section ===== */
.tech-stack-section { background: var(--bg-alt); }
.stack-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.stack-cat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
}
.stack-cat h4 {
    color: var(--pop);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}
.stack-cat p {
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ===== CTA at bottom ===== */
.portfolio-cta {
    background:
        radial-gradient(circle at 50% 100%, var(--pop-tint), transparent 60%),
        var(--bg);
    text-align: center;
    border-top: 1px solid var(--border-soft);
}
.portfolio-cta .section-title { margin-bottom: 0.6rem; }

/* ===== Service detail (services page) ===== */
.service-header {
    text-align: center;
    margin-bottom: 3rem;
}
.service-tag {
    display: inline-block;
    color: var(--pop);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    background: var(--pop-soft);
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
}
.service-header h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 0.9rem;
}
.service-header p {
    color: var(--ink-soft);
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.55;
}

/* ===== Pricing ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}
.pricing-grid.two-col {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    max-width: 900px;
}
.price-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.25s ease;
}
.price-card:hover {
    transform: translateY(-3px);
    border-color: var(--pop);
    box-shadow: var(--card-shadow);
}
.price-card.featured {
    border: 2px solid var(--pop);
    box-shadow: 0 12px 36px rgba(255, 92, 0, 0.15);
}
.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pop);
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
}
.price-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
    letter-spacing: -0.015em;
}
.price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.025em;
    margin-bottom: 0.4rem;
}
.price span {
    font-size: 0.9rem;
    color: var(--ink-muted);
    font-weight: 500;
}
.price-desc {
    color: var(--ink-muted);
    font-size: 0.92rem;
    margin-bottom: 1.4rem;
}
.price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}
.price-features li {
    color: var(--ink);
    font-size: 0.94rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: flex-start;
}
.price-features li:last-child { border-bottom: none; }
.price-features li::before {
    content: "✓";
    color: var(--pop);
    margin-right: 0.6rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* ===== Add-ons ===== */
.addons {
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 1.85rem 2rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.addons h4 {
    color: var(--pop);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.addons ul { list-style: none; padding: 0; margin: 0; }
.addons li {
    color: var(--ink);
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.95rem;
}
.addons li:last-child { border-bottom: none; }
.addons li strong { color: var(--ink); font-weight: 700; }

/* ===== How it works ===== */
.how-it-works { background: var(--bg-alt); }
.steps-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.step-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.85rem;
    transition: all 0.25s ease;
}
.step-card:hover {
    border-color: var(--pop);
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
}
.step-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--pop);
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
}
.step-card h3 {
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 0.5rem;
}
.step-card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ===== FAQ ===== */
.faq-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
}
.faq-item h4 {
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
    letter-spacing: -0.01em;
}
.faq-item p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .portfolio-hero { padding: 140px 0 60px; }
    .case-card { padding: 1.75rem; }
    .pricing-grid,
    .pricing-grid.two-col { grid-template-columns: 1fr; }
    .stack-grid,
    .steps-grid,
    .faq-grid,
    .case-grid { grid-template-columns: 1fr; }
}

/* ===== Reel slideshow ===== */
.reel-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #161a22 0%, #0b0c0f 100%);
}
.reel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}
.reel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.reel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}
.reel-nav:hover { background: rgba(0, 0, 0, 0.75); transform: translateY(-50%) scale(1.05); }
.reel-nav-prev { left: 16px; }
.reel-nav-next { right: 16px; }
.reel-mute {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    cursor: pointer;
    z-index: 3;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.reel-mute:hover { background: rgba(0, 0, 0, 0.8); }
.reel-mute .reel-mute-off { display: none; }
.reel-mute[aria-pressed="false"] .reel-mute-on { display: none; }
.reel-mute[aria-pressed="false"] .reel-mute-off { display: inline; }
.reel-label {
    position: absolute;
    left: 14px;
    top: 14px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    z-index: 3;
}
.reel-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 12px;
    border-radius: 999px;
}
.reel-dots button {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}
.reel-dots button:hover { background: rgba(255, 255, 255, 0.8); }
.reel-dots button[aria-selected="true"] {
    background: #fff;
    transform: scale(1.25);
}
@media (max-width: 900px) {
    .reel-wrapper {
        width: min(100%, 460px);
        padding: 10px;
        border-radius: 20px;
    }
}
@media (max-width: 600px) {
    .reel-wrapper {
        width: min(100%, 380px);
        padding: 8px;
        border-radius: 16px;
    }
    .reel-nav { width: 38px; height: 38px; font-size: 1.5rem; }
    .reel-nav-prev { left: 8px; }
    .reel-nav-next { right: 8px; }
    .reel-label { font-size: 0.7rem; padding: 4px 9px; }
}
