* {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat';
}

html,
body {
    scrollbar-width: none;
    background-color: black;
}

.bg-img {
    background-color: black;
    background-image: url("../img/bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
}

.aktif {
    color: #f84970;
}

/* Navbar - Start */


nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
}

nav img {
    width: 150px;
    height: auto;
    padding: 10px;
}

nav div a {
    text-decoration: none;
    color: #fff;
    padding: 10px 20px;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease, background-color 0.3s ease;
}

nav div a:hover,
nav div a:focus {
    color: #f84970;
    border-radius: 8px;
}


/* Navbar - End */

/* main - Start */

main {
    display: flex;
    justify-content: space-between;
    padding: 10px 50px;
    padding-top: 300px;
    color: #fff;
}

.hero-text {
    font-size: 40px;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 60px;
    font-weight: bold;
    letter-spacing: -2px;
    word-spacing: 0;
    line-height: 0.9;
    padding-top: 10px;
    padding-bottom: 10px;
}

.hero-text h3 {
    font-size: 40px;
    font-weight: bold;
    letter-spacing: -2px;
}

.hero-text h4 {
    color: #f84970;
    font-size: 20px;
    font-weight: bold;
}

.hero-description {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 110px;
}

.hero-description p {
    font-size: 20px;
    max-width: 600px;
    margin-top: 20px;
}

.hero-description button {
    text-decoration: none;
    color: #fff;
    background-color: transparent;
    border: 2px solid #ffffff;
    padding: 6px 18px;
    font-weight: bold;
    border-radius: 999px;
    margin-top: 20px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-size: 16px;
    align-self: flex-start;
}

.hero-description button:hover {
    border-color: #f84970;
    background-color: rgba(0, 0, 0, 0.681);
    color: #fff;
}

/* main - End */


/* Footer - Start */

footer {
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 10px 30px;
    padding-left: 50px;
}

.social-icons {
    display: flex;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-icons li {
    display: flex;
}

.social-icons a {
    display: flex;
    align-items: center;
    color: #fff;
    transition: color 0.2s, transform 0.2s;
    font-size: 24px;
}

.social-icons a:hover img,
.social-icons a:focus img {
    filter: brightness(0) saturate(100%) invert(41%) sepia(92%) saturate(749%) hue-rotate(320deg) brightness(99%) contrast(101%);
    transform: scale(1.15);
}

.social-icons a:hover,
.social-icons a:focus {
    color: #f84970;
    outline: none;
}

.footer-text {
    color: #fff;
    padding: 0px 40px;
    text-align: left;
}

/* Footer - End */

/* Hamburger menu - hidden by default */
.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
}

/* ======== Responsive Navbar (Final Update) ======== */

/* Default: hamburger disembunyikan di desktop */
.hamburger {
    display: none;
}

/* Mobile view */
@media (max-width: 768px) {
    nav {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        position: relative;
        padding: 10px 16px;
    }

    nav img {
        width: 120px;
        height: auto;
        padding: 0;
        margin-right: 8px;
        display: block;
    }

    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        cursor: pointer;
        z-index: 1001;
        margin-left: 8px;
    }

    .hamburger img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Pop-up style for nav-links */
    #nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 80vw;
        max-width: 320px;
        background: #181818d4;
        box-shadow: 0 8px 32px rgba(0,0,0,0.35);
        border-radius: 16px;
        padding: 32px 24px 24px 24px;
        position: fixed;
        top: 60px;
        right: 20px;
        z-index: 2000;
        animation: popupFadeIn 0.25s;
    }

    @keyframes popupFadeIn {
        from { opacity: 0; transform: translateY(-20px) scale(0.98);}
        to { opacity: 1; transform: translateY(0) scale(1);}
    }

    #nav-links a {
        padding: 14px 0;
        font-size: 18px;
        text-align: left;
        color: white;
        width: 100%;
        border-radius: 8px;
        transition: background 0.2s;
    }

    #nav-links a:hover,
    #nav-links a:focus {
        background: #23232377;
        color: #f84970;
    }

    #nav-links.active {
        display: flex;
    }
}


/* Maksimum lebar 590px - konten rata kiri */
@media (max-width: 590px) {
    body {
        max-width: 590px;
        margin: 0 auto;
    }

    main {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 20px;
        padding-top: 200px;
    }

    .hero-text {
        font-size: 32px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text h3 {
        font-size: 24px;
    }

    .hero-description p {
        font-size: 16px;
    }

    .hero-description button {
        font-size: 14px;
    }

    footer {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .footer-text {
        padding: 0;
        text-align: left;
    }

    .social-icons {
        justify-content: flex-start;
    }
}


/* ====== ANIMATED ======= */
/* Default state: visible (for mobile/tablet) */
.animated-index-bg,
.animated-index-main,
.animated-index-header,
.animated-index-footer {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Desktop-only animation */
@media screen and (min-width: 768px) {
  .animated-index-bg,
  .animated-index-main,
  .animated-index-header,
  .animated-index-footer {
    opacity: 0;
    transition: all 1s ease;
  }

  .animated-index-bg {
    transform: scale(1.1); /* Zoomed out */
  }

  .animated-index-bg.in {
    opacity: 1;
    transform: scale(1); /* Zoom to normal */
  }

  .animated-index-main {
    transform: translateY(20px);
  }

  .animated-index-main.in {
    opacity: 1;
    transform: translateY(0);
  }

  .animated-index-header {
    transform: translateY(-30px);
  }

  .animated-index-header.in {
    opacity: 1;
    transform: translateY(0);
  }

  .animated-index-footer {
    transform: translateY(30px);
  }

  .animated-index-footer.in {
    opacity: 1;
    transform: translateY(0);
  }
}



