@import url(form.css);

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #323c39;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    text-align: center;
}

h2 {
    font-size: 2.2rem;
    text-transform: uppercase;
}

h1,
h2 {
    font-family: "Ruwudu", serif;
    font-weight: 600;
    font-style: normal;

}

a {
    color: #ec6745;
}

a:hover {
    color: #7fa4c7;
}

/* ========== RESPONSIVE VIDEO CONTAINER ========== */
.video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
}

.video-container iframe {
    width: 100%;
    height: 100%;
}


/* ========== HERO/HEADER SECTION ========== */

.hero-container {
    position: relative;
    height: 100vh;
    max-height: 800px;
    min-height: 600px;
    background: #abd3fa;
    overflow: hidden;
}

/* Logo - centered at top, scrolls and hides behind hero */
.logo {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 530px;
    max-width: 100%;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Parallax layers */
.parallax-layer {
    position: absolute;
    width: 100%;
    left: 0;
    background-position: center top;
    will-change: transform;
}

/* Farthest layer - sky/distant background (slowest) */
.layer-far {
    width: 100%;
    height: 100%;
    top: 15%;
    z-index: 15;
    background-image: url("media/main-bg01_web-far-v2.png");
}

/* Middle layer (medium speed) */
.layer-middle {
    width: 100%;
    height: 100%;
    top: 15%;
    z-index: 20;
    background-image: url("media/main-bg01_web-middle-export_v2.png");

}

/* Closest layer (fastest) */
.layer-close {
    width: 100%;
    height: 542px;
    bottom: 0;
    z-index: 25;
    background-image: url("media/main-bg01_web-bottom.png");
    background-repeat: no-repeat;

}

/* ========== CLOUD ANIMATION ========== */

.clouds-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    overflow: hidden;
    min-width: 1280px;
    left: 50%;
    transform: translateX(-50%);
}

.cloud {
    position: absolute;
    top: 20%;
    height: 80px;
    width: auto;
    object-fit: contain;
    animation: cloudFloat 50s linear infinite;
}

@keyframes cloudFloat {
    0% {
        left: -200px;
        opacity: 0.8;
    }

    100% {
        left: calc(100% + 100px);
        opacity: 0.8;
    }
}

/* Stagger animation start times and sizes for each cloud */
.cloud:nth-child(1) {
    animation-delay: 0s;
    top: 10%;
    height: 82px;
}

.cloud:nth-child(2) {
    animation-delay: -10.86s;
    top: 5%;
    height: 54px;
}

.cloud:nth-child(3) {
    animation-delay: -12.71s;
    top: 22%;
    height: 20px;
}

.cloud:nth-child(4) {
    animation-delay: -8.57s;
    top: 3%;
    height: 10px;
}

.cloud:nth-child(5) {
    animation-delay: -34.43s;
    top: 7%;
    height: 56px;
}

.cloud:nth-child(6) {
    animation-delay: -42.29s;
    top: 25%;
    height: 28px;
}

.cloud:nth-child(7) {
    animation-delay: -26.14s;
    top: 23%;
    height: 92px;
}

/* ========== MAIN CONTENT ========== */

nav {
    padding: 1rem;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    right: 0;
    transition: background 0.3s ease;

}

nav.added-bg {
    background-color: #323c39;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ec6745;
}

main {
    padding: 2rem;
    max-width: 960px;
    margin: 0 auto;
    color: #eee;
    background-color: #323c39;
    position: relative;
    z-index: 50;
}

main section {
    margin: 2rem 0;
}

main p {
    line-height: 1.7rem;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

footer {
    font-size: 1rem;
    background-color: #333;
    color: #eee;
    text-align: center;
    padding: 75px 30px 30px;
    margin-top: 2rem;
}


.div-flex {
    display: flex;
    gap: 20px;
}

.media-screens {
    width: 100%;
    gap: 5px 20px;
    display: flex;
    flex-wrap: wrap;
    margin-top: 16px;
}

.media-screens a {
    width: calc(50% - 10px);
}

.media-screens img {
    aspect-ratio: 16/9;
    width: 100%;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    justify-content: center;
    margin-top: 10px;
    font-size: 1.5rem;
}

.social-links strong {
    width: 100%;
}

.social-links a {
    padding: 20px;
}

.tv-gif {
    position: absolute;
    bottom: calc(71% - 3px);
    left: 50%;
    transform: translateX(473%);
    z-index: 30;
}

.brick-gif {
    position: absolute;
    bottom: 74px;
    left: 50%;
    transform: translateX(-45%);
    z-index: 30;
}
