/* =========================================
   BASE STYLES
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body:not(.landing-page) {
    background-color: #FFFFFF;
    color: #0F172A;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    padding: 4rem;
    position: relative;
    z-index: 1;
}

body:not(.landing-page)::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at center, #ec4899 24px, transparent 24.5px),
        radial-gradient(circle at center, #10b981 24px, transparent 24.5px),
        radial-gradient(circle at center, #eab308 24px, transparent 24.5px);
    background-size: 300px 300px;
    background-position: 0 0, 100px 100px, 200px 200px;
    opacity: 0.15;
}

.top-nav {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    background-color: #616570;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.top-nav.narrow-nav {
    max-width: 1000px;
}

.nav-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #FFFFFF;
    text-decoration: none;
    letter-spacing: -0.025em;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0F172A;
}

.nav-links a.active {
    color: #0F172A;
    font-weight: 700;
}

.content-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background-color: #A8ABB3;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    padding: 4rem;
}

.content-container p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1E293B;
    margin-bottom: 20px;
}

.skill-tag {
    background-color: rgba(255, 255, 255, 0.4);
    color: #1E293B;
    border: 1px solid rgba(15, 23, 42, 0.1);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    display: inline-block;
}

.skill-tag.green {
    background-color: #A7F3D0;
    color: #065F46;
    border: 1px solid rgba(6, 95, 70, 0.2);
}

.skill-tag.yellow {
    background-color: #FDE68A;
    color: #854D0E;
    border: 1px solid rgba(133, 77, 14, 0.2);
}

.skill-tag.pink {
    background-color: #FBCFE8;
    color: #9D174D;
    border: 1px solid rgba(157, 23, 77, 0.2);
}

.thinking-section {
    padding-top: 2.25rem;
    margin-top: 2.25rem;
    border-top: 1px solid rgba(15, 23, 42, 0.15);
}

.thinking-header {
    margin-bottom: 1.75rem;
}

.thinking-header h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.025em;
    margin-bottom: 0.4rem;
}

.thinking-header p {
    font-size: 1rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 0;
}

.thinking-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.thinking-card {
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thinking-card.card-yellow { background-color: #FDE68A; }
.thinking-card.card-pink   { background-color: #FBCFE8; }
.thinking-card.card-green  { background-color: #A7F3D0; }

.thinking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.10);
}

.thinking-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 12px;
}

.thinking-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.thinking-icon svg {
    width: 30px;
    height: 30px;
}

.icon-yellow { color: #854D0E; }
.icon-pink   { color: #9D174D; }
.icon-green  { color: #065F46; }

.thinking-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0F172A;
    margin-bottom: 0;
}

.thinking-card p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #334155;
    margin-bottom: 0;
}

/* =========================================
   CASE STUDY PAGE STYLES
   ========================================= */
.cs-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    margin-bottom: 1.75rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.cs-back-link:hover {
    color: #0F172A;
    transform: translateX(-3px);
}

.cs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
}

.cs-hero h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #0F172A;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.cs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 1.75rem 0 2rem 0;
}

.cs-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background-color: #0F172A;
    color: #FFFFFF;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
    transition: all 0.3s ease;
}

.cs-btn-primary:hover {
    background-color: #1d4ed8;
    box-shadow: 0 8px 25px rgba(29, 78, 216, 0.3);
    transform: translateY(-2px);
}

.cs-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background-color: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    color: #0F172A;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cs-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.78);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

/* Metadata Strip */
.cs-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 12px;
}

.cs-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cs-meta-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
}

.cs-meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0F172A;
}

/* Two-Column Problem / Solution */
.cs-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

/* Screenshot Gallery */
.cs-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.cs-figure {
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cs-figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.10);
    background-color: #FFFFFF;
}

.cs-img-wrapper {
    aspect-ratio: 16 / 10;
    background-color: #E2E8F0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    overflow: hidden;
}

.cs-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cs-img-placeholder {
    width: 88%;
    height: 82%;
    border: 2px dashed rgba(15, 23, 42, 0.25);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    color: #334155;
}

.cs-img-placeholder strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #0F172A;
    margin-bottom: 4px;
}

.cs-img-placeholder small {
    font-size: 0.8rem;
    color: #475569;
}

.cs-figure figcaption {
    padding: 1.25rem;
}

.cs-figure figcaption strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #0F172A;
    margin-bottom: 6px;
}

.cs-figure figcaption span {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #334155;
}

/* Bottom Callout */
.cs-callout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background-color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-left: 6px solid #10b981;
    border-radius: 14px;
    padding: 1.75rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.cs-callout-text {
    max-width: 560px;
}

.cs-callout-text h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.4rem;
}

.cs-callout-text p {
    margin-bottom: 0;
    font-size: 0.98rem;
    color: #334155;
}

/* Lightbox Modal */
.cs-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.cs-lightbox.open {
    display: flex;
}

.cs-lightbox-content {
    max-width: 1050px;
    width: 100%;
    text-align: center;
}

.cs-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.cs-lightbox-caption {
    margin-top: 1rem;
    color: #F1F5F9;
    font-size: 0.95rem;
}

.cs-lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.75rem;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 2.25rem;
    cursor: pointer;
    line-height: 1;
}

/* Responsive */
@media (max-width: 800px) {
    body:not(.landing-page) {
        padding: 1.5rem;
    }
    .top-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        margin-bottom: 2rem;
    }
    .content-container {
        padding: 2rem 1.5rem;
    }
    .cs-hero h1 {
        font-size: 1.9rem;
    }
    .cs-meta-grid,
    .cs-two-col,
    .cs-gallery,
    .thinking-grid {
        grid-template-columns: 1fr;
    }
    .cs-callout {
        padding: 1.5rem;
    }
}