* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: #fff;
    font-family: Arial, sans-serif;
}

/* HEADER */
#header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Header visible on scroll */
#header.show {
    transform: translateY(0);
}

/* Inner header row */
.header-inner {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    align-items: center;
    height: 50px; /* fixed height to prevent blank menu */
}

#header-title {
    font-size: 18px;
    font-weight: bold;
}

#hamburger {
    font-size: 24px;
    cursor: pointer;
}

/* MENU */
.menu {
    background: #111;
    overflow-y: auto; /* scrollable if items exceed viewport */
    max-height: 0; /* closed by default */
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
}

.menu.open {
    max-height: 80vh; /* expanded but scrollable */
    opacity: 1;
}

.menu div {
    padding: 12px 20px;
    border-bottom: 1px solid #333;
    cursor: pointer;
}

.menu .menu-group {
    background: #1a1a1a;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu .menu-group::after {
    content: '\25BC'; /* Downward triangle */
    font-size: 12px;
    transition: transform 0.3s ease;
}

.menu .menu-group.collapsed::after {
    transform: rotate(-90deg); /* Point right when collapsed */
}

.submenu-container {
    overflow: hidden;
    max-height: 1000px; /* Arbitrary large max-height for animation */
    transition: max-height 0.3s ease;
}

.submenu-container.collapsed {
    max-height: 0;
}

/* Override default padding/border to let container handle it smoothly */
.submenu-container div {
    padding-left: 40px;
    color: #ccc;
    border-bottom: 1px solid #333;
}

.submenu-container div:last-child {
    border-bottom: none;
}

/* SECTIONS */
.section {
    padding: 40px 20px;
}

.section h2,
.section h3 {
    margin-bottom: 20px;
    font-size: 1.5em; /* Forces h3 to match the default h2 size */
    font-weight: bold;
}

/* HERO */
.hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(0,0,0,0.5);
    padding: 20px;
}

/* TEXT */
.text-section {
    max-width: 900px;
    text-align: left; /* left-justified */
}

/* DETAILS */
.details-grid {
    display: grid;
    gap: 10px;
}

.detail-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item {
    background: #111;
    padding: 12px;
    border-radius: 6px;
}

/* LINKS & DOCUMENTS ROW */
.links-row {
    display: flex;
    gap: 15px;
    overflow-x: auto;
}

/* LINKS */
.link-item {
    text-align: center;
    min-width: 80px;
}

.link-item img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.link-item a {
    text-decoration: none;
    color: inherit;
}

.link-item span {
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* DOCUMENTS */
.document-item {
    text-align: center;
    min-width: 90px;
}

.document-item a {
    text-decoration: none;
    color: inherit;
}

.document-img-wrapper {
    position: relative;
    display: inline-block;
}

.document-item img {
    width: 80px;
    height: 100px;
    border-radius: 6px;
    object-fit: cover;
    background: #222;
}

.download-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(30, 144, 255, 0.9);
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.document-item span {
    font-size: 12px;
    margin-top: 8px;
    display: block;
}

/* GALLERY */
.masonry, .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 600px) {
    .masonry, .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .masonry, .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.masonry img.tall {
    grid-row: span 2;
}

img {
    width: 100%;
    border-radius: 6px;
}

/* ANIMATION */
.fade-in {
    opacity: 0;
    transform: translateY(15px);
    transition: 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox.hidden {
    display: none;
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    padding: 20px;
    display: none; /* hidden by default on mobile */
    z-index: 2001;
}

#lightbox-prev { left: 20px; }
#lightbox-next { right: 20px; }

@media (min-width: 900px) {
    .lightbox-arrow {
        display: block; /* show arrows on desktop */
    }
}

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