/* Netflix Clone - Custom CSS */

:root {
    --netflix-red: #e50914;
    --netflix-red-hover: #f40612;
    --dark-bg: #000000;
    --dark-light: #141414;
    --dark-lighter: #1f1f1f;
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    --overlay-medium: rgba(0, 0, 0, 0.6);
    --overlay-light: rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-white);
    scroll-behavior: smooth;
}

/* Custom Background Colors */
.bg-dark-custom {
    background-color: var(--dark-bg) !important;
}

.bg-dark-light {
    background-color: var(--dark-light) !important;
}

.bg-dark-lighter {
    background-color: var(--dark-lighter) !important;
}

.bg-netflix-red {
    background-color: var(--netflix-red) !important;
}

/* Custom Text Colors */
.text-netflix-red {
    color: var(--netflix-red) !important;
}

.text-gray {
    color: var(--text-gray) !important;
}

/* Custom Buttons */
.btn-netflix {
    background-color: var(--netflix-red);
    border-color: var(--netflix-red);
    color: var(--text-white);
}

.btn-netflix:hover {
    background-color: var(--netflix-red-hover);
    border-color: var(--netflix-red-hover);
    color: var(--text-white);
}

/* Video Cards */
.video-card {
    background: var(--dark-light);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

/* Hero Section */
.hero-section {
    background-color: var(--dark-bg); /* Fallback color */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}



.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        var(--overlay-light) 0%, 
        rgba(229, 9, 20, 0.1) 50%, 
        var(--overlay-light) 100%);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(229,9,20,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.2;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none !important;
    }
    
    .floating-icon {
        animation: none !important;
    }
}

.hero-stats {
    margin-top: 0;
    position: relative;
    z-index: 3;
}

/* Hero Stats Animation */
.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgb(0 0 0 / 7%);
    border-radius: 10px;
    margin: 0.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    transform: translateY(30px);
    opacity: 0;
}

.stat-item.animate {
    transform: translateY(0);
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.507);
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--netflix-red);
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    color: var(--netflix-red-hover);
    transform: scale(1.1);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.stat-item:hover .stat-label {
    color: var(--text-white);
}

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.floating-icon {
    position: absolute;
    color: rgba(229, 9, 20, 0.1);
    font-size: 2rem;
    animation: floatIcon 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes floatIcon {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-30px) rotate(180deg); 
        opacity: 0.7;
    }
}

/* Video Section Enhancements */
.video-section-title {
    color: var(--text-white);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.video-section-title i {
    color: var(--netflix-red);
    margin-right: 0.75rem;
    font-size: 1.5rem;
}

/* CSS Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll[data-delay="0"] { transition-delay: 0ms; }
.animate-on-scroll[data-delay="100"] { transition-delay: 100ms; }
.animate-on-scroll[data-delay="200"] { transition-delay: 200ms; }



/* Video Player */
.video-player-container {
    background: var(--dark-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.video-player-container video {
    width: 100%;
    border-radius: 8px;
}

/* Related Video Cards */
.related-video-card {
    background: var(--dark-light);
    border-radius: 6px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.related-video-card:hover {
    background: var(--dark-lighter);
}

.related-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-video-card:hover .related-overlay {
    opacity: 1;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--netflix-red);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-light);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-lighter);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--netflix-red);
}

/* Form Controls */
.form-control.bg-dark-lighter {
    background-color: var(--dark-lighter) !important;
    border-color: var(--dark-lighter) !important;
    color: var(--text-white) !important;
}

.form-control.bg-dark-lighter:focus {
    background-color: var(--dark-lighter) !important;
    border-color: var(--netflix-red) !important;
    box-shadow: 0 0 0 0.2rem rgba(229, 9, 20, 0.25) !important;
    color: var(--text-white) !important;
}

.form-control.bg-dark-lighter::placeholder {
    color: var(--text-gray) !important;
}

/* Tables */
.table-dark {
    background-color: transparent !important;
    color: var(--text-white) !important;
}

.table-dark th {
    background-color: var(--dark-lighter) !important;
    border-color: var(--dark-lighter) !important;
    color: var(--text-white) !important;
}

.table-dark td {
    border-color: var(--dark-lighter) !important;
    color: var(--text-white) !important;
}

.table-hover tbody tr:hover {
    background-color: var(--dark-lighter) !important;
}

/* Pagination */
.pagination .page-link {
    background-color: var(--dark-light) !important;
    border-color: var(--dark-lighter) !important;
    color: var(--text-white) !important;
}

.pagination .page-link:hover {
    background-color: var(--dark-lighter) !important;
    border-color: var(--netflix-red) !important;
    color: var(--text-white) !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--netflix-red) !important;
    border-color: var(--netflix-red) !important;
}

