/* =========================================================
   GLOBAL RESET
========================================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
        'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #111827;
}

/* =========================================================
   BRAND COLORS
========================================================= */
:root {
    --violet-primary: #6d28d9;
    --violet-hover: #5b21b6;
    --violet-soft: #c4b5fd;
}

/* =========================================================
   CONTAINER
========================================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero-section {
    position: relative;
    min-height: 68vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 3.5rem;
}

/* Background */
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(2, 6, 23, 0.75),
        rgba(2, 6, 23, 0.9)
    );
    z-index: 2;
}

/* Content wrapper */
.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
}

/* Content block */
.hero-left {
    max-width: 720px;
    color: #ffffff;
    padding-top: 1rem;
}

/* =========================================================
   HERO TEXT (REDUCED)
========================================================= */
.hero-title {
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.6rem;
}

/* 🔥 FIXED SPAN VISIBILITY */
.hero-title span {
    color: #a855f7; /* Strong visible violet */
    text-shadow: 0 0 14px rgba(168, 85, 247, 0.45);
}

.hero-description {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 1.6rem;
    color: #e5e7eb;
}

/* =========================================================
   HERO ACTIONS
========================================================= */
.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

/* Primary button */
.btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.88rem;
    background: var(--violet-primary);
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-primary:hover {
    background: var(--violet-hover);
    transform: translateY(-1px);
}

/* Outline button */
.btn-outline {
    padding: 0.6rem 1.5rem;
    font-size: 0.88rem;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-outline:hover {
    background: #ffffff;
    color: var(--violet-primary);
}

/* =========================================================
   RESPONSIVE TUNING
========================================================= */

/* ---------- Tablets ---------- */
@media (max-width: 768px) {
    .hero-section {
        min-height: 56vh;
        padding-top: 3rem;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-description {
        font-size: 0.88rem;
    }
}

/* ---------- Phones ---------- */
@media (max-width: 480px) {
    .hero-section {
        min-height: 52vh;
        padding-top: 2.8rem;
    }

    .hero-left {
        padding-top: 0.5rem;
    }

    .hero-title {
        font-size: 1.45rem;
        line-height: 1.15;
    }

    .hero-description {
        font-size: 0.82rem;
        margin-bottom: 1.2rem;
    }

    /* Buttons: LEFT & RIGHT */
    .hero-actions {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .btn-primary,
    .btn-outline {
        flex: 1;
        padding: 0.55rem 0.75rem;
        font-size: 0.82rem;
        text-align: center;
    }

    .btn-outline {
        border-width: 1.5px;
    }
}

/* Highlighted Name */
.hero-highlight {
    color: #a855f7;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Professional Emoji Styling */
.hero-emoji {
    margin-left: 6px;
    font-size: 0.9em;       /* slightly smaller than text */
    opacity: 0.85;          /* subtle */
    vertical-align: middle;
}





/* =========================================================
   TRUST CARDS SECTION (OVERLAPS HERO)
========================================================= */
.trust-section {
    position: relative;
    margin-top: -90px; /* 🔥 pulls cards into hero */
    z-index: 5;
}

.trust-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Card */
.trust-card {
    background: #ffffff;
    padding: 1.6rem 1.5rem;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    text-align: left;
    transition: transform .3s ease, box-shadow .3s ease;
}

.trust-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 55px rgba(0,0,0,0.12);
}

/* Icon */
.trust-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(109,40,217,0.12);
    color: var(--violet-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    font-size: 18px;
}

/* Title */
.trust-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #111827;
}

/* Text */
.trust-card p {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.45;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
    .trust-section {
        margin-top: -70px;
    }

    .trust-container {
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .trust-section {
        margin-top: -55px;
    }

    .trust-container {
        grid-template-columns: 1fr;
    }

    .trust-card {
        text-align: center;
    }

    .trust-icon {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .trust-section {
        margin-top: -40px;
    }

    .trust-card {
        padding: 1.3rem 1.2rem;
    }
}



/* =========================================================
   DATA CATEGORIES SECTION
========================================================= */
.category-section {
    padding: 4rem 0 5rem;
    background: #f9fafb;
}

/* =========================================================
   SECTION HEADER
========================================================= */
.section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 2.8rem;
}

.section-header h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 0.95rem;
    color: #6b7280;
}

/* =========================================================
   GRID LAYOUT
========================================================= */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
}

/* =========================================================
   CATEGORY CARD (CLICKABLE)
========================================================= */
.category-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.6rem 1.4rem;

    display: flex;
    flex-direction: column;
    align-items: center;

    min-height: 250px;
    text-align: center;
    color: #111827;
    text-decoration: none;

    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.category-card:hover:not(.disabled) {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

/* Disabled (out of stock) */
.category-card.disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* =========================================================
   IMAGE BOX
========================================================= */
.category-image {
    width: 90px;
    height: 90px;
    margin-bottom: 0.7rem;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;
    background: #ffffff;
}

.category-image img {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
}

/* =========================================================
   TITLE (NO WRAP)
========================================================= */
.category-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;

    margin-bottom: auto;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* =========================================================
   ACTIONS (LEFT / RIGHT)
========================================================= */
.category-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

/* =========================================================
   STOCK BADGES
========================================================= */
.stock-badge {
    padding: 0.35rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 999px;
}

.in-stock {
    background: #dcfce7;
    color: #15803d;
}

.out-stock {
    background: #fee2e2;
    color: #b91c1c;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn-buy {
    background: #facc15;
    color: #111827;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.btn-buy:hover {
    background: #fbbf24;
}

.btn-disabled {
    background: #e5e7eb;
    color: #6b7280;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* Tablet & normal mobile → 2 per row */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Very small phones → 1 per row */
@media (max-width: 360px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* Smaller fonts for small screens */
@media (max-width: 480px) {
    .category-card {
        min-height: 230px;
        padding: 1.3rem 1.1rem;
    }

    .category-card h4 {
        font-size: 0.85rem;
    }

    .stock-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    .btn-buy,
    .btn-disabled {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }
}


/* Clickable card cursor */
.category-card.clickable-card {
    cursor: pointer;
}

/* Disabled card */
.category-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Prevent text selection on click */
.category-card {
    user-select: none;
}


/* =========================================================
   WHY CHOOSE US SECTION
========================================================= */
.why-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff, #f9fafb);
}

/* Header */
.why-section .section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 3rem;
}

.why-section .section-header h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
}

.why-section .section-header p {
    font-size: 0.95rem;
    color: #6b7280;
}

/* =========================================================
   GRID
========================================================= */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* =========================================================
   CARD (SEQUENTIAL ANIMATION)
========================================================= */
.why-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 2.2rem 1.8rem;
    text-align: center;

    box-shadow: 0 16px 40px rgba(0,0,0,0.06);
    transition: transform .4s ease, box-shadow .4s ease;

    /* Animation base */
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    animation: revealCard .9s cubic-bezier(.22,1,.36,1) forwards;
    will-change: transform, opacity;
}

