/* ─── ZANA STUDIO — Premium Dark Glassmorphism ─── */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

/* ─────────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-base: #050505;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.10);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.60);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.45);
    --text-tertiary: rgba(255, 255, 255, 0.25);
    --accent-glow: rgba(255, 255, 255, 0.06);
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-height: 72px;
    --radius-pill: 999px;
    --radius-lg: 20px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ─────────────────────────────────────────────────
   NOISE TEXTURE OVERLAY
───────────────────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* ─────────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    z-index: 100;

    /* Glassmorphism */
    background: rgba(12, 12, 12, 0.65);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    box-shadow:
        var(--glass-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    /* Subtle entrance */
    animation: navSlideIn 0.8s var(--ease-out) both;
}

@keyframes navSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.nav-logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
}

.nav-logo:hover {
    opacity: 0.75;
}

.nav-logo-dot {
    color: rgba(255, 255, 255, 0.50);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--bg-base);
    background: var(--text-primary);
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    white-space: nowrap;
}

.nav-cta:hover {
    opacity: 0.90;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255, 255, 255, 0.18);
}

.nav-cta:active {
    transform: translateY(0);
    opacity: 1;
}

/* ─────────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

/* ─── Ambient Background Glow ─── */
.hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.hero-glow::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse 70% 60% at 50% 40%,
            rgba(255, 255, 255, 0.040) 0%,
            rgba(255, 255, 255, 0.012) 45%,
            transparent 80%);
    border-radius: 50%;
    filter: blur(2px);
}

.hero-glow::after {
    content: '';
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 300px;
    background: radial-gradient(ellipse at 50% 80%,
            rgba(255, 255, 255, 0.025) 0%,
            transparent 70%);
    filter: blur(8px);
}

/* ─── Decorative grid lines ─── */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center center;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 80%);
    pointer-events: none;
    z-index: -1;
}

/* ─── Hero Inner Wrapper ─── */
.hero-inner {
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ─── Eyebrow Label ─── */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 36px;
    backdrop-filter: blur(10px);

    animation: fadeInUp 0.9s var(--ease-out) 0.2s both;
}

.hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.50);
    flex-shrink: 0;
}

/* ─── Main Headline ─── */
.hero-headline {
    font-size: clamp(68px, 11vw, 140px);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin-bottom: 28px;

    /* Subtle gradient sheen */
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 1.00) 0%,
            rgba(255, 255, 255, 0.78) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    animation: fadeInUp 0.9s var(--ease-out) 0.35s both;
}

.hero-headline-period {
    -webkit-text-fill-color: rgba(255, 255, 255, 0.30);
}

/* ─── Subheadline ─── */
.hero-sub {
    max-width: 620px;
    width: 100%;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 52px;
    animation: fadeInUp 0.9s var(--ease-out) 0.50s both;
    text-align: center;
}

.hero-sub strong {
    color: rgba(255, 255, 255, 0.80);
    font-weight: 500;
}

/* ─── CTA Buttons ─── */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.9s var(--ease-out) 0.65s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--bg-base);
    background: var(--text-primary);
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.25s ease;
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.22);
}

.btn-primary .btn-arrow {
    font-size: 18px;
    transition: transform 0.2s var(--ease-out);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
}

.btn-secondary:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

/* ─── Social Proof Strip ─── */
.hero-proof {
    margin-top: 72px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: fadeInUp 0.9s var(--ease-out) 0.80s both;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* Dividers permanently removed — items are clean pills now */
.hero-proof-divider {
    display: none;
}

.hero-proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 14px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.030);
    flex: 1;
    min-width: 0;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.hero-proof-item:hover {
    background: rgba(180, 155, 255, 0.06);
    border-color: rgba(180, 155, 255, 0.18);
    transform: translateY(-2px);
}

.hero-proof-icon {
    font-size: 18px;
    color: rgba(180, 155, 255, 0.80);
    line-height: 1;
    display: block;
}

.hero-proof-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ─── Scroll Indicator ─── */
.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.35;
    animation: heroScrollFadeIn 1s var(--ease-out) 1.1s both;
}

.hero-scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

.hero-scroll-text {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-primary);
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scaleY(1);
    }

    50% {
        opacity: 1.0;
        transform: scaleY(1.15);
    }
}

