/*
Theme Name: Shri Surya Educational and Charitable Trust
Theme URI: https://shri-surya-trust-design.web.app
Author: Antigravity Pair Programmer
Description: A premium, highly interactive frontend theme for Shri Surya Trust featuring GSAP scroll canvas scrubbing and Three.js backgrounds.
Version: 1.0.0
Text Domain: shri-surya-trust

===========================================
  Shri Surya Trust - Premium Stylesheet
===========================================
*/

:root {
    /* Color Palette */
    --primary-color: #1A365D; /* Deep Navy Blue */
    --secondary-color: #D69E2E; /* Rich Gold */
    --text-color: #2D3748;
    --text-light: #718096;
    --bg-color: #F7FAFC;
    --white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: 80px 20px;
    
    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px; /* Height of sticky header on desktop */
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Three.js Canvas Container */
#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-color: var(--primary-color);
    overflow: hidden;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #B7791F;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #2A4365;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Page Header Global Styling */
.page-header {
    background-color: var(--primary-color);
    padding: 150px 20px 70px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    color: var(--white) !important;
    font-size: 3.2rem !important;
    margin-bottom: 10px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.15rem;
    max-width: 800px;
    margin: 15px auto 0;
}

@media (max-width: 768px) {
    .page-header {
        padding: 110px 15px 45px;
    }
    .page-header h1 {
        font-size: 2rem !important;
    }
    .page-header p {
        font-size: 0.95rem;
        margin-top: 10px;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px; /* Offset for header */
}

.hero-content {
    color: var(--white);
    max-width: 800px;
}

.hero-content .subtitle {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.hero-content .title {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-content .description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* About Section */
.about-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.lead-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.founder-signature {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
}

.founder-signature strong {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.founder-signature span {
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-image img {
    border-radius: var(--radius-lg);
    object-fit: cover;
    width: 100%;
}

/* Mission Vision */
.mission-section {
    padding: var(--section-padding);
    background-color: var(--bg-color);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mv-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.mv-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--secondary-color);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 20px;
}

.mv-card ul {
    list-style-position: inside;
    margin-top: 15px;
}

.mv-card li {
    margin-bottom: 10px;
    color: var(--text-light);
}

/* Trustees */
.trustees-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.text-center {
    text-align: center;
}

.trustee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.trustee-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.trustee-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.trustee-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.trustee-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery / Impact */
.gallery-section {
    padding: var(--section-padding);
    background-color: var(--bg-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px 30px;
    background: linear-gradient(to top, rgba(26, 54, 93, 0.9), transparent);
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-overlay h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* CTA */
.cta-section {
    padding: 100px 20px;
    background-color: var(--primary-color);
    text-align: center;
    color: var(--white);
}

.cta-container h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Footer */
.footer {
    background-color: #0F2038;
    color: var(--white);
    padding: 80px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 80px;
    background: white;
    padding: 10px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.footer-about p {
    color: #A0AEC0;
}

.footer h4 {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

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

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #A0AEC0;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    color: #A0AEC0;
    margin-bottom: 15px;
}

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

/* Canvas Scroll Sequence */
.scroll-sequence {
    position: relative;
    background: #ffffff;
    width: 100%;
}

.canvas-sticky-container {
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

#sequence-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.scroll-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    pointer-events: none;
}

.gsap-seq-text {
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    width: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .mission-vision-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content .title {
        font-size: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 65px; /* Height of mobile sticky header */
    }
    
    .header {
        padding: 8px 0;
    }
    
    .logo img {
        height: 45px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .nav-links {
        display: none; /* In a real app, add a hamburger menu */
    }
    
    .trustee-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
    }

    .hero-section {
        height: auto !important;
        min-height: 100vh;
        padding-top: 110px !important;
        padding-bottom: 50px !important;
        display: flex !important;
        align-items: center !important;
    }

    .hero-grid {
        flex-direction: column !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 30px !important;
    }

    .hero-content {
        text-align: center !important;
    }

    .hero-content .title {
        font-size: 2.2rem;
    }

    .hero-buttons {
        justify-content: center !important;
        flex-wrap: wrap;
    }
    
    .gsap-seq-text {
        font-size: 2.2rem;
    }
    
    .cta-container h2 {
        font-size: 2rem;
    }
    
    .map-container {
        height: 300px;
    }

    .mv-card {
        padding: 30px 20px !important;
    }

    .trustee-card {
        padding: 25px 20px !important;
    }

    #sequence-canvas {
        object-fit: cover !important;
        object-position: 75% center !important;
    }

    .canvas-sticky-container {
        height: 60vh !important;
    }
}

/* Contact Page Styles */
.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    padding: var(--section-padding);
    margin-top: 100px;
}

.contact-info-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-method:last-child {
    margin-bottom: 0;
}

.contact-method .icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
    background: rgba(214, 158, 46, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-method h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.contact-method p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Glassmorphism Form */
.contact-form-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--white);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(214, 158, 46, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

/* Donation Layout & Bank Details Card */
.donation-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.bank-card {
    background: linear-gradient(135deg, #1A365D 0%, #0F2038 100%);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(214, 158, 46, 0.3);
}

.bank-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(214, 158, 46, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.bank-logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.bank-logo span {
    font-family: var(--font-heading);
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.chip-icon {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #ECC94B 0%, #D69E2E 100%);
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.4);
}

.bank-details-list {
    margin-bottom: 10px;
}

.bank-detail-item {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.bank-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.bank-detail-item span.label {
    font-size: 0.85rem;
    color: #A0AEC0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bank-detail-val {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 1.05rem;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.donation-info-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.donation-info-text h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.donation-info-text p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

/* Social Links Footer */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #A0AEC0;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1100;
}

.toast {
    background: #1A202C;
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--secondary-color);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Map Section */
.map-section {
    padding: var(--section-padding);
    background-color: var(--bg-color);
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 450px;
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Grid Adapters */
@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
        margin-top: 80px;
    }
    .donation-layout {
        grid-template-columns: 1fr;
    }
}

/* Policy Pages Layout */
.policy-section {
    padding: var(--section-padding);
    background-color: var(--bg-color);
}

.policy-card {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 40px auto 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.policy-text h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-top: 35px;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(214, 158, 46, 0.2);
    padding-bottom: 8px;
}

.policy-text h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 12px;
}

.policy-text p {
    font-size: 1.05rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 18px;
}

.policy-text ul, .policy-text ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.policy-text li {
    font-size: 1.05rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 10px;
}

.policy-text strong {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .policy-card {
        padding: 30px 20px;
        margin-top: 20px;
    }
}

