
:root {
    --blue: #0878ff;
    --blue-dark: #0561d0;
    --orange: #ff7100;
    --dark: #172337;
    --text: #26364d;
    --muted: #65758b;
    --white: #ffffff;
    --light: #f4f8ff;
    --border: #e3eaf3;
    --shadow: 0 12px 35px rgba(22, 55, 95, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
    color: var(--dark);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

.case-page {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
}

/* HERO */

.case-hero {
    min-height: 570px;
    padding: 85px 8%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
    position: relative;
    background:
        radial-gradient(circle at 10% 20%, rgba(8,120,255,0.10), transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(255,113,0,0.08), transparent 40%),
        #ffffff;
}

.case-hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.section-tag {
    display: inline-block;
    color: var(--orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.5px;
    margin-bottom: 20px;
}

.case-hero h1 {
    font-size: clamp(42px, 5.5vw, 68px);
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--dark);
    font-weight: 850;
}

.case-hero h1 span {
    color: var(--orange);
    display: block;
}

.case-hero-content > p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
    max-width: 560px;
    margin-top: 25px;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: var(--blue);
    color: #ffffff;
    padding: 15px 23px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 800;
    border: none;
    transition: 0.3s ease;
    cursor: pointer;
}

.primary-btn:hover {
    background: var(--orange);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(255,113,0,0.2);
}

.case-hero .primary-btn {
    margin-top: 32px;
}

.hero-caption {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 50px;
    color: #8491a3;
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 800;
}

.hero-caption span {
    width: 28px;
    height: 3px;
    background: var(--orange);
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.hero-shape-one {
    width: 200px;
    height: 200px;
    background: rgba(8,120,255,0.09);
    top: 0;
    left: 30%;
}

.hero-shape-two {
    width: 200px;
    height: 200px;
    background: rgba(255,113,0,0.08);
    bottom: 0;
    right: 10%;
}

/* HERO IMAGE */

.hero-side {
    position: relative;
    max-width: 500px;
    width: 100%;
    margin: auto;
}

.hero-image-frame {
    position: relative;
    height: 370px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #dcecff, #fff0e4);
    box-shadow: 0 20px 55px rgba(20,50,90,0.13);
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 35px;
    background: linear-gradient(transparent, rgba(10,25,45,0.85));
    color: #ffffff;
}

.hero-image-overlay span {
    color: #ffb16e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero-image-overlay h3 {
    margin-top: 10px;
    font-size: 25px;
}

.floating-label {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 17px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 9px;
    box-shadow: var(--shadow);
    font-size: 12px;
    font-weight: 700;
}

.label-top {
    top: 35px;
    left: -40px;
}

.label-bottom {
    bottom: 30px;
    right: -30px;
}

.label-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
}

.label-bottom strong {
    color: var(--blue);
    font-size: 18px;
}

/* PROJECT SECTION */

.case-projects {
    padding: 105px 8%;
    background: #f5f8fd;
}

.section-heading {
    max-width: 750px;
    text-align: center;
    margin: 0 auto 45px;
}

.section-heading h2 {
    color: var(--dark);
    font-size: clamp(30px, 4vw, 47px);
    line-height: 1.2;
}

.section-heading h2 span {
    color: var(--orange);
}

.section-heading p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
    margin-top: 16px;
}

/* FILTER BUTTONS */

.case-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 45px;
}

.filter-btn {
    padding: 11px 18px;
    border: 1px solid #dce5f0;
    background: #ffffff;
    color: #53657d;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #ffffff;
}

/* PROJECT GRID */

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.case-card {
    background: #ffffff;
    border-radius: 13px;
    overflow: hidden;
    border: 1px solid #e6ebf2;
    box-shadow: 0 7px 25px rgba(20,50,90,0.045);
    transition: 0.35s ease;
    min-width: 0;
}

.case-card:hover {
    transform: translateY(-9px);
    border-color: rgba(255,113,0,0.65);
    box-shadow: 0 18px 40px rgba(20,50,90,0.11);
}

.case-card.hide {
    display: none;
}

/* CARD IMAGE */

.case-image {
    position: relative;
    height: 225px;
    overflow: hidden;
    background: linear-gradient(135deg, #dcecff, #fff0e4);
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.08);
}

