/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Great+Vibes&family=Lora:ital,wght@0,400;0,600;1,400;1,600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    /* Color Palette - Reference Match */
    --color-primary: #854619;
    /* Rust Sienna */
    --color-secondary: #C19A6B;
    /* Muted Gold */
    --color-bg: #fcf8ed;
    /* Warm Cream */
    --color-text-body: #44352c;
    /* Dark Brown */
    --color-card-bg: #ffffff;
    --color-white: #ffffff;
    --color-overlay: rgba(0, 0, 0, 0.7);

    /* Typography */
    --font-logo: 'Playfair Display', serif;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lora', serif;

    /* Spacing */
    --spacing-container: 1200px;
    --spacing-padding: 20px;
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

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

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-logo);
    font-size: 2.5rem;
    color: var(--color-primary);
    font-weight: 700;
}

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

.nav-links li a {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.8;
    font-size: 1.1rem;
}

.nav-links li a:hover,
.nav-links li a.active {
    opacity: 1;
    color: var(--color-secondary);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    transition: 0.3s;
}

/* Mobile Nav Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 200px;
        /* or 100% depending on preference */
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: -2px 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

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

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 80vh;
    /* Takes up most of the viewport */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    /* Optional: filter brightness for text readability if needed */
    /* filter: brightness(0.8); removed for brighter look */
}

.hero-content {
    background: rgba(255, 255, 255, 0.85);
    /* backdrop for text */
    padding: 3rem 4rem;
    border-radius: 4px;
    max-width: 600px;
    margin: 0 1rem;
    border: 1px solid var(--color-secondary);
    animation: fadeIn 1.5s ease-out;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--color-text-body);
}

.btn-cta {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 30px;
    border: 2px solid var(--color-primary);
    transition: all 0.3s ease;
}


.btn-cta:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-cta.secondary {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-cta.secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    /* Move margin from p to here or just ensure spacing */
    flex-wrap: wrap;
}

/* About Intro Section */
.about-intro {
    padding: 5rem 0;
    text-align: center;
}

.about-intro h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    /* Matches "About the Artist" size idea */
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Divider line visual element */
.divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
    margin: 0 auto 2rem;
}

.about-intro p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
}

/* Page Header */
.page-header {
    background-color: var(--color-bg);
    padding: 4rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--color-text-body);
}

/* Gallery Styles */
.gallery-section {
    padding: 3rem var(--spacing-padding);
}

/* Filter Controls */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.5rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-primary);
    color: var(--color-white);
}

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

/* Gallery Card */
.gallery-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    /* For filtering transition */
}

.gallery-card.hide {
    display: none;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    /* Aspect Ratio approx 1.2:1 */
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-content {
    padding: 1.5rem;
    text-align: left;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.95rem;
    color: #666;
}

/* Contact Styles */
.contact-section {
    padding: 4rem var(--spacing-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.contact-form-wrapper {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

/* Mobile Contact */
@media (max-width: 768px) {
    .contact-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

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

footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-icons a {
    font-size: 2.2rem;
    color: var(--color-primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid var(--color-primary);
}

.social-icons a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* Mobile Responsiveness Enhancements */
@media (max-width: 768px) {

    /* Global */
    :root {
        --spacing-padding: 15px;
    }

    html {
        font-size: 14px;
        /* Slightly smaller base font */
    }

    /* Navigation */
    .logo {
        font-size: 2rem;
    }

    .navbar {
        padding: 1rem;
    }

    /* Hero adjustments */
    .hero {
        height: 60vh;
        /* Smaller hero on mobile */
    }

    .hero-content {
        margin: 0 15px;
        padding: 2rem;
        width: 100%;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    /* Gallery Grid */
    .gallery-section {
        padding: 1rem var(--spacing-padding);
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }

    /* Contact Form */
    .contact-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem var(--spacing-padding);
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .social-icons a {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        /* Slightly smaller icons on mobile */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        /* Single column for phones */
    }

    .page-header h1 {
        font-size: 2.2rem;
    }
}

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

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.6s;
}

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

    to {
        transform: scale(1)
    }
}

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

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 100%;
    }
}

/* Security - Hide honeypot field */
.hidden {
    display: none;
}