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

:root {
    /* Dark Mode (Default) */
    --primary-color: #1e293b; 
    --secondary-color: #0f172a; 
    --accent-color: #e67e22; 
    --accent-hover: #d35400;
    --bg-main: #0f172a; 
    --bg-card: rgba(255, 255, 255, 0.04);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-radius: 20px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode removed to force Dark Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    letter-spacing: 0.3px;
    overflow-x: hidden;
    transition: var(--transition);
    padding-top: 120px; /* Offset for fixed header plus comfortable breathing room */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Navbar - Glassmorphism */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ganti URL gambar dengan logo aslimu nanti */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-main);
    transition: var(--transition);
}

.logo img {
    height: 40px;
    width: auto;
    /* object-fit: contain; */
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links li a {
    font-weight: 500;
    color: var(--text-main);
    opacity: 0.8;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links li a:hover::after, .nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* Theme Toggle Button Styles */
.theme-toggle-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    margin-left: 1rem;
}

.theme-toggle-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: rotate(15deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-main);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 1.5rem 2rem;
    z-index: 999;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu a {
    display: block;
    padding: 0.8rem 0;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.mobile-menu a:hover {
    color: var(--accent-color);
    padding-left: 10px;
    transition: var(--transition);
}

/* SLA Banner */
.sla-banner {
    background-color: var(--accent-color);
    color: white;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.sla-banner i {
    margin-right: 8px;
}

/* Hero Section */
.service-banner {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    text-align: center;
}

.hero {
    max-width: 1200px;
    margin: 4rem auto 2rem;
    padding: 0 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.2rem;
    color: var(--text-main);
    margin-bottom: 1.2rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-inline: auto;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 8px 15px rgba(230, 126, 34, 0.3);
}

.hero-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 20px rgba(230, 126, 34, 0.4);
}

/* Section Shared Styles */
.section {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 3.5rem;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 4px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-card:hover::before {
    opacity: 1;
}

.product-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    display: inline-block;
    transition: var(--transition);
}

.product-card:hover .product-icon {
    transform: scale(1.1);
}

.product-card h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.product-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    min-height: 45px;
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    width: 100%;
}

.product-card:hover .btn-outline {
    background-color: var(--accent-color);
    color: white;
}

/* Tutorial Grid */
.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    text-align: center;
}

.tutorial-step {
    background: var(--bg-card);
    padding: 2.5rem 1.5rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.tutorial-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    border: 4px solid var(--bg-main);
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
}

.tutorial-step i {
    font-size: 3rem;
    color: var(--accent-color);
    margin: 1rem 0 1.5rem;
}

.tutorial-step h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.tutorial-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Product Page Styles (Iframe Wrapper) */
.page-header {
    text-align: center;
    padding: 3.5rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

.form-container {
    max-width: 850px;
    margin: 2rem auto 4rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.form-wrapper {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    padding: 0.5rem;
    height: 1200px; /* Cukup tinggi agar iframe tidak perlu scrollbar di dalam scrollbar */
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.form-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--text-main);
    padding: 5rem 2rem 1.5rem;
    margin-top: 6rem;
    border-top: 1px solid var(--glass-border);
    transition: var(--transition);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    height: 40px;
    background: white; /* Temporary if logo is dark */
    padding: 5px;
    border-radius: 8px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.3rem;
    color: white;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1.8rem;
    position: relative;
    font-weight: 600;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #b0bec5;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .section {
        margin: 3.5rem auto;
    }

    .sla-banner {
        /* Dihapus agar tidak tumpang tindih dengan body padding */
    }

    .page-header {
        padding: 2.5rem 1.5rem;
    }
    
    .service-banner {
        /* Dihapus agar tidak tumpang tindih dengan body padding */
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .form-container {
        margin: 1.5rem auto 3rem;
        padding: 0 1rem;
    }
    
    .footer-content {
        gap: 2.5rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .tutorial-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-icon {
    font-size: 2rem;
    color: var(--accent-color);
    position: relative;
    z-index: 2;
    animation: pulse 1.5s infinite ease-in-out;
}

.loader-circle {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 3px solid transparent;
    border-top-color: var(--accent-color);
    border-right-color: rgba(230, 126, 34, 0.3);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    box-shadow: 0 0 15px rgba(230, 126, 34, 0.4);
}

.loader-circle::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 3px solid transparent;
    border-bottom-color: #3498db;
    border-left-color: rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    animation: spin-reverse 1.5s linear infinite;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.8); opacity: 0.7; }
}

/* Add a class to body to prevent scroll while loading */
body.loading {
    overflow: hidden;
}

/* KEAMANAN: Sembunyikan isi saat print (Anti Save PDF) */
@media print {
    body { display: none !important; }
}

/* Animations & Posters */
.poster-carousel {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    overflow: hidden;
    position: relative;
}

.poster-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    /* Animasi diatur oleh JavaScript */
}

.poster-track:hover {
    animation-play-state: paused !important;
}

.poster-slide {
    width: calc(100vw - 4rem);
    max-width: 1160px; /* Max container minus padding */
    flex-shrink: 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.poster-slide img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: var(--border-radius);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 0.5rem)); }
}

.service-banner {
    max-width: 1200px;
    margin: 90px auto 2rem; /* Offset for fixed header */
    padding: 0 2rem;
    text-align: center;
}

.service-banner img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .poster-slide img, .service-banner img {
        aspect-ratio: 16/7;
    }
}

