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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; /* prevent iOS auto-zoom on rotate */
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

input, select, textarea, button {
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
    -moz-appearance: none;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(218, 209, 213, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(218, 209, 213, 0.95);
    box-shadow: 0 2px 20px rgba(220, 38, 127, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #613442;
    font-size: 1.2rem;
    font-weight: bold;
}

.logo p {
    color: #fa0021;
    text-align: left;
}

.logo-icon img{
    width: 110px;
    height: 110px;
}

.logo-icon {
    width: 110px;
    height: 40px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

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

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

.nav-links a {
    color: #613442;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff4757;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.emergency-btn {
    background: linear-gradient(135deg, #ff4757, #ff3838);
    text-decoration: none;
    color: #613442;
    padding: 0.8rem 1.0rem;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: emergency-glow 2s infinite;
}

@keyframes emergency-glow {
    0%, 50% { box-shadow: 0 0 5px rgba(255, 71, 87, 0.5); }
    50% { box-shadow: 0 0 10px rgba(255, 71, 87, 0.8); }
}

.emergency-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 71, 87, 0.4);
}

/*  Hero Section  */
.hero {
    padding-top: 80px;
    min-height: calc(var(--vh, 1vh) * 100);
    background: linear-gradient(135deg, #dc267f 0%, #ff4757 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="heartbeat" patternUnits="userSpaceOnUse" width="100" height="20"><path d="M0,10 Q25,0 50,10 T100,10" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/></pattern></defs><rect width="100" height="100" fill="url(%23heartbeat)"/></svg>');
    animation: heartbeat-bg 4s ease-in-out infinite;
}

@keyframes heartbeat-bg {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
}

.welcome-title {
    color: #613442; 
    font-size: 3rem;
    text-shadow: 2px 2px #ffffff;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #ffb3ba);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 1.1s forwards;
}

.btn-primary {
    background: linear-gradient(135deg, #ff4757, #ff3838);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: white;
    color: #dc267f;
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blood-drop {
    width: 200px;
    height: 280px;
    background: linear-gradient(135deg, #ff4757, #ff3838);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(255, 71, 87, 0.3);
}

.blood-drop img{
    height: 130px; 
    margin-top: 60%; 
    margin-left: 15%;
}

.blood-drop::after {
    content: '❤️';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

@keyframes heartbeat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

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

/*  Blood Types Section  */

.blood-types {
    padding: 100px 0;
    background: #f8f9fa;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #dc267f, #ff4757);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.second-title {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #dc267f, #353232);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blood-type-card {
    background: white;
    padding: 2rem 1rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blood-type-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(220, 38, 127, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.blood-type-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.blood-type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(220, 38, 127, 0.2);
}

.blood-type {
    font-size: 2.5rem;
    font-weight: bold;
    color: #dc267f;
    margin-bottom: 0.5rem;
}

.availability {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.available { color: #27ae60; }
.low { color: #f39c12; }
.critical { color: #e74c3c; }

.units {
    font-size: 0.9rem;
    color: #666;
}

/*  Services Section */

.services {
    padding: 100px 0;
    background: linear-gradient(135deg, #dc267f 0%, #ff4757 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 6s ease-in-out infinite;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff4757, #ff6b7d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.service-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.service-description {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/*  Emergency Section  */

.emergency {
    padding: 100px 0;
    background: #1a1a1a;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.emergency::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 71, 87, 0.1) 0%, rgba(220, 38, 127, 0.1) 100%);
    animation: emergency-pulse 3s ease-in-out infinite;
}

@keyframes emergency-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.emergency-content {
    position: relative;
    z-index: 2;
}

.emergency-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #ff4757;
    animation: emergency-blink 2s infinite;
}

@keyframes emergency-blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.7; }
}

.emergency-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.emergency-phone {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff4757;
    text-decoration: none;
    display: inline-block;
    padding: 1rem 2rem;
    border: 3px solid #ff4757;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.emergency-phone:hover {
    background: #ff4757;
    color: white;
    transform: scale(1.05);
}

/*  Contact Section  */

.contact {
    padding: 100px 0;
    background: #f8f9fa;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dc267f, #ff4757);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-details h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: #333;
    line-height: 1.5;
    text-decoration: none;
}

.donation-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc267f;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #dc267f, #ff4757);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 127, 0.3);
}

/*  Statistics Section  */

.stats-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #dc267f 0%, #ff4757 100%);
    color: white;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    flex: 1;
    min-width: 0;
    padding: 0 1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ffb3ba;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
    white-space: nowrap;
}

/*  Footer  */

.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #ff4757;
    margin-bottom: 1rem;
    width: 17rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    line-height: 1.6;
    text-decoration: none;
}

.footer-section a:hover {
    color: #ff4757;
}

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

.social-link {
    text-decoration: none;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dc267f, #ff4757);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(220, 38, 127, 0.3);
}

.copyright {
    border-top: 1px solid #333;
    padding-top: 1rem;
    color: #999;
}

/*  Mobile Menu Toggle  */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #613442;
    margin: 3px 0;
    transition: 0.3s;
}

input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 50px;
    background-color: #f9f9f9 !important;
    color: #333 !important;
}

.container, .hero-container, .stats-container, .blood-grid, .blood-storage-table {
    max-width: 1200px;   
    margin-left: auto;
    margin-right: auto;
}


/* Mobile Responsive */

/* L = 1200px (tablets / small laptops) */
@media (max-width: 1200px) {
    .logo a {
        font-size: 1rem;
    }

    .logo{
        margin-left: -100px;
    }

    .logo p{
        text-align: center;
    }

    .logo-icon img{
        width: 80px;
        height: 80px;
        margin-left: 10px;
    }
    
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: calc(var(--vh, 1vh) * 100); 
        min-height: calc(var(--vh, 1vh) * 100); 
        background: rgba(220, 38, 127, 0.96);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.28s cubic-bezier(.2,.8,.2,1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px); 
    }

    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        color: white;
        font-size: 1.2rem;
        line-height: 1.5;
    }
    
    .emergency-btn {
        display: none;
    }

    .hero {
        padding-top: 100px;
        min-height: 80vh;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding: 0 1.5rem;
    }
    
    .welcome-title {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }   
    
    .blood-drop {
        width: 180px;
        height: 250px;
    }
    
    .blood-drop::after {
        font-size: 2.5rem;
    }
    
    .blood-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .blood-type {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .emergency-title {
        font-size: 2rem;
    }
    
    .emergency-phone {
        font-size: 1.5rem;
        padding: 0.8rem 1.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info, .donation-form {
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
    
    .footer-section h3 {
        width: auto;
    }

    .stats-section {
        padding: 70px 0 !important;
    }
    
    .stats-container {
        gap: 2rem !important;
    }
    
    .stat-item {
        flex: 0 0 calc(50% - 2rem) !important;
        margin-bottom: 1.5rem;
    }
    
    .stat-item div:first-child {
        font-size: 2.8rem !important;
    }
    
    .stat-item div:last-child {
        font-size: 1.1rem !important;
    }
    
    .second-title {
        font-size: 2.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    input[type="date"] {
        padding: 16px;
        font-size: 16px; 
        background-color: #fff !important;
        border: 2px solid #ddd;
        min-height: 55px;
        width: 100%;
        display: block;
    }
    
    input[type="date"]:focus {
        border-color: #dc267f;
        background-color: #fff !important;
    }
    
    input, select, textarea {
        font-size: 16px; 
    }
    
    input[type="date"]::-webkit-inner-spin-button,
    input[type="date"]::-webkit-calendar-picker-indicator {
        color: #dc267f;
        font-size: 18px;
        padding: 4px;
        background: none;
    }
}

/* Medium (tablets) <= 992px */
@media (max-width: 992px) {
    
    .hero {
        padding-top: 100px;
        min-height: 80vh;
    }
    
    .logo{
        margin-left: -100px;
    }

    .logo p{
        text-align: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.25rem;
        text-align: center;
    }
    
    .welcome-title {
        font-size: 2.4rem;
        margin-bottom: 0.6rem;
    }
    
    .hero-title {
        font-size: 2.1rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1.05rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.85rem 1.6rem;
        font-size: 0.98rem;
    }
    
    .blood-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9rem;
    }

    .stats-container {
        flex-wrap: wrap !important;
        gap: 2rem !important;
    }

    .stat-item {
        flex: 0 0 calc(50% - 1.5rem) !important;
    }
}

/* For tablets 768px–992px */
@media (min-width: 768px) and (max-width: 992px) {
    .hero {
        flex-direction: row;
        text-align: left;
        padding: 40px 60px;
        min-height: 85vh; 
    }

    .logo{
        margin-left: -90px;
    }

    .logo p{
        text-align: center;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        text-align: left;
        align-items: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 0;
    }

    .btn-primary, .btn-secondary{
       width: 165px;
    }

    .hero-title {
        font-size: 2.4rem;
        line-height: 2.8rem;
    }

    .hero-description {
        font-size: 1.15rem;
        line-height: 1.6rem;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 15px;
        justify-content: flex-start;
    }
    .blood-drop img{
        margin-top: 100px;
    }

}

/* Small devices <= 768px (phones) */
@media (max-width: 768px) {
    .logo a {
        font-size: 1rem;
    }

    .logo{
        margin-left: -100px;
    }

    .logo p{
        text-align: center;
    }

    .logo-icon img{
        width: 100px;
        height: 80px;
        margin-left: -15px;
    }
    
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100dvh;
        min-height: 100vh;
        background: rgba(220, 38, 127, 0.98);
        flex-direction: column;
        padding: 6rem 1.5rem 2rem;
        gap: 1.4rem;
        transition: right 0.28s cubic-bezier(.2,.8,.2,1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        color: white;
        font-size: 1.15rem;
    }
    
    .emergency-btn {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding-top: 1.5rem;
    }

    .hero-visual{
        margin-top: 50px;
        margin-bottom: 10px;
    }

    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-description {
        font-size: 1.05rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
    
    .blood-drop {
        width: 150px;
        height: 210px;
    }

    .blood-drop img{
        margin-top: 70px;
        margin-left: 10px;
    }

    .blood-drop::after {
        margin-top: 0 !important;
        position: absolute;
        top: 20%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .blood-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .blood-type {
        font-size: 1.9rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 1.2rem;
    }
    
    .emergency-title {
        font-size: 1.9rem;
    }
    
    .emergency-phone {
        font-size: 1.4rem;
        padding: 0.7rem 1.2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info, .donation-form {
        padding: 1.25rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        flex-wrap: wrap;
    }

    .stats-section {
        padding: 60px 0 !important;
    }
    
    .stats-container {
        gap: 1.5rem !important;
    }
    
    .stat-item {
        flex: 0 0 calc(50% - 1rem) !important;
        margin-bottom: 1rem;
    }
    
    .stat-item div:first-child {
        font-size: 2.6rem !important;
    }
    
    .stat-item div:last-child {
        font-size: 1.05rem !important;
    }
    
    .second-title {
        font-size: 2.2rem !important;
        margin-bottom: 1.25rem !important;
    }
}

/* Extra small phones <= 576px */
@media (max-width: 576px) {
    .logo a {
        font-size: 0.95rem;
        margin-left: 10px;
    }

    .logo-icon img{
        width: 120px;
        height: 80px;
        margin-left: -43px;
    }
    
    .hero-title {
        font-size: 1.95rem;
    }
    
    .welcome-title {
        font-size: 2.1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-visual{
        margin-bottom: 10px;
    }
    
    .section-title, .second-title {
        font-size: 1.9rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .blood-type {
        font-size: 1.7rem;
    }

    .blood-drop img{
        margin-top: 70px;
        margin-left: 10px;
    }

    .blood-drop::after {
        margin-top: 0 !important;
        position: absolute;
        top: 20%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .availability {
        font-size: 0.95rem;
    }
    
    .emergency-title {
        font-size: 1.6rem;
    }
    
    .emergency-subtitle {
        font-size: 1.05rem;
    }
    
    .emergency-phone {
        font-size: 1.05rem;
    }
    
    .contact-item {
        margin-bottom: 1rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
    }
 
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .stats-section {
        padding: 50px 0 !important;
    }
    
    .stats-container {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .stat-item {
        flex: 0 0 100% !important;
        margin-bottom: 0.8rem;
    }
    
    .stat-item div:first-child {
        font-size: 2.6rem !important;
    }
    
    .stat-item div:last-child {
        font-size: 1rem !important;
    }
    
    .second-title {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }

    .btn-primary, .btn-secondary {
        font-size: 0.95rem;
        padding: 0.75rem 1.2rem;
    }
}

/* Very small phones <= 400px */
@media (max-width: 400px) {
    .blood-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }

    .logo a{
        margin-left: 30px;
    }

    .logo p{
        font-size: small;
    }

    .blood-drop img{
        margin-top: 70px;
        margin-left: 10px;
    }

    .blood-drop::after {
        margin-top: 0 !important;
        position: absolute;
        top: 20%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .blood-type-card {
        padding: 1.25rem 0.4rem;
    }
    
    .blood-type {
        font-size: 1.4rem;
    }
    
    .btn-primary, .btn-secondary {
        font-size: 0.95rem;
    }

    .hero-visual{
        margin-bottom: 8px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    .stats-section {
        padding: 45px 0 !important;
    }
    
    .stat-item div:first-child {
        font-size: 2.3rem !important;
    }
    
    .stat-item div:last-child {
        font-size: 1rem !important;
    }
    
    .second-title {
        font-size: 1.85rem !important;
    }
}

/*  Hamburger Animation  */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/*  Scroll animations  */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
