/* --- Base Variables & Reset --- */
:root {
    --primary-font: 'Newsreader', serif;
    --secondary-font: 'Instrument Serif', serif;
    --text-color: #333333;
    --bg-color: #ebe5d5; 
    --header-bg: #ebe5d5; 
    --header-text: #1d2631; 
}

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

body {
    font-family: var(--primary-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Header & Nav --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4vw;
    background-color: var(--header-bg); 
    color: var(--header-text);
    position: relative;
    width: 100%;
    z-index: 100;
}

.logo a {
    font-family: var(--secondary-font);
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.desktop-nav a {
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    opacity: 0.6;
    border-bottom: 1px solid var(--header-text);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--header-text); 
    transition: all 0.3s ease;
}

/* --- Portfolio Project Layout --- */
.portfolio-project {
    padding-bottom: 8vw;
}

/* Hero Section */
.project-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
}

.project-hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6); /* Darkens image so text is readable */
}

.project-title {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 4vw;
}

.project-title h1 {
    font-family: var(--secondary-font);
    font-size: 4rem;
    font-weight: 400;
}

/* Individual Project Sections */
.project-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 4vw;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: flex-start;
}

/* Reverses the layout every other section for visual interest */
.project-section.alternate {
    grid-template-columns: 2fr 1fr;
}
.project-section.alternate .project-info {
    order: 2; /* Puts the text on the right */
}
.project-section.alternate .project-media {
    order: 1; /* Puts the media on the left */
}

/* Text Content */
.project-info h3 {
    font-family: var(--primary-font);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--header-text);
}

.project-info p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.project-credits {
    margin-top: 2rem;
    font-size: 0.95rem;
    color: #666;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
}

.project-credits p {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

/* Media Layouts */
.project-media img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: center;
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Video Grid specifically for the Reels/TikToks */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.video-item {
    text-align: center;
}

.video-item video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    background-color: #000;
}

.video-item p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
}

/* Buttons Section */
.project-links {
    text-align: center;
    padding: 4rem 4vw;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    background-color: var(--header-text);
    color: var(--header-bg);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.btn.outline {
    background-color: transparent;
    color: var(--header-text);
    border: 1px solid var(--header-text);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .project-title h1 { font-size: 2.5rem; }
    
    .project-section,
    .project-section.alternate {
        grid-template-columns: 1fr; /* Stacks text and media */
        gap: 2rem;
    }
    
    .project-section.alternate .project-info {
        order: 1; /* Reset order for mobile */
    }
    .project-section.alternate .project-media {
        order: 2; /* Reset order for mobile */
    }
    
    .three-col {
        grid-template-columns: 1fr;
    }
}