/* ==========================================================================
   NADIM HASAN — Editorial Multi-Page Portfolio (nadim.bond)
   Color System: Pure White & Forest Emerald Green (Light & Dark Modes)
   ========================================================================== */

:root {
    --bg-canvas: #ffffff;
    --bg-surface: #f7faf8;
    --bg-elevated: #ffffff;
    --bg-subtle: #eef5f0;
    
    --text-ink: #0f1f17;
    --text-body: #3b4f44;
    --text-muted: #687d71;
    
    --green-primary: #15803d;
    --green-deep: #14532d;
    --green-soft: #dcfce7;
    --green-tint: rgba(21, 128, 61, 0.08);
    
    --border-hairline: #dfe9e2;
    --border-strong: #b8d1c0;
    
    --shadow-sm: 0 2px 10px rgba(15, 31, 23, 0.04);
    --shadow-md: 0 12px 32px rgba(15, 31, 23, 0.07);
    
    --font-serif: 'Fraunces', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

[data-theme="dark"] {
    --bg-canvas: #09110d;
    --bg-surface: #0f1a14;
    --bg-elevated: #13221a;
    --bg-subtle: #182b21;
    
    --text-ink: #f4f9f6;
    --text-body: #b7c9be;
    --text-muted: #7d9688;
    
    --green-primary: #22c55e;
    --green-deep: #4ade80;
    --green-soft: rgba(34, 197, 94, 0.14);
    --green-tint: rgba(34, 197, 94, 0.1);
    
    --border-hairline: #1e3328;
    --border-strong: #2d4d3c;
    
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 16px 36px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-canvas);
    color: var(--text-ink);
    font-family: var(--font-sans);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-canvas);
    color: var(--text-ink);
    transition: background-color 0.25s ease, color 0.25s ease;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-canvas);
    border-bottom: 1px solid var(--border-hairline);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    gap: 16px;
}

.wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--font-serif);
    font-size: 1.48rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-ink);
}

.wordmark .accent {
    color: var(--green-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-menu a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--text-body);
}

.nav-menu a:hover {
    color: var(--green-primary);
    background-color: var(--green-tint);
}

.nav-menu a.active {
    color: var(--green-primary);
    font-weight: 600;
    background-color: var(--green-tint);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-hairline);
    background-color: var(--bg-surface);
    color: var(--text-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.theme-btn:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    background-color: var(--green-primary);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
}

[data-theme="dark"] .header-cta {
    color: #052e16;
}

.header-cta:hover {
    opacity: 0.92;
}

.menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-hairline);
    background-color: var(--bg-surface);
    color: var(--text-ink);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
}

/* ==========================================================================
   Buttons & Editorial Tags
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.94rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--green-primary);
    color: #ffffff;
}

[data-theme="dark"] .btn-primary {
    color: #052e16;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    opacity: 0.94;
}

.btn-outline {
    background-color: var(--bg-canvas);
    color: var(--text-ink);
    border-color: var(--border-strong);
}

.btn-outline:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
    background-color: var(--bg-surface);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--green-primary);
    margin-bottom: 14px;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--green-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding: 76px 0 68px;
    border-bottom: 1px solid var(--border-hairline);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 56px;
    align-items: center;
}

.hero-heading {
    font-family: var(--font-serif);
    font-size: clamp(2.3rem, 4.2vw, 3.45rem);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.025em;
    color: var(--text-ink);
    margin-bottom: 20px;
}

.hero-heading em {
    font-style: italic;
    color: var(--green-primary);
}

.hero-lead {
    font-size: 1.08rem;
    color: var(--text-body);
    max-width: 580px;
    margin-bottom: 30px;
    line-height: 1.72;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.hero-note {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.hero-note span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.portrait-frame {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.portrait-img {
    width: 100%;
    aspect-ratio: 4 / 4.4;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.portrait-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.portrait-caption strong {
    display: block;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-ink);
}

.portrait-caption span {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.domain-pill {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    background-color: var(--green-soft);
    color: var(--green-primary);
}

/* ==========================================================================
   Page Banner (Subpages)
   ========================================================================== */
.page-banner {
    padding: 60px 0 44px;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-hairline);
}

.page-banner h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.page-banner p {
    font-size: 1.05rem;
    color: var(--text-body);
    max-width: 640px;
}

/* ==========================================================================
   Sections, Editorial Blocks & Cards
   ========================================================================== */
.section-block {
    padding: 68px 0;
}

.section-alt {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-hairline);
    border-bottom: 1px solid var(--border-hairline);
}

.section-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 38px;
}

.section-top h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.65rem, 2.8vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-top p {
    color: var(--text-body);
    max-width: 560px;
    margin-top: 6px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.editorial-card {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.editorial-card:hover {
    border-color: var(--green-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-kicker {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--green-primary);
    margin-bottom: 10px;
    display: block;
}

.editorial-card h3 {
    font-family: var(--font-serif);
    font-size: 1.32rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--text-ink);
}

.editorial-card p {
    color: var(--text-body);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.68;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}

.tag {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: var(--bg-subtle);
    color: var(--text-body);
    border: 1px solid var(--border-hairline);
}

/* ==========================================================================
   Project Showcase Feature Box
   ========================================================================== */
.venture-highlight {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.venture-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-hairline);
    margin-bottom: 24px;
}

.venture-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background-color: var(--green-soft);
    color: var(--green-primary);
}

.venture-link:hover {
    opacity: 0.9;
}

/* ==========================================================================
   Contact List & Form
   ========================================================================== */
.channel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-hairline);
    transition: all 0.2s ease;
}

.channel-item:hover {
    border-color: var(--green-primary);
    background-color: var(--bg-surface);
}

.channel-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.channel-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: var(--green-soft);
    color: var(--green-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.channel-item strong {
    display: block;
    font-size: 0.96rem;
    color: var(--text-ink);
}

.channel-item span {
    font-size: 0.84rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.field-group {
    margin-bottom: 18px;
}

.field-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--text-ink);
}

.field-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-canvas);
    border: 1px solid var(--border-strong);
    color: var(--text-ink);
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.field-input:focus {
    outline: none;
    border-color: var(--green-primary);
}

/* ==========================================================================
   Info Rows (About Page)
   ========================================================================== */
.spec-list {
    display: flex;
    flex-direction: column;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-hairline);
    gap: 16px;
    font-size: 0.94rem;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row span {
    color: var(--text-muted);
}

.spec-row strong {
    color: var(--text-ink);
    text-align: right;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-hairline);
    background-color: var(--bg-surface);
    padding: 44px 0 32px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--border-hairline);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-body);
}

.footer-nav a:hover {
    color: var(--green-primary);
}

.footer-socials {
    display: flex;
    gap: 14px;
    font-size: 1.1rem;
    color: var(--text-body);
}

.footer-socials a:hover {
    color: var(--green-primary);
}

.footer-bottom {
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .portrait-frame {
        max-width: 400px;
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        background-color: var(--bg-canvas);
        border-bottom: 1px solid var(--border-hairline);
        flex-direction: column;
        padding: 16px 24px 24px;
        align-items: stretch;
    }
    .nav-menu.open {
        display: flex;
    }
    .menu-toggle {
        display: inline-flex;
    }
    .header-cta {
        display: none;
    }
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .venture-highlight {
        padding: 24px;
    }
}
