/* ============================================================
   Blood Donors HazraBari — Download Landing Page Styles
   Premium Material Design 3 inspired
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --crimson: #B71C1C;
    --crimson-dark: #8B1414;
    --crimson-light: #D32F2F;
    --rose: #FFEBEE;
    --rose-strong: #FAD7DC;
    --rose-surface: #FFF7F8;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --text: #231718;
    --text-muted: #6F4B4D;
    --text-light: #9E7B7D;
    --outline: #E8C9CD;
    --shadow-sm: 0 1px 3px rgba(183, 28, 28, 0.08);
    --shadow-md: 0 4px 20px rgba(183, 28, 28, 0.12);
    --shadow-lg: 0 8px 40px rgba(183, 28, 28, 0.16);
    --shadow-xl: 0 20px 60px rgba(183, 28, 28, 0.2);
    --radius: 24px;
    --radius-sm: 16px;
    --radius-xs: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--rose-surface);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* === PRELOADER === */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--crimson);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader .pulse {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    animation: pulse-anim 1.2s ease-in-out infinite;
}
.preloader .pulse::after {
    content: '🩸';
    font-size: 28px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
@keyframes pulse-anim {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-dark) 50%, #6D0F0F 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.02);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    color: var(--white);
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}
.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.hero-title .highlight {
    background: linear-gradient(135deg, #FFD54F, #FFB74D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin-bottom: 12px;
    max-width: 480px;
}
.hero-subtitle-bn {
    font-size: 16px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 36px;
    max-width: 480px;
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: var(--white);
    color: var(--crimson);
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-download:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
    background: #FFF5F5;
}
.btn-download:active {
    transform: translateY(0) scale(0.98);
}
.btn-download svg {
    width: 22px;
    height: 22px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
}
.btn-secondary:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.08);
}

.hero-stats {
    display: flex;
    gap: 40px;
}
.hero-stat {
    text-align: left;
}
.hero-stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
}
.hero-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.phone-mockup {
    width: 280px;
    height: 580px;
    background: #1A1A1A;
    border-radius: 40px;
    border: 4px solid #333;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4), inset 0 0 0 2px rgba(255,255,255,0.05);
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #1A1A1A;
    border-radius: 0 0 20px 20px;
    z-index: 3;
}
.phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 36px;
}
.phone-screen-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--crimson) 0%, var(--crimson-dark) 30%, var(--rose) 30%, var(--rose-surface) 100%);
    border-radius: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 30px;
}
.phone-screen-placeholder .app-icon-inner {
    width: 70px;
    height: 70px;
    background: var(--white);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-bottom: 16px;
}
.phone-screen-placeholder .app-title-inner {
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}
.phone-screen-placeholder .fake-cards {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.phone-screen-placeholder .fake-card {
    background: var(--white);
    border-radius: 12px;
    height: 50px;
    width: 100%;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.phone-screen-placeholder .fake-card:nth-child(2) { opacity: 0.7; }
.phone-screen-placeholder .fake-card:nth-child(3) { opacity: 0.4; }

.floating-badge {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    animation: float-badge 3s ease-in-out infinite;
    z-index: 5;
}
@keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.floating-badge.top-right {
    top: 40px;
    right: -20px;
    animation-delay: 0.5s;
    color: var(--crimson);
}
.floating-badge.bottom-left {
    bottom: 80px;
    left: -20px;
    animation-delay: 1s;
    color: #2E7D32;
}
.floating-badge .badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.floating-badge.top-right .badge-icon { background: var(--rose); }
.floating-badge.bottom-left .badge-icon { background: #E8F5E9; }

/* === FEATURES SECTION === */
.features {
    padding: 100px 20px;
    background: var(--white);
}
.container {
    max-width: 1100px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-label {
    display: inline-block;
    padding: 6px 18px;
    background: var(--rose);
    color: var(--crimson);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--rose-surface);
    border: 1px solid var(--outline);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--crimson), var(--crimson-light));
    opacity: 0;
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--rose-strong);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--rose);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}
.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* === SCREENSHOTS SECTION === */
.screenshots {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--rose-surface) 0%, var(--rose) 100%);
}
.screenshots-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0 40px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.screenshots-scroll::-webkit-scrollbar { display: none; }

