/* ==========================================================================
    1. Global & Variables
    ========================================================================== */
:root {
    --primary-color: #2d5016; /* Dark Green */
    --background-light: #9ad7f3; /* Light Blue */
    --text-dark: #333;
    --text-light: #fff;
    --text-muted: #666;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(45, 80, 22, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-radius-card: 15px;
    --border-radius-button: 25px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, var(--background-light) 0%, #b8e2f5 50%, var(--background-light) 100%);
    color: var(--text-dark);
    position: relative;
}

/* Background pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 25% 25%, rgba(45, 80, 22, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(154, 215, 243, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Disable text selection */
.noselect {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ==========================================================================
    2. Layout: Header, Main, Sidebar, Footer
    ========================================================================== */

/* --- Enhanced Header --- */
header {
    display: flex;
    border-bottom: 1px solid rgba(45, 80, 22, 0.2);
    justify-content: flex-start;
    align-items: center;
    padding: 15px 30px;
    background: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a6b1f 100%);
    color: var(--text-light);
    box-shadow: 0 4px 20px rgba(45, 80, 22, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1000;
}

header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--background-light), transparent, var(--background-light));
}

.left-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}

.left-section img {
    height: 35px;
    margin-right: 10px;
    flex-shrink: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.left-section img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.website-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
    background: linear-gradient(45deg, #fff, var(--background-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-and-name {
    display: flex;
    align-items: center;
}

/* Enhanced Navigation */
.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 10px;
    font-weight: 600;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-light);
    padding: 12px 20px;
    border-radius: var(--border-radius-button);
    transition: var(--transition-smooth);
    white-space: nowrap;
    position: relative;
    background: rgba(228, 228, 228, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-navigation a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-navigation a:hover::before,
.main-navigation a.active::before {
    opacity: 1;
}

.main-navigation a:hover,
.main-navigation a.active {
    background: rgba(154, 215, 243, 0.3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Updated Main Content Layout --- */
.main-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Ensure both main and info-container have consistent spacing */
main, .info-container {
    margin-bottom: 2rem;
}

main:last-child, .info-container:last-child {
    margin-bottom: 0;
}

main {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-card);
    box-shadow: 0 8px 32px rgba(45, 80, 22, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transition: var(--transition-smooth);
}

main:hover {
    box-shadow: 0 12px 40px rgba(45, 80, 22, 0.15);
    transform: translateY(-2px);
}

/* --- Updated Info Container (Full Width with Proper Spacing) --- */
.info-container {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-card);
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(45, 80, 22, 0.15);
    position: relative;
    overflow: hidden;
    /* Remove width: 100% to let container handle the spacing */
}

.info-container:hover {
    box-shadow: 0 12px 40px rgba(45, 80, 22, 0.2);
    transform: translateY(-2px);
}

.info-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--background-light), var(--primary-color));
}

/* Info Sections Grid Layout */
.info-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* --- Enhanced Footer --- */
footer {
    padding: 30px 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a6b1f 100%);
    color: var(--text-light);
    text-align: center;
    border-top: 1px solid rgba(154, 215, 243, 0.3);
    box-shadow: 0 -4px 20px rgba(45, 80, 22, 0.2);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--background-light), transparent, var(--background-light));
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
    3. Enhanced Components
    ========================================================================== */

/* --- Enhanced Hero Section --- */
.hero-section {
    padding: 120px 50px;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    background-image: url('../images/Test EEVEE 3.4 L.png');
    background-size: cover;
    background-position: center;
    border-radius: 0 0 30px 30px;
    overflow: hidden;
}

/* Cari bagian .hero-overlay */

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Ubah gradien latar belakang untuk membuatnya lebih gelap atau lebih solid */
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.5) 0%, /* Mulai dengan overlay hitam 50% */
        rgba(0, 0, 0, 0.3) 50%, /* Pertahankan kegelapan */
        rgba(0, 0, 0, 0.5) 100%); /* Akhiri dengan overlay hitam 50% */
    /* Atau Anda bisa menggunakan warna solid dengan opasitas */
    /* background-color: rgba(0, 0, 0, 0.5); */

    backdrop-filter: blur(5px); /* Tingkatkan blur agar latar belakang tidak terlalu mengganggu */
}

/* Ubah juga warna teks agar cocok dengan latar belakang yang lebih gelap */
.intro-content h1,
.intro-content p {
    color: var(--text-light); /* Ubah warna teks menjadi putih atau terang */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Enhanced Blue Box List */
.list-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.centered-list {
    background-color: var(--text-light);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
    border-radius: 20px;
    list-style-position: inside;
    text-align: center;
    padding: 25px 50px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(45, 80, 22, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-smooth);
    max-width: 300px; /* Contoh: batasi lebar kotak menjadi 300px */
    margin: 2rem 50px; /* Otomatis menempatkan kotak di tengah */
}

ul.centered-list {
    padding: 10px 10px; /* Aturan ini akan diterapkan karena lebih spesifik */
}

.centered-list:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(45, 80, 22, 0.3);
}

