/* =========================================================
   PROJECT DETAIL PAGE
========================================================= */


/* =========================================================
   HERO
========================================================= */

.detail-hero {
    position: relative;

    padding: 100px 8%;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(37, 99, 235, 0.30),
            transparent 35%
        ),
        #0b1220;

    overflow: hidden;
}

.detail-hero::after {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    right: -150px;
    bottom: -180px;

    background: rgba(6, 182, 212, 0.10);

    border-radius: 50%;

    filter: blur(10px);
}

.detail-hero-inner {
    position: relative;

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    z-index: 1;
}

.detail-category {
    display: inline-block;

    margin-bottom: 20px;

    padding: 7px 13px;

    background: rgba(59, 130, 246, 0.12);

    border: 1px solid rgba(96, 165, 250, 0.25);

    border-radius: 20px;

    color: #60a5fa;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.detail-hero h1 {
    max-width: 900px;

    margin: 0 0 22px;

    color: #ffffff;

    font-size: clamp(44px, 6vw, 72px);
    font-weight: 800;

    line-height: 1.05;
}

.detail-hero p {
    max-width: 750px;

    margin: 0;

    color: #94a3b8;

    font-size: 17px;

    line-height: 1.8;
}


/* =========================================================
   MAIN PROJECT SECTION
========================================================= */

.detail-section {
    padding: 90px 8%;

    background: #f8fafc;
}

.detail-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
}


/* =========================================================
   MAIN IMAGE
========================================================= */

.detail-main-image {
    width: 100%;

    margin-bottom: 70px;

    overflow: hidden;

    background: #e2e8f0;

    border: 1px solid #e2e8f0;
    border-radius: 20px;

    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.10);
}

.detail-main-image img {
    width: 100%;
    max-height: 620px;

    display: block;

    object-fit: cover;
}


/* No image */

.detail-no-image {
    width: 100%;
    height: 500px;

    margin-bottom: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #0f172a,
            #2563eb,
            #06b6d4
        );

    border-radius: 20px;

    color: #ffffff;

    font-size: 35px;
    font-weight: 800;

    letter-spacing: 1px;

    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.10);
}


/* =========================================================
   CONTENT GRID
========================================================= */

.detail-content-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(280px, 0.8fr);

    align-items: start;

    gap: 70px;
}


/* =========================================================
   LEFT CONTENT
========================================================= */

.detail-content .section-label {
    display: block;

    margin-bottom: 12px;

    color: #2563eb;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;
}

.detail-content h2 {
    margin: 0 0 22px;

    color: #0f172a;

    font-size: 36px;
    font-weight: 800;
}

.detail-content > p {
    margin: 0;

    color: #64748b;

    font-size: 16px;

    line-height: 1.9;
}


/* =========================================================
   TECHNOLOGIES
========================================================= */

.technology-section {
    margin-top: 40px;

    padding-top: 35px;

    border-top: 1px solid #e2e8f0;
}

.technology-section h3 {
    margin: 0 0 17px;

    color: #0f172a;

    font-size: 20px;
    font-weight: 700;
}

.technology-badge {
    display: inline-block;

    max-width: 100%;

    padding: 10px 15px;

    background: #eff6ff;

    border: 1px solid #dbeafe;

    border-radius: 8px;

    color: #2563eb;

    font-size: 14px;
    font-weight: 600;

    line-height: 1.5;
}


/* =========================================================
   PROJECT INFORMATION CARD
========================================================= */

.project-info-card {
    position: sticky;

    top: 100px;

    padding: 30px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 18px;

    box-shadow:
        0 15px 40px rgba(15, 23, 42, 0.07);
}

.project-info-card > h3 {
    margin: 0 0 22px;

    color: #0f172a;

    font-size: 21px;
    font-weight: 750;
}

.project-info-item {
    padding: 17px 0;

    border-bottom: 1px solid #e2e8f0;
}

.project-info-item > span {
    display: block;

    margin-bottom: 7px;

    color: #94a3b8;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.3px;

    text-transform: uppercase;
}

.project-info-item strong {
    display: block;

    color: #334155;

    font-size: 14px;
    font-weight: 600;

    line-height: 1.6;

    overflow-wrap: anywhere;
}


/* Live project button */

.live-project-btn {
    width: 100%;

    margin-top: 25px;

    padding: 13px 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    background: #2563eb;

    border-radius: 8px;

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition: 0.3s ease;
}

.live-project-btn:hover {
    gap: 12px;

    background: #1d4ed8;

    color: #ffffff;

    transform: translateY(-2px);
}


/* =========================================================
   COMMON SECTION HEADING
========================================================= */

.detail-section-heading {
    max-width: 700px;

    margin: 0 auto 50px;

    text-align: center;
}

.detail-section-heading > span {
    display: block;

    margin-bottom: 8px;

    color: #2563eb;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;
}

.detail-section-heading h2 {
    margin: 0 0 13px;

    color: #0f172a;

    font-size: 40px;
    font-weight: 800;
}

