/* ========================================
   Watercolors by Winnie - Main Stylesheet
   ======================================== */

/* === CSS Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5B8FA3;
    --accent-color: #8FB5C9;
    --text-dark: #2C3E50;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    background-image: 
        linear-gradient(135deg, rgba(91, 143, 163, 0.03) 0%, rgba(143, 181, 201, 0.05) 100%),
        radial-gradient(ellipse at top right, rgba(173, 216, 230, 0.08), transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(221, 160, 221, 0.06), transparent 50%);
    background-attachment: fixed;
}

/* === Navigation === */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 8px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 400;
    letter-spacing: 0.5px;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.05rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background: rgba(91, 143, 163, 0.08);
}

/* === Gallery Header === */
.gallery-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-style: italic;
}

/* === Gallery Grid === */
.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

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

.gallery-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.gallery-item-info {
    padding: 1rem;
    text-align: center;
}

.gallery-item-info h3 {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.gallery-item-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* === Lightbox === */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: hidden;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

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

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 1001;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover,
.next:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.caption {
    text-align: center;
    color: #ccc;
    padding: 20px;
    position: absolute;
    bottom: 20px;
    width: 100%;
    font-size: 1.1rem;
}

/* === About Page === */
.about-container,
.contact-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
}

.about-content,
.contact-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px var(--shadow);
}

.about-content h2,
.contact-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 400;
    text-align: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* === Contact Page === */
.contact-info {
    text-align: center;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.email-box {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(91, 143, 163, 0.08);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.email-box svg {
    color: var(--primary-color);
}

.email-box a {
    font-size: 1.3rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.email-box a:hover {
    text-decoration: underline;
}

.contact-note {
    font-style: italic;
    margin-top: 2rem;
    color: var(--text-light);
}

/* === Footer === */
.footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .nav-menu {
        gap: 1rem;
    }

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

    .gallery-item img {
        height: 220px;
    }

    .about-content,
    .contact-content {
        padding: 2rem;
    }

    .about-content h2,
    .contact-content h2 {
        font-size: 2rem;
    }

    .lightbox-content {
        max-width: 95%;
    }

    .prev,
    .next {
        font-size: 30px;
        padding: 12px;
    }

    .close {
        font-size: 30px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
