/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
header {
    background-color: var(--primary-color);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 8rem 2rem;
    text-align: center;
}

.hero-content h2 {
    font-size: clamp(1rem, 8vw, 3rem);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s backwards;
}

/* Hero Image Layout */
.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.hero-image {
    flex-shrink: 0;
    animation: fadeInUp 1s ease;
    /* Limit the visible area of the zoomed image */
    width: 280px;
    height: 280px;
    border-radius: 20px;
    border: 4px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    /* Clips the zoomed image */
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    /* Zoom in 2x */
    transform: scale(1.5);
    transform-origin: center 30%;
    /* Zoom towards the face area we adjusted earlier */
}

.hero-text h2 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-bio p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.95;
    text-align: left;
}

/* Responsive Hero and Navigation */
@media screen and (max-width: 768px) {

    /* Hero Adjustments */
    .hero {
        padding: 4rem 1rem;
    }

    .hero-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h2,
    .hero-bio p {
        text-align: center;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
    }

    /* Burger Menu */
    body {
        overflow-x: hidden;
    }

    .burger {
        display: block;
        z-index: 1002;
        /* Ensure above nav-links */
    }

    .nav-links {
        position: fixed;
        /* Fixed to keep it on screen */
        background-color: var(--primary-color);
        top: 0;
        right: 0;
        height: 100vh;
        width: 60%;
        /* Or 100% depending on preference, 60% with shadow is nice */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
        z-index: 1001;
        padding-top: 60px;
        /* Space for close button if needed, or just general spacing */
    }

    .nav-links.active {
        transform: translateX(0%);
    }

    .nav-links li {
        opacity: 0;
        animation: navLinkFade 0.5s ease forwards 0.3s;
    }

    /* Burger Animation */
    .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.active .line2 {
        opacity: 0;
    }

    .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sections */
.section {
    padding: 4rem 2rem;
}

.section:nth-child(even) {
    background-color: var(--light-bg);
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: var(--white);
    padding: 1rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.video-item video {
    width: 100%;
    display: block;
}

.video-item .video-info {
    padding: 1rem;
}

.video-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Audio List */
.audio-list {
    max-width: 800px;
    margin: 2rem auto;
}

.audio-item {
    background: var(--white);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.audio-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.audio-item h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.audio-item audio {
    width: 100%;
}

/* Document List */
.document-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.document-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.document-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.document-item .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.document-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.document-item a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
}

.document-item a:hover {
    background-color: var(--primary-color);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.contact-section h2 {
    color: var(--white);
}

.contact-info {
    text-align: center;
    font-size: 1.1rem;
}

.contact-info p {
    margin: 1rem 0;
}

.contact-info a {
    color: var(--white);
    text-decoration: underline;
    transition: var(--transition);
}

.contact-info a:hover {
    opacity: 0.8;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-radius: 4px;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--text-color) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: normal;
}

.dropdown-content a:hover {
    background-color: var(--light-bg);
    color: var(--secondary-color) !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Dropbtn styling same as links */
.dropbtn {
    cursor: pointer;
}

/* Project Page Styles */
.project-hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.project-hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.project-hero h1 {
    font-size: clamp(1.5rem, 6vw, 3rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    overflow-wrap: break-word;
}

.project-hero p {
    font-size: clamp(0.9rem, 2vw, 1.5rem);
}

/* Video Hero */
.video-hero {
    position: relative;
    height: 100vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    /* Override default hero background to show video */
}

.hero-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    /* Place in front of body background */
}

.hero-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    /* Place on top of video */
}

.project-hero .container {
    position: relative;
    z-index: 2;
}

.video-hero .container {
    transform: translateY(-8vh);
}

/* Ensure sections cover the fixed video */
.section,
footer {
    position: relative;
    z-index: 10;
    background-color: var(--white);
}

.section:nth-child(even) {
    background-color: var(--light-bg);
}



.project-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media screen and (min-width: 768px) {
    .project-content {
        grid-template-columns: 2fr 1fr;
    }
}

.project-media img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.project-description h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

/* Tiled Media Grid for projects with multiple images */
.project-media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media screen and (max-width: 600px) {
    .project-media-grid {
        grid-template-columns: 1fr;
    }
}

.media-item {
    margin: 0;
    /* Reset figure margins */
}

.media-item img {
    margin-bottom: 0.5rem;
    /* Space between image and caption */
}

.media-item figcaption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Highlights Section on Home */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.highlight-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.highlight-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.highlight-info {
    padding: 1.5rem;
}

.highlight-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.highlight-category {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: var(--light-bg);
    color: var(--secondary-color);
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Responsive Menu Adjustments */
@media screen and (max-width: 768px) {
    .dropdown-content {
        position: static;
        display: none !important;
        /* hidden by default on mobile */
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .dropdown-arrow {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding-left: 2rem;
        color: var(--white) !important;
    }
}


/* Slideshow Component */
.slideshow-container {
    max-width: 800px;
    position: relative;
    margin: 2rem auto;
}

.mySlides {
    display: none;
    text-align: center;
    background-color: #f0f0f0;
    /* Light background for potential letterboxing */
    border-radius: 8px;
}

.mySlides img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 0;
    height: 100%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Position the "next button" to the right */
.next {
    right: 0;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
}

/* Caption text */
/* Caption text */
.text {
    color: #333;
    font-size: 15px;
    padding: 10px;
    width: 100%;
    text-align: center;
    background: transparent;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 0.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/* Photography Page Styles */
.photography-page {
    background-color: #1a1a1a;
    color: #f0f0f0;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.photography-page header {
    background-color: rgba(0, 0, 0, 0.8);
    position: relative;
    width: 100%;
    z-index: 100;
    flex-shrink: 0;
}

.photography-page .dropdown-content {
    background-color: #333 !important;
}

.photography-page .dropdown-content a {
    color: #f0f0f0 !important;
}

.photography-page .dropdown-content a:hover {
    background-color: #555 !important;
    color: #fff !important;
}

.description-area {
    text-align: center;
    padding: 1rem;
    background-color: #000;
    border-bottom: 1px solid #111;
    flex-shrink: 0;
    z-index: 10;
}

.description-area h1 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
}

.description-area p {
    margin: 0.5rem 0 0;
    color: #888;
}

.slideshow-wrapper {
    position: relative;
    flex-grow: 1;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 60px;
    /* Includes the recent fix */
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.photography-page .prev,
.photography-page .next {
    cursor: pointer;
    position: fixed;
    /* Specific to photography layout */
    top: 50%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 3px;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 20;
    transform: translateY(-50%);
    /* Reset previous styles if any */
    height: auto;
    display: block;
}

.photography-page .next {
    right: 15px;
    border-radius: 3px 0 0 3px;
    left: auto;
    /* reset */
}

.photography-page .prev {
    left: 15px;
    border-radius: 0 3px 3px 0;
    right: auto;
}

.photography-page .prev:hover,
.photography-page .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.bottom-bar {
    height: 80px;
    background-color: #000;
    border-top: 1px solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #666;
    flex-shrink: 0;
}