/* --- WEB DEVELOPMENT CASE STUDY UI --- */
.webdev-case-study {
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-family: 'ClashDisplay', sans-serif;
    overflow-x: hidden;
}

.wd-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
}

/* 1. Hero Section */
.wd-hero {
    padding: 80px 0 150px;
    background: var(--rust-gradient-3);
    color: var(--text-color);
    position: relative;
    border-bottom: 1px solid rgba(183, 65, 14, 0.3);
}

.wd-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
}

.wd-category {
    font-family: sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--text-color);
    opacity: 0.7;
    display: block;
    margin-bottom: 30px;
    font-weight: 500;
}

.wd-title {
    font-size: clamp(50px, 10vw, 150px);
    line-height: 0.85;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -3px;
    margin-bottom: 60px;
    color: var(--bg-color);
    /* Beige title */
}

.wd-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
    border-top: 1px solid rgba(245, 245, 220, 0.1);
    padding-top: 50px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.meta-label {
    font-family: sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.5;
}

.meta-value {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* 2. Overview visual & layout */
.wd-overview {
    background-color: var(--bg-color);
    /* beige */
    color: var(--secondary-color);
    /* black */
    padding: 150px 0;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    margin-top: -50px;
    position: relative;
    z-index: 20;
}

.wd-image-hero {
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 150px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

.wd-image-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.wd-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.wd-section-heading {
    font-size: clamp(40px, 6vw, 100px);
    line-height: 0.9;
    text-transform: uppercase;
    font-weight: 700;
}

.wd-section-heading span {
    color: var(--primary-color);
}

.wd-lead-text {
    font-size: clamp(24px, 3vw, 40px);
    line-height: 1.3;
    font-weight: 500;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.wd-body-text {
    font-family: sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

/* 3. Tech Architecture */
.wd-architecture {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 150px 0;
}

.wd-arch-header {
    text-align: center;
    margin-bottom: 100px;
}

.wd-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 350px;
    gap: 30px;
}

.bento-card {
    background: rgba(245, 245, 220, 0.03);
    border: 1px solid rgba(245, 245, 220, 0.05);
    border-radius: 30px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    background: rgba(183, 65, 14, 0.05);
}

.bento-icon {
    position: absolute;
    top: 50px;
    left: 50px;
    font-size: 40px;
    color: var(--primary-color);
}

.bento-card h3 {
    font-size: 30px;
    margin-bottom: 20px;
    font-weight: 500;
}

.bento-card p {
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.6;
}

.bento-card.highlight {
    background: var(--rust-gradient);
    border: none;
}

.bento-card.highlight:hover {
    transform: scale(1.02);
}

.bento-card.highlight p {
    opacity: 0.9;
}

.bento-card.wide {
    grid-column: span 2;
}

/* 4. Impact */
.wd-impact {
    background-color: var(--bg-color);
    color: var(--secondary-color);
    padding: 150px 0;
}

.wd-stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 80px;
}

.stat-item {
    flex: 1;
    min-width: 250px;
}

.stat-number {
    font-size: clamp(60px, 8vw, 120px);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
}

.stat-label {
    font-family: sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* CTA */
.wd-footer-cta {
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 150px 0;
    text-align: center;
}

.wd-cta-title {
    font-size: clamp(40px, 6vw, 100px);
    text-transform: uppercase;
    margin-bottom: 60px;
}

.wd-cta-btn {
    display: inline-block;
    padding: 25px 60px;
    background: var(--rust-gradient);
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 100px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.wd-cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(183, 65, 14, 0.4);
}

@media (max-width: 1024px) {
    .wd-hero-meta {
        flex-direction: column;
        gap: 40px;
    }

    .wd-grid-2 {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .wd-bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        min-height: 300px;
    }

    .bento-card.wide {
        grid-column: span 1;
    }

    .wd-stats {
        flex-direction: column;
    }
}