/* 1. SETUP & VARIABLES */
:root {
    --bone-white: #F9F6F2;
    --legislative-green: #1B3022;
    --text-dark: #2D3436;
    --serif-font: 'Merriweather', serif;
    --sans-font: 'Merriweather Sans', sans-serif;
}

/* 2. BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bone-white);
    color: var(--text-dark);
    font-family: var(--serif-font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* This ensures a smooth look on mobile screens */
}

/* 3. TYPOGRAPHY HIERARCHY */
h1, h2, h3 {
    color: var(--legislative-green);
    margin-bottom: 1rem;
}

nav, button, .label {
    font-family: var(--sans-font);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 4. NAVIGATION */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--bone-white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--sans-font);
    font-size: 1.5rem;
    color: var(--legislative-green);
    text-decoration: none;
}
.logo strong {
    font-weight: 700;
}

.logo .light {
    font-weight: 300;
    opacity: 0.9;
}

/* Mobile Menu Links (Hidden by default) */
.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bone-white);
    padding: 2rem;
    list-style: none;
    border-top: 1px solid rgba(27, 48, 34, 0.1);
}

.nav-links.active {
    display: flex;
}

.nav-links li {
    margin: 1rem 0;
    text-align: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--legislative-green);
    font-family: var(--sans-font);
    font-weight: 400;
    transition: 0.3s;
}

/* 5. HAMBURGER (Neumorphic Style) */
.menu-toggle {
    background: var(--bone-white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    /* Subtle Neumorphism */
    box-shadow: 5px 5px 10px #e1deda, -5px -5px 10px #ffffff;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--legislative-green);
    transition: 0.3s;
}

/* 6. DESKTOP VIEW (Media Query) */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        padding: 0;
        border: none;
    }

    .nav-links li {
        margin: 0 0 0 2rem;
    }

    .nav-links a:hover {
        opacity: 0.7;
        /* We can add a more fancy hover effect next! */
    }
}

/* 7. HERO SECTION */
.hero {
    padding: 100px 5% 60px 5%; /* More space on top for mobile */
    display: flex;
    justify-content: center;
    text-align: center;
    min-height: 80vh;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-family: var(--sans-font);
    font-weight: 700;
    font-size: 1.1rem;
    color: #4A5568; /* Slate grey for contrast */
    margin-bottom: 1.5rem;
}

.bio {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
}

/* 8. BUTTONS & HOVER EFFECTS */
.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--legislative-green);
    color: var(--bone-white);
    text-decoration: none;
    font-family: var(--sans-font);
    font-weight: 700;
    border-radius: 4px;
    transition: background-color 0.3s ease; /* The color fade */
}

.btn-primary:hover {
    background-color: #2D4739; /* A slightly lighter green fade */
}

.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    color: var(--legislative-green);
    text-decoration: none;
    font-family: var(--sans-font);
    font-weight: 700;
    margin-left: 10px;
    transition: opacity 0.3s ease;
}

.btn-secondary:hover {
    opacity: 0.6;
}

/* Updated Nav Hover (as you requested) */
.nav-links a {
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #4A5568; /* Fades to a grey-green on hover */
}

/* 9. WRITING PAGE LAYOUT */
.container {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 3rem;
    border-left: 4px solid var(--legislative-green);
    padding-left: 20px;
}

.topic-group {
    margin-bottom: 4rem;
}

.topic-title {
    font-family: var(--sans-font);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* 10. NEUMORPHIC WORK CARDS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.work-card {
    background: var(--bone-white);
    padding: 30px;
    text-decoration: none;
    border-radius: 15px;
    display: block;
    transition: all 0.4s ease;
    
    /* Neumorphism: Light and dark shadows */
    box-shadow: 8px 8px 16px #e8e5e1, 
               -8px -8px 16px #ffffff;
}

.work-card:hover {
    /* "Push" the card down slightly on hover */
    box-shadow: inset 4px 4px 8px #e8e5e1, 
                inset -4px -4px 8px #ffffff;
    transform: translateY(2px);
}

.work-card h3 {
    margin: 10px 0;
    font-size: 1.3rem;
}

.work-card p {
    color: #666;
    font-size: 0.95rem;
}

.tag {
    font-family: var(--sans-font);
    font-size: 0.7rem;
    background: rgba(27, 48, 34, 0.1);
    color: var(--legislative-green);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
}

/* 11. SUBTLE ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.work-card {
    animation: fadeUp 0.6s ease out;
    animation-fill-mode: both;
}

/* Stagger the cards slightly so they don't all pop in at once */
.work-card:nth-child(1) { animation-delay: 0.1s; }
.work-card:nth-child(2) { animation-delay: 0.2s; }
.work-card:nth-child(3) { animation-delay: 0.3s; }

/* 12. MEDIA SPECIFIC STYLES */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.media-card {
    background: var(--bone-white);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 8px 8px 16px #e8e5e1, -8px -8px 16px #ffffff;
    margin-bottom: 2rem;
}

.media-info {
    padding: 20px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 13. CONTACT CARD STYLES */
.contact-card {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    background: var(--bone-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 10px 10px 20px #e1deda, -10px -10px 20px #ffffff;
    max-width: 900px;
    margin: 40px auto;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 400px;
}

.contact-info {
    padding: 40px;
}

.contact-list {
    list-style: none;
    margin-top: 20px;
}

.contact-list li {
    margin-bottom: 10px;
}

.contact-list a {
    color: var(--legislative-green);
    font-weight: 700;
    text-decoration: none;
}

/* Desktop flip for Contact Card */
@media (min-width: 768px) {
    .contact-card {
        flex-direction: row;
        align-items: stretch;
    }
    .contact-image {
        flex: 1;
    }
    .contact-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* 14. RESUME & UTILITY STYLES */
.btn-text-link {
    display: inline-block;
    color: var(--legislative-green);
    text-decoration: none;
    font-family: var(--sans-font);
    font-weight: 700;
    margin-top: 10px;
    transition: opacity 0.3s ease;
}

.btn-text-link:hover {
    opacity: 0.6;
}

/* 15. ACTIVE NAV LINK INDICATOR */
.nav-links a.active-link {
    color: var(--legislative-green);
    font-weight: 700;
    border-bottom: 2px solid var(--legislative-green);
    padding-bottom: 5px; /* Adds space between text and line */
}