/* Base Styles and Variables */
:root {
    --color-rust: #a85d32;
    --color-rust-dark: #7a4424;
    --color-rust-light: #d48e61;
    --color-blue-muted: #4e6e82;
    --color-blue-dark: #2d4150;
    --color-cream: #f2efe6;
    --color-black: #212121;
    --color-gray: #5a5a5a;
    --color-gray-light: #949494;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Work Sans', sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    --transition-slow: 0.7s ease;
    --transition-medium: 0.4s ease;
    --transition-fast: 0.2s ease;
}

/* Global Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Elements */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-black);
    background-color: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-rust);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-rust-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Texture and Grain Effect */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.08;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjc1IiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIiBmaWx0ZXI9InVybCgjYSkiIG9wYWNpdHk9Ii4wNSIvPjwvc3ZnPg==');
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(33, 33, 33, 0.9) 0%, rgba(33, 33, 33, 0) 100%);
    transition: all var(--transition-medium);
}

header.scrolled {
    background: rgba(33, 33, 33, 0.9);
    padding: var(--spacing-sm) var(--spacing-lg);
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--color-cream);
    font-weight: 400;
    margin: 0;
    position: relative;
}

.logo h1::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 1px;
    background-color: var(--color-rust);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: var(--spacing-md);
}

nav ul li a {
    color: var(--color-cream);
    font-size: 0.9rem;
    position: relative;
    padding-bottom: var(--spacing-xs);
    letter-spacing: 1px;
    text-transform: uppercase;
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-rust);
    transition: width var(--transition-medium);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-cream);
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(33, 33, 33, 0.5), rgba(33, 33, 33, 0.5)), url('../images/file(6).jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cream);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 var(--spacing-md);
    z-index: 10;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeInOut 2s ease-in-out infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 0.8rem;
    margin-bottom: var(--spacing-xs);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.arrow-down {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--color-cream);
    border-bottom: 2px solid var(--color-cream);
    transform: rotate(45deg);
    margin: 0 auto;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-top: var(--spacing-xl);
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-black);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--color-rust);
}

.section-header p {
    color: var(--color-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: var(--spacing-md) auto 0;
}

/* Gallery */
.gallery {
    background-color: var(--color-cream);
    padding: var(--spacing-lg) 0 var(--spacing-xl);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: var(--spacing-md);
    padding: 0 var(--spacing-lg);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
    height: 0;
    padding-bottom: 100%;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-medium);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--color-cream);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-medium);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.view-more {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.view-more a {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--color-rust);
    color: var(--color-rust);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all var(--transition-medium);
}

.view-more a:hover {
    background-color: var(--color-rust);
    color: var(--color-cream);
}

/* Series Section */
.series {
    background-color: var(--color-black);
    color: var(--color-cream);
    padding: var(--spacing-lg) 0 var(--spacing-xl);
}

.series .section-header h2 {
    color: var(--color-cream);
}

.series .section-header p {
    color: var(--color-gray-light);
}

.series-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-lg);
}

.series-item {
    flex: 0 0 calc(33.333% - var(--spacing-lg));
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    transition: transform var(--transition-medium);
}

.series-item:hover {
    transform: translateY(-10px);
}

.series-image {
    height: 250px;
    overflow: hidden;
}

.series-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.series-item:hover .series-image img {
    transform: scale(1.05);
}

.series-info {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.series-info h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-cream);
}

.series-info p {
    margin-bottom: var(--spacing-md);
    color: var(--color-gray-light);
    flex-grow: 1;
}

.series-link {
    align-self: flex-start;
    padding: var(--spacing-xs) 0;
    color: var(--color-rust-light);
    position: relative;
}

.series-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-rust-light);
    transition: width var(--transition-medium);
}

.series-link:hover::after {
    width: 100%;
}

/* About Section */
.about {
    background-color: var(--color-cream);
    padding: var(--spacing-xl) var(--spacing-lg);
}

.about-content {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    flex: 0 0 40%;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 0 0 60%;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-black);
}

.about-text p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    color: var(--color-gray);
}

.about-text blockquote {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--color-rust);
    padding-left: var(--spacing-md);
    border-left: 3px solid var(--color-rust-light);
    margin: var(--spacing-md) 0;
    font-style: italic;
}

/* Contact Section */
.contact {
    background-color: var(--color-blue-dark);
    color: var(--color-cream);
    padding: var(--spacing-lg) 0 var(--spacing-xl);
}

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

.contact .section-header p {
    color: var(--color-gray-light);
}

.contact-container {
    display: flex;
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.contact-info {
    flex: 0 0 30%;
}

.contact-item {
    margin-bottom: var(--spacing-md);
}

.contact-item h3 {
    color: var(--color-rust-light);
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
}

.contact-item p {
    color: var(--color-cream);
}

.contact-form {
    flex: 0 0 70%;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--color-cream);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-bottom: 1px solid var(--color-gray-light);
    color: var(--color-cream);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--color-rust-light);
}

.submit-btn {
    background-color: var(--color-rust);
    color: var(--color-cream);
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color var(--transition-fast);
}

.submit-btn:hover {
    background-color: var(--color-rust-dark);
}

/* Footer */
footer {
    background-color: var(--color-black);
    color: var(--color-cream);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.footer-logo p {
    color: var(--color-gray-light);
    font-size: 0.9rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-links ul li a {
    color: var(--color-gray-light);
    transition: color var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--color-rust-light);
}

.footer-social {
    display: flex;
    flex-direction: column;
}

.social-icon {
    color: var(--color-gray-light);
    margin-bottom: var(--spacing-xs);
    transition: color var(--transition-fast);
}

.social-icon:hover {
    color: var(--color-rust-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-gray-light);
    font-size: 0.8rem;
    margin-bottom: var(--spacing-sm);
}

.legal-links {
    text-align: center;
    margin-top: var(--spacing-sm);
}

.legal-links a {
    color: var(--color-gray-light);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color var(--transition-fast);
    margin: 0 var(--spacing-xs);
}

.legal-links a:hover {
    color: var(--color-rust-light);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--color-cream);
    opacity: 0.8;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    background: none;
    border: none;
    color: var(--color-cream);
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
}

/* Media Queries */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 var(--spacing-md);
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image,
    .about-text {
        flex: 0 0 100%;
    }
    
    .series-item {
        flex: 0 0 calc(50% - var(--spacing-md));
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info,
    .contact-form {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    header {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-open nav ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(33, 33, 33, 0.95);
        padding: var(--spacing-md) 0;
    }
    
    nav ul li {
        margin: var(--spacing-xs) 0;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.large {
        grid-column: auto;
        grid-row: auto;
    }
    
    .series-item {
        flex: 0 0 100%;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-text blockquote {
        font-size: 1.2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
}
