/* VARIABEL WARNA (Sesuai Website Utama) */
:root {
    --primary: #d62828;
    --secondary: #ba181b;
    --accent: #e5383b;
    --dark: #161a1d;
    --light: #f5f3f4;
    --gold: #d4af37;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(245, 243, 244, 0.98);
    padding: 1rem 5%;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
    transition: var(--transition);
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: white;
    margin: 0;
    transition: var(--transition);
}

.header.scrolled .logo-text h1 {
    color: var(--dark);
}

.logo-text span {
    color: var(--gold);
}

.logo-text p {
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: 300;
    color: white;
    margin: 0;
    transition: var(--transition);
}

.header.scrolled .logo-text p {
    color: var(--dark);
}

/* NAVIGATION */
.nav {
    margin-right: auto;
    margin-left: 40px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding: 8px 15px;
    border-radius: 30px;
    transition: var(--transition);
}

.header.scrolled .nav-link {
    color: var(--dark);
}

.nav-link:hover {
    color: var(--gold) !important;
    background: rgba(255, 255, 255, 0.1);
}

.header.scrolled .nav-link:hover {
    background: rgba(22, 26, 29, 0.05);
}

.nav-link.active {
    background: var(--gold);
    color: var(--dark) !important;
    font-weight: 600;
}

/* MOBILE MENU */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
}

.header.scrolled .mobile-menu-btn {
    color: var(--dark);
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(22, 26, 29, 0.9), rgba(214, 40, 40, 0.8));
}

.hero-content {
    max-width: 1200px;
    padding: 0 5%;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero h1 span {
    color: var(--gold);
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gold);
    z-index: -1;
    opacity: 0.5;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* PRODUCT SECTION */
.section {
    padding: 6rem 5%;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--gold);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* PRODUCT GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.product-card:hover {
    transform: perspective(1000px) rotateY(5deg) rotateX(5deg) translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.product-card:hover::before {
    opacity: 0.9;
}

.product-card:hover .product-category,
.product-card:hover .product-title,
.product-card:hover .product-features li,
.product-card:hover .product-price {
    color: white;
}

.product-card:hover .product-features li i {
    color: white;
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
    opacity: 0.8;
}

.product-body {
    padding: 25px;
}

.product-category {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    transition: var(--transition);
}

.product-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    transition: var(--transition);
}

.product-features {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.product-features li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 25px;
    color: #555;
    transition: var(--transition);
}

.product-features li i {
    color: var(--gold);
    position: absolute;
    left: 0;
    top: 3px;
    transition: var(--transition);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 1.5rem 0;
    transition: var(--transition);
}

.product-price span {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
    transition: var(--transition);
}

.product-card:hover .product-price span {
    color: rgba(255, 255, 255, 0.7);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn i {
    margin-right: 8px;
}

.btn-dark {
    background: var(--dark);
    color: white;
    border: 2px solid var(--dark);
}

.btn-dark:hover {
    background: transparent;
    color: var(--dark);
    transform: translateY(-5px);
}

.btn-gold {
    background: var(--gold);
    color: var(--dark);
    border: 2px solid var(--gold);
}

.btn-gold:hover {
    background: transparent;
    color: var(--gold);
    transform: translateY(-5px);
}

/* FOOTER */
.footer {
    padding: 6rem 5% 3rem;
    background: var(--dark);
    color: white;
    position: relative;
}

.footer-wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%23161a1d" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%23161a1d" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23161a1d"/></svg>') no-repeat;
    background-size: cover;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--gold);
    bottom: 0;
    left: 0;
    border-radius: 3px;
}

.footer-column p {
    line-height: 1.8;
    color: #aaa;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-5px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.footer-links a i {
    margin-right: 10px;
    color: var(--gold);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.footer-links a:hover i {
    transform: scale(1.2);
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info i {
    color: var(--gold);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 5px;
    flex-shrink: 0;
}

.contact-info div {
    flex: 1;
}

.contact-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: white;
    font-weight: 600;
}

.contact-info p, 
.contact-info a {
    margin: 0;
    color: #aaa;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--gold);
}

.copyright {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #777;
    font-size: 0.9rem;
}

/* BACK TO TOP */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: #c9a227;
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== */
/* PENAMBAHAN UNTUK MOBILE */
/* ==================== */

/* Touch Target yang Lebih Besar */
.nav-link, .btn {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Optimasi untuk Layar Kecil */
@media (max-width: 768px) {
    /* Header Mobile */
    .header {
        padding: 1rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text p {
        font-size: 0.6rem;
    }
    
    /* Mobile Menu */
    .mobile-menu-btn {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: var(--dark);
        padding: 80px 20px;
        margin: 0;
    }
    
    .nav-list {
        flex-direction: column;
    }
    
    /* Hero Section Mobile */
    .hero {
        height: 50vh;
        min-height: 300px;
        padding-top: 70px;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Product Section Mobile */
    .section {
        padding: 3rem 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-body {
        padding: 1.5rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 3rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Back to Top Mobile */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    /* Disable hover effects on mobile */
    .product-card:hover {
        transform: none;
    }
    
    .product-card:hover::before {
        opacity: 0;
    }
    
    .product-card:hover .product-category,
    .product-card:hover .product-title,
    .product-card:hover .product-features li,
    .product-card:hover .product-price,
    .product-card:hover .product-features li i {
        color: inherit;
    }
    
    .product-card:hover .product-price span {
        color: #999;
    }
    
    .product-card:hover .product-image img {
        transform: none;
        opacity: 1;
    }
}

/* Optimasi untuk Layar Sangat Kecil */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 10px;
    }
}

/* Landscape Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        padding: 100px 0;
    }
}