@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    
    /* Light Mode (Default) */
    --bg-dark: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-light: #1e293b;
    --text-muted: #64748b;
    --glass-border: rgba(0, 0, 0, 0.1);
    
    --grad-bg-1: rgba(99, 102, 241, 0.1);
    --grad-bg-2: rgba(200, 200, 200, 0.2);
}

[data-theme="dark"] {
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --grad-bg-1: rgba(99, 102, 241, 0.15);
    --grad-bg-2: rgba(236, 72, 153, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Outfit', sans-serif; 
    background-color: var(--bg-dark); 
    color: var(--text-light); 
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* Background Gradients */
.bg-gradient {
    position: fixed;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, var(--grad-bg-1), transparent 50%),
                radial-gradient(circle at 80% 20%, var(--grad-bg-2), transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* Navbar */
header {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed; width: 100%; top: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 12%;
}
header h1 { font-weight: 800; font-size: 1.5rem; background: linear-gradient(to right, #6366f1, #a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
nav { display: flex; align-items: center; gap: 20px; transition: 0.3s ease; }
nav a { color: var(--text-light); text-decoration: none; font-weight: 600; transition: color 0.3s; }

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}
nav a:hover { color: var(--primary); }

.theme-toggle { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-light); padding: 5px; }

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex; flex-direction: row; justify-content: space-between; align-items: center;
    padding: 120px 8% 40px; gap: 40px;
    background: var(--card-bg);
    box-shadow: 0 15px 35px rgba(128, 128, 128, 0.2);
    border-radius: 0 0 25px 25px;
    margin-bottom: 20px;
}
.hero h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 10px; line-height: 1.2; font-weight: 800; }
.hero p { font-size: clamp(1rem, 2vw, 1.1rem); color: var(--text-muted); margin-bottom: 20px; }
.hero-content { flex: 1; width: 100%; text-align: left; }
.hero-btn-container { justify-content: flex-start; }

/* Hero Slider */
.hero-slider-wrapper { flex: 1.2; position: relative; width: 100%; max-width: 700px; overflow: hidden; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin: 0; }
.hero-slider { display: flex; flex-wrap: nowrap; width: 100%; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.slide { flex: 0 0 100%; min-width: 100%; box-sizing: border-box; }
.slide a { display: block; width: 100%; height: 100%; }
.hero-image-banner { width: 100%; aspect-ratio: 940 / 304; object-fit: cover; display: block; border-radius: 16px; }
.slider-dots { text-align: center; position: absolute; bottom: 15px; width: 100%; }
.dot { cursor: pointer; height: 12px; width: 12px; margin: 0 5px; background-color: rgba(255,255,255,0.5); border-radius: 50%; display: inline-block; transition: background-color 0.3s; }
.dot.active, .dot:hover { background-color: white; box-shadow: 0 0 10px rgba(0,0,0,0.3); }

.btn {
    background: var(--primary); color: white; padding: clamp(8px, 1.5vw, 10px) clamp(15px, 2vw, 25px); border-radius: 30px;
    text-decoration: none; font-weight: 600; font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    transition: all 0.3s ease; display: inline-block; border: none; cursor: pointer;
}
.btn:hover { background: var(--primary-hover); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(99,102,241,0.3); }

/* Common Sections */
.section { padding: 20px 12%; }
.section-title { font-size: clamp(1.4rem, 4vw, 1.8rem); text-align: center; margin-bottom: 15px; font-weight: 800; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}
@media (max-width: 480px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
}

/* Page Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
}
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
}

/* Partner Slide */
.marquee-wrapper { overflow: hidden; white-space: nowrap; width: 100%; background: var(--card-bg); padding: 15px 0; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); margin: 25px 0;}
.marquee-content { display: inline-block; animation: marquee 20s linear infinite; }
.marquee-content img { height: 35px; margin: 0 25px; filter: grayscale(100%); opacity: 0.6; transition: 0.3s; }
.marquee-content img:hover { filter: grayscale(0%); opacity: 1; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Social/E-commerce Links */
.social-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.social-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 200px; padding: 15px 20px; border-radius: 12px;
    background: var(--card-bg); color: var(--text-light); border: 1px solid var(--glass-border);
    text-decoration: none; font-weight: 600; font-size: 1.1rem; transition: 0.3s;
}
.social-btn:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.social-btn i { font-size: 1.5rem; }

/* Product Card */
.product-slider-container { width: 100%; overflow: hidden; padding: 20px 0; position: relative; }
.product-slider-marquee { 
    display: flex; gap: 20px; width: max-content;
    animation: scrollProducts 40s linear infinite;
}
.product-slider-marquee:hover {
    animation-play-state: paused;
}
@keyframes scrollProducts {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); } /* 10px is half the gap */
}