/* 🔥 TRUE ONE-AFTER-THE-OTHER SEQUENCE */
.why-card:nth-child(1) { animation-delay: 0.15s; }
.why-card:nth-child(2) { animation-delay: 0.35s; }
.why-card:nth-child(3) { animation-delay: 0.55s; }
.why-card:nth-child(4) { animation-delay: 0.75s; }

/* Hover polish */
.why-card:hover {
    transform: translateY(-12px) scale(1);
    box-shadow: 0 28px 70px rgba(0,0,0,0.14);
}

/* =========================================================
   ICON
========================================================= */
.why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.1rem;

    border-radius: 18px;
    background: linear-gradient(
        135deg,
        rgba(109,40,217,0.18),
        rgba(109,40,217,0.08)
    );
    color: var(--violet-primary);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;
    transition: transform .4s ease, box-shadow .4s ease;
}

.why-card:hover .why-icon {
    transform: scale(1.12) rotate(-4deg);
    box-shadow: 0 10px 25px rgba(109,40,217,0.25);
}

/* =========================================================
   TEXT
========================================================= */
.why-card h4 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: #111827;
}

.why-card p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
}

/* =========================================================
   KEYFRAMES (PREMIUM FEEL)
========================================================= */
@keyframes revealCard {
    0% {
        opacity: 0;
        transform: translateY(45px) scale(0.95);
    }
    60% {
        opacity: 1;
        transform: translateY(-6px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .why-section {
        padding: 4rem 0;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .why-card {
        padding: 2rem 1.5rem;
    }

    .why-section .section-header h2 {
        font-size: 1.6rem;
    }
}
