/* === Font Face Embedding === */
@font-face {
    font-family: 'Nunito Sans';
    src: url('../fonts/Nunito_Sans/NunitoSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* === Base Styles === */
body {
    margin: 0;
    background-color: #000;
    color: #d1ff00;
    font-family: 'Source Serif Pro', serif;
}

/* === Header === */
header {
    background-color: #000;
    padding: 30px 20px 40px;
    position: relative;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.menu {
    font-size: 30px;
    color: #d1ff00;
    position: absolute;
    top: 20px;
    left: 25px;
    cursor: pointer;
    z-index: 1001;
    font-family: 'Nunito Sans', sans-serif;
    transition: transform 0.2s ease;
}

.menu:hover {
    transform: scale(1.1);
}

.header-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    max-width: 950px;
    width: 100%;
    height: auto;
    animation: dropSmooth 1.2s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

/* === Slide-Out Navigation === */
.side-nav {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100%;
    background-color: #000;
    z-index: 1000;
    padding: 40px 20px;
    box-sizing: border-box;
    overflow-y: auto;
    transition: left 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.side-nav.open {
    left: 0;
    opacity: 1;
    padding-top: 200px;
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-nav ul li {
    background-color: #d1ff00;
    color: #000;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: bold;
    padding: 16px 20px;
    border-left: 6px solid #000;
    line-height: 1.4;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.4s forwards;
    transition: background-color 0.3s;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.4);
}

.side-nav ul li:nth-child(1) {
    animation-delay: 0.1s;
}

.side-nav ul li:nth-child(2) {
    animation-delay: 0.2s;
}

.side-nav ul li:nth-child(3) {
    animation-delay: 0.3s;
}

.side-nav ul li:nth-child(4) {
    animation-delay: 0.4s;
}

.side-nav ul li:nth-child(5) {
    animation-delay: 0.5s;
}

.side-nav ul li:hover {
    background-color: #eaff5f;
}

.side-nav ul li a {
    color: #000;
    text-decoration: none;
    display: block;
}

/* Fade-in from below */
@keyframes fadeInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* === Nav Overlay === */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    transition: opacity 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* === Fixed Home Button in Nav === */
.nav-home {
    position: absolute;
    top: 30px;
    right: 30px;
    background-color: #d1ff00;
    padding: 10px 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: bold;
    z-index: 1100;
    animation: fadeInDown 0.4s ease forwards;
    transition: background-color 0.3s ease;
}

.nav-home a {
    color: #000;
    text-decoration: none;
}

.nav-home:hover {
    background-color: #eaff5f;
}

@keyframes fadeInDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* === Main Section === */
main {
    background-color: #fefde1;
    color: #000;
    padding: 20px 20px 40px;
}

/* Section Titles */
h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 35px;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: left;
}

/* === Explore Section === */
.main-thumb-video,
.thumb-video {
    display: block;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.explore {
    background-color: #fefde1;
    padding: 0;
}

.explore-container {
    max-width: 1225px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Main Featured Video === */
.main-thumb-video {
    width: 100%;
    height: 500px;
    border: 1px solid #000;
    margin-bottom: 20px;
    overflow: hidden;
    background-color: #000;
    display: flex;
}

.main-thumb-video iframe {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* === Thumbnail Video Row === */
.thumb-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.thumb-video {
    position: relative;
    flex: 1;
    height: 120px;
    overflow: hidden;
    border: 2px solid #000;
    background-color: #000;
}

.thumb-video iframe {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* === Overlay Text on Hover === */
.thumb-video .overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #d1ff00;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.thumb-video:hover .overlay-text {
    opacity: 1;
}

/* === Dark Overlay on Hover === */
.thumb-video::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumb-video:hover::after {
    opacity: 1;
}

/* === Discover Section === */
.discover {
    background-color: #fefde1;
    padding: 60px 0;
    color: #000;
}

.discover h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 35px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 20px;
    color: #000;
}

/* === Carousel & Scrollbar === */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-gutter: stable;
    padding-bottom: 12px;
}

.carousel {
    display: flex;
    overflow-x: scroll;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 20px 40px;
    scrollbar-width: auto;
    scrollbar-color: #d1ff00 #333;
    scrollbar-gutter: stable both-edges;
}

.carousel::-webkit-scrollbar {
    height: 12px;
    -webkit-appearance: none;
}

.carousel::-webkit-scrollbar-track {
    background: #333;
    border-radius: 10px;
}

/* === Cards === */
.card {
    background: #fefde1;
    width: 520px;
    height: 420px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    justify-content: flex-start;
}

.card-img {
    height: 280px;
    background-color: #ccc;
    border: 2px solid #000;
}

.card-question {
    background-color: #000;
    padding: 16px 20px;
}

.question {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 17px;
    font-weight: bold;
    color: #d1ff00;
    margin: 0;
}

.card-answer {
    padding: 18px 20px;
    font-family: 'Source Serif Pro', serif;
    font-size: 14px;
    color: #000;
    line-height: 1.5;
    overflow: hidden;
}

/* === Learn More Button === */
.learn-btn {
    display: block;
    background-color: #000;
    color: #d1ff00;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    padding: 12px 40px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    text-align: center;
    transition: background-color 0.3s;
    width: fit-content;
    margin: 16px auto 0;
}

.learn-btn:hover {
    background-color: #d1ff00;
    color: #000;
    transform: scale(1.05);
    transition: background-color 0.3s, color 0.3s;
    box-shadow: 0 0 10px #d1ff00, 0 0 20px #d1ff00;
}

/* === Arrow Button Scroll Controls === */
.scroll-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background-color: #000;
    color: #d1ff00;
    font-size: 18px;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.scroll-btn:hover {
    background-color: #222;
}

.scroll-btn.left {
    left: 0;
}

.scroll-btn.right {
    right: 0;
}

/* === Footer === */
footer {
    display: flex;
    justify-content: center;
    background: #000;
    padding: 40px 40px;
    gap: 380px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    text-align: left;
    color: #d1ff00;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
}

footer h3,
footer p,
footer a {
    color: #d1ff00 !important;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* === Logo Smooth Drop Animation === */
@keyframes dropSmooth {
    0% {
        transform: translateY(-80px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
