/* ========== BASE STYLES & TYPOGRAPHY ========== */
:root {
    --content-padding: 5%;
    --section-spacing: 15px;
    --large-spacing: 40px;
    --small-spacing: 20px;
    --accent-color: #00bfff;
    --text-primary: #fff;
    --text-secondary: #eee;
    --text-muted: #ccc;
    --bg-primary: black;
    --bg-secondary: white;
    --border-subtle: rgba(255, 255, 255, 0.1);
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.2);
    --transition-fast: 0.3s;
    --transition-medium: 0.5s;
    --transition-slow: 0.6s;
    --font-size-caption: 1rem;
    --font-family-caption: 'Georgia', serif;
    --font-weight-caption: 400;
    --text-max-width: 700px;
}

/* ========== BODY ========== */
body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--body-font), var(--fallback-fonts);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    margin: 0;
    padding: 0 0 30px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* ========== NAVIGATION ========== */
.top-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: white;
    color: black;
    padding: 15px 30px;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--header-font), var(--fallback-fonts);
    font-size: var(--font-size-logo);
    font-weight: var(--font-weight-bold);
    color: var(--bg-primary);
    letter-spacing: -0.02em;
    line-height: var(--line-height-header);
    position: relative;
    display: inline-block;
    cursor: default;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}

.logo:hover {
    color: var(--accent-color);
    transform: scale(1.05);
}

.logo::after,
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.logo:hover::after,
.nav-link:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: black;
    text-decoration: none;
    font-size: var(--font-size-nav);
    font-family: var(--body-font), var(--fallback-fonts);
    transition: color 0.3s;
    position: relative;
    display: inline-block;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* Accessibility: focus outlines */
.nav-link:focus,
.logo:focus {
    outline: none;
}

/* ========== HERO SECTION ========== */
.hero {
    margin-top: 60px;
    margin-bottom: var(--section-spacing);
    padding: 0 var(--content-padding);
}

.hero h1 {
    font-family: var(--header-font), var(--fallback-fonts);
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-bold);
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero h2 {
    font-family: var(--header-font), var(--fallback-fonts);
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-large);
    margin-bottom: 30px;
    width: 65%;
    color: #ccc;
}

.hero h3 {
    font-family: var(--header-font), var(--fallback-fonts);
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-large);
    margin-bottom: 30px;
    width: 98%;
    color: #ccc;
}

/* ========== VIDEO CONTAINER (MATCH AV) ========== */
.video-container {
    width: 100%;
    height: 75vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    background-color: black;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.video-container video {
    width: 100%;
    max-height: 75vh;
    display: block;
    object-fit: cover;
}

/* ========== MAIN CONTENT SECTIONS ========== */
.section {
    margin-bottom: var(--section-spacing);
    padding: 0 var(--content-padding);
}

.section h2 {
    font-family: var(--header-font), var(--fallback-fonts);
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    padding-bottom: 10px;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.section p {
    font-family: var(--body-font), var(--fallback-fonts);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    margin-bottom: 20px;
    max-width: var(--text-max-width);
    color: var(--text-secondary);
}

.full-width {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* REMOVE padding-left and padding-right! */
}

/* ========== FLEX IMAGE LAYOUTS ========== */
.text-with-image {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    width: 100%;
    box-sizing: border-box;
}

.text-content {
    flex: 0 1 65%;
    max-width: 65%;
}

.side-image {
    flex: 0 1 55%;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 0;
    margin-right: 150px;
}

.side-image img,
.triple-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    object-fit: cover;
    margin-bottom: 8px;
}

.side-image-moveable {
    width: auto !important;
    max-width: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 50px;
    margin-right: 0;
}

/* ========== TRIPLE IMAGE LAYOUT ========== */
.side-image.image-triple {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    max-width: 50%;
    width: 100%;
    margin-left: 60px;
}

.triple-img-top {
    width: 100%;
    height: auto;
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    object-fit: cover;
}

.triple-img-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.triple-img-row .triple-img {
    flex: 1 1 0;
    width: 48%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    object-fit: cover;
    margin-bottom: 0;
}

/* ========== IMAGE CAPTION ========== */
.image-caption {
    text-align: center;
    width: 100%;
    margin-top: 8px;
    color: var(--text-muted, #888);
    font-size: 1rem;
}

.img-caption-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    max-width: 80%;
}

.img-caption-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
}

