/* ================= VARIABLES (Light/Dark Mode) ================= */
:root {
    --primary-color: #3b1a43;
    /* Deep Teal */
    --accent-color: #E87A5D;
    /* Coral */
    --accent-hover: #d66a4f;
    --bg-color: #FDFBF7;
    /* Light Cream */
    --text-color: #333333;
    --card-bg: #ffffff;
    --footer-bg: #1A433B;
    --footer-text: #ffffff;
    --input-bg: #f9f9f9;
    --border-color: #ddd;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --primary-color: #8abeb7;
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --card-bg: #1e1e1e;
    --footer-bg: #0a0a0a;
    --footer-text: #cccccc;
    --input-bg: #2c2c2c;
    --border-color: #333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

/* ================= RESET & BASICS ================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= UTILITIES ================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background: white;
    color: #1A433B;
}

.text-accent {
    color: var(--accent-color);
}

.section-padding {
    padding: 60px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ================= HEADER ================= */
header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text h1 {
    font-size: 1.2rem;
    color: #1A433B;
    margin: 0;
    line-height: 1;
}

[data-theme="dark"] .logo-text h1 {
    color: #8abeb7;
}

.logo-text span {
    font-size: 0.75rem;
    color: gray;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: gray;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

/* ================= HERO SECTION ================= */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    color: white;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(44, 9, 114, 0.9), rgba(26, 67, 59, 0.4));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #eee;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* Curved Divider */
.custom-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape svg {
    display: block;
    width: calc(130% + 1.3px);
    height: 60px;
}

.custom-shape .shape-fill {
    fill: var(--bg-color);
}

/* ================= CARDS, TEAM & FORMS ================= */
.card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border-top: 4px solid var(--accent-color);
    padding: 30px;
    text-align: center;
}

.program-card {
    padding: 0;
    text-align: left;
    border-top: none;
}

.program-content {
    padding: 20px;
}

/* Team Card Specifics */
.team-card {
    padding: 0;
    border-top: none;
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-role {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--input-bg);
    color: var(--text-color);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* ================= FOOTER ================= */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding-top: 60px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.social-icons a {
    margin-right: 15px;
    font-size: 1.2rem;
    color: #aaa;
}

.social-icons a:hover {
    color: white;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-btns {
        flex-direction: column;
    }

    .header-actions {
        gap: 10px;
    }

    .nav-links.mobile-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        padding: 20px;
        box-shadow: var(--shadow);
        align-items: flex-start;
    }
}

/* ================= SMOOTH TRANSITIONS & ANIMATIONS ================= */

/* 1. Global Smooth Color Transition */
body,
header,
footer,
.card,
.btn,
input,
textarea,
a,
i,
h1,
h2,
h3,
p,
span,
div {
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.5s ease,
        box-shadow 0.5s ease,
        transform 0.3s ease;
}

/* 2. Toggle Button Styling */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    /* Add border for better visibility */
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    /* Important for animation */
    position: relative;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--input-bg);
    transform: scale(1.1);
    /* Slight zoom on hover */
    border-color: var(--accent-color);
}

.theme-toggle i {
    font-size: 1.2rem;
    position: absolute;
    /* Fix position for smoother swap */
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    /* Bouncy effect */
}

/* 3. Animation Classes (JS will trigger these) */

/* Rotate the icon when switching */
.theme-toggle.animate-spin i {
    transform: rotate(360deg) scale(0.5);
    opacity: 0;
}

/* Dark mode specific highlight */
[data-theme="dark"] .theme-toggle {
    border-color: #ffd700;
    /* Gold border in dark mode */
    color: #ffd700;
}


/* ================= SHARE BUTTONS ================= */
.share-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: translateY(-3px);
    color: white;
}

.bg-whatsapp {
    background-color: #25D366;
}

.bg-facebook {
    background-color: #1877F2;
}

.bg-twitter {
    background-color: #1DA1F2;
}

.bg-copy {
    background-color: #555;
}


/* =========================================
   UNIVERSAL HERO SECTION (Hope Style)
   ========================================= */
:root {
    --hero-bg: #0a1066;
    /* Deep Teal Background */
    --hero-accent: #E87A5D;
    /* Coral/Orange Text */
    --hero-text: #ffffff;
    /* White Text */
    --hero-gold: #D4AF37;
    /* Gold for Subtitle */
}

.page-hero {
    background-color: var(--hero-bg);
    color: var(--hero-text);
    padding: 100px 0 80px 0;
    /* Top padding thoda jyada taki header se chipke nahi */
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtitle (Small Uppercase) */
.hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--hero-gold);
    /* Gold color for classy look */
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    opacity: 0.9;
}

/* Main Title */
.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
    color: var(--hero-text);
}

/* Italic & Colored Word (The "Hope Foundation" Style) */
.hero-title span {
    font-family: 'Playfair Display', serif;
    /* Serif font for elegance */
    font-style: italic;
    color: var(--hero-accent);
    /* Coral Color */
    font-weight: 400;
}

/* Description Text */
.hero-desc {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    /* Slightly transparent white */
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-desc {
        font-size: 1rem;
        padding: 0 20px;
    }
}