/* ===== BASE STYLES ===== */
:root {
    --saffron: #FF9933;
    --saffron-light: #FFB366;
    --white: #FFFFFF;
    --cream: #FFF8E7;
    --blue: #1E3A8A;
    --blue-light: #3B82F6;
    --dark: #1F2937;
    --gray: #6B7280;
    --light-gray: #F3F4F6;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--cream);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--blue);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--saffron), var(--saffron-light));
    color: white;
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
}

.btn-secondary:hover {
    background: var(--blue);
    color: white;
    transform: translateY(-3px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--saffron), var(--blue-light));
    border-radius: 2px;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--saffron);
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    color: var(--blue);
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--saffron);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--saffron);
}

.donate-btn {
    background: var(--saffron);
    color: white !important;
    padding: 8px 20px;
    border-radius: 25px;
    margin-left: 1rem;
}

.donate-btn:hover {
    background: var(--saffron-light);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--blue);
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(rgba(3, 26, 97, 0.8), rgba(30, 89, 138, 0.9)),
                url('https://images.unsplash.com/photo-1602052577122-f73b9710adba?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="%23FF9933" fill-opacity="0.1" d="M0,0 L100,0 L100,100 Z"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

/* ===== TRUST HIGHLIGHTS ===== */
.trust-highlights {
    padding: 6rem 0;
    background: white;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--saffron);
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.highlight-icon {
    font-size: 3rem;
    color: var(--saffron);
    margin-bottom: 1.5rem;
}

/* ===== GALLERY ===== */
.gallery-section {
    padding: 6rem 0;
    background: var(--light-gray);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(113, 75, 13, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: white;
    font-size: 1.5rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cta-section .btn-secondary {
    color: white;
    border-color: white;
}

.cta-section .btn-secondary:hover {
    background: white;
    color: var(--blue);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--saffron);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--saffron);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--saffron);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--saffron-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===== ANIMATIONS ===== */
.animate-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== FORM STYLES ===== */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-md);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
    }
}





/* ===== COMPLETE RESPONSIVE CSS ===== */
/* Add this to your style.css file */

/* ===== BASE STYLES (Mobile First) ===== */
:root {
    --saffron: #FF9933;
    --saffron-light: #FFB366;
    --white: #FFFFFF;
    --cream: #FFF8E7;
    --blue: #1E3A8A;
    --blue-light: #3B82F6;
    --dark: #1F2937;
    --gray: #6B7280;
    --light-gray: #F3F4F6;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--cream);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== TYPOGRAPHY (Responsive) ===== */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
}

p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

/* ===== NAVIGATION (Fully Responsive) ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo-icon {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--saffron);
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text h1 {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 0.2rem;
    color: var(--blue);
    white-space: nowrap;
}

.logo-text p {
    font-size: clamp(0.65rem, 2vw, 0.8rem);
    color: var(--gray);
    margin: 0;
    white-space: nowrap;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--blue);
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--saffron);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.donate-btn {
    background: var(--saffron);
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 25px;
    margin-left: 1rem;
}

.donate-btn:hover {
    background: var(--saffron-light);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE NAVIGATION BREAKPOINTS ===== */
@media (max-width: 992px) {
    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        margin: 0;
        padding: 2rem;
    }
    
    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        display: block;
        padding: 1rem !important;
    }
    
    .donate-btn {
        margin-left: 0;
        display: inline-block;
        width: auto;
        min-width: 200px;
    }
}

/* ===== PAGE HEADER (All Pages) ===== */
.page-header {
    padding: clamp(5rem, 15vh, 8rem) 0 clamp(2rem, 5vh, 4rem);
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: white;
    text-align: center;
    margin-top: 70px;
    width: 100%;
}

.page-header h1 {
    color: white;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    padding: 0 15px;
}

.page-header p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(3, 26, 97, 0.8), rgba(30, 89, 138, 0.9)),
                url('https://images.unsplash.com/photo-1602052577122-f73b9710adba?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    padding: 0 15px;
}

.hero h1 {
    color: white;
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 1rem;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
}

