/* ============================= */
/* GLOBAL BACKGROUND */
/* ============================= */
body {
    background: #000;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* Purple glow */
body::before {
    content: '';

    position: fixed;
    top: -300px;
    left: -300px;

    width: 800px;
    height: 800px;

    border-radius: 50%;

    background: rgba(139, 92, 255, 0.18);

    filter: blur(220px);

    pointer-events: none;
    z-index: -2;
}

/* Blue glow */
body::after {
    content: '';

    position: fixed;
    bottom: -350px;
    right: -350px;

    width: 900px;
    height: 900px;

    border-radius: 50%;

    background: rgba(0, 191, 255, 0.12);

    filter: blur(260px);

    pointer-events: none;
    z-index: -2;
}



/* ============================= */
/* CASE STUDY PAGE */
/* ============================= */
.case-study-page {
    padding: 4rem 2rem 1rem 2rem;
    color: #fff;
}

.case-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* ============================= */
/* HERO */
/* ============================= */
.case-hero {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 4rem;
    align-items: center;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.back-link {
    color: #8b5cff;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.back-link:hover {
    color: #00bfff;
    text-shadow: 0 0 12px rgba(0,191,255,0.5);
}

.case-status {
    display: inline-block;
    background: #16a34a;
    color: #fff;
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.case-hero h1 {
    font-size: clamp(3rem, 5vw, 4rem);
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 1.5rem;
}

.case-hero p {
    color: rgba(255,255,255,0.72);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.case-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.primary-case-btn {
    padding: 0.9rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.primary-case-btn {
    display: inline-block;

    border: 1px solid #8b5cff;
    color: #8b5cff;
    text-decoration: none;
    font-weight: 600;

    transition: 0.3s ease;
}

.primary-case-btn:hover {
    color: #00bfff;
    border: 1px solid #00bfff;
    text-shadow: 0 0 12px rgba(0,191,255,0.5);

}

.case-hero-image img {
    width: 100%;
    border-radius: 22px;
    border: 1px solid rgba(139,92,255,0.5);
    box-shadow: 0 0 40px rgba(139,92,255,0.22);
}

/* ============================= */
/* META */
/* ============================= */
.project-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.project-meta div {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.project-meta i {
    color: #8b5cff;
    font-size: 1.2rem;
}

.project-meta span {
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
}

.project-meta strong {
    color: #fff;
    font-size: 0.95rem;
}

/* ============================= */
/* SECTIONS */
/* ============================= */
.case-two-column {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.case-section {
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.case-section h2,
.case-two-column h2 {
    font-size: 2rem;
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 1.5rem;
}

.case-section h2 i,
.case-two-column h2 i {
    color: #8b5cff;
    margin-right: 0.6rem;
}

.case-overview p {
    color: rgba(255,255,255,0.72);
    line-height: 1.9;
    font-size: 1rem;
}

/* ============================= */
/* FEATURES BOX */
/* ============================= */
.features-box {
    padding: 2rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(139,92,255,0.45);
    box-shadow: 0 0 25px rgba(139,92,255,0.12);
}

.features-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-box li {
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.features-box li::before {
    content: "✓";
    color: #8b5cff;
    margin-right: 0.7rem;
}

/* ============================= */
/* OVERVIEW TECHNOLOGIES */
/* ============================= */
.overview-tech {
    margin-top: 3rem;
}

.overview-tech h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.7rem 1.2rem;

    border: 1px solid #7c3aed;
    border-radius: 10px;

    background: rgba(255,255,255,0.03);

    color: #c084fc;
    font-size: 0.95rem;
    font-weight: 600;

    text-shadow:
        0 0 2px #a855f7,
        0 0 2px #7c3aed;

    transition: 0.3s ease;
}

.tech-grid span:hover {
    transform: translateY(-2px);

    border-color: #8b5cff;

    box-shadow:
        0 0 15px rgba(139,92,255,0.25);
}


/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width: 1000px) {
    .case-hero,
    .case-two-column {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .project-meta {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .case-study-page {
        padding: 3rem 1rem;
    }

    .case-buttons {
        flex-direction: column;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}