@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --background: #f8fafc;
    --surface: rgba(255, 255, 255, 0.85);
    --surface-solid: #ffffff;
    --text-strong: #0f172a;
    --text-base: #334155;
    --text-muted: #64748b;
    --wa-color: #25D366;
    --wa-hover: #128C7E;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-strong);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    font-size: 1.4rem;
    color: var(--text-strong);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-base);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-strong);
    cursor: pointer;
    padding: 5px;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
    border-radius: 0 0 clamp(20px, 4vw, 40px) clamp(20px, 4vw, 40px);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text-strong);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Products Section */
.products-section {
    padding: 60px 0;
    scroll-margin-top: 80px;
}

.section-header {
    margin-bottom: 25px;
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-strong);
}

/* Placeholder Sections */
.content-section {
    padding: 60px 0;
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}
.section-body {
    padding: 0 20px;
    font-size: 1.1rem;
    color: var(--text-base);
    line-height: 1.6;
}

/* Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

/* Product Card */
.product-card {
    background: var(--surface-solid);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

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

.product-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio (sebelumnya 100% / 1:1) */
    overflow: hidden;
    background-color: #f1f5f9;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* transition: transform 1.5s ease-in-out; (removed so it snaps back silently) */
}

.product-card:hover .product-image {
    transform: scale(1.08) rotateY(360deg);
    transition: transform 1.5s ease-in-out;
}

.product-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow-sm);
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-desc-container {
    margin-bottom: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.product-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    transition: var(--transition);
}

.product-desc.expanded {
    -webkit-line-clamp: unset;
}

.btn-detail {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    align-self: flex-start;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

/* WhatsApp Button */
.btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background-color: var(--wa-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-wa:hover {
    background-color: var(--wa-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-wa svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Footer */
.footer {
    background: var(--surface-solid);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.25rem;
    color: var(--text-strong);
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-col .logo {
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    color: var(--text-strong);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }
    
    .nav-brand-wrapper {
        width: 100%;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
        background: var(--surface-solid);
        padding: 20px;
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-md);
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }

    .navbar {
        height: auto;
    }
    .hero {
        margin-top: 100px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .hero {
        padding: 60px 20px;
    }
}

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