.img-caption-wrapper .image-caption {
    width: 100%;
    max-width: 100%;
    text-align: center;
    word-break: break-word;
}

.caption-link {
    color: var(--accent-color, #00bfff);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s;
    cursor: pointer;
}

.caption-link:hover,
.caption-link:focus {
    color: white;
    text-decoration: underline;
}


/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .video-container {
        max-width: 100vw;
    }

    .video-container iframe.featured-image {
        max-width: 100vw;
        min-height: 200px;
        max-height: 400px;
    }

    .text-with-image {
        flex-direction: column;
        gap: 20px;
    }

    .text-content,
    .side-image,
    .side-image.image-triple {
        max-width: 100%;
        width: 100%;
    }

    .side-image,
    .side-image.image-triple {
        margin-left: 0;
        align-items: center;
    }

    .triple-img-top {
        width: 100%;
    }

    .triple-img-row {
        flex-direction: column;
        gap: 8px;
    }

    .triple-img-row .triple-img {
        width: 100%;
    }
}

/* ========== SOCIAL LINKS ========== */
.social-links {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 60px;
    margin-bottom: 20px;
    padding: 15px 0 0;
    background-color: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-intro {
    color: white;
    font-family: var(--body-font), var(--fallback-fonts);
    font-size: var(--font-size-body);
    text-align: center;
    margin: 0 0 15px 0;
    opacity: 0.9;
    font-weight: 300;
}

.social-links-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.social-link {
    color: white;
    text-decoration: none;
    font-family: var(--body-font), var(--fallback-fonts);
    font-size: var(--font-size-social-link);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-link:hover {
    color: #00bfff;
}

.social-link i {
    width: 20px;
    text-align: center;
}

/* ========== TRANSITIONS & ANIMATIONS ========== */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    z-index: 9999;
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.5s ease;
}

.fade-in-animation {
    animation: fadeIn 0.8s ease-in-out forwards;
}

.no-animation {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .text-with-image {
        flex-direction: column;
        gap: 18px;
    }

    .side-image,
    .side-image-moveable,
    .text-content {
        max-width: 100%;
        width: 100%;
    }

    .video-container {
        height: 50vh;
    }

    .video-container iframe.featured-image {
        max-width: 100vw;
        min-height: 180px;
        max-height: 350px;
    }

    .section,
    .hero {
        padding-left: 4vw;
        padding-right: 4vw;
    }
}

/* ======= Tablet landscape (900px–1199px) ======= */
@media (max-width: 1199px) and (min-width: 900px) {
    .text-with-image {
        gap: 20px;
    }

    .side-image,
    .side-image-moveable {
        max-width: 40%;
    }

    .text-content {
        max-width: 60%;
    }
}

/* ======= Tablet portrait (600px–899px) ======= */
@media (max-width: 899px) and (min-width: 600px) {
    .text-with-image {
        flex-direction: column;
        gap: 16px;
    }

    .side-image,
    .side-image-moveable,
    .text-content {
        max-width: 100%;
        width: 100%;
    }

    .video-container iframe.featured-image {
        max-width: 100vw;
        min-height: 200px;
        max-height: 400px;
    }
}

/* ======= Mobile (less than 600px) ======= */
@media (max-width: 599px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero h3 {
        font-size: 1.1rem;
    }

    .section,
    .hero {
        padding-left: 3vw;
        padding-right: 3vw;
    }

    .text-with-image {
        flex-direction: column;
        gap: 12px;
    }

    .side-image,
    .side-image-moveable,
    .text-content {
        max-width: 100%;
        width: 100%;
    }

    .image-caption {
        font-size: 0.9rem;
    }

    .video-container iframe.featured-image {
        max-width: 100vw;
        min-height: 160px;
        max-height: 250px;
    }
}