/* =========================
   1. GLOBAL SETTINGS
========================= */

:root {
    --primary: #071B2D;
    --secondary: #123B52;
    --accent: #00B8A9;
    --mutedaccent: #5BADA5;

    --background: #EAF4F4;
    --surface: #FFFFFF;
    --text: #193548;
    --muted: #6B8492;

    --footer: #131e30;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background-color: var(--background);
    color: var(--text);

    font-family: Arial, Helvetica, sans-serif;
}

main {
    flex: 1;
    background-color: var(--background);
}


/* =========================
   2. NAVIGATION BAR
========================= */

/* Initial navbar */


/* Initial navbar */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: #071B2D;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

/* Glass navbar after scrolling */

.navbar.scrolled {
    background: rgba(7, 27, 45, 0.72);

    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);

    border-bottom: 1px solid rgba(255, 255, 255, 0.10);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}


.navcontainer {
    width: min(1100px, 92%);
    min-height: 75px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;

    color: white;
    text-decoration: none;
    white-space: nowrap;

    font-family: Georgia, serif;
    font-size: clamp(1rem, 3vw, 1.35rem);
}

.brand img {
    width: clamp(2rem, 4vw, 3rem);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
}


/* Dropdown */

.dropdown {
    position: relative;
}

.dropdown summary {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 12px;

    padding: 10px 17px;
    margin-right: 12px;

    color: white;
    font-size: 0.95rem;
    font-weight: bold;

    cursor: pointer;
    list-style: none;

    background-color: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;

    transition: background-color 0.3s;
}

.dropdown summary::-webkit-details-marker {
    display: none;
}

.dropdown summary:hover {
    background-color: var(--accent);
}

.arrow {
    display: inline-block;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown[open] .arrow {
    transform: rotate(180deg);
}

.dropdwncontents {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;

    display: flex;
    flex-direction: column;
    gap: 5px;

    min-width: 210px;
    padding: 7px;

    background-color: white;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);

    animation: dropdownFade 0.2s ease;
}

.dropdwncontents a {
    padding: 12px 10px;

    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;

    border-radius: 7px;
    transition: background-color 0.2s, color 0.2s;
}

.dropdwncontents a:hover {
    background-color: rgba(177, 138, 85, 0.12);
    color: var(--mutedaccent);
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }

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



/* =========================
   3. CINEMATIC HERO BANNER
========================= */

.banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: 460px;
    padding: 65px max(5%, calc((100% - 1100px) / 2));

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(0, 184, 169, 0.055),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #000000 0%,
            #050505 55%,
            #080B0B 100%
        );

    color: #FFFFFF;
}

/* Background photograph */

.art {
    position: absolute;
    z-index: 0;

    top: 0;
    right: 0;

    width: 75%;
    height: 100%;

    object-fit: cover;
    object-position: center 45%;

    opacity: 0.85;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 15%,
        black 55%
    );

    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 15%,
        black 55%
    );

    animation: bannerReveal 1.2s ease both;
}

/* Dark overlay for text readability */

.banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background: linear-gradient(
        90deg,
        #000000 0%,
        rgba(0, 0, 0, 0.97) 25%,
        rgba(0, 0, 0, 0.72) 48%,
        rgba(0, 0, 0, 0.08) 100%
    );
}

/* Main banner content */

.banner-content {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 185px minmax(0, 1fr);
    align-items: center;
    gap: 42px;

    width: 100%;
    max-width: 1000px;
    margin: auto;
}

/* Cover photograph */

.cover {
    display: block;

    width: 185px;
    aspect-ratio: 1;

    object-fit: cover;
    object-position: center;

    border-radius: 12px;

    border: 1px solid rgba(255, 255, 255, 0.14);

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.65),
        0 0 0 6px rgba(255, 255, 255, 0.025);

    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cover:hover {
    transform: translateY(-5px) scale(1.025);

    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.7),
        0 0 0 6px rgba(0, 184, 169, 0.09);
}

/* Banner information */

.info {
    max-width: 600px;
}

.banner-eyebrow {
    margin: 0 0 14px;

    color: var(--accent);
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 3px;
}

.info h1 {
    margin: 0 0 12px;

    color: white;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;

    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.12;
    letter-spacing: -1px;
}

.source {
    margin: 0 0 18px;

    color: var(--accent);
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 1.05rem;
}

.desc {
    max-width: 550px;
    margin: 0 0 20px;

    color: rgba(255, 255, 255, 0.70);
    font-size: 0.95rem;
    line-height: 1.8;
}

.banner-meta {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 20px;

    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

.meta-dot {
    width: 4px;
    height: 4px;

    background-color: var(--accent);
    border-radius: 50%;
}

/* Tags */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin: 0 0 27px;
    padding: 0;

    list-style: none;
}

.tags li {
    padding: 7px 12px;

    color: #A9DCD7;
    font-size: 0.78rem;

    background-color: rgba(0, 184, 169, 0.08);
    border: 1px solid rgba(91, 173, 165, 0.22);
    border-radius: 50px;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Explore button */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    padding: 13px 21px;

    color: #001B19;
    background-color: var(--accent);

    border: 1px solid transparent;
    border-radius: 9px;

    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;

    transition:
        background-color 0.3s,
        transform 0.3s,
        box-shadow 0.3s;
}

.btn:hover {
    background-color: #20C9BA;
    transform: translateY(-3px);

    box-shadow: 0 8px 24px rgba(0, 184, 169, 0.20);
}

