/* ========================================
   PATANWADI TRUST - MAIN STYLESHEET
   Dark + Golden Theme
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #D4AF37;
    --dark-bg: #1a1a1a;
    --dark-bg-lighter: #2d2d2d;
    --white: #ffffff;
    --text-color: #e0e0e0;
    --border-color: #404040;
    --success-color: #27ae60;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== HEADER & NAVIGATION ========== */
header {
    background-color: var(--dark-bg-lighter);
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.donate-btn, .whatsapp-btn {
    padding: 0.7rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.donate-btn:hover {
    background-color: #e8c547;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.3);
}

.whatsapp-btn {
    background-color: #25d366;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 99;
}

.whatsapp-btn:hover {
    background-color: #20c856;
    transform: scale(1.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, rgba(29, 29, 29, 0.95) 0%, rgba(45, 45, 45, 0.9) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23333333" width="1200" height="600"/><circle cx="100" cy="100" r="80" fill="%23D4AF37" opacity="0.05"/><circle cx="1100" cy="500" r="150" fill="%23D4AF37" opacity="0.03"/></svg>');
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.1), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-logo {
    height: 120px;
    width: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.3));
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .donate-btn, .hero .cta-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.cta-btn {
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* ========== CONTAINER & SECTIONS ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* ========== INTRO SECTION ========== */
.intro-section {
    background-color: var(--dark-bg-lighter);
    border-radius: 15px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    margin-bottom: 4rem;
}

.intro-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.intro-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* ========== INITIATIVES GRID ========== */
.initiatives {
    padding: 4rem 2rem;
}

.initiatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.initiative-card {
    background-color: var(--dark-bg-lighter);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.initiative-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(212, 175, 55, 0.1);
    transition: left 0.3s ease;
}

.initiative-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.2);
}

.initiative-card:hover::before {
    left: 0;
}

.initiative-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.initiative-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.initiative-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials-section {
    background-color: var(--dark-bg-lighter);
    border-radius: 15px;
    padding: 4rem 2rem;
    margin-bottom: 4rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: var(--dark-bg);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.testimonial-author {
    color: var(--primary-color);
    font-weight: bold;
}

/* ========== GALLERY SLIDER ========== */
.gallery-section {
    background-color: var(--dark-bg-lighter);
    padding: 4rem 2rem;
    border-radius: 15px;
}

.slider-container {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.2);
}

.slide {
    display: none;
    width: 100%;
    height: 400px;
    background-color: var(--border-color);
    border-radius: 15px;
    position: relative;
}

.slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #404040 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(212, 175, 55, 0.7);
    color: var(--dark-bg);
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 10;
}

.prev {
    left: 1rem;
}

.next {
    right: 1rem;
}

.prev:hover, .next:hover {
    background-color: var(--primary-color);
    padding: 1rem 1.8rem;
}

.slider-dots {
    text-align: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.3);
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 8px;
    background-color: var(--border-color);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

/* ========== PROJECTS GRID ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background-color: var(--dark-bg-lighter);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.2);
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #404040 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ========== GALLERY GRID ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    height: 250px;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #404040 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* ========== CONTACT FORM ========== */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-form {
    background-color: var(--dark-bg-lighter);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #e8c547;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.3);
}

.contact-info {
    background-color: var(--dark-bg-lighter);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.contact-info-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-info-label {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.contact-info-value {
    color: var(--text-color);
    font-size: 1rem;
}

.contact-info-value a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info-value a:hover {
    text-decoration: underline;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-top: 2rem;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* ========== FOOTER ========== */
footer {
    background-color: var(--dark-bg-lighter);
    border-top: 2px solid var(--primary-color);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--dark-bg);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ========== POLICY PAGES ========== */
.policy-content {
    background-color: var(--dark-bg-lighter);
    border-radius: 15px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    line-height: 1.8;
}

.policy-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.policy-content p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.policy-content ul, .policy-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.policy-content li {
    margin-bottom: 0.5rem;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--dark-bg-lighter);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        padding: 2rem 0;
        border-top: 2px solid var(--primary-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        padding: 1rem;
        display: block;
    }

    .nav-menu a::after {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-logo {
        height: 80px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero .donate-btn, .hero .cta-btn {
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-section {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .initiatives-grid, .testimonials-grid, .gallery-grid, .projects-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.2rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .intro-section, .contact-form, .contact-info {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .logo img {
        height: 35px;
    }

    .donate-btn, .whatsapp-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .slide {
        height: 250px;
    }

    .initiative-icon {
        font-size: 2.5rem;
    }

    .nav-menu {
        gap: 0;
    }
}
