/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e63946;
    --primary-dark: #c1121f;
    --secondary-color: #457b9d;
    --accent-color: #f1faee;
    --text-dark: #1d3557;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --success: #06d6a0;
    --warning: #ffd166;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Marathi & Hindi: use Devanagari font */
html.lang-mr body,
html.lang-hi body {
    font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
}

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

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0;
}

.nav-brand .tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: -5px;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn-donate-nav {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: background 0.3s;
}

.btn-donate-nav:hover {
    background: var(--primary-dark);
}

.nav-lang-wrap {
    display: flex;
    align-items: center;
}

.lang-select {
    padding: 0.4rem 0.6rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.3s;
}

.lang-select:hover,
.lang-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
    margin: 10px auto;
}

/* Crisis Alert Section */
.crisis-alert {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: var(--white);
    padding: 4rem 0;
}

.alert-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.alert-icon {
    font-size: 4rem;
    flex-shrink: 0;
}

.alert-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.alert-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.crisis-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.crisis-list li {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    position: relative;
    padding-left: 2rem;
}

.crisis-list li::before {
    content: "⚠️";
    position: absolute;
    left: 0.5rem;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* About Section */
.about {
    background: var(--bg-light);
}

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

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.mission-list {
    list-style: none;
    margin-top: 1rem;
}

.mission-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
}

.mission-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-image {
    position: relative;
    min-width: 0; /* allow grid to size correctly */
}

.about-photo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 200px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 4/3;
    background: var(--bg-light);
}

.image-placeholder {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 15px;
    padding: 3rem;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: 0 10px 30px var(--shadow-lg);
}

.image-placeholder-small {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 10px;
    padding: 2rem;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}

/* Conditions Section */
.conditions {
    background: var(--white);
}

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

.condition-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.condition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-lg);
}

.condition-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.condition-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.condition-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Students Section */
.students {
    background: var(--bg-light);
}

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

.student-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.student-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-lg);
}

.student-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.student-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.student-info {
    padding: 1.5rem;
}

.student-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.student-need {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.student-story {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

.students-note {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    margin-top: 2rem;
}

.students-note p {
    color: var(--text-dark);
    line-height: 1.8;
}

/* Donation Section */
.donate {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
}

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

.donate-info h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.donate-info > p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.donation-impact {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px var(--shadow);
}

.donation-impact h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.impact-list {
    list-style: none;
}

.impact-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
    border-bottom: 1px solid var(--bg-light);
}

.impact-list li:last-child {
    border-bottom: none;
}

.impact-list li::before {
    content: "💚";
    position: absolute;
    left: 0;
}

.donation-methods h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.donation-methods + .donation-methods {
    margin-top: 2rem;
}

.donation-methods + .donation-methods h3 {
    margin-top: 0;
}

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

.method-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px var(--shadow);
}

.method-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.method-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.upi-id {
    font-weight: 600;
    color: var(--text-dark) !important;
}

/* Donation Form */
.donate-form-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-lg);
    position: sticky;
    top: 100px;
}

.donate-form h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-style: italic;
}

/* Needs Grid */
.needs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.need-card {
    position: relative;
}

.need-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.need-card label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    min-height: 140px;
    justify-content: center;
}

.need-card label:hover {
    border-color: var(--primary-color);
    background: rgba(230, 57, 70, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.need-card input[type="radio"]:checked + label {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.need-card input[type="radio"]:checked + label .need-icon,
.need-card input[type="radio"]:checked + label h4,
.need-card input[type="radio"]:checked + label p {
    color: var(--white);
}

.need-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.need-details {
    width: 100%;
}

.need-details h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.need-details p {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.need-desc {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
    margin-top: 0.25rem;
}

.need-card input[type="radio"]:checked + label .need-desc {
    color: rgba(255, 255, 255, 0.9);
}

.selected-need-info {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(230, 57, 70, 0.1);
    border-left: 3px solid var(--primary-color);
    border-radius: 5px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.amount-btn {
    padding: 0.75rem;
    background: var(--bg-light);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s;
}

.amount-btn:hover,
.amount-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

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

.btn-submit:hover {
    background: var(--primary-dark);
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* QR Code Styles */
.qr-code-container-top {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.05) 0%, rgba(69, 123, 157, 0.05) 100%);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    border: 2px solid rgba(230, 57, 70, 0.2);
}

.qr-code-container-top label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.qr-code-container {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code-image,
.qr-code-container img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-lg);
}

.qr-code-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

#qrcode {
    background: var(--white);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-lg);
    display: inline-block;
}

#qrcode canvas,
#qrcode img {
    display: block;
    max-width: 100%;
    height: auto;
}

#qrCodeCanvas {
    background: var(--white);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-lg);
    max-width: 100%;
    height: auto;
}

.qr-code-note {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 500;
}

/* Contact Section */
.contact {
    background: var(--bg-light);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: var(--text-dark);
    line-height: 1.8;
}

.contact-item p a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item p a:hover {
    text-decoration: underline;
    color: #0066cc;
}

.contact-item .map-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-item .map-link:hover {
    text-decoration: underline;
    color: #0066cc;
}

.contact-form-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.contact-form .form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

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

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.social-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: var(--white);
}

.social-link span {
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .alert-box {
        flex-direction: column;
        text-align: center;
    }

    .about-content,
    .donate-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .donate-form-container {
        position: static;
    }

    .conditions-grid,
    .students-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .amount-options {
        grid-template-columns: 1fr;
    }

    .needs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .need-card label {
        min-height: 120px;
        padding: 0.75rem;
    }

    .need-icon {
        font-size: 1.5rem;
    }

    .need-details h4 {
        font-size: 0.8rem;
    }

    .need-details p {
        font-size: 0.75rem;
    }

    .need-desc {
        font-size: 0.7rem;
    }

    .qr-code-container {
        padding: 1rem;
    }

    .qr-code-image,
    .qr-code-container img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 3rem 0;
    }

    .needs-grid {
        grid-template-columns: 1fr;
    }

    .need-card label {
        min-height: 100px;
        flex-direction: row;
        text-align: left;
        padding: 1rem;
    }

    .need-icon {
        margin-right: 1rem;
        margin-bottom: 0;
    }

    .qr-code-container {
        padding: 0.75rem;
    }

    .qr-code-image,
    .qr-code-container img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}
