@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html{
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: #041933;
    color: white;
}

/* Header dengan padding yang sama dengan section lain */
header{
    margin-top: 10px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: #041933;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.4s ease;
}

/* Class untuk header saat di-scroll */
header.scrolled {
    background-color: rgba(4, 25, 51, 0.9);
    backdrop-filter: blur(10px);
    margin-top: 0;
    padding: 0.8rem 9%;
}

header.hidden {
    transform: translateY(-100%);
}

/* Update gaya logo untuk menambahkan icon */
.logo{
    display: flex;
    align-items: center;
    font-size: 3rem;
    color: #ffc400;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
    gap: 1rem;
}

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

/* Gaya untuk icon logo */
.logo-icon {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
    transition: 0.5s ease;
}

.logo:hover .logo-icon {
    transform: rotate(10deg) scale(1.1);
}

nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
    color: #ffc400;
    border-bottom: 3px solid #ffc400;
}

/* Hamburger Button Styles - UPDATED */
.hamburger-btn {
    display: none;
    background: none;
    cursor: pointer;
    padding: 0.5rem;
    border: 2px solid #ffc400;
    border-radius: 0.5rem;
    transition: 0.3s ease;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
}

.hamburger-icon {
    width: 2rem;
    height: 2rem;
    transition: 0.3s ease;
}

.hamburger-btn:hover {
    background-color: #ffc400;
}

/* Drawer Styles */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: #041933;
    z-index: 1000;
    transition: right 0.3s ease;
    border-left: 3px solid #ffc400;
    display: flex;
    flex-direction: column;
}

.drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    background-color: rgba(255, 196, 0, 0.1);
    border-bottom: 2px solid #ffc400;
    gap: 1rem;
}

.drawer-logo {
    width: 3rem;
    height: 3rem;
}

.drawer-title {
    font-size: 2rem;
    color: #ffc400;
    font-weight: 600;
    flex: 1;
}

.close-drawer {
    background: none;
    color: #ffc400;
    font-size: 3rem;
    cursor: pointer;
    transition: 0.3s ease;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 50%;
}

.close-drawer:hover {
    color: white;
    background-color: #ffc400;
    transform: scale(1.1);
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
}

.drawer-nav a {
    font-size: 1.8rem;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    transition: 0.3s ease;
    border-left: 4px solid transparent;
}

.drawer-nav a:hover,
.drawer-nav a.active {
    color: #ffc400;
    background-color: rgba(255, 196, 0, 0.1);
    border-left: 4px solid #ffc400;
    transform: translateX(5px);
}

@media(max-width:995px){
    header {
        padding: 1rem 5%;
    }
    
    header.scrolled {
        padding: 0.8rem 5%;
    }
    
    /* Menyesuaikan logo untuk tampilan mobile */
    .logo {
        font-size: 2.5rem;
    }
    
    .logo-icon {
        width: 3rem;
        height: 3rem;
    }
    
    /* Show hamburger button and hide regular nav on mobile */
    .hamburger-btn {
        display: flex;
    }
    
    /* Sembunyikan nav biasa di mobile */
    nav {
        display: none;
    }
    
    /* Drawer specific mobile styles */
    .drawer {
        width: 85%;
    }
    
    .drawer-header {
        padding: 1.5rem;
    }
    
    .drawer-nav {
        padding: 1.5rem;
    }
    
    .drawer-nav a {
        font-size: 1.6rem;
        padding: 0.8rem 1.2rem;
    }
}

/* Mengurangi spasi antar section */
section{
    min-height: 80vh;
    padding: 3rem 9% 3rem;
}

/* Home section dengan padding atas tambahan agar tidak tertutup header */
.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: #041933;
    padding: 12rem 9% 3rem;
}

.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: #ffc400;
}

.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
}

.home-img img{
    position: relative;
    width: 32vw;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #ffc400;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #ffc400;
}

.social-icons a:hover{
    color: #041933;
    transform: scale(1.3) translateY(-5px);
    background-color: #ffc400;
    box-shadow: 0  0 25px #ffc400;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: #041933;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #ffc400;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #ffc400;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #ffc400;
    color: #041933;
    box-shadow: 0 0 25px #ffc400;
}

/* Animasi Fade Text yang Diperbarui */
.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
    height: 45px;
    display: flex;
    align-items: center;
}

.typing-text span{
    position: relative;
    color: #ffc400;
}

.typing-text span::before{
    content: "Streaming";
    color: #ffc400;
    animation: fadeWords 12s infinite;
}

@keyframes fadeWords{
    0%, 25% {
        content: "Streaming";
        opacity: 1;
    }
    25%, 50% {
        content: "Streaming";
        opacity: 1;
    }
    50%, 54% {
        content: "Streaming";
        opacity: 0;
    }
    
    54%, 56% {
        content: "";
        opacity: 0;
    }
    
    56%, 75% {
        content: "Reading";
        opacity: 1;
    }
    75%, 100% {
        content: "Reading";
        opacity: 1;
    }
    100% {
        content: "Reading";
        opacity: 0;
    }
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 0;
        padding: 10rem 5% 2rem;
    }

    .home .home-content h3{
        font-size: 2.5rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img img{
        width: 70vw;
        margin-top: 2rem;
    }
}

