/* =========================
   CSS Variables & Theme Setup
   ========================= */

:root {
    /* Day Mode Colors (default) */
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --text-muted: #666666;
    --quote-border: #e0e0e0;
    --divider-color: #f0f0f0;
    --header-bg: rgba(255, 255, 255, 0.95);
    
    /* Typography */
    --font-tamil: 'Noto Sans Tamil', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-english: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    
    /* Spacing */
    --section-padding: 5rem 2rem;
    --container-max: 900px;
    
    /* Transitions */
    --theme-transition: 250ms ease;
}

body.dark-theme {
    /* Night Mode Colors */
    --bg-color: #0a0a0a;
    --text-color: #e8e8e8;
    --text-muted: #a0a0a0;
    --quote-border: #333333;
    --divider-color: #1a1a1a;
    --header-bg: rgba(10, 10, 10, 0.95);
}

/* =========================
   Base Styles
   ========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-tamil);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    transition: background-color var(--theme-transition), color var(--theme-transition);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* =========================
   Header / Navigation
   ========================= */

.header {
    position: sticky;
    top: 0;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--divider-color);
    z-index: 100;
    transition: background-color var(--theme-transition), border-color var(--theme-transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color var(--theme-transition), opacity 200ms;
}

.logo:hover {
    opacity: 0.7;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: opacity 200ms;
}

.theme-toggle:hover {
    opacity: 0.7;
}

.sun-icon,
.moon-icon {
    width: 24px;
    height: 24px;
    transition: opacity 200ms;
}

body.dark-theme .sun-icon {
    display: none;
}

body:not(.dark-theme) .moon-icon {
    display: none;
}

/* =========================
   Hero Section
   ========================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-family: var(--font-english);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-supporting {
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.hero-helper {
    font-family: var(--font-english);
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--text-muted);
    font-weight: 400;
}

/* =========================
   Section Titles
   ========================= */

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-family: var(--font-english);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* =========================
   Wisdom / Quote Section
   ========================= */

.wisdom {
    padding: var(--section-padding);
    background-color: var(--bg-color);
    border-top: 1px solid var(--divider-color);
    transition: background-color var(--theme-transition), border-color var(--theme-transition);
}

.quote-container {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote {
    position: absolute;
    width: 100%;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 600ms ease-in-out;
    pointer-events: none;
}

.quote.active {
    opacity: 1;
    pointer-events: auto;
}

.quote-tamil {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.quote-english {
    font-family: var(--font-english);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-muted);
    font-style: italic;
    font-weight: 400;
}

/* =========================
   Events Section
   ========================= */

.events {
    padding: var(--section-padding);
    border-top: 1px solid var(--divider-color);
    transition: border-color var(--theme-transition);
}

.events-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.events-tamil {
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.events-description {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.events-helper {
    font-family: var(--font-english);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-muted);
    font-weight: 400;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.event-item {
    padding: 1.75rem;
    border: 1px solid var(--quote-border);
    border-radius: 8px;
    transition: border-color var(--theme-transition), transform 200ms;
}

.event-item:hover {
    transform: translateY(-2px);
}

.event-title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.event-detail {
    font-family: var(--font-english);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-muted);
    font-weight: 400;
}

/* =========================
   Support Section
   ========================= */

.support {
    padding: var(--section-padding);
    border-top: 1px solid var(--divider-color);
    transition: border-color var(--theme-transition);
}

.support-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.support-heading {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-weight: 600;
}

.support-description {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.support-helper {
    font-family: var(--font-english);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.support-cta {
    margin-top: 2rem;
}

.cta-link {
    display: inline-block;
    text-decoration: none;
    color: var(--text-color);
    padding: 1rem 2rem;
    border: 2px solid var(--text-color);
    border-radius: 8px;
    transition: opacity 200ms, border-color var(--theme-transition), color var(--theme-transition);
}

.cta-link:hover {
    opacity: 0.7;
}

.cta-tamil {
    display: block;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.cta-english {
    display: block;
    font-family: var(--font-english);
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-muted);
    font-weight: 400;
}

/* =========================
   More to Come Section
   ========================= */

.more-to-come {
    padding: var(--section-padding);
    text-align: center;
    border-top: 1px solid var(--divider-color);
    transition: border-color var(--theme-transition);
}

.coming-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.coming-subtitle {
    font-family: var(--font-english);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.coming-helper {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-muted);
    font-style: italic;
}

/* =========================
   Footer
   ========================= */

.footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--divider-color);
    transition: border-color var(--theme-transition);
}

.footer-main {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.footer-helper {
    font-family: var(--font-english);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: var(--text-muted);
    font-weight: 400;
}

/* =========================
   Responsive Adjustments
   ========================= */

@media (max-width: 768px) {
    :root {
        --section-padding: 3.5rem 1.5rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .header-content {
        padding: 1rem 1.5rem;
    }
    
    .hero {
        padding: 3rem 1.5rem;
        min-height: 85vh;
    }
    
    .quote {
        padding: 1.5rem;
    }
    
    .events-list {
        gap: 1.25rem;
    }
    
    .event-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 3rem 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        padding: 0.875rem 1rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .hero {
        padding: 2.5rem 1rem;
    }
    
    .quote {
        padding: 1rem;
    }
}

/* =========================
   Print Styles
   ========================= */

@media print {
    .header,
    .theme-toggle {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
}
