/* ===== CSS Variables ===== */
:root {
    --color-bg: #0a0a0a;
    --color-bg-secondary: #111;
    --color-text: #fff;
    --color-text-muted: #888;
    --color-border: #222;
    --color-accent: #fff;
    --font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition: 0.3s ease;
    --max-width: 1400px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a:hover {
    color: var(--color-text-muted);
}

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

main {
    flex: 1;
}

/* ===== Navigation ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: var(--color-bg);
    z-index: 100;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: lowercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    text-transform: lowercase;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-text);
    transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-text);
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin: 0 0 0.5rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin: 0;
    font-weight: 300;
}

/* ===== Gallery Grid (Masonry-style) ===== */
.gallery-section {
    padding: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.gallery-grid {
    columns: 3;
    column-gap: 1rem;
}

.gallery-item {
    display: block;
    margin-bottom: 1rem;
    break-inside: avoid;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform var(--transition), opacity var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.02);
    opacity: 0.9;
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

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

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
}

.lightbox-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
}

.lightbox-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
}

/* ===== About Page ===== */
.about-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.about-image img {
    width: 100%;
    filter: grayscale(20%);
}

.about-content h1 {
    font-size: 2rem;
    font-weight: 300;
    margin: 0 0 2rem;
    letter-spacing: 1px;
}

.about-content p {
    color: var(--color-text-muted);
    margin: 0 0 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
}

.about-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ===== Contact Page ===== */
.contact-section {
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-container h1 {
    font-size: 2rem;
    font-weight: 300;
    margin: 0 0 1rem;
    letter-spacing: 1px;
}

.contact-intro {
    color: var(--color-text-muted);
    margin: 0 0 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.875rem 1rem;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color var(--transition);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-alt {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.contact-alt p {
    color: var(--color-text-muted);
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
}

.contact-email {
    font-size: 1.1rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--color-text);
    color: var(--color-bg);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid var(--color-text);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

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

.btn-outline {
    background: transparent;
    color: var(--color-text);
}

.btn-outline:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.btn-submit {
    width: 100%;
    margin-top: 0.5rem;
}

/* ===== Footer ===== */
footer {
    border-top: 1px solid var(--color-border);
    padding: 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    opacity: 0.7;
    transition: opacity var(--transition);
}

.social-links a:hover {
    opacity: 1;
}

.copyright {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .gallery-grid {
        columns: 2;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right var(--transition);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    /* Hero */
    .hero {
        padding: 3rem 1.5rem 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    /* Gallery */
    .gallery-section {
        padding: 1rem;
    }

    .gallery-grid {
        columns: 1;
    }

    /* About */
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    animation: fadeIn 0.5s ease forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s; }
