/* ===== PRAGYAAN FOUNDATION - Main Stylesheet ===== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS Custom Properties ===== */
:root {
    /* Colors - Indian NGO Theme (Navy & Saffron) */
    --primary-blue: #003366;
    /* Deep Navy */
    --primary-blue-light: #1A4D80;
    --accent-blue: #FF9933;
    /* Saffron Orange */
    --gold: #FFD700;
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    --sky-blue: #FFF5E6;
    /* Light Cream/Orange tint */
    --sky-blue-light: #FFFAF0;
    /* Floral White */
    --white: #ffffff;
    --text-dark: #1a202c;
    --text-gray: #4a5568;
    --text-light: #718096;
    --border-color: #e2e8f0;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-max: 1200px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ===== Reset & Base Styles ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--white) 0%, var(--sky-blue-light) 100%);
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-gray);
}

/* ===== Layout ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--primary-blue));
    border-radius: 2px;
}

/* ===== Header & Navigation ===== */
.header {
    background: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 1.25rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo-text span {
    color: var(--accent-blue);
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 20px;
    font-weight: 500;
    color: var(--text-gray);
    border-radius: var(--radius-md);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
    background: var(--sky-blue-light);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--accent-blue);
    border-radius: 1px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition-fast);
    border-radius: 1px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--sky-blue-light) 0%, var(--white) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, var(--sky-blue) 0%, transparent 70%);
    opacity: 0.5;
    z-index: 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--sky-blue) 0%, var(--white) 100%);
    border: 1px solid var(--accent-blue);
    color: var(--primary-blue);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
    margin-top: 40px;
    /* Added margin to lower it on desktop */
}

.hero-title {
    color: var(--primary-blue);
    margin-bottom: 24px;
}

.hero-title span {
    color: var(--accent-blue);
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease;
}

.hero-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-blue);
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.3;
}

/* ===== Cards Grid ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 28px;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--sky-blue) 0%, var(--sky-blue-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.card-title {
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.card-text {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===== Feature Cards (Icon Based) ===== */
.feature-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-blue);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px;
    color: var(--white);
}

/* ===== Vision & Mission Section ===== */
.vision-mission {
    background: var(--white);
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.vm-card {
    padding: 48px;
    background: linear-gradient(135deg, var(--sky-blue-light) 0%, var(--white) 100%);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent-blue);
}

.vm-card h3 {
    color: var(--primary-blue);
    margin-bottom: 16px;
}

/* ===== Approach Section ===== */
.approach-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.approach-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.approach-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.approach-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
}

.cta-section h2::after {
    background: var(--white);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== About Page ===== */
.page-hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--sky-blue-light) 0%, var(--white) 100%);
    text-align: center;
    position: relative;
}

.page-hero h1 {
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.page-hero p {
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-text h2 {
    color: var(--primary-blue);
    margin-bottom: 24px;
}

/* ===== Contact Page ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-primary);
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    padding: 40px 0;
}

.contact-info h2 {
    color: var(--primary-blue);
    margin-bottom: 32px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}

.info-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h4 {
    color: var(--text-dark);
    margin-bottom: 4px;
}

.info-content p {
    color: var(--text-gray);
    margin: 0;
}

/* ===== Donate Page ===== */
.donate-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.donate-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.stat-card {
    background: var(--white);
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--accent-blue);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-gray);
    font-weight: 500;
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 80px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo-text {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.footer-heading {
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 8px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-signature {
    font-family: 'serif';
    font-style: italic;
    font-weight: 600;
    font-size: 0.85rem;
    /* Made smaller as requested */
    letter-spacing: 1px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .vm-grid,
    .about-content,
    .contact-grid,
    .donate-hero {
        grid-template-columns: 1fr;
    }

    /* Reduce icon sizes on tablets */
    .feature-icon {
        width: 64px;
        height: 64px;
        font-size: 1.75rem;
    }

    .card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {

    /* Header improvements */
    .header .container {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .logo img {
        height: 60px !important;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Hero section */
    .hero {
        min-height: auto;
        padding: 100px 0 40px;
    }

    .page-hero {
        padding: 140px 0 60px;
    }

    /* Typography scaling */
    h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    h2 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    h3 {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
    }

    .lead {
        font-size: 1.125rem;
    }

    /* Grid layouts */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .approach-list {
        grid-template-columns: 1fr;
    }

    .impact-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Icons - smaller on mobile */
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 0 auto 16px;
    }

    .card-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .approach-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .info-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    /* Footer */
    .footer {
        padding: 60px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .footer-brand img {
        height: 70px !important;
        margin: 0 auto 12px;
    }

    .footer-signature {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    /* Sections spacing */
    .section {
        padding: 50px 0;
    }

    /* Cards */
    .card-content,
    .feature-card {
        padding: 24px 20px;
    }

    .vm-card {
        padding: 32px 24px;
    }

    /* Contact form */
    .contact-form {
        padding: 32px 20px;
    }

    /* Stat numbers */
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {

    /* Ultra mobile optimizations */
    .container {
        padding: 0 16px;
    }

    /* Header */
    .header .container {
        padding: 8px 16px;
    }

    .logo img {
        height: 50px !important;
    }

    /* Buttons - full width and touch-friendly */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 12px;
    }

    /* Typography */
    h1 {
        font-size: 1.875rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.625rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.125rem;
    }

    p,
    .lead {
        font-size: 1rem;
    }

    /* Hero section */
    .hero {
        padding: 90px 0 30px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
        margin-top: 0;
    }

    .hero-description {
        font-size: 1rem;
    }

    .page-hero {
        padding: 120px 0 50px;
    }

    /* Icons - even smaller */
    .feature-icon {
        width: 52px;
        height: 52px;
        font-size: 1.35rem;
    }

    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }

    .approach-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .info-icon {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }

    /* Sections */
    .section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Cards */
    .card-content,
    .feature-card,
    .contact-form {
        padding: 24px 16px;
    }

    .vm-card {
        padding: 24px 16px;
    }

    .stat-card {
        padding: 28px 16px;
    }

    /* Footer */
    .footer {
        padding: 50px 0 16px;
    }

    .footer-brand img {
        height: 60px !important;
    }

    .footer-signature {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .footer-heading {
        font-size: 1rem;
        margin-bottom: 16px;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

    .footer-bottom a {
        display: inline-block;
        margin: 4px 0;
    }

    /* Stat numbers */
    .stat-number {
        font-size: 2rem;
    }

    /* Forms */
    .form-group input,
    .form-group textarea {
        font-size: 16px;
        /* Prevents zoom on focus in iOS */
    }

    /* Approach items */
    .approach-item {
        padding: 16px;
        gap: 12px;
    }

    /* Card images */
    .card-image {
        height: auto;
        aspect-ratio: 16/10;
    }
}