.card, .slider-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 15px;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; flex-direction: column;
}
.slider-card {
    width: 220px;
    flex: 0 0 auto;
}
.card:hover, .slider-card:hover { 
    transform: translateY(-8px); 
    border-color: var(--primary); 
    box-shadow: 0 15px 30px rgba(99,102,241,0.15); 
}
.card img, .slider-card img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; margin-bottom: 15px; }
.card h3, .slider-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card .type, .slider-card .type { display: inline-block; padding: 3px 8px; background: rgba(99,102,241,0.1); color: var(--primary); border-radius: 20px; font-size: 0.75rem; margin-bottom: 10px; font-weight: 600;}
.card p, .slider-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; flex-grow: 1; }
.card .price, .slider-card .price { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; color: var(--text-light); }

.profil-produk { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 40px; }
.profil-card { background: var(--card-bg); border: 1px solid var(--glass-border); padding: 30px; border-radius: 16px; width: 300px; text-align: center; backdrop-filter: blur(10px); transition: 0.3s; }
.profil-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.profil-card i { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }

/* Subscription */
.subscribe { background: var(--card-bg); padding: 60px 20px; text-align: center; border-radius: 24px; border: 1px solid var(--glass-border); max-width: 800px; margin: 0 auto; backdrop-filter: blur(10px); }
.subscribe input { padding: 15px; width: 60%; max-width: 400px; border-radius: 30px; border: 1px solid var(--glass-border); background: transparent; color: var(--text-light); margin-right: 10px; outline: none; }
.subscribe input:focus { border-color: var(--primary); }

/* Footer */
footer { padding: 60px 12% 20px; border-top: 1px solid var(--glass-border); margin-top: 50px; background: var(--card-bg); backdrop-filter: blur(10px); }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; text-align: left; }
.footer-col h3 { font-size: 1.2rem; color: var(--text-light); margin-bottom: 20px; font-weight: 700; position: relative; }
.footer-col h3::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 40px; height: 3px; background: var(--primary); border-radius: 2px; }
.footer-col p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 15px; line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; transition: 0.3s; display: inline-block; }
.footer-col ul li a:hover { color: var(--primary); transform: translateX(5px); }
.footer-socials { display: flex; gap: 15px; margin-top: 20px; flex-wrap: wrap; }
.footer-socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(99,102,241,0.1); color: var(--primary); display: flex; justify-content: center; align-items: center; text-decoration: none; transition: 0.3s; font-size: 1.1rem; }
.footer-socials a:hover { background: var(--primary); color: white; transform: translateY(-5px); box-shadow: 0 5px 15px rgba(99,102,241,0.3); }
.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 20px; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.footer-logo { font-size: 1.5rem; font-weight: 800; color: var(--text-light); text-decoration: none; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.footer-logo img { height: 40px; border-radius: 8px; }

/* Float WhatsApp */
.float-wa { position: fixed; bottom: 30px; right: 30px; background: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 30px; box-shadow: 0 5px 20px rgba(37,211,102,0.4); transition: transform 0.3s; z-index: 100; text-decoration: none;}
.float-wa:hover { transform: scale(1.1); }

/* Auth Forms */
.auth-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; }
.auth-card { background: var(--card-bg); padding: 40px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: 100%; max-width: 400px; border: 1px solid var(--glass-border); }
.auth-card h2 { text-align: center; margin-bottom: 20px; }
.auth-card input { width: 100%; padding: 12px; margin-bottom: 20px; border-radius: 8px; border: 1px solid var(--glass-border); background: transparent; color: var(--text-light); outline: none; }
.auth-card input:focus { border-color: var(--primary); }
.auth-card button { width: 100%; }