/* ─────────────────────────────────────────────────
   SHARED ANIMATIONS
───────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

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

/* Dedicated animation for hero-scroll that preserves translateX(-50%) centering */
@keyframes heroScrollFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 0.35;
        transform: translateX(-50%) translateY(0);
    }
}

/* ─────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav {
        width: calc(100% - 24px);
        top: 12px;
        padding: 0 18px;
        height: 60px;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        padding: 8px 16px;
        font-size: 12.5px;
    }

    .hero {
        padding: 100px 20px 64px;
    }

    .hero-proof {
        margin-top: 48px;
        gap: 6px;
    }
}

@media (max-width: 1100px) {
    .hero {
        padding-bottom: 180px;
    }

    .hero-proof {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-proof {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .hero-proof-divider {
        display: none;
    }
}

/* ─────────────────────────────────────────────────
   PROJECTS / CASE STUDY SECTION
───────────────────────────────────────────────── */
.projects {
    position: relative;
    padding: 140px 24px 120px;
    overflow: hidden;
    z-index: 1;
}

/* ─── Massive ambient orb (glassmorphism base) ─── */
.projects-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(ellipse at 50% 50%,
            rgba(120, 100, 255, 0.080) 0%,
            rgba(255, 100, 180, 0.048) 28%,
            rgba(255, 255, 255, 0.020) 52%,
            transparent 72%);
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: -1;
}

.projects-orb--secondary {
    width: 600px;
    height: 600px;
    top: 30%;
    left: 70%;
    background: radial-gradient(ellipse at 50% 50%,
            rgba(80, 200, 255, 0.045) 0%,
            rgba(160, 100, 255, 0.025) 40%,
            transparent 70%);
    filter: blur(70px);
}

.projects-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 72px;
}

/* ─── Section header ─── */
.projects-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.section-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(160, 130, 255, 0.75);
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(160, 130, 255, 0.6);
}

.section-heading {
    font-size: clamp(36px, 5.5vw, 70px);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: -0.035em;
    color: var(--text-primary);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 1.00) 0%,
            rgba(255, 255, 255, 0.72) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-heading-accent {
    background: linear-gradient(135deg,
            rgba(180, 155, 255, 0.95) 0%,
            rgba(255, 130, 200, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─────────────────────────────────────────────────
   GLASSMORPHISM SLIDER CARD
───────────────────────────────────────────────── */
.cs-card {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0;
    border-radius: 28px;
    overflow: hidden;

    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.033);
    backdrop-filter: blur(48px) saturate(160%);
    -webkit-backdrop-filter: blur(48px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.095);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.65),
        0 0 0 0.5px rgba(255, 255, 255, 0.05) inset,
        inset 0 1px 0 rgba(255, 255, 255, 0.10);

    transition: box-shadow 0.4s var(--ease-out);
}

.cs-card:hover {
    box-shadow:
        0 32px 100px rgba(0, 0, 0, 0.72),
        0 0 0 0.5px rgba(255, 255, 255, 0.08) inset,
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* ─── Left: Image Panel ─── */
.cs-image-wrap {
    position: relative;
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px 32px 32px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

/* subtle noise/grain overlay on the image panel */
.cs-image-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 70% at 50% 50%,
            rgba(120, 100, 255, 0.07) 0%,
            transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.cs-image-inner {
    position: relative;
    width: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-img {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    box-shadow:
        0 12px 50px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.07);
    display: block;
    transition: opacity 0s;
}

/* ─── Image glow reflection ─── */
.cs-img-glow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60px;
    background: radial-gradient(ellipse at 50% 0%,
            rgba(160, 130, 255, 0.30) 0%,
            rgba(255, 100, 180, 0.12) 40%,
            transparent 70%);
    filter: blur(18px);
    pointer-events: none;
    z-index: 0;
}

/* ─── Expand / view close-up button ─── */
.cs-expand-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-pill);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-4px);
    transition:
        opacity 0.25s ease,
        transform 0.25s var(--ease-out),
        background 0.2s ease,
        color 0.2s ease;
}

.cs-image-wrap:hover .cs-expand-btn {
    opacity: 1;
    transform: translateY(0);
}

.cs-expand-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.26);
    color: rgba(255, 255, 255, 0.95);
}

