/* =========================================================
   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 3rem;
}

.section-header h2 {
    font-size: 2rem;
    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: 2rem;
}

/* =========================================================
   CATEGORY CARD
========================================================= */

.category-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    color: #111827;
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
    user-select: none;
}

.category-card.clickable-card {
    cursor: pointer;
}

.category-card:hover:not(.disabled) {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

.category-card.disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

/* =========================================================
   FULL WIDTH IMAGE
========================================================= */

.category-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

/* =========================================================
   CARD BODY
========================================================= */

.category-body {
    padding: 1.5rem 1.3rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.category-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: auto;
    line-height: 1.4;
}

/* =========================================================
   ACTIONS
========================================================= */

.category-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.3rem;
}

/* Center when out of stock */
.category-actions.centered {
    justify-content: center;
}

/* =========================================================
   STOCK BADGES
========================================================= */

.stock-badge {
    padding: 0.35rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 999px;
    display: inline-flex;
}

.in-stock {
    background: #dcfce7;
    color: #15803d;
}

.out-stock {
    background: #fee2e2;
    color: #b91c1c;
}

/* =========================================================
   BUY BUTTON
========================================================= */

.btn-buy {
    background: #facc15;
    color: #111827;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: background .2s ease, transform .2s ease;
}

.btn-buy:hover {
    background: #fbbf24;
    transform: translateY(-2px);
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* Tablets → 2 per row */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   PHONES → COMPACT MODE (2 per row)
========================================================= */

@media (max-width: 576px) {

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Reduce card size */
    .category-card {
        border-radius: 16px;
    }

    /* Smaller image */
    .category-image {
        height: 120px;   /* reduced */
    }

    /* Reduce body padding */
    .category-body {
        padding: 0.8rem 0.8rem 0.9rem;
    }

    /* Smaller title + prevent breaking */
    .category-card h4 {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }

    /* Smaller section title */
    .section-header h2 {
        font-size: 1.5rem;
    }

    /* Smaller badges */
    .stock-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.6rem;
    }

    /* Smaller button */
    .btn-buy {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
        width: 100%;
        text-align: center;
    }

    /* Hide ONLY green In Stock */
    .category-actions .stock-badge.in-stock {
        display: none;
    }

    /* Keep Out of Stock visible */
    .category-actions .stock-badge.out-stock {
        display: inline-flex;
    }

    /* Center content */
    .category-actions {
        justify-content: center;
        margin-top: 0.8rem;
    }
}

/* =========================================================
   VERY SMALL PHONES → ULTRA COMPACT
========================================================= */

@media (max-width: 400px) {

    .category-image {
        height: 100px;
    }

    .category-body {
        padding: 0.6rem 0.6rem 0.7rem;
    }

    .category-card h4 {
        font-size: 0.7rem;
    }

    .btn-buy {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Extremely small devices → 1 per row */
@media (max-width: 360px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}



/* =========================================================
   WHY CHOOSE US SECTION
========================================================= */
.why-section {
    /* padding: 1rem 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;
    }
}


.hero-emoji {
    display: inline-block;
    margin-left: 8px;
    animation: wave 1.8s infinite ease-in-out;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(14deg); }
    40% { transform: rotate(-8deg); }
    60% { transform: rotate(14deg); }
    80% { transform: rotate(-4deg); }
    100% { transform: rotate(0deg); }
}