/* --- Enhanced Call-to-action Buttons --- */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}

.cta-btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: var(--border-radius-button);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-primary {
    background: linear-gradient(135deg, var(--primary-color), #3a6b1f);
    color: var(--text-light);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.3);
}

.cta-primary:hover {
    background: linear-gradient(135deg, #1a330e, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(45, 80, 22, 0.4);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(45, 80, 22, 0.4);
}

/* --- Enhanced Product Grid & Cards --- */
/* Mengatur ulang grid produk agar lebih responsif */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0; /* Tambahkan padding agar ada jarak */
}

/* Tambahan styling untuk product-card agar lebih rapi */
.product-card {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px; /* Tinggi gambar tetap */
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.product-format {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding: 4px 12px;
    background: rgba(154, 215, 243, 0.2);
    border-radius: 15px;
    display: inline-block;
}

/* --- Enhanced Info Container Components --- */
.info-section {
    margin-bottom: 0; /* Remove bottom margin since we're using grid */
    padding: 1.5rem;
    background: rgba(154, 215, 243, 0.05);
    border-radius: var(--border-radius-card);
    border: 1px solid rgba(45, 80, 22, 0.1);
    position: relative;
    transition: var(--transition-smooth);
}

.info-section:hover {
    background: rgba(154, 215, 243, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 80, 22, 0.1);
}

.info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

.info-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--background-light));
    border-radius: 2px;
}

.centered-list,
.sidebar-tips,
.sidebar-resources,
ol.sidebar-tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-tips li, ol.sidebar-tips li {
    margin-bottom: 12px;
    color: #555;
    padding: 10px 15px;
    background: rgba(154, 215, 243, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    transition: var(--transition-smooth);
    position: relative;
}

.sidebar-tips li:hover {
    background: rgba(154, 215, 243, 0.2);
    transform: translateX(5px);
}

.sidebar-resources a {
    display: block;
    margin-bottom: 12px;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(45, 80, 22, 0.2);
    font-weight: 600;
}

.sidebar-resources a:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(45, 80, 22, 0.3);
}

/* ==========================================================================
    4. Enhanced Responsive Design
    ========================================================================== */

@media (max-width: 1200px) {
    .hero-section {
        padding: 80px 30px;
    }
    .intro-content h1 {
        font-size: 2.8em;
    }
    .main-content-container {
        padding: 1.5rem;
    }
}

@media (max-width: 992px) {
    header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px;
    }

    .left-section {
        flex-direction: column;
        align-items: center;
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    .logo-and-name {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .main-navigation {
        width: 100%;
        justify-content: center;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
        gap: 8px;
    }

    .footer-container {
        flex-direction: column;
        gap: 15px;
    }

    .product-grid, .product-grid-show-all {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom untuk tablet */
        gap: 1.5rem;
    }
}

@media (min-width: 993px) {
    .left-section {
        flex-direction: row;
        flex-wrap: nowrap;
    }
    
    .main-navigation ul {
        flex-wrap: nowrap;
    }
}

@media (max-width: 768px) {
    header, footer {
        padding: 20px;
    }
    
    .left-section img {
        height: 40px;
    }
    
    .website-name {
        font-size: 1.3rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .cta-btn {
        width: 80%;
        padding: 14px 28px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Kolom fleksibel untuk mobile besar */
        gap: 20px;
        padding: 1rem;
    }
    
    .main-content-container {
        padding: 1rem;
    }
    
    .info-container {
        padding: 1.5rem;
    }
    
    .info-sections-grid {
        gap: 1rem;
    }
    
    .info-section {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .left-section img {
        height: 35px;
    }
    
    .website-name {
        font-size: 1.1rem;
    }
    
    .intro-content h1 {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr; /* 1 kolom untuk mobile kecil */
        padding: 1rem;
    }
    
    .main-navigation ul {
        gap: 5px;
    }
    
    .main-navigation a {
        padding: 10px 12px;
        font-size: 0.9em;
    }
    
    .main-content-container {
        padding: 0.5rem;
    }
    
    .info-container {
        padding: 1rem;
    }
    
    .info-sections-grid {
        gap: 1rem;
    }
    
    .info-section {
        padding: 1rem;
    }
}

/* Additional animations and micro-interactions */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.product-card {
    animation: fadeIn 0.6s ease forwards;
}

.sidebar-section {
    animation: slideInFromLeft 0.8s ease forwards;
}

/* Enhanced loading states */
.product-image img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}