/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 10%, rgba(0, 0, 0, 0));
    z-index: 1000;
    transition: background-color 0.3s;
}

.navbar.scrolled {
    background-color: var(--background-color);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 60px;
}

.logo img {
    height: 25px;
}

/* Modified navigation links to be hidden by default */
.nav-links {
    position: absolute;
    top: var(--navbar-height);
    left: -300px; /* Hidden off-screen */
    width: 250px;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    transition: left 0.3s ease;
    font-size: 24px;
    font-weight: bold;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    height: calc(100vh - var(--navbar-height));
    z-index: 1000;
}

.nav-links.active {
    left: 0; /* Show when active */
}

.nav-links a {
    font-size: 16px;
    padding: 10px 0;
    transition: color var(--transition-speed);
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-muted);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-actions a {
    font-size: 18px;
}

.profile {
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile img {
    border-radius: 4px;
}

/* Menu toggle button */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    margin-right: 20px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Overlay when menu is open */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.menu-overlay.active {
    display: block;
}

/* Hero Banner styles */
.hero-banner {
    position: relative;
    height: 80vh;
    background-image: url('https://asetgacor.com/gallery/bonus-rebate.png');
    background-size: cover;
    background-position: center top;
    margin-bottom: 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2),
        rgba(20, 20, 20, 0.8) 85%,
        var(--background-color)
    );
}

.hero-content {
    position: relative;
    top: 40%;
    left: 60px;
    width: 40%;
    z-index: 10;
    transform: translateY(-50%);
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 35px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    transition: all var(--transition-speed);
}

.btn i {
    margin-right: 8px;
}

.btn-play {
    background-color: rgb(0, 255, 64);
    color: black;
}

.btn-play:hover {
    background-color: rgba(255, 0, 0, 0.8);
}

.btn-info {
    background-color: rgb(255, 166, 0);
    color: white;

}

.btn-info:hover {
    background-color: rgb(0, 81, 255);
}

/* Main Content styles */
.main-content {
    padding: 0 var(--content-padding);
    margin-bottom: 50px;
}

.content-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 16px;
}

/* Movie Slider styles */
.movie-slider {
position: relative;
width: 100%; /* Pastikan lebar penuh */
padding: 0 4%;
margin: 0 -4%; /* Netralisir padding agar tidak overflow */
overflow: hidden; /* Mencegah scroll bar */
}

.movie-row {
display: flex;
overflow-x: auto;
scroll-behavior: smooth;
gap: 8px;
padding: 10px 0;
scroll-snap-type: x mandatory;
box-sizing: border-box;

scrollbar-width: none; /* Untuk Firefox */
}

.movie-row::-webkit-scrollbar {
display: none; /* Untuk Chrome, Safari, Edge */
}


.movie-card {
flex: 0 0 20%; /* Tanpa perhitungan gap */
position: relative;
border-radius: 4px;
overflow: hidden;
transition: transform var(--transition-speed);
transform-origin: center left;
scroll-snap-align: start;
}

.movie-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

.movie-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.movie-card-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.movie-card-info {
    display: flex;
    gap: 10px;
    font-size: 12px;
    margin-bottom: 8px;
}

.movie-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.card-action-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 12px;
    transition: background-color var(--transition-speed);
}

.card-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.movie-card:hover {
    transform: scale(var(--card-hover-scale));
    z-index: 10;
}

.movie-card:hover .movie-card-content {
    opacity: 1;
}

/* First card in row adjustments */
.movie-card:first-child {
    transform-origin: center left;
}

/* Last card in row adjustments */
.movie-card:last-child {
    transform-origin: center right;
}

/* Slider arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 100%;
    background-color: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
    z-index: 20;
}

.slider-prev {
    left: 0.5%;
}

.slider-next {
    right: 0.5%;
}

.movie-slider:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow i {
    font-size: 24px;
}

/* Footer styles */
.footer {
    padding: 50px var(--content-padding);
    color: var(--text-muted);
    margin-top: 20px;
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
    
}

.social-links {
display: flex;
justify-content: center; 
align-items: center; 
gap: 24px;
margin-bottom: 20px;
text-align: center;
}

.social-links a {
color: var(--text-muted);
font-size: 20px;
display: flex;
justify-content: center;
align-items: center;
width: 50px; 
height: 50px;
border-radius: 50%; 
transition: 0.3s;
}

.social-links a:hover {
color: var(--primary-color);
}


.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
}

.footer-links-column {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1 1 200px;
}

.footer-links-column a {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-links-column a:hover {
    text-decoration: underline;
}

.author-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
    padding: 8px 12px;
    font-size: 15px;
    margin-bottom: 20px;
}

.author-box img{
    max-height: 50px; /* Sesuaikan ukuran logo */
    margin-right: 8px; /* Beri jarak antara logo dan teks */
}

.copyright {
    display: flex;
    justify-content: center; 
    align-items: center; 
    font-size: 12px;
}

/* Media Queries */
@media (max-width: 1200px) {
    .movie-card {
        flex: 0 0 24.5%;
    }
}

@media (max-width: 992px) {
    .movie-card {
        flex: 0 0 32.5%;
    }
    
    .hero-content {
        width: 60%;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 20px;
    }
    
    .nav-links {
        width: auto;
        height:auto;
        padding: 20px, 50px;
        left: -100%;
    }
    
    .movie-card {
        flex: 0 0 49.5%;
    }
    
    .hero-content {
        width: 80%;
        left: 20px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    :root {
        --content-padding: 20px;
    }
    
    .movie-card {
        flex: 0 0 100%;
    }
    
    .hero-content {
        width: 90%;
        left: 5%;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
}