/* ─── Fade transition states ─── */
.cs-fade-out {
    opacity: 0 !important;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.6, 1) !important;
}

.cs-fade-in {
    opacity: 1 !important;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ─── Right: Text Content ─── */
.cs-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 52px 44px 48px;
    gap: 0;
}

/* meta row: index + tag */
.cs-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.cs-index {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.cs-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(160, 130, 255, 0.12);
    border: 1px solid rgba(160, 130, 255, 0.22);
    border-radius: var(--radius-pill);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(180, 160, 255, 0.90);
}

/* overline */
.cs-overline {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(160, 130, 255, 0.65);
    margin-bottom: 14px;
}

/* headline */
.cs-headline {
    font-size: clamp(22px, 2.6vw, 34px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 18px;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 1.00) 0%,
            rgba(255, 255, 255, 0.78) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* description */
.cs-desc {
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.70;
    color: var(--text-secondary);
    margin-bottom: 26px;
    max-width: 380px;
}

/* chips */
.cs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

.cs-chip {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-secondary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cs-chip:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.16);
}

/* ─── Bottom row: CTA + Controls ─── */
.cs-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* CTA link */
.cs-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.90);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-pill);
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease,
        transform 0.22s var(--ease-out),
        box-shadow 0.22s ease;
    white-space: nowrap;
}

.cs-cta:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(160, 130, 255, 0.18);
}

.cs-cta svg {
    flex-shrink: 0;
    transition: transform 0.2s var(--ease-out);
}

.cs-cta:hover svg {
    transform: translate(2px, -2px);
}

/* Controls Row */
.cs-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cs-btn {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition:
        background 0.22s var(--ease-out),
        border-color 0.22s ease,
        color 0.22s ease,
        transform 0.22s var(--ease-out),
        box-shadow 0.22s ease;
    flex-shrink: 0;
}

.cs-btn:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 1.00);
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.cs-btn:active {
    transform: scale(0.95);
}

/* Dot indicators */
.cs-dots {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    justify-content: center;
}

.cs-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, width 0.35s var(--ease-out), border-radius 0.35s ease;
}

.cs-dot--active {
    width: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.72);
}

/* ─────────────────────────────────────────────────
   PROJECTS — RESPONSIVE
───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .cs-card {
        grid-template-columns: 1fr;
    }

    .cs-image-wrap {
        min-height: 260px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        padding: 24px;
    }

    .cs-content {
        padding: 36px 28px 32px;
    }

    .cs-desc {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .projects {
        padding: 100px 16px 80px;
    }

    .projects-orb {
        width: 500px;
        height: 500px;
        filter: blur(60px);
    }

    .cs-content {
        padding: 28px 20px 28px;
    }

    .cs-meta {
        margin-bottom: 20px;
    }

    .cs-chips {
        margin-bottom: 32px;
    }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─────────────────────────────────────────────────
   LIGHTBOX MODAL
───────────────────────────────────────────────── */
.cs-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(32px) saturate(140%);
    -webkit-backdrop-filter: blur(32px) saturate(140%);

    /* hidden by default */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-lightbox.cs-lightbox--open {
    opacity: 1;
    pointer-events: all;
}

.cs-lightbox-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 1100px;
    width: 100%;

    /* entrance scale */
    transform: scale(0.92) translateY(16px);
    transition: transform 0.40s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-lightbox--open .cs-lightbox-inner {
    transform: scale(1) translateY(0);
}

.cs-lightbox-img {
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow:
        0 32px 100px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(255, 255, 255, 0.09);
    display: block;
}

.cs-lightbox-caption {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

.cs-lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: rgba(255, 255, 255, 0.70);
    cursor: pointer;
    z-index: 10001;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s var(--ease-out);
}

.cs-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    transform: scale(1.08);
}

@media (max-width: 640px) {
    .cs-lightbox {
        padding: 16px;
    }

    .cs-lightbox-close {
        top: -12px;
        right: -12px;
    }

    .cs-lightbox-img {
        border-radius: 14px;
    }

    .cs-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PORTFOLIO — ODABRANI RADOVI
═══════════════════════════════════════════════════════════════ */
.portfolio {
    position: relative;
    padding: 140px 24px 100px;
    overflow: hidden;
    z-index: 1;
}

.portfolio-orb {
    position: absolute;
    top: 40%;
    left: 60%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse at 50% 50%,
            rgba(255, 100, 180, 0.060) 0%,
            rgba(120, 100, 255, 0.035) 40%,
            transparent 72%);
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: -1;
}

