/* ===== CSS Variables & Reset ===== */
:root {
    --bg: #ffffff;
    --bg-soft: #f8f9fc;
    --bg-card: #ffffff;
    --text-dark: #1a1a2e;
    --text-body: #4a4a68;
    --text-muted: #8e8ea0;
    --accent: #25D366;
    --accent-dark: #1da851;
    --accent-light: #e8faf0;
    --accent-glow: rgba(37, 211, 102, 0.25);
    --purple: #7c3aed;
    --purple-light: #f3effe;
    --orange: #f97316;
    --orange-light: #fff7ed;
    --border: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.12);
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.10);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.03);
    --shadow-btn: 0 4px 14px rgba(37,211,102,0.35);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-urdu: 'Noto Nastaliq Urdu', serif;
    --font-inter: 'Inter', sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-urdu);
    background: var(--bg);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    direction: rtl;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== Decorative Blobs ===== */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: rgba(37, 211, 102, 0.12);
    top: -100px;
    right: -80px;
    animation: blobFloat 12s ease-in-out infinite;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: rgba(124, 58, 237, 0.08);
    bottom: 20%;
    left: -100px;
    animation: blobFloat 15s ease-in-out infinite reverse;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: rgba(249, 115, 22, 0.06);
    top: 50%;
    right: -60px;
    animation: blobFloat 18s ease-in-out infinite;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* ===== Hero Screen - Fits Viewport ===== */
.hero-screen {
    position: relative;
    z-index: 1;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
}

.hero-screen .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    width: 100%;
}

/* ===== Top Badge ===== */
.top-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    color: var(--accent-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(37, 211, 102, 0.15);
    animation: fadeInDown 0.6s ease both;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.4); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Title ===== */
.main-title {
    font-family: var(--font-urdu);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 2;
    color: var(--text-dark);
    animation: fadeInUp 0.6s ease 0.1s both;
}

.title-highlight {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-dark);
    margin-top: -4px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Product Card ===== */
.product-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    animation: cardIn 0.7s ease 0.2s both;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    color: var(--orange);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    z-index: 2;
    box-shadow: var(--shadow-xs);
    border: 1px solid rgba(249,115,22,0.12);
}

.card-img-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .card-img {
    transform: scale(1.04);
}

/* ===== WhatsApp CTA Button ===== */
.cta-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #25D366 0%, #20bd5a 50%, #128C7E 100%);
    background-size: 200% 100%;
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-family: var(--font-inter);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-btn);
    transition: all 0.3s ease;
    animation: fadeInUp 0.7s ease 0.35s both;
    position: relative;
    overflow: hidden;
}

.cta-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.cta-whatsapp:hover::before {
    left: 100%;
}

.cta-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
    background-position: 100% 0;
}

.cta-whatsapp:active {
    transform: translateY(0) scale(0.98);
}

.wa-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.arrow-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.cta-whatsapp:hover .arrow-icon {
    transform: translateX(-4px);
}

/* ===== Features Section ===== */
.features {
    position: relative;
    z-index: 1;
    padding: 48px 0 56px;
    background: var(--bg-soft);
}

.section-title {
    font-family: var(--font-urdu);
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    text-align: right;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-emoji {
    font-size: 2rem;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
}

.feature-card h3 {
    font-family: var(--font-urdu);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-dark);
}

.feature-card p {
    font-family: var(--font-urdu);
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ===== Floating WhatsApp ===== */
.floating-wa {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px var(--accent-glow);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: floatBounce 3s ease-in-out infinite;
}

.floating-wa svg {
    width: 26px;
    height: 26px;
}

.floating-wa:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 1;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.admin-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.25s ease;
    font-family: var(--font-urdu);
}

.admin-link:hover {
    color: var(--accent-dark);
    border-color: var(--accent);
    background: var(--accent-light);
}

/* ===== Responsive - Mobile First ===== */

/* Small phones (375px and below) */
@media (max-height: 700px) {
    .hero-screen .container {
        gap: 8px;
    }
    .main-title {
        font-size: 1.3rem;
        line-height: 1.8;
    }
    .title-highlight {
        font-size: 0.95rem;
    }
    .top-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
    .product-card {
        max-width: 300px;
    }
    .cta-whatsapp {
        max-width: 300px;
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media (max-height: 600px) {
    .hero-screen .container {
        gap: 6px;
    }
    .main-title {
        font-size: 1.15rem;
        line-height: 1.7;
    }
    .title-highlight {
        font-size: 0.85rem;
    }
    .product-card {
        max-width: 240px;
    }
    .cta-whatsapp {
        max-width: 240px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Tablets and up */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
    }

    .main-title {
        font-size: 2.2rem;
    }

    .title-highlight {
        font-size: 1.4rem;
    }

    .product-card {
        max-width: 420px;
    }

    .cta-whatsapp {
        max-width: 420px;
        padding: 16px 32px;
        font-size: 1.2rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Large screens */
@media (min-width: 1024px) {
    .container {
        max-width: 700px;
    }

    .main-title {
        font-size: 2.6rem;
    }

    .title-highlight {
        font-size: 1.6rem;
    }

    .hero-screen .container {
        gap: 16px;
    }
}