/* Features Section - Mengurangi spasi */
.features {
    background-color: #041933;
    padding: 5rem 9%;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-box {
    background-color: rgba(255, 196, 0, 0.1);
    border: 2px solid #ffc400;
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 196, 0, 0.2);
}

.feature-icon {
    font-size: 3.5rem;
    color: #ffc400;
    margin-bottom: 1.5rem;
}

.feature-box h3 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.feature-box p {
    font-size: 1.4rem;
    color: #ccc;
}

/* Preview Section - Mengurangi spasi */
.preview {
    background-color: #041933;
    padding: 5rem 9%;
    text-align: center;
}

.preview-container {
    max-width: 800px;
    margin: 0 auto;
}

.preview-container h2 {
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border: 3px solid #ffc400;
    border-radius: 1rem;
    box-shadow: 0 0 15px rgba(255, 196, 0, 0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Download Section - tombol mentok ke sisi padding */
.download {
    background-color: #041933;
    padding: 5rem 9%;
    text-align: center;
}

.download-container {
    width: 100%;
    max-width: none;
}

.download-container h2 {
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
}

.download-buttons {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.download-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background-color: rgba(255, 196, 0, 0.1);
    border: 2px solid #ffc400;
    border-radius: 1.5rem;
    transition: 0.3s ease;
    cursor: pointer;
    color: white;
    min-height: 140px;
}

.download-btn:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 196, 0, 0.2);
    box-shadow: 0 5px 15px rgba(255, 196, 0, 0.3);
}

.download-icon {
    font-size: 3.5rem;
    color: #ffc400;
    margin-bottom: 1.5rem;
}

.download-btn h3 {
    font-size: 2rem;
    text-align: center;
}

/* Contact Section - MODIFIED: mentok ke sisi padding */
.contact {
    background-color: #041933;
    padding: 5rem 9%;
}

.contact-container {
    width: 100%;
    max-width: none;
}

.contact-container h2 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.contact-method {
    background-color: rgba(255, 196, 0, 0.1);
    border: 2px solid #ffc400;
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    transition: 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 196, 0, 0.2);
}

.contact-icon {
    font-size: 3rem;
    color: #ffc400;
    margin-bottom: 1.5rem;
}

.contact-method h3 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}

.contact-method p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: #ccc;
}

.contact-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    border: 2px solid #ffc400;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #ffc400;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
}

.contact-btn:hover {
    background-color: #ffc400;
    color: #041933;
    box-shadow: 0 0 15px #ffc400;
}

/* Section Title */
.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title span {
    color: #ffc400;
}

/* Toast notification styles */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #ffc400;
    color: #041933;
    text-align: center;
    border-radius: 2rem;
    padding: 1.6rem;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 1.6rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.5s, visibility 0.5s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .download-buttons {
        gap: 1.5rem;
    }
    
    .download-btn {
        min-height: 120px;
        padding: 2.5rem 1.5rem;
    }
    
    .download-btn h3 {
        font-size: 1.8rem;
    }
    
    .download-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-method {
        padding: 2.5rem 1.5rem;
    }
    
    .contact-method h3 {
        font-size: 2rem;
    }
    
    .contact-method p {
        font-size: 1.5rem;
    }
    
    .contact-icon {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .preview-container h2,
    .download-container h2,
    .contact-container h2 {
        font-size: 3rem;
    }
    
    /* Mengurangi spasi lebih lanjut di mobile */
    section {
        min-height: auto;
        padding: 2rem 5% 2rem;
    }
    
    .features,
    .preview,
    .download,
    .contact {
        padding: 3rem 5%;
    }
}

/* Untuk layar yang sangat kecil (smartphone portrait) */
@media (max-width: 480px) {
    .download-buttons {
        gap: 1rem;
    }
    
    .download-btn {
        min-height: 110px;
        padding: 2rem 1rem;
    }
    
    .download-btn h3 {
        font-size: 1.6rem;
    }
    
    .download-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .download-container h2 {
        font-size: 2.8rem;
        margin-bottom: 2rem;
    }
    
    .contact-method {
        padding: 2rem 1.5rem;
    }
    
    .contact-method h3 {
        font-size: 1.8rem;
    }
    
    .contact-method p {
        font-size: 1.4rem;
    }
    
    .contact-icon {
        font-size: 2.5rem;
    }
    
    .contact-btn {
        padding: 0.8rem 2rem;
        font-size: 1.4rem;
    }
}

/* Untuk layar super kecil (lebar kurang dari 360px) */
@media (max-width: 360px) {
    .download-btn {
        min-height: 100px;
        padding: 1.8rem 0.8rem;
    }
    
    .download-btn h3 {
        font-size: 1.5rem;
    }
    
    .download-icon {
        font-size: 2.2rem;
    }
    
    .contact-method {
        padding: 1.8rem 1.2rem;
    }
    
    .contact-method h3 {
        font-size: 1.7rem;
    }
    
    .contact-method p {
        font-size: 1.3rem;
    }
    
    .contact-icon {
        font-size: 2.2rem;
    }
}