/* 1. SETUP & VARIABLES */
:root {
    --cool-pearl: #F0F4F8;
    --modern-white: #FFFFFF;
    --institutional-purple: #4A2556;
    --institutional-purple-fade: #4B414E;
    --institutional-purple-lite: #562B64;
    --dark-text: #242424;
    --dark-text-lite: #4B4B4B;
    --accent-taupe: #D6CEC5;
    --accent-taupe-lite: #F6F5F3;
    --shadow-dark: #BFC8D6;
    --shadow-light: #FFFFFF;
    --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(--cool-pearl);
    color: var(--dark-text);
    font-family: var(--serif-font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}










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

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










/* 4. NAVIGATION */
body > header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0 0 0;
    /* Navbar Top Gap Blur */
    background: color-mix(in srgb, var(--cool-pearl) 80%, transparent);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    margin: 0 2%;
    border-radius: 20px;
    background: var(--cool-pearl); 
    box-shadow: 10px 10px 20px color-mix(in srgb, var(--shadow-dark) 40%, transparent), 
               -10px -10px 20px color-mix(in srgb, var(--shadow-light) 50%, transparent);
    position: relative;
}

.logo {
    font-family: var(--sans-font);
    font-size: 1.5rem;
    color: var(--institutional-purple);
    text-decoration: none;
    position: relative;
}

.logo strong {
    font-weight: 700;
}

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

/* Mobile Menu Links */
.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 15px);
    left: 1%;
    width: 98%;
    background: var(--cool-pearl);
    padding: 2rem;
    list-style: none;
    border-radius: 20px;
    box-shadow: 5px 5px 10px var(--shadow-dark), 
               -5px -5px 10px var(--shadow-light);
    z-index: 10;
}

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

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

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

body .logo {
    transition: all 0.3s ease; /* Ensures it fades back in smoothly when closed */
}

/* 1. THE ZEN CANVAS: Hides the entire website text/cards */
body:has(.menu-toggle.is-active)::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--cool-pearl); 
    z-index: 990; /* Sits directly beneath the header */
}

/* 2. DISSOLVE THE PILL: Removes the navbar shell */
.navbar:has(.menu-toggle.is-active) {
    background: transparent;
    box-shadow: none;
    transition: all 0.3s ease; /* Smooth fade */
}

/* 3. HIDE THE LOGO */
.navbar:has(.menu-toggle.is-active) .logo {
    opacity: 0;
    pointer-events: none; /* Stops it from being clicked while invisible */
}

/* 4. ADD SMOOTH RECOVERY: Ensures the pill fades back in smoothly when closed */
.navbar {
    transition: all 0.3s ease;
}
.logo {
    transition: opacity 0.3s ease;
}









/* 5. HAMBURGER (Neumorphic Style) */
.menu-toggle {
    background: var(--cool-pearl);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-shadow: 5px 5px 10px var(--shadow-dark), 
                -5px -5px 10px var(--shadow-light);
    position: relative;
    z-index: 10;
}

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

.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}












/* 6. DESKTOP VIEW (Media Query) */
@media (min-width: 1000px) {
    .navbar {padding: 1rem 3rem;}
    
    .menu-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        background: transparent;
        padding: 0;
        margin: 0;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

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

    .nav-links a:hover {
        opacity: 0.7;
    }
}











/* 7. HERO SECTION */
.hero {
    padding: 100px 5% 60px 5%;
    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: var(--dark-text-lite);
    margin-bottom: 1.5rem;
}

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










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

.btn-primary:hover {
    background-color: #562B64;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    color: var(--institutional-purple);
    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;
}

.nav-links a {
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #4B414E;
}











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

.page-header {
    margin-bottom: 3rem;
    border-left: 4px solid var(--institutional-purple);
    padding-left: 20px;
    background: transparent;
}

.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. UNIFIED NEUMORPHIC CARDS (Work & Media) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.work-card, .media-card {
    background: var(--cool-pearl); 
    border-radius: 20px;
    overflow: hidden; 
    display: block;
    text-decoration: none;
    transition: all 0.4s ease;
    margin-bottom: 2rem;
    
    /* Standard Neumorphic Glow */
    box-shadow: 12px 12px 24px var(--shadow-dark), 
               -12px -12px 24px var(--shadow-light);
}

/* Video Framing */
.media-card .video-container {
    margin: 20px;
    border-radius: 10px;
    overflow: hidden;
}

/* Specific Padding for Text Cards */
.work-card {
    padding: 30px;
}

.work-card h3 {
    margin: 10px 0;
    font-size: 1.3rem;
    color: var(--institutional-purple);
}

.work-card p {
    color: var(--dark-text-lite);
    font-size: 0.95rem;
}

/* Tier 2 - Pressed Hover Effect for Clickable Cards */
.work-card:hover, .media-card:hover {
    box-shadow: inset 6px 6px 12px var(--shadow-dark), 
                inset -6px -6px 12px var(--shadow-light);
    transform: translateY(2px);
}

/* Specific Handling for Media/Photo Cards */
.media-card img {
    width: calc(100% - 40px);
    margin: 20px;
    border-radius: 10px;
    height: auto;
    display: block;
    object-fit: cover;
    mix-blend-mode: multiply; 
}

.media-info {
    padding: 20px;
}

/* Institutional Tags */
.tag {
    font-family: var(--sans-font);
    font-size: 0.7rem;
    background: var(--accent-taupe);
    color: var(--institutional-purple);
    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;
    will-change: transform, opacity;
}

.work-card:nth-child(1), .media-card:nth-child(1) { animation-delay: 0.1s; }
.work-card:nth-child(2), .media-card:nth-child(2) { animation-delay: 0.2s; }
.work-card:nth-child(3), .media-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%;
}

.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;
    background: var(--cool-pearl);
    border-radius: 20px;
    overflow: hidden;
    max-width: 900px;
    margin: 40px auto;
    box-shadow: 12px 12px 24px var(--shadow-dark), 
                -12px -12px 24px var(--shadow-light);
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 400px;
    display: block;
    mix-blend-mode: multiply;
}

.contact-info {
    padding: 40px;
}

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

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

.contact-list a {
    color: var(--institutional-purple);
    font-weight: 500; /* Medium weight - cleaner than 700 bold */
    text-decoration: underline;
    text-underline-offset: 4px; /* Professional spacing */
    text-decoration-thickness: 1px;
    transition: all 0.3s ease;
}

.contact-list a:hover {
    color: #4B4B4B;
    text-decoration-color: #4B4B4B;
}

/* 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(--institutional-purple);
    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(--institutional-purple);
    font-weight: 700;
    border-bottom: 2px solid var(--institutional-purple);
    padding-bottom: 5px; /* Adds space between text and line */
}

.card-links {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-text-link {
    font-size: 0.9rem;
    color: var(--institutional-purple);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.3s ease;
}

.separator {
    color: #F9F6F2;
    font-weight: 300;
}

