/* ======================================
   🌙 HarDein Dark Theme CSS (Final v3)
   ====================================== */

/* ====== Font Import ====== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Montserrat:wght@500&display=swap');

/* ====== Root Variables ====== */
:root {
    --color-bg: #121212;
    --color-bg-secondary: #1A1A1A;
    --color-surface: #282828;

    --color-primary-start: #5a4bda;
    --color-primary-end: #ff8b4d;
    --color-primary-gradient: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-end));

    --color-text: #E0E0E0;
    --color-text-muted: #A0A0A0;
    --color-border: #3A3A3A;

    --border-radius: 10px;

    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.25);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.35);
}

/* =================================================
   GLOBAL RESET
   ================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: Poppins, sans-serif;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

a {
    color: var(--color-primary-start);
    text-decoration: none;
    transition: 0.3s;
}
a:hover {
    color: var(--color-primary-end);
}

/* =================================================
   NAVBAR + HAMBURGER MENU
   ================================================= */

.navbar {
    background: var(--color-bg-secondary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: Montserrat, sans-serif;
    background: var(--color-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Desktop Menu */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.5rem;
}

.nav-menu a {
    color: var(--color-text-muted);
    font-weight: 600;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}
.nav-menu a:hover {
    color: var(--color-text);
    border-image: var(--color-primary-gradient) 1;
    border-image-slice: 1;
}



/* ===== HAMBURGER ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    display: block;
}

/* ===== Mobile Menu ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: var(--color-bg-secondary);
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.5rem 0;
        box-shadow: var(--shadow-light);
        border-top: 1px solid var(--color-border);
    }

    .nav-menu.show {
        display: flex;
        animation: fadeDown 0.25s ease-in-out;
    }

    @keyframes fadeDown {
        from { opacity: 0; transform: translateY(-10px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}

/* =================================================
   BUTTONS
   ================================================= */

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: inline-block;
    font-weight: 600;
    transition: 0.3s;
    border: none;
}

.btn-primary {
    background: var(--color-primary-gradient);
    color: white;
    box-shadow: var(--shadow-light);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.btn-secondary:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-primary-start);
}

/* =================================================
   HERO SECTION
   ================================================= */

.hero {
    text-align: center;
    padding: 6rem 0;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 200px;
    height: 220px;
    background-image: url('../assets/images/hardein-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin: auto;
    opacity: 0.06;
    transform: scale(0.35);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: bold;
    background: var(--color-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 2;
    position: relative;
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

/* =================================================
   PRODUCTS GRID
   ================================================= */

.products {
    padding: 4rem 0;
}

.products h2 {
    font-size: 2.3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--color-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.product-card {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: 0.3s;
    box-shadow: var(--shadow-light);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.3rem;
    font-weight: bold;
}

.card-content p {
    margin-top: 0.7rem;
    background: var(--color-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.1rem;
    font-weight: 600;
}

/* =================================================
   FOOTER
   ================================================= */

.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    text-align: center;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

/* =================================================
   RESPONSIVE FIXES
   ================================================= */

@media (max-width: 992px) {
    .hero h1 { font-size: 2.7rem; }
}

@media (max-width: 768px) {
    .hero { padding: 4rem 0; }
    .hero h1 { font-size: 2.3rem; }
    .hero p { font-size: 1.05rem; }
}

/* ============================
   FIX ANDROID HAMBURGER NOT SHOWING
   ============================ */
@media screen and (max-width: 1024px) {
    .nav-toggle {
        display: flex !important;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.show {
        display: flex !important;
    }
}

