/* --- FONTS --- */
@font-face {
            font-family: 'Sekuya';
            src: url('../fonts/Sekuya-Regular.otf');
        }

/* --- Color Palette --- */
:root {
    --bg-dark: #191A19;
    --accent-dark: #1E5128;
    --accent-bright: #4E9F3D;
    --text-light: #D8E9A8;
}

/* --- Base Reset & Typography --- */
body, html {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Optima', 'Segoe UI', Tahoma, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- Navigation --- */
nav {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    box-sizing: border-box;
    z-index: 10;
    opacity: 0;
    transition: opacity 2s ease 1s;
}
nav.visible { opacity: 1; }

nav h1 {
    margin: 0;
    color: var(--accent-bright);
    font-size: 1.2rem;
    letter-spacing: 4px;
    font-weight: normal;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.4s ease;
}

nav a:hover { color: var(--accent-bright); }

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--text-light);
    transition: 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 2rem 2rem;
    box-sizing: border-box;
    background-color: var(--bg-dark);
}

.art-frame {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.9);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 2.5s ease, transform 2.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.art-frame.visible {
    opacity: 1;
    transform: translateY(0);
}

.art-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    transition: transform 12s cubic-bezier(0.1, 0.5, 0.9, 1);
}

.art-frame img.loaded { transform: scale(1); }

.art-frame::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease 1s, transform 2s ease 1s;
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.badge {
    display: inline-block;
    border: 1px solid var(--accent-bright);
    color: var(--accent-bright);
    padding: 0.5rem 2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    background: rgba(30, 81, 40, 0.15);
}

.hero-content h2 {
    font-size: 3rem;
    margin: 0 0 1rem 0;
    font-weight: 300;
    letter-spacing: 8px;
}

/* --- Separation Lines --- */
.section-divider {
    border: none;
    height: 1px;
    background-color: var(--text-light);
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0.3; 
}

/* --- Content Sections --- */
.section-wrapper {
    width: 100vw;
    padding: 6rem 5%;
    box-sizing: border-box;
    background-color: var(--bg-dark);
}

.section-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.section-content h3 {
    font-family: 'Sekuya', 'Optima', 'Segoe UI', Tahoma, sans-serif;
    font-size: 2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: var(--accent-bright);
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* --- Reusable Buttons --- */
.primary-btn {
    background: var(--accent-bright);
    color: var(--bg-dark);
    border: none;
    padding: 1rem 3rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.primary-btn:hover {
    background: var(--text-light);
    transform: translateY(-2px);
}

/* --- Gallery Carousel --- */
.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
}

.carousel-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.carousel-item:hover {
    transform: scale(1.05);
}

.carousel-btn {
    background: transparent;
    border: 1px solid var(--accent-bright);
    color: var(--accent-bright);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--accent-bright);
    color: var(--bg-dark);
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: var(--bg-dark);
    border: 1px solid var(--accent-dark);
    padding: 3rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    background: none;
    border: none;
}

.modal-box input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #111;
    border: 1px solid var(--accent-dark);
    color: var(--text-light);
    box-sizing: border-box;
    font-family: inherit;
}

.modal-box input:focus {
    outline: none;
    border-color: var(--accent-bright);
}

/* --- Footer --- */
footer {
    background: #111;
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--accent-dark);
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--accent-bright);
    text-decoration: none;
    margin: 0 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

footer p {
    color: var(--text-light);
    font-size: 0.8rem;
    opacity: 0.5;
}

  /* --- Fresh Gallery Preview Modal --- */
.preview-modal-box {
    background: var(--bg-dark);
    border: 1px solid var(--accent-dark);
    width: 90vw;
    max-width: 1000px;
    height: 80vh; /* Forces the modal to respect the screen height */
    max-height: 800px;
    position: relative;
    display: flex;
    box-shadow: 0 25px 60px rgba(0,0,0,0.9);
    overflow: hidden; /* Prevents anything from spilling out */
}

.preview-content {
    display: flex;
    width: 100%;
    height: 100%;
}

.preview-image-container {
    flex: 1.5; /* Gives the image slightly more room than the text */
    height: 100%;
    background-color: #0b0c0b; /* Slightly darker than museum bg to frame the art */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-width: 0; /* Stops the flex container from stretching to the image's raw size */
    min-height: 0;
    overflow: hidden; /* Ensures nothing bleeds out of this left block */
}

.preview-img {
    width: 100%; /* Forces the image to acknowledge the container's width */
    height: 100%; /* Forces the image to acknowledge the container's height */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Shrinks the image proportionally to fit safely inside the bounds */
}

.preview-text-container {
    flex: 1; /* Takes the remaining space */
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.preview-text-container h3 {
    color: var(--accent-bright);
    font-size: 2rem;
    margin-top: 0;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.preview-text-container p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* --- Responsive / Mobile Friendly Adjustments --- */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        background: linear-gradient(to bottom, rgba(25,26,25,0.95), rgba(25,26,25,0.8));
        padding: 1.5rem 5%;
    }
    .hamburger {
        display: flex;
    }
    nav ul {
        display: none; 
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding-top: 2rem;
        gap: 1.5rem;
    }
    nav ul.active {
        display: flex; 
    }
    .hero {
        padding: 10rem 1rem 2rem 1rem;
    }
    .art-frame { 
        max-width: 85%; 
        margin-bottom: 2rem;
    }
    .hero-content h2 { 
        font-size: 2rem; 
        letter-spacing: 4px; 
    }
    .section-wrapper {
        padding: 4rem 5%;
    }
    .about-text {
        font-size: 1rem;
    }
    .carousel-container { 
        grid-template-columns: 1fr; 
        gap: 2rem;
    }
    .carousel-btn { 
        display: none; 
    }
    .modal-box {
        padding: 2rem 1.5rem;
    }

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .preview-content {
        flex-direction: column;
    }
    .preview-image-container {
        flex: 1;
        padding: 1.5rem;
    }
    .preview-text-container {
        flex: 1;
        padding: 2rem;
        text-align: center;
    }
}

}