:root {
    --primary: #374151;
    --primary-light: #6B7280;
    --secondary: #9CA3AF;
    --cream: #F3F4F6;
    --cream-dark: #E5E7EB;
    --dark: #1F2937;
    --light: #F9FAFB;
    --gray: #6B7280;
    --success: #10B981;
    --danger: #EF4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(107, 114, 128, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-light);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    color: var(--gray);
}

/* Music Player Button */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 90;
    background: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.music-player:hover {
    transform: scale(1.1);
    background: var(--primary-light);
}

.music-player.playing i {
    color: var(--secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
}

.logo i {
    font-size: 1.8rem;
    animation: pulse 2s infinite;
    color: var(--secondary);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Hamburger Menu Button - Diperkecil */
#menu-btn {
    position: relative;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 10001;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
    background: transparent;
    border: none;
}
#menu-btn.open {
    transform: rotate(-45deg);
}
#menu-btn span {
    display: block;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}
#menu-btn span:nth-child(1) {
    width: 100%;
    transform-origin: center;
}
#menu-btn span:nth-child(2) {
    width: 70%;
    transform-origin: center;
}
#menu-btn span:nth-child(3) {
    width: 40%;
    transform-origin: center;
}
#menu-btn.open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
    width: 100%;
}
#menu-btn.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}
#menu-btn.open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
    width: 100%;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

nav a:hover:after {
    width: 100%;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 450px;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 0 0 15px 15px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    background-blend-mode: overlay;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    max-width: 800px;
    padding: 0 20px;
}

.slide h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease;
}

.slide p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    animation: fadeInUp 1.2s ease;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--secondary) 0%, #7C8596 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    margin-left: 10px;
}

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

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    color: var(--primary);
    font-size: 1.8rem;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.products {
    padding: 50px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--primary-light);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--secondary) 0%, #7C8596 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-content {
    padding: 18px;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.product-desc {
    color: var(--gray);
    margin-bottom: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.product-button {
    width: 100%;
    text-align: center;
}

.contact-info {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 30px;
    border-radius: 12px;
    color: white;
    margin-top: 25px;
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin: 25px auto 0;
}

.contact-info h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-info p {
    margin-bottom: 12px;
    font-size: 1rem;
}

.contact-info .whatsapp {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 12px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.contact-info .whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
}

footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 50px 0 25px;
    margin-top: 50px;
    border-top: 5px solid var(--secondary);
}

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

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
    width: 100%;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 35px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary), var(--cream));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.footer-column p {
    margin-bottom: 12px;
    opacity: 0.9;
    font-size: 0.9rem;
}

.footer-column ul {
    list-style: none;
    width: 100%;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-column ul li a:hover {
    opacity: 1;
    padding-left: 5px;
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    justify-content: center;
    width: 100%;
}

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

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.85rem;
}

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

/* Responsive styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        gap: 15px;
    }
    
    #menu-btn {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
        transition: all 0.3s ease;
        z-index: 10000;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 25px;
    }
    
    nav a {
        font-size: 1.1rem;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .slide h1 {
        font-size: 2rem;
    }
    
    .slide p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 8px 18px;
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .btn-outline {
        margin-left: 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .contact-info {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 350px;
    }
    
    .slide h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        display: block;
        margin: 0 auto 10px;
        width: 80%;
    }
    
    .btn-outline {
        margin-left: auto;
    }
}
