/* Design Tokens */
:root {
    --color-bg: #0b0f19;
    --color-surface: #101828;
    --color-accent: #00BFFF;
    --color-text: #f0f4f8;
    --color-text-dark: #1a1a1a;
    --surface-gradient: linear-gradient(to bottom, var(--color-surface), var(--color-bg));
    --surface-gradient-up: linear-gradient(to top, var(--color-surface), var(--color-bg));
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    --radius: 8px;
    --radius-sm: 4px;
}

/* Body Styles */
body {
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Link Styles */
a {
    color: var(--color-accent);
    text-decoration: none;
}

/* Shared Surface Styles */
.gallery,
.hero,
.about,
article,
aside,
form {
    background: var(--surface-gradient);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

/* Oxanium Font Styles */
.oxanium-h1,
.oxanium-h2,
.oxanium-p,
.button,
form label,
form input,
form textarea {
    font-family: "Oxanium", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    text-shadow: var(--shadow);
}
.oxanium-h1 {
    font-weight: 700;
    color: var(--color-accent);
}
.oxanium-h2 {
    font-weight: 600;
    color: var(--color-accent);
}
.oxanium-p {
    font-weight: 400;
    color: var(--color-text);
}

/* Main Styles */
main {
    padding: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    flex: 1;
}

/* Gallery Controls */
.gallery-controls {
    margin-bottom: 1rem;
}

/* Mobile Grid Styles */
.gallery {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0.5rem;
}

/* Grid Image Scaling Rules and Styles */
.gallery img {
    width: 100%;
    height: auto;
    display: block;
    padding: 0.5rem;
    box-sizing: border-box;
}

/* Tablet Grid Styles */
@media (min-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Grid Styles */
@media (min-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Featured Image Scaling Rules and Styles */
.hero,
.about {
    width: 100%;
    height: auto;
    display: block;
    padding: 1rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

/* Article and Aside Styles */
article,
aside {
    margin-bottom: 1rem;
    padding: 1rem;
}

/* Header Styles */
header {
    background: var(--surface-gradient);
    padding: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
nav {
    margin-left: auto;
}

/* Hamburger Checkbox Display */
#hamburger-menu {
    display: none;
}

/* Navigation Menu Accessibility Helper */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Hamburger Icon Swap: Unhovered (default) */
.hamburger-label .hamburger-menu {
    content: url("../images/hamburger-menu.svg");
}

/* Hamburger Icon Swap: Active (menu open) */
#hamburger-menu:checked ~ .hamburger-label .hamburger-menu {
    content: url("../images/hamburger-menu-hover.svg");
}

/* Hamburger Icon Swap: Hover (pointer devices only) */
@media (hover: hover) and (pointer: fine) {
    .hamburger-label:hover .hamburger-menu {
        content: url("../images/hamburger-menu-hover.svg");
    }
}

/* Desktop Header Navigation Styles */
@media (min-width: 768px) {
    .hamburger-menu {
        display: none;
    }
    nav ul {
        list-style: none;
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        margin-bottom: 1.25rem;
    }
}

/* Mobile Header Navigation Styles */
@media (max-width: 767px) {
    nav {
        display: block;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        width: 100%;
        transition: max-height 0.4s ease-in-out, visibility 0.4s ease-in-out;
    }
    #hamburger-menu:checked ~ nav {
        max-height: 300px;
        visibility: visible;
    }
    .hamburger-menu {
        display: block;
        margin-bottom: 0.25rem;
        cursor: pointer;
    }
    header label {
        margin-left: auto;
    }
    nav ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding-left: 0;
        margin: 0;
    }
    nav ul li a,
    nav ul li button {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* Button Styles */
.button {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: "Oxanium", sans-serif;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Button Active and Hover Styles */
.button.active {
    background-color: var(--color-accent);
    color: var(--color-text-dark);
}
@media (hover: hover) and (pointer: fine) {
    .button:hover {
        background-color: var(--color-accent);
        color: var(--color-text-dark);
    }
}

/* Desktop Footer Styles */
footer {
    background: var(--surface-gradient-up);
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: center;
    gap: 1rem;
}
.footer-container-left {
    display: grid;
    gap: 0.5rem;
    align-items: center;
    justify-items: start;
}
.footer-container-right {
    display: grid;
    gap: 0.5rem;
    align-items: center;
    justify-items: end;
}

/* Mobile Footer Styles */
@media (max-width: 767px) {
    footer {
        text-align: center;
    }
    .footer-container-left,
    .footer-container-right {
        justify-items: center;
        align-items: center;
    }
}

/* Contact Form Styles */
form {
    padding: 1rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
form label {
    color: var(--color-text);
    font-weight: 600;
}
form input[type="text"],
form input[type="email"],
form textarea {
    background-color: var(--color-bg);
    border: 1px solid var(--color-surface);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    color: var(--color-text);
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.5rem;
    resize: none;
}
form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--shadow);
}
form button[type="submit"] {
    align-self: flex-start;
}