:root {
    --primary: #D32F2F;
    --primary-dark: #B71C1C;
    --primary-light: #FFCDD2;
    --secondary: #212121;
    --accent: #FF5252;
    --background: #FAFAFA;
    --surface: #FFFFFF;
    --text: #1A1A1A;
    --text-muted: #666666;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --container-width: 1100px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.2);
}

.btn-hero {
    background-color: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-hero:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(211, 47, 47, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: 2px solid var(--primary);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
}

.btn-submit {
    background-color: var(--primary);
    color: white;
    width: 100%;
    padding: 1.2rem;
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-light) 0%, rgba(250, 250, 250, 0) 70%);
    z-index: -1;
    filter: blur(50px);
    opacity: 0.6;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.1); opacity: 0.7; }
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.hero-title span {
    color: var(--primary);
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    gap: 4rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-img {
    width: 100%;
    max-width: 400px;
    border-radius: 32px;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.visual-cards-row {
    display: flex;
    gap: 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
}

.features {
    list-style: none;
    margin-top: 2rem;
}

.features li {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features li span {
    color: var(--primary);
    font-weight: 800;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.visual-card {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.visual-card:hover {
    transform: translateX(10px);
}

.visual-card.highlight {
    background: var(--primary);
    color: white;
}

.visual-card.highlight p {
    color: rgba(255,255,255,0.8);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Form Section */
.donation-form {
    padding-bottom: 100px;
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.glass-form {
    background: white;
    padding: 3rem;
    border-radius: 32px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.08);
    margin-top: 3rem;
    text-align: left;
    border: 1px solid #eeeeee;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

input, select {
    width: 100%;
    padding: 1rem;
    border: 1.5px solid #E0E0E0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-footer {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid #eeeeee;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-title { font-size: 3.5rem; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .nav-links { display: none; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 2.8rem; }
    .form-row { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; }
}

/* Emergency & Search */
.emergency {
    padding: 100px 0;
}

.emergency-header {
    text-align: center;
    margin-bottom: 4rem;
}

.emergency-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.glass-card {
    background: white;
    padding: 2.5rem;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.search-filters {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.search-results {
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.donor-result-card {
    padding: 1rem;
    background: var(--background);
    border-radius: 16px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-blood {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
}

.result-info h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.result-info p { font-size: 0.8rem; color: var(--text-muted); }

/* Inventory Dashboard */
.inventory {
    background: #fdfdfd;
    padding: 120px 0;
    border-top: 1px solid #eee;
}

.inventory-header {
    margin-bottom: 3rem;
}

.inventory-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.stock-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.stock-table th {
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid #eee;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stock-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid #f9f9f9;
}

.badge.alert { background: #FFEBEE; color: #C62828; }
.badge.safe { background: #E8F5E9; color: #2E7D32; }

.expiry-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #FFFBFA;
    border: 1px solid #FFEBEE;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.expiry-info h4 { font-size: 1rem; color: #C62828; }

/* Camps & Booking */
.camps {
    padding: 100px 0;
    background: white;
}

.camps-header {
    text-align: center;
    margin-bottom: 4rem;
}

.camps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.camp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.camp-card:hover { transform: translateY(-10px); }

.camp-date {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.calendar-mock {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
}

.day {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 12px;
    cursor: pointer;
}

.day.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.time-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.slot {
    padding: 0.8rem;
    border: 1px solid #eee;
    background: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

.slot:hover {
    background: var(--background);
}

/* Safety Section */
.safety {
    padding: 100px 0;
    text-align: center;
}

.safety-header {
    margin-bottom: 4rem;
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.safety-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 28px;
    border: 1px solid #f0f0f0;
    position: relative;
    transition: var(--transition);
}

.safety-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.06);
}

.badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    margin-top: 1.5rem;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.btn-text:hover {
    color: var(--primary-dark);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    max-width: 600px;
    width: 100%;
    padding: 3rem;
    border-radius: 32px;
    position: relative;
    box-shadow: 0 50px 100px rgba(0,0,0,0.1);
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
    margin-top: 1rem;
}

.checkbox-group input {
    width: auto;
    margin-top: 0.3rem;
}

.checkbox-group label {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checkbox-group a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Quiz & Card Styles */
.quiz-options {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.donor-card-vview {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(211, 47, 47, 0.3);
}

.qr-placeholder {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    width: 150px;
    height: 150px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-mock {
    width: 100px;
    height: 100px;
    background: repeating-conic-gradient(#000 0% 25%, #fff 0% 50%) 50% / 20px 20px;
    image-rendering: pixelated;
    margin-bottom: 0.5rem;
}

.qr-placeholder p {
    color: var(--secondary);
    font-size: 0.6rem;
    font-weight: 800;
}

.card-info {
    text-align: left;
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(5px);
}

@keyframes highlightPulse {
    0% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); }
    50% { box-shadow: 0 0 40px rgba(211, 47, 47, 0.6); transform: scale(1.02); }
    100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); transform: scale(1); }
}

.highlight-pulse {
    animation: highlightPulse 1.5s ease-in-out infinite;
}

/* Map Section Styles */
#map-section {
    padding: 100px 0;
}

.map-header {
    text-align: center;
    margin-bottom: 3rem;
}

#map {
    width: 100%;
    border-radius: 32px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.maplibregl-popup-content {
    border-radius: 20px;
    padding: 1.5rem;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

.maplibregl-popup-tip {
    display: none;
}

.map-popup-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.map-popup-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.marker:hover {
    transform: scale(1.2);
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Process Section & Notes */
.process {
    padding: 100px 0;
    background: #FAFAFA;
}

.process-header-with-img {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.process-img {
    width: 100%;
    max-width: 350px;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.process-step {
    padding: 2.5rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-icon {
    font-size: 2rem;
    background: #FFEBEE;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.step-number {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.1;
}

.process-notes {
    text-align: left;
    margin-top: 4rem;
}

.notes-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.notes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.note-item h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.note-item ul {
    list-style: disc;
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.note-item li {
    margin-bottom: 0.8rem;
    line-height: 1.4;
}
