/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    /*--bg: #fff3e6;
    --bg-rgb: 255, 243, 230;
    --text: #2b1e13;
    --text-light: #5a4a3a;
    --accent: #f05a00;
    --accent-hover: #ff7a30;
    --accent-light: #fff9f2;
    --accent-dark: #c84800;
    --card-bg: #ffb48c83;
    --border-soft: rgba(240, 90, 0, 0.15);*/

    --bg: #d4e9c3;
    --bg-rgb: 240, 245, 236;
    --text: #1a2b1e;
    --text-light: #4a5a4a;
    --accent: #2d6a4f;
    --accent-hover: #40916c;
    --accent-light: #f4f9f1;
    --accent-dark: #1b4332;
    --card-bg: #a8d5ba83;
    --border-soft: rgba(45, 106, 79, 0.15);
}
[data-theme="dark"] {
    /*--bg: #1c140d;
    --bg-rgb: 28, 20, 13;
    --text: #f5ece0;
    --text-light: #c9b8a6;
    --accent: #ff7a30;
    --accent-hover: #ff9457;
    --accent-light: #241a12;
    --accent-dark: #ffb385;
    --card-bg: #3a2a1a;
    --border-soft: rgba(255, 154, 87, 0.2);*/

    
    --bg: #12201a;
    --bg-rgb: 18, 32, 26;
    --text: #eaf2e8;
    --text-light: #b8c9b8;
    --accent: #52b788;
    --accent-hover: #74c69d;
    --accent-light: #1b2b1f;
    --accent-dark: #95d5b2;
    --card-bg: #1e3a2a;
    --border-soft: rgba(82, 183, 136, 0.2);
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}
body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* ==== NAVBAR ==== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(var(--bg-rgb), 0.9);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border-soft);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.navbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.navbar-logo {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    text-decoration: none;
}
.navbar-logo:hover {
    color: var(--accent);
}
.navbar-links {
    display: flex;
    gap: 1.5rem;
}
.navbar-links a {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}
.navbar-links a:hover {
    color: var(--accent);
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-light);
    transition: border-color 0.15s ease, color 0.15s ease;
}
.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 600px) {
    .navbar-inner {
        padding: 0.8rem 1.3rem;
    }
    .navbar-links {
        gap: 1rem;
    }
}

/* ==== SITE CONTENT ==== */
.site-content {
    width: 100%;
}

/* ==== SHARED SECTION SHELL ==== */
.site-section {
    width: 100%;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 0;
}
.projects-section {
    background-color: var(--accent-light);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

/* Shared inner wrapper for sections 2 & 3 (mirrors .main-section's max-width) */
.section-inner {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}
.section-title {
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2rem;
}

/* ==== MAIN SECTION (HERO) ==== */
.main-section {
    position: relative;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero content: paragraph block + contact card, side by side on wide screens */
.hero-content {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}
@media (max-width: 1099px) {
    .hero-content {
        flex-direction: column;
        gap: 0;
    }
}

/* ==== MOBILE HEADLINE ==== */
.mobile-headline {
    display: none;
}
@media (max-width: 600px) {
    .mobile-headline {
        display: block;
        font-family: 'Arial', sans-serif;
        font-size: 2.0rem;
        color: var(--accent);
        margin-bottom: 1.0rem;
    }
    .inline-greeting {
        display: none;
    }
}

/* ==== PARAGRAPH BLOCKS ==== */
.paragraph-block {
    flex: 1;
    min-width: 0;
}
.intro-headline {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}
.intro {
    margin-bottom: 1.2rem;
    color: var(--text-light);
}
.intro:last-child {
    margin-bottom: 0;
}

/* ==== CONTACT CARD ==== */
.contact-card {
    flex-shrink: 0;
    width: 300px;
    max-width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 1.2rem 1.3rem;
    font-size: 0.9rem;
    line-height: 1.5;
}
.contact-label {
    font-family: 'Arial', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06rem;
    color: var(--accent);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.25rem;
}
.contact-value {
    margin-bottom: 0.9rem;
}
.contact-value:last-child {
    margin-bottom: 0;
}
.contact-value a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border-soft);
}
.contact-value a:hover {
    color: var(--accent);
    border-color: var(--accent);
    text-decoration: none;
}

.contact-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0.4rem;
}
.contact-icons a {
    color: var(--text);
    font-size: 1.6rem;
    text-decoration: none;
    border-bottom: none; /* override the underline style used for text links */
}
.contact-icons a:hover {
    color: var(--accent);
}

@media (max-width: 1099px) {
    .contact-card {
        align-self: center;
        margin-top: 2rem;
    }
}
@media (max-width: 600px) {
    .contact-card {
        width: 100%;
        font-size: 0.9rem;
    }
}

/* ==== PROJECTS GRID ==== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.project-card {
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(240, 90, 0, 0.12);
}
.project-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-dark);
}
.project-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ==== PHOTOGRAPHY SECTION ==== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.photo-tile {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.photo-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.photo-tile img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}
/* Temporary stand-in until photos are added */
.photo-placeholder {
    height: 280px;
    border-radius: 10px;
    background: repeating-linear-gradient(
        135deg,
        var(--accent-light),
        var(--accent-light) 10px,
        #ffe9d6 10px,
        #ffe9d6 20px
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.85rem;
    border: 1px dashed var(--border-soft);
}

/* ==== PROJECT DETAIL PAGE ==== */
.project-page {
    width: 100%;
    min-height: 100vh;
}
.project-page-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.back-link {
    display: inline-block;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2rem;
    transition: color 0.15s ease;
}
.back-link:hover {
    color: var(--accent);
}
.back-link-bottom {
    margin-top: 3rem;
    margin-bottom: 0;
}

.project-header {
    margin-bottom: 2rem;
}
.project-page-title {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 0.6rem;
}
.project-page-tagline {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1.2rem 1.3rem;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
}
.project-meta-item a {
    color: var(--text);
}
.project-meta-item a:hover {
    color: var(--accent);
}

.project-hero-image {
    width: 100%;
    height: 360px;
    margin-bottom: 2.5rem;
    border-radius: 10px;
}

.project-body-section {
    margin-bottom: 2rem;
}
.project-body-section h2 {
    font-size: 1.1rem;
    color: var(--accent-dark);
    margin-bottom: 0.6rem;
}
.project-body-section:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .project-page-inner {
        padding: 2.5rem 1.3rem 4rem;
    }
    .project-page-title {
        font-size: 1.6rem;
    }
    .project-hero-image {
        height: 220px;
    }
}

/* ==== MOBILE ==== */
@media (max-width: 600px) {
    html {
        font-size: 16px;
    }
    .main-section {
        padding: 2.5rem 1.3rem 4rem;
    }
    .site-section {
        padding: 2.5rem 0;
    }
    .section-inner {
        padding: 2rem 1.3rem;
    }
}