/* Modals */
.modal-content.bg-dark-light {
    background-color: var(--dark-light) !important;
    border: 1px solid var(--dark-lighter) !important;
}

.modal-header.border-secondary {
    border-bottom-color: var(--dark-lighter) !important;
}

.modal-footer.border-secondary {
    border-top-color: var(--dark-lighter) !important;
}

/* Alerts */
.alert-info.bg-dark-lighter {
    background-color: var(--dark-lighter) !important;
    border-color: var(--dark-lighter) !important;
}

.alert-warning.bg-dark-lighter {
    background-color: var(--dark-lighter) !important;
    border-color: var(--dark-lighter) !important;
}

/* List Group */
.list-group-item.bg-dark-light {
    background-color: var(--dark-light) !important;
    border-color: var(--dark-lighter) !important;
}

.list-group-item.bg-dark-light:hover {
    background-color: var(--dark-lighter) !important;
}

.list-group-item.bg-dark-light.active {
    background-color: var(--netflix-red) !important;
    color: var(--text-white) !important;
}

/* Navbar Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    position: relative;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--netflix-red) !important;
    transform: scale(1.05);
}

.brand-text {
    font-weight: 900;
    letter-spacing: 1px;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
    background: transparent;
    border-radius: 4px;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(229, 9, 20, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav {
    align-items: center;
}

.nav-item {
    margin: 0 0.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: var(--text-white) !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(229, 9, 20, 0.1);
    color: var(--text-white) !important;
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(229, 9, 20, 0.2);
    color: var(--text-white) !important;
}

/* Dropdown Menu Styles */
.dropdown-menu-dark {
    background: rgba(0, 0, 0, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
}

.dropdown-item {
    color: var(--text-white) !important;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(229, 9, 20, 0.2) !important;
    color: var(--text-white) !important;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-number {
        font-size: 1.5rem;
    }
    
    .floating-icon {
        font-size: 1.5rem;
    }
    
    .stat-item {
        padding: 1rem 0.5rem;
        margin: 0.25rem;
    }
    
    .video-section-title {
        font-size: 1.5rem;
    }
    
        .hero-section {
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important; /* Gambar bergerak normal di mobile */
        min-height: 80vh;
        /* Vendor prefixes untuk mobile */
        -webkit-background-size: cover !important;
        -moz-background-size: cover !important;
        -o-background-size: cover !important;
        -webkit-background-position: center !important;
        -moz-background-position: center !important;
        -o-background-position: center !important;
        -webkit-background-repeat: no-repeat !important;
        -moz-background-repeat: no-repeat !important;
        -o-background-repeat: no-repeat !important;
    }
    

}

@media (max-width: 576px) {
    .stat-item {
        padding: 0.75rem 0.25rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .video-section-title {
        font-size: 1.3rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .brand-text {
        font-size: 1rem;
    }
    
    .navbar-toggler {
        padding: 0.5rem;
    }
    
    .navbar-collapse {
        margin-top: 0 !important;
        border-radius: 0 0 8px 8px !important;
        padding: 1rem;
        border-radius: 6px;
        background: rgba(0, 0, 0, 0.99);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .nav-link {
        padding: 0.7rem 1.2rem !important;
        font-size: 0.95rem;
        color: white !important;
        border-radius: 4px;
        font-weight: 500;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    .navbar-nav {
        margin: 0;
        padding: 0;
    }
}

/* Feature Items */
.feature-item {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-item i {
    font-size: 1.2rem;
}

/* About Section */
#about {
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(229,9,20,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.share-buttons .btn {
    transition: all 0.3s ease;
    border-radius: 20px;
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
}

.share-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.share-buttons .btn-instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    border-color: #dc2743;
    color: white;
}

.share-buttons .btn-instagram:hover {
    background: linear-gradient(45deg, #e0852e 0%,#d55f37 25%,#c6233e 50%,#b71f5b 75%,#a7157a 100%);
    border-color: #c6233e;
    color: white;
}



/* Custom Notification */
.custom-notification {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Video Title */
.video-title-responsive {
    font-size: 2rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

@media (max-width: 768px) {
    .video-title-responsive {
        font-size: 1.5rem;
        line-height: 1.3;
    }
}

@media (max-width: 576px) {
    .video-title-responsive {
        font-size: 1.25rem;
        line-height: 1.4;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 480px) {
    .video-title-responsive {
        font-size: 1.1rem;
        line-height: 1.4;
    }
}

/* Responsive Share Buttons */
@media (max-width: 576px) {
    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .share-buttons .btn {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .share-buttons .btn:last-child {
        margin-bottom: 0;
    }
}



 