.portfolio-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.portfolio-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* ─── Vertical Project Cards ─── */
.pf-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pf-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.50);
    margin-bottom: 24px;
    /* scroll reveal — starts hidden */
    opacity: 0;
    transform: translateY(48px);
    transition:
        opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.3s ease;
}

.pf-card--visible {
    opacity: 1;
    transform: translateY(0);
}

.pf-card:hover {
    box-shadow:
        0 32px 90px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

/* Reverse layout: text left, image right */
.pf-card--reverse {
    direction: rtl;
}

.pf-card--reverse>* {
    direction: ltr;
}

/* ─── Image Side ─── */
.pf-card-img-wrap {
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.pf-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.pf-card:hover .pf-card-img {
    transform: scale(1.04);
}

.pf-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.10) 0%,
            rgba(120, 100, 255, 0.06) 100%);
    transition: opacity 0.3s ease;
}

.pf-card:hover .pf-card-img-overlay {
    opacity: 0.5;
}

/* ─── Text Side ─── */
.pf-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 52px 64px;
    gap: 0;
    overflow: visible;
}

.pf-card-subtitle {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: rgba(180, 155, 255, 0.75);
    margin-bottom: 16px;
}

.pf-card-title {
    font-size: clamp(22px, 2.8vw, 38px);
    font-weight: 900;
    line-height: 1.10;
    letter-spacing: -0.030em;
    color: var(--text-primary);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 1.00) 0%,
            rgba(255, 255, 255, 0.75) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 18px;
    padding-bottom: 10px;
}

.pf-card-desc {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.70;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.pf-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pf-card-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.pf-card-arrow {
    font-size: 22px;
    color: rgba(180, 155, 255, 0.60);
    transition: transform 0.3s var(--ease-out), color 0.2s ease;
}

.pf-card:hover .pf-card-arrow {
    transform: translate(4px, -4px);
    color: rgba(200, 180, 255, 1.00);
}

/* ─── Portfolio Responsive ─── */
@media (max-width: 820px) {
    .portfolio {
        padding: 100px 16px 80px;
    }

    .pf-card,
    .pf-card--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .pf-card-img-wrap {
        min-height: 260px;
    }

    .pf-card-content {
        padding: 36px 28px 36px;
    }

    .pf-card-title {
        font-size: clamp(20px, 5vw, 28px);
    }
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES — NAŠE USLUGE (BENTO GRID)
═══════════════════════════════════════════════════════════════ */
.services {
    position: relative;
    padding: 120px 24px 120px;
    overflow: hidden;
    z-index: 1;
}

.services-orb {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(ellipse at 50% 50%,
            rgba(80, 200, 255, 0.055) 0%,
            rgba(120, 100, 255, 0.030) 45%,
            transparent 72%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.services-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 72px;
}

.services-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* ─── Bento Grid ─── */
.bento-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.bento-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 40px 36px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.030);
    border: 1px solid rgba(255, 255, 255, 0.085);
    backdrop-filter: blur(40px) saturate(140%);
    -webkit-backdrop-filter: blur(40px) saturate(140%);
    box-shadow:
        0 16px 56px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition:
        box-shadow 0.30s var(--ease-out),
        border-color 0.30s ease,
        transform 0.30s var(--ease-out);
    /* scroll reveal */
    opacity: 0;
    transform: translateY(36px);
}

.bento-card--visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.30s var(--ease-out),
        border-color 0.30s ease;
}

.bento-card:hover {
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.68),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-4px);
}

/* Featured card — first, larger */
.bento-card--featured {
    background: rgba(140, 115, 255, 0.065);
    border-color: rgba(160, 130, 255, 0.18);
}

.bento-card--featured:hover {
    border-color: rgba(180, 155, 255, 0.30);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.65),
        0 0 40px rgba(160, 130, 255, 0.10),
        inset 0 1px 0 rgba(180, 155, 255, 0.14);
}

