

/* =========================================
   1. GLOBAL STYLES
========================================= */

:root {
    --bg: #0c0c12;
    --surface: #15151e;
    --surface-light: #1e1e2a;
    --text: #f5f3ff;
    --muted: #a4a1b5;
    --accent: #a78bfa;
    --accent-dark: #8b5cf6;
    --border: rgba(255, 255, 255, 0.09);
    --radius: 16px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.container {
    width: min(1180px, 90%);
    margin: 0 auto;
}

/* =========================================
   2. HEADER AND NAVIGATION
========================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 12, 18, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.8px;
}

.logo-icon {
    color: var(--accent);
    font-size: 29px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-link {
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
    transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.header-btn {
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    transition: background var(--transition),
                border-color var(--transition);
}

.header-btn:hover {
    background: var(--surface-light);
    border-color: var(--accent);
}

/* =========================================
   3. HERO SECTION
========================================= */

.hero {
    min-height: 460px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 75% 40%,
            rgba(139, 92, 246, 0.20),
            transparent 45%
        ),
        radial-gradient(
            ellipse at 10% 100%,
            rgba(91, 33, 182, 0.13),
            transparent 45%
        );
    border-bottom: 1px solid var(--border);
}

.hero-content {
    padding-top: 65px;
    padding-bottom: 70px;
    animation: fadeUp 0.8s ease both;
}

.hero-tag,
.section-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.16;
    font-weight: 600;
    letter-spacing: -3px;
    margin: 20px 0;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    max-width: 480px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 28px;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 13px 22px;
    border-radius: 30px;
    background: var(--accent-dark);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    transition: transform var(--transition),
                background var(--transition),
                box-shadow var(--transition);
}

.primary-btn:hover {
    transform: translateY(-3px);
    background: #9b70fa;
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.3);
}

/* =========================================
   4. GALLERY SECTION
========================================= */

.gallery-section {
    padding: 85px 0 100px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.section-heading h2,
.about-content h2 {
    font-size: clamp(27px, 4vw, 38px);
    font-weight: 600;
    letter-spacing: -1.3px;
    margin-top: 8px;
}

.section-heading p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 7px;
}

.photo-count {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
    padding-bottom: 5px;
}

/* =========================================
   5. FILTER BUTTONS
========================================= */

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}

.filter-btn {
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 9px 18px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 11px;
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}

.filter-btn.active {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

/* =========================================
   6. IMAGE GRID
========================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 22px;
}

.gallery-item {
    min-width: 0;
    animation: fadeUp 0.5s ease both;
}

.gallery-item.hidden {
    display: none;
}

.image-button {
    display: block;
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    text-align: left;
}

.image-button img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.65s ease,
                filter 0.4s ease;
}

.gallery-item:hover .image-button img {
    transform: scale(1.08);
    filter: brightness(0.78);
}

.image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 14px;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.18),
        transparent 40%,
        rgba(0, 0, 0, 0.1)
    );
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .image-overlay,
.image-button:focus-visible .image-overlay {
    opacity: 1;
}

.zoom-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    background: rgba(139, 92, 246, 0.9);
    font-size: 18px;
}

.image-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 2px 0;
}

.image-info h3 {
    font-size: 13px;
    font-weight: 500;
}

.image-info p {
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
}

.image-number {
    color: #77748a;
    font-size: 10px;
}

/* =========================================
   7. ABOUT SECTION
========================================= */

.about-section {
    padding: 70px 0;
    border-top: 1px solid var(--border);
    background:
        radial-gradient(
            ellipse at 50% 100%,
            rgba(139, 92, 246, 0.12),
            transparent 65%
        ),
        var(--surface);
    text-align: center;
}

.about-content {
    max-width: 670px;
}

.about-content h2 {
    margin: 12px 0;
}

.about-content p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
    margin-top: 15px;
}

/* =========================================
   8. LIGHTBOX
========================================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 50px 35px;
    background: rgba(5, 5, 10, 0.96);
    backdrop-filter: blur(12px);
}

.lightbox.open {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.lightbox-content {
    width: min(850px, 80%);
    max-height: 85vh;
    text-align: center;
}

.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 72vh;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-caption {
    padding-top: 14px;
}

.lightbox-caption h3 {
    font-size: 16px;
    font-weight: 500;
}

.lightbox-caption p {
    color: var(--muted);
    font-size: 11px;
    margin-top: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background var(--transition),
                transform var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-dark);
    transform: scale(1.08);
}

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 25px;
    font-size: 27px;
    line-height: 1;
}

/* =========================================
   9. FOOTER
========================================= */

.footer {
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer-content {
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-content .logo {
    font-size: 18px;
}

.footer-content .logo-icon {
    font-size: 23px;
}

.footer-content p,
.back-to-top {
    color: var(--muted);
    font-size: 10px;
}

.back-to-top {
    transition: color var(--transition);
}

.back-to-top:hover {
    color: var(--accent);
}

/* =========================================
   10. ANIMATIONS
========================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* =========================================
   11. TABLET RESPONSIVENESS
========================================= */

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .image-button {
        height: 240px;
    }

    .hero {
        min-height: 420px;
    }
}

/* =========================================
   12. MOBILE RESPONSIVENESS
========================================= */

@media (max-width: 600px) {
    .container {
        width: 92%;
    }

    .navbar {
        min-height: 66px;
        gap: 10px;
    }

    .logo {
        font-size: 19px;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-link {
        font-size: 10px;
    }

    .header-btn {
        display: none;
    }

    .hero {
        min-height: 390px;
    }

    .hero-content {
        padding-top: 50px;
        padding-bottom: 55px;
    }

    .hero h1 {
        font-size: 48px;
        letter-spacing: -2px;
    }

    .hero p {
        font-size: 12px;
    }

    .gallery-section {
        padding: 60px 0 70px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    .section-heading p {
        font-size: 10px;
    }

    .photo-count {
        font-size: 9px;
    }

    .filter-buttons {
        gap: 7px;
    }

    .filter-btn {
        padding: 8px 12px;
        font-size: 10px;
    }

    .gallery-grid {
        gap: 22px 12px;
    }

    .image-button {
        height: 180px;
        border-radius: 12px;
    }

    .image-info h3 {
        font-size: 11px;
    }

    .image-info p {
        font-size: 9px;
    }

    .image-number {
        font-size: 9px;
    }

    .about-section {
        padding: 55px 0;
    }

    .about-content h2 {
        font-size: 26px;
    }

    .about-content p {
        font-size: 11px;
    }

    .footer-content {
        min-height: 100px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 8px 18px;
        padding: 18px 0;
    }

    .footer-content p {
        width: 100%;
        order: 3;
    }

    .lightbox {
        gap: 8px;
        padding: 45px 10px;
    }

    .lightbox-content {
        width: calc(100% - 88px);
    }

    .lightbox-prev,
    .lightbox-next {
        width: 34px;
        height: 34px;
        font-size: 11px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
    }
}

/* =========================================
   13. SMALL MOBILE SCREENS
========================================= */

@media (max-width: 380px) {
    .nav-links {
        gap: 10px;
    }

    .nav-link {
        font-size: 9px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .image-button {
        height: 230px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .section-heading {
        flex-direction: column;
        gap: 5px;
    }
}

/* =========================================
   14. REDUCED MOTION ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}