:root {
    --primary-color: #e63946;
    --secondary-color: #f77f00;
    --background-color: #FFF5F5;
    --text-color: #212529;
    --light-text-color: #6c757d;
    --white-color: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    --footer-bg: #212529;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* ===== General Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Pop-up Slideshow Styles ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.popup-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.popup-modal {
    background-color: var(--white-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    position: relative;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
}

.popup-overlay.hidden .popup-modal {
    transform: scale(0.9);
}

.popup-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
    font-size: 16px;
    z-index: 15;
    transition: background-color 0.2s, transform 0.2s;
}

.popup-close-btn:hover {
    background-color: var(--primary-color);
    transform: rotate(90deg);
}

.popup-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.popup-slides-wrapper {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.popup-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.popup-slide img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 70vh;
    object-fit: contain;
    background-color: #f0f0f0;
}

.popup-slide-caption {
    padding: 24px 30px 20px 30px;
    text-align: center;
}

.popup-slide-caption h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    margin-top: 0px;
}

.popup-slide-caption p {
    font-size: 0.6rem;
    color: var(--light-text-color);
    margin-bottom: 15px;
    line-height: 1.5;
}

.popup-cta-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 300;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.popup-cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

.popup-slider-arrow {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    z-index: 10;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.popup-slider-arrow:hover {
    background-color: var(--white-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.popup-slider-arrow.prev {
    left: 15px;
}

.popup-slider-arrow.next {
    right: 15px;
}

.popup-slider-arrow i {
    font-size: 24px;
}

.popup-dots-container {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.popup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
}

.popup-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

/* ===== Navbar Styles ===== */
.navbar {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.4s ease-in-out, background-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar.navbar-hidden {
    transform: translateY(-100%);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* ===== Hamburger Menu & Mobile Nav ===== */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 28px;
    color: var(--text-color);
    z-index: 1001;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background-color: var(--white-color);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.mobile-nav.active {
    display: flex;
    max-height: 500px;
}

.mobile-nav-link {
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* ===== CTA Button Styles ===== */
.cta-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(230, 57, 70, 0.3);
}

.cta-button i {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translate(3px, -3px);
}

/* ===== Hero Section Styles ===== */
.hero {
    position: relative;
    color: var(--white-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: crossfadeZoom 18s infinite;
}

.hero-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    animation-delay: 6s;
}

.hero-slide:nth-child(3) {
    animation-delay: 12s;
}

@keyframes crossfadeZoom {
    0% {
        opacity: 0;
        transform: scale(1.15);
    }
    5% {
        opacity: 1;
    }
    33.33% {
        opacity: 1;
        transform: scale(1);
    }
    38.33% {
        opacity: 0;
        transform: scale(1);
    }
    100% {
        opacity: 0;
    }
}

.hero .container.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 40px;
    padding-bottom: 40px;
    width: 100%;
}

.hero-main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-text h1 .highlight {
    color: var(--primary-color);
    text-shadow: 0 0 12px rgba(230, 57, 70, 0.8), 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.hero-btn i {
    transition: transform 0.3s ease;
}

.hero-btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.4);
}

.hero-btn-primary:hover i {
    transform: translateX(5px);
}

.hero-btn-secondary {
    background-color: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
}

.hero-btn-secondary:hover {
    transform: translateY(-3px);
    background-color: var(--white-color);
    color: var(--text-color);
}

.hero-stats {
    margin-top: 40px;
    display: flex;
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.why-us-card {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 450px;
    transition: transform 0.3s ease;
}

.why-us-card:hover {
    transform: translateY(-5px);
}

.why-us-card h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--white-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.why-us-card ul {
    list-style: none;
}

.why-us-card li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1rem;
    text-align: left;
}

.why-us-card li i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 4px;
}

/* ===== Catalog Section Styles ===== */
.catalog-section {
    padding: 80px 0;
}

.digital-signage-section {
    background-color: var(--white-color);
}

.best-location-section {
    background-image: url(img/bg-putih.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

#static p {
    text-align: center;
    color: var(--light-text-color);
    margin-bottom: 40px;
}

.tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab-button {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-text-color);
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transform: translateY(1px);
    white-space: nowrap;
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.region-dots-container {
    display: none;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.region-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.region-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

#videotron-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.catalog-grid .card {
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-grid .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}


.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-details {
    font-size: 0.85rem;
    color: var(--light-text-color);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.card-details svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.card-button {
    margin-top: auto;
    padding: 10px 15px;
    border: none;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.card-button:hover {
    background-color: #c5303d;
}

/* ===== Search & Slider Styles ===== */
#static .slider-container {
    position: relative;
}

#static .catalog-grid.slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    gap: 20px;
}

#static .catalog-grid.slider::-webkit-scrollbar {
    display: none;
}

#static .card {
    flex: 0 0 272px;
}

.search-container {
    display: flex;
    max-width: 500px;
    margin: 0 auto 40px auto;
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.search-input {
    flex-grow: 1;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border: none;
    padding: 0 25px;
    cursor: pointer;
}

.search-icon {
    color: var(--white-color);
    width: 20px;
    height: 20px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--white-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 24px;
    color: var(--text-color);
}

.slider-btn.prev {
    left: -25px;
}

.slider-btn.next {
    right: -25px;
}

/* ===== Footer Styles ===== */
.footer {
    background-color: var(--footer-bg);
    color: var(--white-color);
    padding: 60px 0 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

.footer-logo {
    display: block;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 700;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: var(--primary-color);
    height: 2px;
    width: 50px;
}

.footer-col p {
    font-size: 0.9rem;
    color: #dee2e6;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    background-color: #1a1d20;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    color: #adb5bd;
}

/* ===== Sticky Clock Styles ===== */
#sticky-clock-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #000000;
    padding: 10px 15px;
    border-radius: 8px;
    z-index: 1001;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.3s ease;
}

#sticky-clock-container:hover {
    transform: scale(1.05);
}

#sticky-clock-container .info-item {
    text-align: right;
}