/* ===== BUTTONS (Responsive) ===== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: clamp(10px, 2vw, 12px) clamp(20px, 4vw, 32px);
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.btn-large {
    padding: clamp(12px, 2.5vw, 16px) clamp(25px, 5vw, 40px);
    font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.hero-buttons,
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== GRID SYSTEMS (Fully Responsive) ===== */
.highlights-grid,
.mission-grid,
.team-grid,
.gallery-container,
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    margin: 2rem 0;
}

/* ===== HISTORY SECTION (About Page) ===== */
.history-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.history-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 15px;
    overflow: hidden;
}

.history-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== DONATION PAGE (Responsive) ===== */
.donation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    margin: 2rem 0;
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr));
    gap: 0.8rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 1rem;
}

/* ===== CONTACT PAGE (Responsive) ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(2rem, 5vw, 3rem);
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.contact-item i {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--saffron);
    min-width: 40px;
}

.map-container {
    width: 100%;
    height: clamp(300px, 50vh, 450px);
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
}

/* ===== FORMS (Responsive) ===== */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-control {
    width: 100%;
    padding: clamp(10px, 2vw, 12px) clamp(12px, 2.5vw, 15px);
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* ===== FOOTER (Responsive) ===== */
.footer {
    background: var(--dark);
    color: white;
    padding: clamp(2rem, 5vh, 4rem) 0 clamp(1rem, 3vh, 2rem);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    width: clamp(35px, 6vw, 40px);
    height: clamp(35px, 6vw, 40px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: clamp(15px, 4vh, 30px);
    right: clamp(15px, 4vw, 30px);
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    background: var(--saffron);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        white-space: normal;
    }
    
    .amount-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* Mobile (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        width: 90%;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .amount-options {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        width: 90%;
    }
    
    .highlights-grid,
    .mission-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (1025px and above) */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
    }
    
    .highlights-grid,
    .mission-grid,
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== SPECIAL FIXES FOR DIFFERENT PAGES ===== */

/* Trust Details Page */
.registration-card {
    padding: clamp(1.5rem, 4vw, 3rem);
}

.detail-item {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 576px) {
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Donation Page */
.amount-card {
    padding: clamp(0.8rem, 2vw, 1.2rem);
}

.amount-card h4 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

/* About Page */
.member-image {
    width: clamp(120px, 25vw, 150px);
    height: clamp(120px, 25vw, 150px);
    margin: 0 auto 1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    padding: 20px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .navbar {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.98);
    }
    
    .hero {
        background-attachment: scroll;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .back-to-top,
    .mobile-menu-btn {
        display: none;
    }
    
    body {
        background: white;
    }
}


/* Mobile Menu - Updated CSS */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.8rem;
        color: var(--blue);
        cursor: pointer;
        z-index: 1001;
        padding: 10px;
        position: relative;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: all 0.4s ease-in-out;
        z-index: 1000;
        margin: 0;
        padding: 2rem;
        visibility: visible;
        opacity: 1;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
        transition-delay: calc(0.1s * var(--i, 0));
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-links li:nth-child(1) { --i: 1; }
    .nav-links li:nth-child(2) { --i: 2; }
    .nav-links li:nth-child(3) { --i: 3; }
    .nav-links li:nth-child(4) { --i: 4; }
    .nav-links li:nth-child(5) { --i: 5; }
    .nav-links li:nth-child(6) { --i: 6; }
    
    .nav-links a {
        font-size: 1.3rem;
        display: inline-block;
        padding: 1rem 2rem !important;
        width: auto;
        min-width: 200px;
    }
    
    .donate-btn {
        margin-left: 0 !important;
        display: inline-block;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

/* Popup */

.popup{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.7);
z-index:999;
}

.popup-content{
background:white;
width:320px;
padding:20px;
border-radius:10px;
text-align:center;
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
}

.popup img{
width:220px;
margin-top:10px;
}

.close-btn{
position:absolute;
right:15px;
top:10px;
font-size:25px;
cursor:pointer;
}