/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f6f7fb;
    color: #333;
    scroll-behavior: smooth;
}

/* Prevent section overlap with fixed navbar */
section {
    scroll-margin-top: 90px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #e63946;
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    font-size: 22px;
    font-weight: 600;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    text-decoration: underline;
}

.sos-btn {
    background: white;
    color: #e63946;
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
}

.sos-btn:hover {
    background: #ffe5e5;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1615461066841-6116e61058f4') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(230,57,70,0.7));
}

.hero-content {
    position: relative;
    color: white;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
}

.hero-content h2 {
    font-size: 3rem;
    color: #ffccd5;
    margin-bottom: 20px;
}

.hero-content p {
    margin-bottom: 25px;
}

.btn {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin: 10px;
    display: inline-block;
}

.primary {
    background: #e63946;
    color: white;
}

.secondary {
    border: 2px solid white;
    color: white;
}

/* Features */
.features {
    padding: 80px 40px;
    text-align: center;
}

.features span {
    color: #e63946;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Analytics */
.analytics {
    padding: 80px 40px;
    text-align: center;
    background: #fff;
}

.analytics span {
    color: #e63946;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.stat-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Find Donor */
.find-donor {
    padding: 80px 40px;
    text-align: center;
}

.search-bar input {
    width: 100%;
    max-width: 600px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

.blood-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    background: #eee;
    cursor: pointer;
}

.filter-btn.active {
    background: #e63946;
    color: white;
}

.donor-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin: 10px auto;
    max-width: 700px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Hospitals */
.hospitals {
    padding: 80px 40px;
    background: #f6f7fb;
    text-align: center;
}

.hospital-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.hospital-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hospital-card span {
    float: right;
    background: #ffe5e5;
    color: #e63946;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
}

/* Emergency */
.emergency {
    padding: 80px 40px;
    text-align: center;
}

.emergency form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.emergency input,
.emergency select {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.emergency button {
    background: #e63946;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
}

/* Footer */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 15px;
}