.detail-section-heading p {
    max-width: 600px;

    margin: 0 auto;

    color: #64748b;

    font-size: 15px;

    line-height: 1.8;
}


/* =========================================================
   FEATURES
========================================================= */

.detail-features {
    padding: 90px 8%;

    background: #ffffff;
}

.detail-features-grid {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}

.detail-feature-card {
    position: relative;

    padding: 32px 28px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.detail-feature-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 0;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #06b6d4
        );

    transition: width 0.35s ease;
}

.detail-feature-card:hover {
    transform: translateY(-6px);

    border-color: #bfdbfe;

    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.09);
}

.detail-feature-card:hover::before {
    width: 100%;
}

.feature-number {
    width: 42px;
    height: 42px;

    margin-bottom: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eff6ff;

    border-radius: 10px;

    color: #2563eb;

    font-size: 13px;
    font-weight: 800;
}

.detail-feature-card h3 {
    margin: 0 0 12px;

    color: #0f172a;

    font-size: 19px;
    font-weight: 700;
}

.detail-feature-card p {
    margin: 0;

    color: #64748b;

    font-size: 14px;

    line-height: 1.75;
}


/* =========================================================
   GALLERY
========================================================= */

.detail-gallery {
    padding: 90px 8%;

    background: #f8fafc;
}

.detail-gallery-grid {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 25px;
}

.detail-gallery-card {
    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 17px;

    overflow: hidden;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.detail-gallery-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 45px rgba(15, 23, 42, 0.12);
}

.detail-gallery-card img {
    width: 100%;
    height: 360px;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.detail-gallery-card:hover img {
    transform: scale(1.03);
}

.detail-gallery-caption {
    padding: 17px 20px;

    color: #64748b;

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   CTA
========================================================= */

.detail-cta {
    padding: 90px 8%;

    background:
        radial-gradient(
            circle at center top,
            #172554 0%,
            #0b1220 55%
        );

    text-align: center;
}

.detail-cta > span {
    display: block;

    margin-bottom: 10px;

    color: #60a5fa;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;
}

.detail-cta h2 {
    margin: 0 0 15px;

    color: #ffffff;

    font-size: 40px;
    font-weight: 800;
}

.detail-cta p {
    margin: 0 auto 28px;

    color: #94a3b8;

    font-size: 16px;

    line-height: 1.7;
}

.detail-cta a {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 13px 23px;

    background: #2563eb;

    border-radius: 8px;

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition: 0.3s ease;
}

.detail-cta a:hover {
    gap: 12px;

    background: #1d4ed8;

    color: #ffffff;

    transform: translateY(-2px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .detail-content-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .project-info-card {
        position: static;

        width: 100%;
        max-width: 550px;
    }

    .detail-features-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    /* Hero */

    .detail-hero {
        padding: 70px 6%;

        text-align: center;
    }

    .detail-category {
        margin-bottom: 17px;
    }

    .detail-hero h1 {
        font-size: 42px;
    }

    .detail-hero p {
        margin-left: auto;
        margin-right: auto;

        font-size: 16px;
    }


    /* Main */

    .detail-section {
        padding: 65px 6%;
    }

    .detail-main-image {
        margin-bottom: 45px;

        border-radius: 14px;
    }

    .detail-main-image img {
        max-height: 400px;
    }

    .detail-no-image {
        height: 300px;

        margin-bottom: 45px;

        border-radius: 14px;

        font-size: 25px;
    }


    /* Content */

    .detail-content-grid {
        gap: 40px;
    }

    .detail-content {
        text-align: center;
    }

    .detail-content h2 {
        font-size: 30px;
    }

    .technology-section {
        margin-top: 30px;

        padding-top: 30px;
    }


    /* Information card */

    .project-info-card {
        max-width: 100%;

        padding: 25px;

        text-align: left;
    }


    /* Section headings */

    .detail-section-heading {
        margin-bottom: 38px;
    }

    .detail-section-heading h2 {
        font-size: 32px;
    }


    /* Features */

    .detail-features {
        padding: 70px 6%;
    }

    .detail-features-grid {
        grid-template-columns: 1fr;
    }

    .detail-feature-card {
        padding: 27px 23px;
    }


    /* Gallery */

    .detail-gallery {
        padding: 70px 6%;
    }

    .detail-gallery-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .detail-gallery-card img {
        height: 260px;
    }


    /* CTA */

    .detail-cta {
        padding: 70px 6%;
    }

    .detail-cta h2 {
        font-size: 32px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .detail-hero {
        padding: 60px 18px;
    }

    .detail-hero h1 {
        font-size: 36px;
    }

    .detail-section {
        padding:
            55px
            18px;
    }

    .detail-content h2 {
        font-size: 28px;
    }

    .detail-features,
    .detail-gallery,
    .detail-cta {
        padding:
            60px
            18px;
    }

    .detail-section-heading h2 {
        font-size: 29px;
    }

    .detail-gallery-card img {
        height: 230px;
    }

    .detail-cta h2 {
        font-size: 29px;
    }

}