html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

/* Header */
.top-header {
    width: 100%;
    background-color: rgba(51, 51, 51, 0.3);
    padding: 10px 20px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    width: 100%;
}

.top-nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    margin-right: auto;
}

.top-nav-link, .language-button {
    background-color: #25ea2e;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-left: 25px;
}

.nav-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
}

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

.hamburger {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .top-nav-links {
        display: flex;
        flex-direction: column;
        background: rgba(51, 51, 51, 0.3);
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        padding: 10px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.5s ease, opacity 0.5s ease;
    }

    .hamburger {
        display: block;
    }

    .top-nav-link, .language-button {
        width: 30%;
        padding: 10px;
        margin: 5px auto;
        text-align: center; 
    }
    
    .top-nav-links.show {
        max-height: 300px;
        opacity: 1;
    }
}

.top-nav-link:hover, .language-button:hover {
    background-color: #ff55ba;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 1s ease-out;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-content {
    font-size: 1.5rem;
    position: relative;
    text-align: center;
    color: white;
    top: 59%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-disclaimer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    color: white;
    padding: 10px 0;
}

.logo-center {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s;
}

.logo-center:hover {
    transform: scale(1.3);
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    margin-top: 20px;
    background-color: #25ea2e;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #ff55ba; 
    transform: scale(1.2);
}
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }
}

/* Comic-Style Story Section */
.comic-story-section {
    position: relative;
    height: 100vh;
    padding: 0 20px;
    background-color: black;
    box-sizing: border-box;
    display: block;
}

.marquee-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    z-index: 10;
    padding: 10px 0;
    box-sizing: border-box;
    text-align: center;
}

.marquee-overlay p {
    letter-spacing: 0.5em;
    word-spacing: 1.5em;
    display: inline-block;
    animation: marquee 60s linear infinite;
    padding-left: 100%;
    box-sizing: border-box;
    font-size: 1.5em;
    color: #fff;
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Story Grid */
.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    height: calc(100% - 50px);
    width: 100%;
    align-items: center;
    justify-items: center;
    box-sizing: border-box;
    padding-top: 50px;
}

.comic-frame {
    position: relative;
    overflow: hidden;
    border: 2px solid #333;
    border-radius: 10px;
    transition: transform 0.3s;
    height: 90%;
    width: 90%;
    margin: auto;
}

.comic-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.comic-frame:hover {
    transform: scale(1.02);
}

.comic-frame img:hover {
    filter: brightness(0.7);
    transition: filter 0.3s ease-in-out;
}

/* Comic-Style Story Section */
@media (max-width: 768px) {
    .story-grid {
        display: flex;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        gap: 10px;
        padding: 10px;
        align-items: center;
    }

    .comic-frame {
        height: 73%;
        width: 90%;
        flex: 0 0 auto;
        scroll-snap-align: start;
        display: inline-block;
        margin: 0;
    }
    
    .comic-frame img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .marquee-overlay p {
        font-size: 1em;
        letter-spacing: 0.7em;
        word-spacing: 1em;
        animation: marquee 45s linear infinite;
    }
    
}

/* Video Background Section */
.video-background-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 10, 56, 0.5);
    z-index: 1;
}

.video-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    z-index: 2;
}

.video-title {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 30px;
    text-align: justify;
}

.video-description {
    width: 100%;
    text-align: justify;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.2);
}

.video-description ul {
    list-style: none;
    padding: 5px;
    margin: 0;
}

.video-description li {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.logo-down {
    width: 120px;
    height: auto;
    margin-top: 20px;
    cursor: pointer;
    transition: transform 0.3s;
    filter: brightness(0.5);
}

.logo-down:hover {
    transform: scale(1.3);
    filter: brightness(0.7);
}

@media (max-width: 768px) {
    .video-content {
        padding: 10px;
        max-width: 90%;
        max-height: 80vh;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 8px;
    }

    .video-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .video-description {
        font-size: 1rem;
        width: 100%;
        border-radius: 10px;
    }

    .video-description ul {
        padding: 3px;
    }

    .video-description li {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .logo-down {
        width: 90px;
        margin-top: 15px; 
    }
}

/* Call to Action Section */
.cta-section {
    font-size: 1.5rem;
    padding: 50px 20px;
    background-color: black;
    color: white;
    text-align: center;
}

* {
    transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr;
    }
    .video-title {
        font-size: 1.5rem;
    }
}