.screenshot-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
    position: relative;
}
.screenshot-phone {
    width: 240px;
    height: 490px;
    background: #1A1A1A;
    border-radius: 32px;
    border: 3px solid #333;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}
.screenshot-phone:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
}
.screenshot-phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 29px;
}
.screenshot-label {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Screenshot placeholder for when no images */
.screenshot-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 29px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}
.screenshot-placeholder.bg-1 { background: linear-gradient(180deg, #B71C1C 0%, #D32F2F 40%, #FFEBEE 40%, #FFF7F8 100%); }
.screenshot-placeholder.bg-2 { background: linear-gradient(180deg, #1565C0 0%, #1976D2 40%, #E3F2FD 40%, #F5F9FF 100%); }
.screenshot-placeholder.bg-3 { background: linear-gradient(180deg, #2E7D32 0%, #43A047 40%, #E8F5E9 40%, #F5FFF7 100%); }
.screenshot-placeholder.bg-4 { background: linear-gradient(180deg, #E65100 0%, #F57C00 40%, #FFF3E0 40%, #FFFCF5 100%); }
.screenshot-placeholder.bg-5 { background: linear-gradient(180deg, #4A148C 0%, #7B1FA2 40%, #F3E5F5 40%, #FDF5FF 100%); }
.screenshot-placeholder.bg-6 { background: linear-gradient(180deg, #880E4F 0%, #C2185B 40%, #FCE4EC 40%, #FFF5F8 100%); }
.screenshot-placeholder .ph-icon {
    font-size: 40px;
    opacity: 0.9;
}
.screenshot-placeholder .ph-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 80%;
    margin-top: 20px;
}
.screenshot-placeholder .ph-bar {
    height: 32px;
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.screenshot-placeholder .ph-bar:nth-child(2) { opacity: 0.6; width: 90%; }
.screenshot-placeholder .ph-bar:nth-child(3) { opacity: 0.35; width: 75%; }

/* === BLOOD GROUPS SECTION === */
.blood-groups {
    padding: 80px 20px;
    background: var(--white);
}
.blood-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}
.blood-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rose);
    border: 2px solid var(--outline);
    border-radius: var(--radius-sm);
    font-size: 24px;
    font-weight: 800;
    color: var(--crimson);
    transition: var(--transition);
    cursor: default;
}
.blood-item:hover {
    background: var(--crimson);
    color: var(--white);
    transform: scale(1.08);
    border-color: var(--crimson);
    box-shadow: var(--shadow-md);
}

/* === DOWNLOAD CTA SECTION === */
.download-cta {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-dark) 50%, #6D0F0F 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.download-cta::before,
.download-cta::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}
.download-cta::before { width: 400px; height: 400px; top: -100px; right: -100px; }
.download-cta::after { width: 300px; height: 300px; bottom: -80px; left: -80px; }

.cta-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}
.cta-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}
.download-size {
    display: block;
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    position: relative;
    z-index: 2;
}

/* === FOOTER === */
.footer {
    padding: 50px 20px 30px;
    background: #1A0A0B;
    color: rgba(255,255,255,0.6);
    text-align: center;
}
.footer-brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.footer-brand span { color: var(--crimson-light); }
.footer-desc {
    font-size: 14px;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}
.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}
.footer-links a:hover { color: var(--crimson-light); }
.footer-divider {
    width: 80px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 0 auto 20px;
}
.footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}
.footer-copy a { color: var(--crimson-light); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    .hero-text { order: 1; }
    .hero-visual { order: 0; }
    .hero-subtitle,
    .hero-subtitle-bn { margin: 0 auto 12px; }
    .hero-subtitle-bn { margin-bottom: 36px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .floating-badge { display: none; }
    .phone-mockup { width: 220px; height: 460px; }
}

@media (max-width: 600px) {
    .hero { min-height: auto; padding: 80px 16px 50px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn-download { width: 100%; justify-content: center; }
    .btn-secondary { width: 100%; justify-content: center; }
    .hero-stats { gap: 24px; }
    .hero-stat-number { font-size: 24px; }
    .features-grid { grid-template-columns: 1fr; }
    .blood-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .blood-item { font-size: 18px; }
    .screenshot-phone { width: 200px; height: 410px; }
    .cta-buttons { flex-direction: column; align-items: center; }
}

