/* ========== BASE STYLES ========== */
body {
    background-color: black;
    margin: 0;
    padding: 0 0 40px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    color: white;
    font-family: 'Lato', Arial, sans-serif;
    line-height: 1.6;
}

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

.logo {
    transition: color 0.3s, transform 0.3s;
    position: relative;
    display: inline-block;
    color: black;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
}

.logo:hover {
    color: #00bfff;
    transform: scale(1.05);
}

.logo::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: #00bfff;
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

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

.nav-link {
    transition: color 0.3s;
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: black;
    font-size: 1.05rem;
    font-weight: 500;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: #00bfff;
    transition: width 0.3s ease;
}

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

/* ========== HERO SECTION ========== */
.hero {
    margin-bottom: 60px;
    padding: 60px 5% 30px;
    width: 100%;
    box-sizing: border-box;
}

.hero h1 {
    font-size: 2.5rem;
    font-family: 'Lato', Arial, sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
}

.hero h3 {
    font-size: 1.5rem;
    font-family: 'Lato', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 30px;
}

/* ========== CONTENT SECTIONS ========== */
.section {
    margin-bottom: 60px;
    padding: 0 5%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    /* Add this to prevent horizontal scrolling */
}

.section h2 {
    font-size: 2rem;
    font-family: 'Lato', Arial, sans-serif;
    font-weight: 700;
    margin-bottom: 30px;
    color: white;
}

.section p {
    margin-bottom: 20px;
    max-width: 750px;
    font-family: var(--body-font), var(--fallback-fonts);
    font-size: var(--font-size-body);
    /* This variable isn't defined in the file */
    line-height: var(--line-height-body);
    color: #eee;
}

.full-width {
    max-width: 96% !important;
    width: 96%;
}

/* ========== VIDEO & HERO CONTAINERS ========== */
.video-container {
    width: 100%;
    height: 75vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    background-color: black;
}

.featured-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

/* ========== NEW IMAGE GRID LAYOUT ========== */
.image-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 90%;
    margin: 0 auto 30px auto;
    box-sizing: border-box;
}

/* Clean simple grid item style */
.grid-image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
    /* No bottom margin needed */
    width: 100%;
}

/* Media container to enforce aspect ratio */
.grid-image-media {
    width: 100%;
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Style both images and iframes consistently */
.grid-image-media img,
.grid-image-media iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 6px;
    object-fit: cover;
}

/* Caption style */
.grid-image-caption {
    margin-top: 10px;
    text-align: center;
    color: #bbb !important;
    /* Lighter, more visible gray */
    font-size: 1rem !important;
    /* Larger font size */
    font-family: 'Lato', Arial, sans-serif;
    width: 100%;
    opacity: 1 !important;
    /* Ensure full opacity */
    font-weight: 400 !important;
    /* Medium weight for better visibility */
    padding: 3px 0;
    letter-spacing: 0.01em;
}

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

.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: 'Lato', Arial, sans-serif;
    font-size: 1rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

/* ========== PAGE TRANSITIONS ========== */
.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;
}

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

.no-animation {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========== RESPONSIVE MEDIA QUERIES ========== */

/* Medium devices (tablets, 768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {

    /* Navigation */
    .top-menu {
        padding: 12px 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-link {
        font-size: 1rem;
    }

    /* Hero section */
    .hero {
        padding: 50px 5% 20px;
        margin-bottom: 40px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    /* Content */
    .section {
        margin-bottom: 40px;
        padding: 0 5%;
    }

    .section p {
        font-size: 0.9rem;
    }

    /* Grid */
    .image-grid-container {
        width: 92%;
        gap: 20px;
    }

    .grid-image-caption {
        font-size: 0.85rem !important;
        margin-top: 8px;
    }

    /* Video */
    .video-container {
        height: 60vh;
    }

    /* Social */
    .social-intro {
        font-size: 1rem !important;
    }

    .social-link {
        font-size: 0.95rem;
    }
}

/* Small devices (large phones, 481px to 767px) */
@media (min-width: 481px) and (max-width: 767px) {

    /* Navigation */
    .top-menu {
        padding: 10px 15px;
    }

    .nav-links {
        gap: 15px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    /* Hero section */
    .hero {
        padding: 40px 5% 15px;
        margin-bottom: 30px;
    }

    .hero h1 {
        font-size: 1.7rem;
        margin-bottom: 15px;
    }

    .hero h3 {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Content */
    .section {
        margin-bottom: 35px;
        padding: 0 4%;
    }

    .section p {
        font-size: 0.85rem;
        max-width: 100%;
        /* Ensure text doesn't cause overflow */
    }

    /* Grid */
    .image-grid-container {
        width: 94%;
        gap: 15px;
    }

    .grid-image-caption {
        font-size: 0.8rem !important;
        margin-top: 6px;
    }

    /* Video */
    .video-container {
        height: 50vh;
    }

    /* Social */
    .social-links {
        margin: 40px auto 20px;
    }

    .social-intro {
        font-size: 0.9rem !important;
        font-weight: 400 !important;
    }

    .social-link {
        font-size: 0.9rem;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {

    /* Navigation */
    .top-menu {
        padding: 8px 12px;
    }

    .nav-links {
        gap: 12px;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    /* Hero section */
    .hero {
        padding: 30px 4% 10px;
        margin-bottom: 25px;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .hero h3 {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    /* Content */
    .section {
        margin-bottom: 30px;
        padding: 0 4%;
    }

    .section h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .section p {
        font-size: 0.8rem;
        max-width: 100%;
        margin-bottom: 15px;
    }

    /* Grid */
    .image-grid-container {
        grid-template-columns: 1fr;
        /* Single column */
        width: 92%;
        gap: 20px;
    }

    .grid-image-item {
        margin-bottom: 5px;
    }

    .grid-image-caption {
        font-size: 0.75rem !important;
        margin-top: 5px;
    }

    /* Video */
    .video-container {
        height: 40vh;
    }

    /* Social */
    .social-links {
        margin-top: 30px;
        padding-top: 10px;
    }

    .social-intro {
        font-size: 0.85rem !important;
        font-weight: 400 !important;
        margin-bottom: 10px;
    }

    .social-links-container {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-link {
        font-size: 0.8rem;
    }
}