.bento-card-glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(ellipse at 50% 50%,
            rgba(160, 130, 255, 0.18) 0%,
            transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.bento-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    color: rgba(180, 155, 255, 0.90);
    flex-shrink: 0;
}

.bento-card--featured .bento-card-icon {
    background: rgba(160, 130, 255, 0.15);
    border-color: rgba(160, 130, 255, 0.25);
    color: rgba(200, 180, 255, 1.00);
}

.bento-card-title {
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 800;
    line-height: 1.20;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 1.00) 0%,
            rgba(255, 255, 255, 0.78) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bento-card-desc {
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.66;
    color: var(--text-secondary);
    flex: 1;
}

.bento-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.bento-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.bento-card--featured .bento-tag {
    background: rgba(160, 130, 255, 0.10);
    border-color: rgba(160, 130, 255, 0.20);
    color: rgba(200, 180, 255, 0.85);
}

.bento-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(200, 180, 255, 0.85);
    margin-top: 8px;
    cursor: pointer;
    transition: gap 0.2s var(--ease-out), color 0.2s ease;
}

.bento-card--featured:hover .bento-card-cta {
    gap: 10px;
    color: rgba(220, 205, 255, 1.00);
}

/* ─── Services Responsive ─── */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bento-card--featured {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .services {
        padding: 80px 16px 80px;
    }

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

    .bento-card {
        padding: 32px 28px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FINAL CTA SECTION
═══════════════════════════════════════════════════════════════ */
.cta-section {
    position: relative;
    padding: 160px 24px 140px;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

.cta-orb {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(ellipse at 50% 50%,
            rgba(120, 100, 255, 0.090) 0%,
            rgba(255, 100, 180, 0.050) 35%,
            transparent 68%);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
}

.cta-orb--right {
    left: 70%;
    top: 40%;
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse at 50% 50%,
            rgba(80, 200, 255, 0.055) 0%,
            rgba(180, 100, 255, 0.030) 45%,
            transparent 72%);
    filter: blur(80px);
}

.cta-section {
    text-align: left;
}

.cta-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.cta-inner--split {
    flex-direction: row;
    align-items: center;
    gap: 80px;
}

/* ─── Left text block ─── */
.cta-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.cta-left .cta-heading {
    text-align: left;
}

.cta-left .cta-sub {
    text-align: left;
    max-width: 420px;
}

/* ─── Contact cards stack ─── */
.cta-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
    width: 340px;
}

.cta-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 26px;
    border-radius: 18px;
    text-decoration: none;
    transition: transform 0.22s var(--ease-out), box-shadow 0.22s ease, border-color 0.22s ease;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.cta-card--primary {
    background: rgba(60, 220, 100, 0.08);
    border-color: rgba(60, 220, 100, 0.20);
}

.cta-card--secondary {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

.cta-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.cta-card--primary:hover {
    border-color: rgba(60, 220, 100, 0.45);
    box-shadow: 0 18px 48px rgba(60, 220, 100, 0.12);
}

.cta-card--secondary:hover {
    border-color: rgba(180, 155, 255, 0.35);
    box-shadow: 0 18px 48px rgba(180, 155, 255, 0.10);
}

.cta-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
}

.cta-card--primary .cta-card-icon {
    background: rgba(60, 220, 100, 0.12);
    color: rgba(80, 240, 120, 0.90);
}

.cta-card--secondary .cta-card-icon {
    background: rgba(180, 155, 255, 0.10);
    color: rgba(200, 180, 255, 0.80);
}

.cta-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cta-card-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.cta-card-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.cta-card-hint {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* ─── Responsive ─── */
@media (max-width: 820px) {
    .cta-section {
        text-align: center;
    }

    .cta-inner--split {
        flex-direction: column;
        gap: 48px;
        align-items: center;
    }

    .cta-left {
        align-items: center;
    }

    .cta-left .cta-heading,
    .cta-left .cta-sub {
        text-align: center;
    }

    .cta-cards {
        width: 100%;
        max-width: 400px;
    }
}

.cta-heading {
    font-size: clamp(44px, 7.5vw, 100px);
    font-weight: 900;
    line-height: 0.94;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 1.00) 0%,
            rgba(255, 255, 255, 0.75) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-heading-accent {
    background: linear-gradient(135deg,
            rgba(180, 155, 255, 0.95) 0%,
            rgba(255, 130, 200, 0.90) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-sub {
    font-size: clamp(15px, 2vw, 19px);
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 480px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 44px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--bg-base);
    background: var(--text-primary);
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-decoration: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s var(--ease-out),
        box-shadow 0.25s ease;
}

.cta-btn:hover {
    opacity: 0.92;
    transform: translateY(-3px);
    box-shadow: 0 16px 50px rgba(255, 255, 255, 0.26);
}

.cta-btn svg {
    transition: transform 0.2s var(--ease-out);
}

.cta-btn:hover svg {
    transform: translate(2px, -2px);
}

.cta-contact {
    font-size: 13.5px;
    color: var(--text-tertiary);
    font-weight: 400;
}

.cta-email {
    color: rgba(180, 155, 255, 0.80);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cta-email:hover {
    color: rgba(200, 180, 255, 1.00);
}

@media (max-width: 600px) {
    .cta-section {
        padding: 100px 20px 100px;
    }

    .cta-btn {
        width: 100%;
        max-width: 340px;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 56px 24px 48px;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-logo:hover {
    opacity: 0.75;
}

.footer-logo-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    opacity: 0.85;
}

.footer-logo-dot {
    color: rgba(180, 155, 255, 0.70);
}

.footer-tagline {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

.footer-nav a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copy {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.footer-email {
    font-size: 13px;
    font-weight: 500;
    color: rgba(180, 155, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-email:hover {
    color: rgba(200, 180, 255, 1.00);
}

.footer-contact-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-phone {
    color: rgba(100, 210, 140, 0.70);
}

.footer-phone:hover {
    color: rgba(120, 240, 160, 1.00);
}

@media (max-width: 600px) {
    .footer {
        padding: 48px 20px 40px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .footer-nav {
        gap: 24px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PF-CARD FOOTER ELEMENTS: CTA button + image-count badge
═══════════════════════════════════════════════════════════════ */
.pf-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.pf-card-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.pf-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition:
        background 0.25s var(--ease-out),
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s var(--ease-out),
        gap 0.20s var(--ease-out);
    white-space: nowrap;
}

.pf-card-cta:hover {
    background: rgba(180, 155, 255, 0.14);
    border-color: rgba(180, 155, 255, 0.35);
    box-shadow: 0 8px 32px rgba(160, 130, 255, 0.20);
    transform: translateY(-2px);
    gap: 10px;
}

.pf-card-cta svg {
    flex-shrink: 0;
    transition: transform 0.20s var(--ease-out);
}

.pf-card-cta:hover svg {
    transform: translate(2px, -2px);
}

/* Image count badge — appears on hover over image */
.pf-card-img-wrap {
    cursor: pointer;
}

.pf-card-img-count {
    position: absolute;
    bottom: 14px;
    right: 14px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.80);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s var(--ease-out);
    pointer-events: none;
    z-index: 3;
}

.pf-card:hover .pf-card-img-count {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   PROJECT GALLERY MODAL (pgm-)
═══════════════════════════════════════════════════════════════ */
.pgm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pgm-overlay--open {
    opacity: 1;
    pointer-events: all;
}

.pgm-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 92vh;
    background: rgba(18, 18, 24, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 28px;
    box-shadow:
        0 40px 120px rgba(0, 0, 0, 0.80),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 28px 32px;
    overflow-y: auto;
    transform: scale(0.96) translateY(20px);
    transition: transform 0.40s cubic-bezier(0.16, 1, 0.3, 1);
}

.pgm-overlay--open .pgm-panel {
    transform: scale(1) translateY(0);
}

/* ─── Header ─── */
.pgm-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.pgm-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pgm-subtitle {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: rgba(180, 155, 255, 0.75);
    margin: 0;
}

.pgm-title {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin: 0;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 1.00) 0%,
            rgba(255, 255, 255, 0.80) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pgm-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out);
}

.pgm-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    transform: scale(1.08);
}

/* ─── Image Viewer ─── */
.pgm-viewer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-height: 0;
}

.pgm-img-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: visible;
    background: transparent;
    min-height: 0;
    max-height: none;
}

.pgm-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: top center !important;
    border-radius: 10px;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.pgm-img--out {
    opacity: 0;
    transform: scale(0.97);
}

.pgm-img--in {
    animation: pgmFadeIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ─── Mobile screenshots: show full image, don't crop ─── */
.pgm-img[src*="-mob"] {
    object-fit: contain !important;
    object-position: center !important;
    width: auto !important;
    height: 80vh !important;
    max-width: 90vw !important;
    max-height: 80vh !important;
    background: transparent;
}

@keyframes pgmFadeIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ─── Arrow buttons ─── */
.pgm-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s var(--ease-out),
        opacity 0.2s ease;
}

.pgm-arrow:hover {
    background: rgba(180, 155, 255, 0.14);
    border-color: rgba(180, 155, 255, 0.30);
    color: var(--text-primary);
    transform: scale(1.10);
}

/* ─── Thumbnails strip ─── */
.pgm-thumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.10) transparent;
}

.pgm-thumbs::-webkit-scrollbar {
    height: 4px;
}

.pgm-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 2px;
}

.pgm-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: rgba(255, 255, 255, 0.04);
    transition:
        border-color 0.20s ease,
        transform 0.20s var(--ease-out),
        opacity 0.20s ease;
    opacity: 0.55;
}

.pgm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    pointer-events: none;
}

.pgm-thumb:hover {
    opacity: 0.85;
    transform: scale(1.06);
}

.pgm-thumb--active {
    border-color: rgba(180, 155, 255, 0.70);
    opacity: 1;
    transform: scale(1.04);
}

/* ─── Footer: description + counter ─── */
.pgm-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pgm-desc {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.pgm-counter {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─── Modal Responsive ─── */
@media (max-width: 640px) {
    .pgm-panel {
        padding: 20px 18px;
        border-radius: 20px;
        gap: 16px;
    }

    .pgm-viewer {
        flex-direction: column;
        min-height: auto;
        gap: 8px;
    }

    .pgm-arrow {
        display: none;
    }

    .pgm-img-wrap {
        width: 100%;
        min-height: 0;
        max-height: none;
    }

    .pgm-img {
        height: 65vh;
        max-height: 65vh;
    }

    .pgm-thumb {
        width: 58px;
        height: 42px;
    }

    .pgm-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ════════════════════════════════════════════════════════════════
   MODAL IMAGE — MAXIMUM ZOOM, EDGE-TO-EDGE, CRISP
═══════════════════════════════════════════════════════════════ */
/* --- Panel: fill the screen --- */
.pgm-panel {
    max-width: 98vw;
    width: 98vw;
    max-height: 97vh;
    height: 97vh;
    padding: 18px 20px 14px;
    gap: 10px;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
}

/* --- Viewer takes all remaining vertical space --- */
.pgm-viewer {
    flex: 1;
    min-height: 0;
    gap: 10px;
    overflow: visible;
}

/* --- Image wrap fills the viewer --- */
.pgm-img-wrap {
    flex: 1;
    min-height: 0;
    max-height: none;
    border-radius: 12px;
    background: transparent;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Image: fills all available space, shows top of the screenshot --- */
.pgm-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: top center !important;
    image-rendering: high-quality;
    border-radius: 10px;
}


/* ════════════════════════════════════════════════════════════════
   NAV LOGO — LARGER OVERRIDE
═══════════════════════════════════════════════════════════════ */
.nav-logo-img--lg {
    width: 46px;
    height: 46px;
    border-radius: 10px;
}

/* ════════════════════════════════════════════════════════════════
   BACKGROUND WATERMARK — FIXED, VISIBLE ACROSS ENTIRE PAGE
═══════════════════════════════════════════════════════════════ */
.hero-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 820px;
    max-width: 90vw;
    opacity: 0.028;
    pointer-events: none;
    user-select: none;
    filter: grayscale(1);
    z-index: 0;
}

/* hero-inner must sit above the watermark */
.hero-inner {
    position: relative;
    z-index: 1;
}

/* ════════════════════════════════════════════════════════════════
   FOOTER SOCIAL LINKS
═══════════════════════════════════════════════════════════════ */
.footer-social {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.20s ease, transform 0.20s var(--ease-out);
}

.footer-social-link:hover {
    color: rgba(200, 180, 255, 0.90);
    transform: translateY(-2px);
}

.footer-social-link svg {
    flex-shrink: 0;
    transition: stroke 0.20s ease;
}