:root {
    --bg: #07111f;
    --panel: #101b2e;
    --panel-2: #17253c;
    --text: #f7f8fb;
    --muted: #8ea1bb;
    --accent: #58a6ff;
    --accent-2: #7c5cff;
    --border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: radial-gradient(circle at top, #14233c 0%, var(--bg) 55%, #050913 100%);
    color: var(--text);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}
.site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(16px);
    background: rgba(7, 17, 31, 0.82);
    border-bottom: 1px solid var(--border);
    z-index: 20;
}
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
.brand {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.site-nav { display: flex; gap: 1.2rem; }
.nav-link { color: var(--muted); transition: color 0.2s ease; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.hero {
    padding: 2.5rem 0 2.5rem;
}
.hero-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
}
.hero-card, .panel, .gallery-card, .image-card {
    background: linear-gradient(145deg, rgba(16, 27, 46, 0.95), rgba(23, 37, 60, 0.95));
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}
.hero-card { padding: 2rem; }
.hero-card h1 { font-size: clamp(2rem, 3vw, 3rem); margin: 0 0 0.75rem; }
.hero-card p { color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.15rem;
    border-radius: 999px;
    font-weight: 600;
}
.btn-primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: white;
}
.btn-secondary { background: rgba(255,255,255,0.08); color: var(--text); }
.stats-grid { display: grid; gap: 1rem; }
.stat-card {
    padding: 1.25rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
}
.stat-card strong { display: block; font-size: 1.5rem; margin-bottom: 0.25rem; }
.section { padding: 1rem 0 3rem; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.section-title { font-size: 1.2rem; margin: 0; }
.section-link { color: var(--accent); font-weight: 600; }
.gallery-grid, .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.featured-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.featured-gallery-grid .gallery-card {
    flex: 0 1 calc((100% - 3rem) / 4);
    max-width: calc((100% - 3rem) / 4);
    min-width: 0;
}
.gallery-card { overflow: hidden; }
.gallery-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery-card-content { padding: 1rem; }
.gallery-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.gallery-meta { color: var(--muted); font-size: 0.95rem; }
.empty-state {
    padding: 2rem;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--border);
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
}
.breadcrumbs { padding: 1.2rem 0 0.4rem; color: var(--muted); font-size: 0.95rem; }
.panel { padding: 1.5rem; }
.panel h2 { margin-top: 0; }
.image-card { overflow: hidden; }
.image-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.image-card .image-caption { padding: 0.8rem 1rem 1rem; color: var(--muted); font-size: 0.95rem; }
.image-trigger {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: block;
}
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 1rem;
}
.gallery-modal[hidden] { display: none; }
.gallery-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 14, 0.86);
    backdrop-filter: blur(8px);
}
.gallery-modal-dialog {
    position: relative;
    width: min(1100px, 100%);
    max-height: 100%;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 0.75rem;
    z-index: 1;
}
.gallery-modal-body {
    background: rgba(10, 16, 28, 0.95);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.gallery-modal-body img {
    width: 100%;
    max-height: min(74vh, 760px);
    object-fit: contain;
    background: #02060c;
}
.gallery-modal-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem 1.2rem;
    color: var(--muted);
    font-size: 0.95rem;
}
.gallery-modal-caption #gallery-modal-title {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0;
}
.gallery-modal-caption #gallery-modal-filename {
    flex: 1;
}
.gallery-modal-close, .gallery-nav {
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: var(--text);
    cursor: pointer;
    font-size: 1.8rem;
}
.gallery-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    min-width: 74px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: var(--text);
    padding: 0.35rem 0.7rem;
    cursor: pointer;
    white-space: nowrap;
    font-size: 1.2rem;
}
.gallery-nav {
    justify-self: center;
}
body.modal-open { overflow: hidden; }

.about-page {
    padding: 1.5rem 0 3rem;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

.about-section.reverse {
    direction: rtl;
}

.about-section.reverse > * {
    direction: ltr;
}

.about-media,
.about-content,
.about-full {
    background: linear-gradient(145deg, rgba(16, 27, 46, 0.95), rgba(23, 37, 60, 0.95));
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.about-media {
    overflow: hidden;
}

.about-media img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    max-height: 320px;
    object-fit: cover;
}

.about-content {
    padding: 1.8rem;
}

.about-content h2 {
    margin: 0 0 1rem;
    font-size: 2rem;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
}

.about-content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.about-full {
    padding: 2rem;
    text-align: center;
}

.about-full h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.about-full p {
    margin: 0 auto 1.25rem;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.75;
}

.about-divider {
    border: 0;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    margin: 1.8rem 0;
}

.about-contact {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1.5rem;
    align-items: stretch;
}

.about-contact-content,
.about-contact-map {
    background: linear-gradient(145deg, rgba(16, 27, 46, 0.95), rgba(23, 37, 60, 0.95));
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.about-contact-content {
    padding: 1.7rem;
    font-size: 0.95rem;
    text-align: center;
}

.about-contact-content h2 {
    margin: 0 0 1rem;
    font-size: 2rem;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
}

.about-contact-lines p {
    margin: 0 0 0.85rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.about-socials {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.about-socials a {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.about-socials a svg {
    width: 24px;
    height: 24px;
    fill: var(--text);
}

.about-contact-map {
    overflow: hidden;
}

.about-contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 430px;
    border: 0;
}

.site-footer { padding: 2rem 0 3rem; color: var(--muted); }
.footer-content { border-top: 1px solid var(--border); padding-top: 1.2rem; }
@media (max-width: 760px) {
    .gallery-modal-dialog {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .gallery-nav-prev, .gallery-nav-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }
    .gallery-nav-prev { left: 0.75rem; }
    .gallery-nav-next { right: 0.75rem; }
    .gallery-modal-close { right: 0.75rem; top: 0.75rem; }
    .hero-grid { grid-template-columns: 1fr; }
    .about-section { grid-template-columns: 1fr; }
    .about-contact { grid-template-columns: 1fr; }
    .about-content { padding: 1.25rem; }
    .about-full { padding: 1.4rem; }
    .nav-bar { flex-direction: column; gap: 0.75rem; }
    .site-nav { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 980px) {
    .featured-gallery-grid .gallery-card {
        flex: 0 1 calc((100% - 2rem) / 3);
        max-width: calc((100% - 2rem) / 3);
    }
}

@media (max-width: 700px) {
    .featured-gallery-grid .gallery-card {
        flex: 0 1 calc((100% - 1rem) / 2);
        max-width: calc((100% - 1rem) / 2);
    }
}
