/* Custom CSS Variables for Industrial/Metallic Theme */
:root {
    --primary-color: #7b8a97; /* Silver/Grey */
    --primary-dark: #4d5b68;
    --accent-color: #1e6091; /* Trust Blue */
    --accent-hover: #184e77;
    --bg-light: #f4f6f8;
    --bg-dark: #12181b;
    --bg-body: #ffffff;
    --bg-surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --text-main: #333d45;
    --text-muted: #6b7c8a;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode {
    --primary-color: #94a3b8;
    --primary-dark: #f1f5f9;
    --accent-color: #38bdf8;
    --accent-hover: #7dd3fc;
    --bg-light: #1e293b;
    --bg-dark: #020617;
    --bg-body: #0f172a;
    --bg-surface: #1e293b;
    --bg-glass: rgba(30, 41, 59, 0.85);
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --white: #ffffff; /* keep white as text color */
    --border-color: #334155;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.5);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
}

body {
    background-color: var(--bg-body);
    line-height: 1.6;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.mt-5 {
    margin-top: 50px;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--white);
}

.text-white {
    color: var(--white) !important;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-dark);
    text-align: center;
}

.section-title.left-align {
    text-align: left;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn i {
    font-size: 1.2rem;
}

.btn-primary {
    background-color: #25D366; /* WhatsApp Green */
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.39);
}

.btn-primary:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--primary-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

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

/* Navbar Premium UI */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 25px 0; /* Larger padding when transparent */
}

.navbar.scrolled, .navbar.solid-nav {
    background-color: var(--bg-glass) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0; /* Shrinks when scrolled */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s ease;
    letter-spacing: -0.5px;
}

.navbar.scrolled .logo, .navbar.solid-nav .logo {
    color: var(--primary-dark) !important;
}

.logo-img {
    height: 42px;
    width: 42px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.navbar .logo:hover .logo-img {
    transform: scale(1.05) rotate(3deg);
}

.navbar .logo span {
    color: var(--white);
    transition: color 0.4s ease;
}

.navbar.scrolled .logo span, .navbar.solid-nav .logo span {
    color: var(--accent-color) !important;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
    text-decoration: none;
}

.navbar.scrolled .nav-links a, .navbar.solid-nav .nav-links a {
    color: var(--text-main) !important;
}

/* Animated Underline Effect */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--accent-color) !important;
}

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

.menu-toggle {
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    display: none;
    transition: color 0.4s ease;
}

.navbar.scrolled .menu-toggle, .navbar.solid-nav .menu-toggle {
    color: var(--primary-dark) !important;
}

/* Nav Controls (Theme & Lang) */
.nav-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 20px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.navbar.scrolled .btn-icon, .navbar.solid-nav .btn-icon {
    color: var(--text-main) !important;
    border-color: var(--border-color);
    background: transparent;
}

.navbar.scrolled .btn-icon:hover, .navbar.solid-nav .btn-icon:hover {
    background: var(--bg-light);
}

#langToggle {
    font-size: 0.85rem;
    font-weight: 700;
    width: 40px;
    border-radius: 12px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('../assets/images/hero_bg.png') center/cover no-repeat;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 24, 27, 0.85) 0%, rgba(30, 96, 145, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e2e8f0;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Products */
.category-title {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.card-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-content {
    padding: 24px;
}

.card-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.card-stats {
    display: flex;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    align-items: center;
    gap: 8px;
}

.card-stats .stars {
    color: #f59e0b;
    font-weight: 600;
}

.card-stats .sold {
    color: var(--text-muted);
}

.price {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    min-height: 50px;
}

.card-content .card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Modal Styling */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-surface);
    margin: 5% auto;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

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

.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    background: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.close-btn:hover {
    color: var(--primary-dark);
}

.modal-img-wrapper {
    width: 100%;
    height: 300px;
    background: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-img-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 30px;
}

.modal-body h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.modal-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.modal-desc {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-desc ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.benefit-list {
    list-style: none;
}

.benefit-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(30, 96, 145, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #60a5fa;
    flex-shrink: 0;
}

.benefit-list h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--white);
}

.benefit-list p {
    color: #a0aec0;
    font-size: 0.95rem;
}

.benefits-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 4px solid #2d3748;
}

/* Applications Section */
.app-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.app-card {
    background: var(--bg-light);
    border-radius: 12px;
    width: calc(25% - 15px);
    min-width: 180px;
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.app-card.has-image {
    padding: 0;
}

.app-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.app-card h4 {
    font-size: 1rem;
    font-weight: 600;
    padding: 15px;
    color: var(--primary-dark);
}

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

/* How to Order */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-card {
    background: var(--bg-surface);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.step-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.step-card p {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 15px;
}

.footer-info h3 span {
    color: var(--accent-color);
}

.footer-links h4, .footer-contact h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 10px;
    transition: var(--transition);
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 15px;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--white);
}

.contact-link i {
    font-size: 1.5rem;
}

.tokopedia-btn {
    color: #42b549; /* Tokopedia Green */
}

.footer-bottom {
    background-color: #020617;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Floating WA */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.39);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.floating-wa:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* Testimonials */
.testimonial-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.testimonial-scroll::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.testimonial-card {
    min-width: 300px;
    background: var(--bg-surface);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    text-align: left;
    scroll-snap-align: start;
    border: 1px solid var(--border-color);
}

.testimonial-card .stars {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-card .review {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.testimonial-card .customer-name {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Responsive */
@media (min-width: 768px) {
    .modal-content {
        flex-direction: row;
    }
    .modal-img-wrapper {
        width: 45%;
        height: auto;
    }
    .modal-body {
        width: 55%;
    }
}

@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .benefits-text {
        order: 2;
    }
    .benefits-image {
        order: 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background-color: var(--bg-glass);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: var(--shadow-md);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 20px;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        color: var(--text-main) !important;
        font-size: 1.1rem;
    }
    
    .nav-links a::after {
        display: none; /* Hide animated underline on mobile for cleaner look */
    }
    .menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-link {
        justify-content: center;
    }
}