/* Responsive Design */
@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; padding-top: 100px; }
    .hero-content { text-align: center; }
    .hero-btn-container { justify-content: center; }
    .hero-slider-wrapper { max-width: 100%; margin: 0 auto; }
    header h1 { font-size: 1.2rem; }
    nav { 
        position: absolute; top: 100%; right: -100%; 
        flex-direction: column; background: var(--card-bg); 
        width: 100%; max-width: 320px; height: 100vh;
        padding: 30px 20px; box-shadow: -10px 0 30px rgba(0,0,0,0.15); 
        align-items: flex-start; gap: 20px;
        border-left: 1px solid var(--glass-border);
        backdrop-filter: blur(20px);
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }
    nav.nav-active { right: 0; }
    .hamburger { display: block; }
    
    nav form { width: 100%; margin-left: 0 !important; margin-top: 10px; }
    nav form input { width: 100% !important; flex: 1; }
    
    .grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    body { font-size: 0.95rem; }
    .hero { padding: 100px 5% 30px; }
    .hero h2 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; margin-bottom: 25px; }
    
    .section-title { font-size: 1.8rem; margin-bottom: 20px; }
    .section { padding: 30px 5%; }
    
    .hero-image-banner { aspect-ratio: 16 / 9; }
    
    .card, .slider-card { padding: 10px; }
    .card h3, .slider-card h3 { font-size: 1rem; margin-bottom: 5px; }
    .card p, .slider-card p { font-size: 0.8rem; margin-bottom: 10px; }
    .card .price, .slider-card .price { font-size: 1rem; }
    
    .profil-card { width: 100%; padding: 20px; }
    .social-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .social-btn { width: 100%; font-size: 0.9rem; padding: 10px; justify-content: center; }
    
    .slider-card { width: 220px; }
    
    .subscribe input { width: 100%; margin-bottom: 10px; margin-right: 0; }
    
    header { padding: 10px 5%; }
    nav a.btn { padding: 5px 10px; font-size: 0.8rem; }
    
    footer { padding: 40px 5% 20px; }
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-logo { justify-content: center; }
    .footer-col h3::after { left: 50%; transform: translateX(-50%); }
    .footer-socials { justify-content: center; }
}

@media (max-width: 480px) {
    .hero h2 { font-size: 2rem; }
    .section-title { font-size: 1.5rem; }
    .card img, .slider-card img { height: 140px; }
    .btn { padding: 8px 15px; font-size: 0.9rem; }
    .card .btn { font-size: 0.8rem; padding: 6px 10px; }
    .grid { grid-template-columns: 1fr; } /* Stack vertically on very small screens for better visibility */
}

/* Auth Split Layout */
.auth-split-wrapper {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.auth-split-card {
    display: flex;
    width: 100%;
    max-width: 900px;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.auth-split-brand {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.auth-split-brand::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    z-index: 1;
}

.auth-split-brand > * {
    z-index: 2;
    position: relative;
}

.auth-split-brand h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-split-brand p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.auth-split-brand .logo-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.auth-split-form {
    flex: 1.2;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--card-bg);
}

.auth-split-form h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--text-light);
    font-weight: 800;
}

@media (max-width: 768px) {
    .auth-split-card {
        flex-direction: column;
    }
    .auth-split-brand {
        padding: 40px 20px;
    }
    .auth-split-form {
        padding: 40px 20px;
    }
}