.case-category {
    position: absolute;
    top: 17px;
    left: 17px;
    z-index: 2;
    background: rgba(255,255,255,0.94);
    color: var(--blue-dark);
    padding: 8px 11px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.image-hover {
    position: absolute;
    inset: 0;
    background: rgba(8,120,255,0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.image-hover span {
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,0.8);
    padding: 12px 18px;
}

.case-card:hover .image-hover {
    opacity: 1;
}

/* CARD CONTENT */

.case-card-content {
    padding: 25px;
}

.case-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--orange);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.case-arrow {
    font-size: 19px;
    color: var(--blue);
}

.case-card-content h3 {
    color: var(--dark);
    font-size: 22px;
    margin-top: 17px;
}

.case-card-content > p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
    margin-top: 12px;
    min-height: 95px;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
    margin-bottom: 22px;
}

.case-tags span {
    background: #edf5ff;
    color: #2368b8;
    padding: 7px 9px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.view-case-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 0 0;
    border: none;
    border-top: 1px solid #edf0f5;
    background: transparent;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.view-case-btn span {
    font-size: 19px;
}

.view-case-btn:hover {
    color: var(--orange);
}

.no-projects {
    display: none;
    text-align: center;
    color: var(--muted);
    padding: 35px;
}

/* PROCESS */

.process-section {
    padding: 105px 8%;
    background: #ffffff;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.process-item {
    padding: 28px 22px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #ffffff;
    transition: 0.3s;
}

.process-item:hover {
    transform: translateY(-6px);
    border-color: var(--orange);
    box-shadow: var(--shadow);
}

.process-item > span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: #eaf3ff;
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
    border-radius: 9px;
}

.process-item h3 {
    color: var(--dark);
    margin: 19px 0 10px;
    font-size: 17px;
}

.process-item p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

/* CTA */

.case-cta {
    text-align: center;
    margin: 20px 8% 100px;
    padding: 80px 25px;
    border: 1px solid #dceaff;
    border-radius: 18px;
    background:
        radial-gradient(circle at 10% 20%, rgba(8,120,255,0.12), transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(255,113,0,0.12), transparent 40%),
        #f3f8ff;
}

.case-cta h2 {
    max-width: 750px;
    margin: 0 auto;
    color: var(--dark);
    font-size: clamp(30px, 4vw, 47px);
    line-height: 1.2;
}

.case-cta h2 span {
    color: var(--orange);
}

.case-cta > p {
    max-width: 630px;
    margin: 20px auto 28px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.cta-bottom {
    margin-top: 42px;
    color: #8290a3;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 4px;
}

/* MODAL */

.case-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.case-modal.open {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,28,45,0.65);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.2);
    animation: modalShow 0.3s ease;
}

@keyframes modalShow {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 15px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: var(--dark);
    font-size: 25px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

.modal-image {
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, #dcecff, #fff0e4);
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 35px;
}

.modal-body h2 {
    font-size: 30px;
    color: var(--dark);
    margin-bottom: 15px;
}

.modal-body > p,
.modal-detail p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.modal-detail {
    margin-top: 24px;
    padding: 18px;
    border-radius: 9px;
    background: #f4f8ff;
}

.modal-detail h4 {
    font-size: 14px;
    color: var(--blue-dark);
    margin-bottom: 8px;
}

.modal-body .primary-btn {
    margin-top: 25px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 850px) {
    .case-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 80px 7%;
    }

    .case-hero-content {
        margin: auto;
    }

    .case-hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .case-hero .primary-btn {
        margin-top: 25px;
    }

    .hero-caption {
        justify-content: center;
    }

    .hero-side {
        max-width: 470px;
    }
}

@media (max-width: 600px) {
    .case-hero,
    .case-projects,
    .process-section {
        padding: 70px 5%;
    }

    .case-hero h1 {
        font-size: 43px;
        letter-spacing: -1px;
    }

    .hero-image-frame {
        height: 270px;
    }

    .label-top {
        left: -5px;
    }

    .label-bottom {
        right: -5px;
    }

    .case-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .case-card-content > p {
        min-height: auto;
    }

    .case-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 12px;
        font-size: 11px;
    }

    .case-cta {
        margin: 10px 5% 65px;
        padding: 60px 20px;
    }

    .modal-body {
        padding: 25px;
    }

    .modal-image {
        height: 190px;
    }

    .modal-body h2 {
        font-size: 25px;
    }

    .cta-bottom {
        letter-spacing: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
