/* HERO */

.webdev-hero {
    min-height: calc(100vh - 72px);
    padding: clamp(64px, 8vw, 104px) clamp(28px, 7vw, 132px);
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}

.hero-copy-block h1 {
    margin-bottom: 24px;
}

.hero-description {
    max-width: 560px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 32px;
    white-space: pre-line;
}

/* HERO SHOWCASE */

.hero-showcase {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.hero-slider {
    position: relative;
    height: clamp(480px, 45vw, 650px);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-browser {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 25px 60px rgba(5,5,5,.08);
    overflow: hidden;
}

.browser-bar {
    height: 48px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    background: #fafafa;
}

.browser-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d9d9d9;
}

.hero-browser img {
    display: block;
    width: 100%;
    height: clamp(390px, 38vw, 560px);
    object-fit: cover;
    object-position: top;
}

.hero-browser--logo img {
    padding: clamp(70px, 9vw, 140px);
    background: #fff;
    object-fit: contain;
    object-position: center;
}

.hero-browser--mitraa img {
    padding: clamp(40px, 5vw, 72px);
}

.hero-project-info {
    margin-top: 20px;
}

.hero-project-info span {
    color: var(--accent);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-project-info h3 {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 1.8rem;
}

.hero-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.hero-indicators button {
    width: 32px;
    height: 3px;
    padding: 0;
    border: 0;
    background: rgba(0,0,0,.2);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.hero-indicators button.active {
    background: var(--accent);
    width: 50px;
}

/* WEBSITE TYPES */

.website-types-grid {
    margin-top: clamp(36px, 5vw, 70px);
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 28px;
}

.website-type-card {
    min-height: 220px;
    background: white;
    border: 1px solid var(--line);
    padding: 36px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.website-type-card::before {
    content: "...";
    display: block;
    margin-bottom: 20px;
    color: rgba(204,27,27,.5);
    letter-spacing: 4px;
}

.website-type-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(5,5,5,.08);
}

.website-type-card p {
    color: var(--muted);
    line-height: 1.7;
}

/* ECOSYSTEM */

.ecosystem-section {
    background: white;
}

.ecosystem-flow {
    margin-top: clamp(36px, 5vw, 70px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.flow-item {
    min-width: 180px;
    text-align: center;
    padding: 24px 36px;
    border: 1px solid var(--line);
    background: white;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(5,5,5,.04);
}

.flow-arrow {
    font-size: 2rem;
    color: var(--accent);
}

/* PROCESS */

.process-section {
    background: #f8f9fb;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: clamp(38px, 5vw, 72px);
    border: 1px solid var(--line);
    background: var(--line);
}

.process-card {
    display: grid;
    align-content: start;
    gap: 16px;
    min-height: 270px;
    padding: clamp(28px, 3vw, 40px);
    background: var(--panel);
}

.process-card span {
    color: var(--accent);
    font-weight: 800;
    letter-spacing: .08em;
}

.process-card h3,
.process-card p {
    margin: 0;
}

.process-card p {
    color: var(--muted);
    line-height: 1.7;
}

.process-section::after {
    content: "";
    display: block;
    margin-top: 80px;
    height: 1px;
    background: var(--line);
}

/* WORK SECTION */

.work-showcase {
    padding: clamp(28px, 4.5vw, 56px) clamp(28px, 7vw, 132px) clamp(38px, 5vw, 72px);
}

.work-showcase .section-heading {
    margin-bottom: clamp(24px, 4vw, 36px);
}

.project-media img {
    object-position: top;
}

.project-media--logo {
    display: grid;
    place-items: center;
    background: #fff;
}

.project-media--logo img {
    width: min(58%, 340px);
    height: auto;
    min-height: 0;
    max-height: 360px;
    object-fit: contain;
    object-position: center;
}

.project-media--mitraa img {
    width: min(46%, 260px);
}

.project-card {
    min-height: 520px;
}

/* WHY SECTION */

#why {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

#why .why-copy {
    padding-top: 0;
}

/* CONTACT */

#contact {
    border-bottom: none;
}

#contact .contact-form {
    width: 100%;
}

/* RESPONSIVE */

@media (max-width: 1200px) {
    .webdev-hero {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

@media (max-width: 900px) {
    .work-showcase {
        padding-top: 64px;
    }

    .project-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .project-media {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        height: clamp(280px, 56vw, 400px);
        width: 100%;
        overflow: hidden;
    }

    .project-media img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: top center;
    }

    .project-media--logo {
        height: clamp(200px, 45vw, 280px);
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        padding: clamp(24px, 5vw, 44px);
    }

    .project-media--logo img {
        height: auto;
        max-height: 80px;
        max-width: 65%;
        object-fit: contain;
    }
}

@media (max-width: 768px) {
    .webdev-hero {
        padding-top: 40px;
        padding-bottom: 50px;
    }

    .hero-slider {
        height: auto;
        min-height: 380px;
    }

    .hero-browser {
        border-radius: 12px;
        overflow: hidden;
    }

    .hero-browser img {
        height: clamp(260px, 58vw, 360px);
        width: 100%;
        object-fit: cover;
        object-position: top center;
    }

    .hero-browser--logo {
        height: clamp(200px, 45vw, 260px);
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
    }

    .hero-browser--logo img {
        height: auto;
        max-height: 80px;
        max-width: 65%;
        padding: 0;
        object-fit: contain;
    }

    .hero-browser--mitraa img {
        max-height: 96px;
        padding: 0;
    }

    .website-types-grid,
    .process-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .process-card {
        min-height: 0;
    }

    #why {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ecosystem-flow {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }
}

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

    .hero-actions .button {
        width: 100%;
    }

    .hero-slider {
        min-height: 340px;
    }

    .hero-browser img {
        height: clamp(240px, 72vw, 300px);
        aspect-ratio: 4 / 3;
    }

    .hero-browser--logo {
        height: 180px;
    }

    .hero-browser--logo img {
        max-height: 60px;
    }

    .project-media {
        height: clamp(250px, 75vw, 320px);
        aspect-ratio: 4 / 3;
    }

    .project-media--logo {
        height: 180px;
    }

    .project-media--logo img {
        max-height: 60px;
    }
}
