/* =====================================================
   PROGRAMMING — Full-bleed hero image layout
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=DM+Sans:wght@300;400;500&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --pg-cyan:       #06b6d4;
    --pg-cyan-deep:  #0891b2;
    --pg-emerald:    #10b981;
    --pg-dark:       #020c0b;
    --pg-ink:        #1a1a1a;
    --pg-muted:      #4b5563;
    --pg-border:     rgba(6,182,212,0.18);
    --pg-mono:       'JetBrains Mono', 'Fira Code', monospace;
}

/* ── HERO: full-bleed image ── */
.page-hero--programming {
    position: relative;
    height: 60vh;
    min-height: 360px;
    max-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 0;
}

.page-hero--programming .hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1555099962-4199c345e5dd?w=1600&q=80');
    background-size: cover;
    background-position: center 40%;
    filter: brightness(0.5);
    transition: filter 0.4s;
}
.page-hero--programming:hover .hero-bg { filter: brightness(0.58); }

.page-hero--programming .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2,12,11,0.9) 0%, rgba(2,12,11,0.25) 55%, transparent 100%);
}

/* Dot grid texture overlay */
.page-hero--programming .hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(6,182,212,0.12) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.page-hero--programming .container {
    position: relative;
    z-index: 2;
    padding: 0 2rem 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.page-hero--programming h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.page-hero__subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.75);
    max-width: 500px;
    line-height: 1.6;
    margin: 0;
}

/* ── CONTENT ── */
.page-section { max-width: 1100px; margin: 2.5rem auto; padding: 0 1.5rem; }

.page-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem; font-weight: 700;
    color: #0a2a28; margin-bottom: 1.1rem;
}

/* ── PROJECT CARDS ── */
.row.g-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.2rem; }
.col-md-6, .col-lg-4 { width: 100%; }

.project-card {
    background: #fff;
    border: 1.5px solid #d0f0f8;
    border-radius: 16px;
    padding: 1.4rem 1.5rem;
    transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
    position: relative; overflow: hidden;
}
.project-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--pg-cyan), var(--pg-emerald));
    opacity: 0; transition: opacity 0.2s;
}
.project-card:hover {
    box-shadow: 0 8px 28px rgba(6,182,212,0.13);
    transform: translateY(-3px);
    border-color: rgba(6,182,212,0.28);
}
.project-card:hover::before { opacity: 1; }

.card-body { display: flex; flex-direction: column; height: 100%; }
.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem; font-weight: 700;
    color: #0a2a28; margin: 0 0 0.65rem;
}

.project-meta {
    font-size: 0.76rem; line-height: 1.65;
    color: var(--pg-muted); margin-bottom: 0.75rem;
    font-family: var(--pg-mono);
}
.project-meta strong { color: var(--pg-cyan-deep); font-weight: 600; }

.card-text {
    flex: 1; font-size: 0.88rem; line-height: 1.7;
    color: #374151; margin-bottom: 1rem;
}

.btn.btn-sm.btn-primary, a.btn.btn-sm.btn-primary {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.8rem; font-weight: 600;
    background: var(--pg-cyan-deep); color: #fff;
    padding: 0.4rem 1rem; border-radius: 8px; border: none;
    text-decoration: none;
    transition: background 0.18s, transform 0.15s;
}
.btn.btn-sm.btn-primary:hover { background: var(--pg-emerald); transform: translateY(-1px); }

/* ── CONTACT ── */
.page-section--contact {
    background: linear-gradient(135deg, #020c0b, #042f2e, #064e3b);
    border-radius: 20px; color: #fff;
    text-align: center; padding: 4rem 1.5rem; margin: 2rem auto;
    max-width: 1100px;   /* same as page-section so it stretches fully */
    width: 100%;
    box-sizing: border-box;
}
.page-section--contact h2 { font-family: 'Playfair Display', serif; color: #fff; font-size: 1.8rem; margin-bottom: 0.7rem; }
.page-section--contact p  { color: rgba(255,255,255,0.72); }
.contact-cta a, .contact-cta .btn-primary, .page-section--contact a.btn {
    display: inline-block;
    background: var(--pg-emerald); color: #fff;
    padding: 0.7rem 2rem; border-radius: 999px;
    text-decoration: none; font-weight: 700; font-size: 0.9rem; border: none;
    transition: background 0.2s, transform 0.15s;
}
.contact-cta a:hover { background: var(--pg-cyan); transform: translateY(-1px); }
