/* ===================================
   TOKO HABIBIE - COMPLETE STYLE.CSS
   =================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

/* ===================================
   ANIMATIONS & KEYFRAMES
   =================================== */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Fade Section Animation Classes */
.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   NAVIGATION
   =================================== */

nav {
    background: #cc0000;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
}

.nav-logo h1 {
    font-size: 20px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.logo-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 14px;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

.nav-wa {
    background: white !important;
    color: #25d366 !important;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s !important;
}

.nav-wa:hover {
    transform: scale(1.05);
    opacity: 1 !important;
}

/* ===================================
   HERO SECTION
   =================================== */

#hero {
    background: linear-gradient(to bottom, #ffe0e0 0%, #ffffff 100%);
    padding: 80px 20px;
    text-align: center;
    animation: fadeIn 0.8s ease;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #cc0000;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 25px;
    animation: slideDown 0.5s ease;
}

#hero h1 {
    font-size: 42px;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-sub {
    font-size: 17px;
    color: #666;
    margin-bottom: 35px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: white;
    padding: 18px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #cc0000;
    border: 2px solid #cc0000;
    padding: 16px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #cc0000;
    color: white;
    transform: translateY(-2px);
}

/* ===================================
   TENTANG SECTION
   =================================== */

#tentang {
    padding: 80px 20px;
    background: white;
}

.tentang-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 2px;
    color: #cc0000;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

#tentang h2 {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.tentang-kiri p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.btn-tentang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cc0000;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: gap 0.3s;
}

.btn-tentang:hover {
    gap: 15px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-num {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: #cc0000;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* ===================================
   PRODUK SECTION (HOME - 6 PRODUCTS)
   =================================== */

#produk {
    padding: 80px 20px;
    background: #f8f9fa;
}

#produk h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.produk-sub {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 16px;
}

.search-wrapper {
    max-width: 500px;
    margin: 0 auto 30px;
}

#searchInput {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 15px;
    transition: all 0.3s;
    background: white;
}

#searchInput:focus {
    outline: none;
    border-color: #cc0000;
    box-shadow: 0 0 0 4px rgba(204, 0, 0, 0.1);
}

/* Grid for homepage (6 products) */
    .grid-produk {
        grid-template-columns: repeat(1, 1fr); /* 1 column for 3 products stacked */
        gap: 15px;
        max-width: 400px; /* narrower on mobile */
        margin: 0 auto;
    }


/* Product Card */
.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
}

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

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f0f0;
}

.card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 15px;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-desc {
    font-size: 14px;
    color: #666;
    margin: 0 15px 10px;
    line-height: 1.5;
}

.card-harga {
    font-size: 20px;
    font-weight: 800;
    color: #cc0000;
    margin: 0 15px 15px;
}

/* Buttons in card */
.btn-order {
    display: block;
    background: #cc0000;
    color: white;
    text-align: center;
    padding: 12px;
    margin: 0 15px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-order:hover {
    background: #a00000;
}

/* ===================================
   TESTIMONI
   =================================== */

#testimoni {
    padding: 80px 20px;
    background: white;
}

#testimoni h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 50px;
    color: #1a1a1a;
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.testi-card {
    background: #f8f9fa;
    padding: 35px;
    border-radius: 20px;
    position: relative;
    transition: transform 0.3s;
}

.testi-card:hover {
    transform: translateY(-5px);
}

.testi-stars {
    color: #ffa502;
    font-size: 18px;
    margin-bottom: 20px;
}

.testi-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

.testi-nama {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 15px;
}

/* ===================================
   KONTAK
   =================================== */

#kontak {
    padding: 80px 20px;
    background: #1a1a1a;
    color: white;
    text-align: center;
}

#kontak h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 30px;
}

#kontak p {
    margin-bottom: 15px;
    font-size: 17px;
}

#kontak a {
    display: inline-block;
    background: #25d366;
    color: white;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    margin: 20px 0;
    transition: transform 0.3s;
}

#kontak a:hover {
    transform: scale(1.05);
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

.social-wa { background: #25d366; }
.social-tiktok { background: #000000; }
.social-shopee { background: #ee4d2d; }
.social-ig { background: #e4405f; }

/* ===================================
   FLOATING WHATSAPP
   =================================== */

.float-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s;
    animation: float 3s ease-in-out infinite;
}

.float-wa:hover {
    transform: scale(1.1);
}

/* ===================================
   PROMO BANNER
   =================================== */

.promo-banner {
    background: linear-gradient(90deg, #cc0000 0%, #ff4757 100%);
    color: white;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1001;
    animation: slideDown 0.5s ease;
}

/* ===================================
   RESPONSIVE (MOBILE)
   =================================== */

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    #hero h1 {
        font-size: 28px;
    }
    
    .tentang-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Mobile: 2 columns for products */
    .grid-produk {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .card img {
        height: 160px;
    }
    
    .card h3 {
        font-size: 14px;
        height: 40px;
    }
    
    .card-harga {
        font-size: 16px;
    }
    
    .float-wa {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .grid-produk {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    #hero h1 {
        font-size: 24px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