#sticky-clock-container .info-label {
    display: block;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#sticky-clock-container .info-value {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .hero-main-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .hero-text {
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .why-us-card {
        max-width: 600px;
    }
    .nav-links {
        display: none;
    }
    .hamburger-menu {
        display: block;
    }
    #videotron-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-col {
        min-width: calc(50% - 20px);
    }
    .slider-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        text-align: center;
    }
    .stat-item {
        flex-direction: column;
        gap: 8px;
    }
    .stat-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }
    .stat-icon i {
        font-size: 24px;
    }
    .stat-text {
        align-items: center;
    }
    .stat-number {
        font-size: 1.2rem;
    }
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* ===== PENYESUAIAN POPUP UNTUK MOBILE ===== */
    .popup-modal {
        width: 90%; 
        max-height: 90vh;
        display: flex; 
        flex-direction: column; 
    }

    .popup-slider-container {
        overflow: hidden; 
        flex-shrink: 0;
    }
    
    .popup-slide img {
        max-height: 45vh;
        object-fit: contain;
    }

    .popup-slide-caption {
        flex-grow: 1;
        overflow-y: auto;
    }

    .popup-dots-container {
        position: static; 
        transform: none; 
        padding: 15px; 
        flex-shrink: 0; 
        justify-content: center; 
        border-top: 1px solid var(--border-color); 
    }
    /* ===== AKHIR PENYESUAIAN ===== */
    
    .popup-slide-caption h3 {
        font-size: 1.1rem;
    }
    .popup-slide-caption p {
        font-size: 0.9rem;
    }
    .popup-cta-button {
        padding: 12px 28px;
        font-size: 1rem;
    }
    .tabs-container {
        justify-content: flex-start;
        margin-bottom: 20px;
    }
    .region-dots-container {
        display: flex;
    }
    .section-title {
        font-size: 2rem;
    }
    #videotron-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    .hero-btn {
        width: 100%;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .why-us-card {
        padding: 20px;
    }
    .popup-modal {
        width: 90%; 
        max-width: 95%;
    }
    .popup-slider-arrow {
        width: 35px;
        height: 35px;
    }
    .popup-slider-arrow i {
        font-size: 20px;
    }
    #sticky-clock-container {
        padding: 8px 12px;
    }
    #sticky-clock-container .info-label {
        font-size: 8px;
    }
    #sticky-clock-container .info-value {
        font-size: 9px;
    }
}
