/*
---
File: style.css
Deskripsi: File ini berisi semua styling untuk website Vinarky.
Versi: 1.3 (Branding & Pembaruan Konten)
---
*/

/* 
--- Variabel Global ---
*/
:root {
    --primary-color: #0A192F;
    --secondary-color: #F8F9FA;
    --accent-color: #64FFDA;
    --text-muted-color: #8892B0;
    --card-bg-color: #112240;
    --main-font: 'Poppins', sans-serif;
}

/* 
--- Reset dan Pengaturan Dasar ---
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--main-font);
    background-color: var(--primary-color);
    color: var(--secondary-color);
    line-height: 1.6;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4" viewBox="0 0 4 4"><path fill="%239C92AC" fill-opacity="0.05" d="M1 3h1v1H1V3zm2-2h1v1H3V1z"></path></svg>');
}

/* 
--- Utilitas Umum ---
*/
.section-container {
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    /* Fluid Typography untuk judul bagian */
    font-size: clamp(2.2rem, 4vw + 1rem, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* 
--- Header dan Navigasi ---
*/
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    transition: top 0.3s;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 
--- Hero Section ---
*/
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    /* Fluid Typography untuk judul hero */
    font-size: clamp(2.8rem, 5vw + 1rem, 4rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted-color);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 
--- Grid Kartu ---
*/
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* 
--- Desain Kartu (Card) ---
*/
.card {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    border: 1px solid #1d2d4f;
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Mencegah konten keluar dari border-radius */
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -15px rgba(2,12,27,0.7);
}

/* Penyesuaian padding internal untuk semua kartu NON-ARTIKEL */
.card:not(.card-article) {
     padding: 2.5rem; 
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.card-detail {
    color: var(--text-muted-color);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.card-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.card-buttons {
    display: flex;
    gap: 1rem;
    /* Mencegah tombol mengecil aneh */
    flex-wrap: wrap;
}

/* Kartu Artikel: Perbaikan Tata Letak */
.card-article {
    padding: 0;
}

.card-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    filter: grayscale(80%) contrast(110%);
    transition: filter 0.3s ease;
}

.card-article:hover .card-thumbnail {
    filter: grayscale(0%) contrast(100%);
}

/* KONTEN KARTU ARTIKEL SEKARANG KONSISTEN */
.card-article .card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Memastikan konten mengisi sisa ruang */
}


/* 
--- Tombol (Button) ---
*/
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Menengahkan teks tombol */
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
    box-shadow: 0 0 15px 5px rgba(100, 255, 218, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    box-shadow: 0 0 15px 5px rgba(100, 255, 218, 0.2);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* 
--- Animasi Reveal on Scroll ---
*/
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 
--- Footer ---
*/
.main-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted-color);
    font-size: 0.9rem;
}

.main-footer .fa-heart {
    color: var(--accent-color);
}

/* 
--- Media Queries untuk Responsivitas ---
*/
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        background-color: var(--primary-color);
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease-in-out;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .nav-toggle {
        display: block;
    }

    .section-container {
        padding: 4rem 1.5rem;
    }

    /* Perbaikan Tombol Terpotong di Layar Kecil */
    .card-buttons {
        /* Memastikan tombol memenuhi lebar jika perlu */
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        /* Sedikit mengurangi padding di mobile */
        padding: 0.7rem 1rem;
    }
}