.btn-arrow {
    display: inline-block;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translate(3px, -3px);
}

/* Banner animation */

@keyframes bannerReveal {
    from {
        opacity: 0;
        transform: scale(1.04);
    }

    to {
        opacity: 0.85;
        transform: scale(1);
    }
}



/* =========================
   4. GALLERY SECTION
========================= */

.gallery-section {
    width: min(1100px, 92%);
    margin: auto;

    padding: 65px 0 85px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;

    margin-bottom: 28px;
}

.eyebrow {
    margin: 0 0 8px;

    color: var(--mutedaccent);
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 3px;
}

.section-heading h2 {
    margin: 0;

    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: normal;
}

.section-sub {
    margin: 0 0 5px;

    color: var(--muted);
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 1rem;
}


/* =========================
   5. MASONRY GALLERY
========================= */

.masonry {
    columns: 5 160px;
    column-gap: 14px;

    padding: 15px;

    background-color: white;
    border-radius: 14px;
}

.item {
    break-inside: avoid;
    margin-bottom: 14px;

    overflow: hidden;
    border-radius: 10px;

    background-color: #ffffff;
}

.item img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 10px;

    transition: transform 0.4s ease;
}

.item:hover img {
    transform: scale(1.045);
}


/* =========================
   6. FOOTER
========================= */

.footer {
    margin-top: auto;

    padding: 45px 8% 20px;

    color: white;
    background-color: var(--footer);
}

.footer-content {
    max-width: 1100px;
    margin: auto;
}

.footer-content h3 {
    margin: 0 0 20px;

    font-family: Georgia, serif;
    font-size: 1.6rem;
}

.footer-content p {
    color: #b9c1cd;
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-note {
    max-width: 550px;
}

.github-link {
    display: inline-block;
    margin-top: 10px;

    color: #d5a18b;
    text-decoration: none;
    font-size: 0.9rem;
}

.github-link:hover {
    text-decoration: underline;
}

.email a {
    color: #d5a18b;
    text-decoration: none;
    border-bottom: 1px dotted #d5a18b;

    font-family: "Courier New", Courier, monospace;
    font-size: 0.9rem;
}

.download-note {
    margin-top: 22px;
}

.copyright {
    max-width: 1100px;
    margin: 35px auto 0;
    padding-top: 18px;

    color: #8995a5;
    font-size: 0.8rem;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* =============================
        Status Bar
============================= */

.status-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 480px);

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;

    padding: 10px 16px;

    background: rgba(23, 26, 34, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.status-bar a,
.status-bar button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    border: none;
    border-radius: 12px;

    cursor: pointer;
    transition: 0.25s ease;
}

.status-bar svg {
    width: 21px;
    height: 21px;
    stroke-width: 1.8;
}

.status-bar a:hover,
.status-bar button:hover {
    color: #A78BFA;
    background: rgba(255, 255, 255, 0.08);
}


/* =========================
   7. RESPONSIVE DESIGN
========================= */

@media (max-width: 600px) {
    .status-bar {
        bottom: 16px;
        gap: 40px;
        padding: 8px 12px;
    }

    .status-bar a,
    .status-bar button {
        width: 42px;
        height: 42px;
    }
}

/* Tablet */

@media (max-width: 900px) {

    .banner {
        min-height: 420px;
        padding: 50px 5%;
    }

    .banner-content {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 28px;
    }

    .cover {
        width: 150px;
    }

    .art {
        width: 85%;
    }

    .masonry {
        columns: 4 140px;
    }
}


/* Mobile */

@media (max-width: 600px) {

    .navcontainer {
        min-height: 65px;
    }

    .brand {
        gap: 8px;
        font-size: 0.95rem;
    }

    .brand img {
        width: 32px;
    }

    .dropdown summary {
        margin-right: 0;
        padding: 9px 12px;
        font-size: 0.85rem;
    }

    .banner {
        min-height: auto;
        padding: 42px 7% 48px;
    }

    .art {
        width: 100%;
        opacity: 0.5;

        -webkit-mask-image: linear-gradient(to bottom,
                black 0%,
                rgba(0, 0, 0, 0.5) 55%,
                transparent 100%);

        mask-image: linear-gradient(to bottom,
                black 0%,
                rgba(0, 0, 0, 0.5) 55%,
                transparent 100%);
    }

    .banner::after {
        background: linear-gradient(180deg,
                rgba(23, 23, 23, 0.45) 0%,
                #171717 55%,
                #171717 100%);
    }

    .banner-content {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 25px;
        text-align: center;
    }

    .cover {
        width: min(48vw, 190px);
    }

    .info {
        width: 100%;
    }

    .info h1 {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }

    .desc {
        margin-left: auto;
        margin-right: auto;
        font-size: 0.9rem;
    }

    .banner-meta,
    .tags {
        justify-content: center;
    }

    .banner-eyebrow {
        letter-spacing: 2px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-section {
        width: 92%;
        padding: 45px 0 60px;
    }

    .masonry {
        columns: 2;
        column-gap: 10px;
        padding: 10px;
    }

    .item {
        margin-bottom: 10px;
    }

    .footer {
        padding: 35px 7% 18px;
    }
}


/* Small phones */

@media (max-width: 360px) {

    .brand {
        font-size: 0.85rem;
    }

    .banner {
        padding-left: 5%;
        padding-right: 5%;
    }

    .masonry {
        columns: 2;
    }
}


/* =========================
   8. ACCESSIBILITY
========================= */

a:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}