/* Custom Styles for Virutcham Foundation NGO Website */
/* Color Palette: #d9bb72, #B68B3C, #68341E, #C1A35A */

:root {
    --primary-gold: #d9bb72;
    --secondary-gold: #B68B3C;
    --dark-brown: #68341E;
    --accent-gold: #C1A35A;
    --light-cream: #f8f6f0;
    --white: #ffffff;
    --text-dark: #2c2c2c;
    --text-light: #666666;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-cream);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Section styling */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-brown);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    display: block;
    margin: 15px auto;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(104, 52, 30, 0.9), rgba(182, 139, 60, 0.8)), 
                url('https://images.pexels.com/photos/6995104/pexels-photo-6995104.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-brown);
}

.hero-stats .stat-card {
    background: rgba(217, 187, 114, 0.15);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(217, 187, 114, 0.3);
    transition: transform 0.3s ease;
}

.hero-stats .stat-card:hover {
    transform: translateY(-5px);
    background: rgba(217, 187, 114, 0.2);
}

.hero-stats h3 {
    color: var(--primary-gold) !important;
}

.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

.animate-slide-up {
    animation: slideUp 1s ease-in 0.3s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95) !important;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(104, 52, 30, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-brown) !important;
}

.navbar-brand i {
    color: var(--secondary-gold);
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    color: var(--text-dark) !important;
}

.nav-link:hover {
    color: var(--secondary-gold) !important;
}

.nav-link.active {
    color: var(--secondary-gold) !important;
    font-weight: 600;
}

.btn-warning {
    background: linear-gradient(45deg, var(--primary-gold), var(--accent-gold)) !important;
    border: none !important;
    color: var(--dark-brown) !important;
    font-weight: 600;
}

.btn-warning:hover {
    background: linear-gradient(45deg, var(--accent-gold), var(--secondary-gold)) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(182, 139, 60, 0.3);
}

/* Service Cards */
.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(104, 52, 30, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(217, 187, 114, 0.2);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(104, 52, 30, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--secondary-gold);
}

.service-card h4 {
    color: var(--dark-brown);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card .text-success {
    color: var(--secondary-gold) !important;
}

/* Gallery */
.gallery-container {
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    height: 250px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(104, 52, 30, 0.1);
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(104, 52, 30, 0.8), rgba(182, 139, 60, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(104, 52, 30, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    animation: zoom 0.3s ease;
    border-radius: 10px;
}

@keyframes zoom {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--primary-gold);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--accent-gold);
}

.caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--primary-gold);
    padding: 10px 0;
    height: 150px;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Recent Event Card */
.recent-event-card {
    background: var(--dark-brown);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(104, 52, 30, 0.2);
}

.recent-event-card h4 {
    color: var(--primary-gold);
}

/* Achievement Items */
.achievement-item {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(104, 52, 30, 0.08);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-gold);
}

.achievement-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(104, 52, 30, 0.12);
}

.achievement-icon {
    margin-right: 1rem;
    font-size: 2rem;
    width: 60px;
    text-align: center;
}

.achievement-icon .text-warning {
    color: var(--primary-gold) !important;
}

.achievement-icon .text-primary {
    color: var(--secondary-gold) !important;
}

.achievement-icon .text-success {
    color: var(--accent-gold) !important;
}

.achievement-content h5 {
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(104, 52, 30, 0.08);
    border-left: 4px solid var(--accent-gold);
    position: relative;
}

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 3rem;
    color: var(--primary-gold);
    opacity: 0.3;
}

/* Involvement Cards */
.involvement-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(104, 52, 30, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
    text-align: center;
}

.involvement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(104, 52, 30, 0.15);
}

.involvement-card:first-child {
    border-top-color: var(--secondary-gold);
}

.involvement-card:nth-child(2) {
    border-top-color: var(--accent-gold);
}

.involvement-card:last-child {
    border-top-color: var(--primary-gold);
}

.involvement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.involvement-icon .text-primary {
    color: var(--secondary-gold) !important;
}

.involvement-icon .text-success {
    color: var(--accent-gold) !important;
}

.involvement-icon .text-warning {
    color: var(--primary-gold) !important;
}

/* Donate Section */
#donate {
    background: var(--dark-brown) !important;
}

.donate-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.donate-card h4 {
    color: var(--dark-brown) !important;
}

.bank-details h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-brown);
}

.bank-details .fw-bold {
    color: var(--secondary-gold);
    cursor: pointer;
    transition: color 0.3s ease;
}

.bank-details .fw-bold:hover {
    color: var(--accent-gold);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(104, 52, 30, 0.1);
}

.contact-info {
    background: linear-gradient(135deg, var(--light-cream), rgba(217, 187, 114, 0.1));
    padding: 2rem;
    border-radius: 20px;
    height: fit-content;
    border: 1px solid rgba(217, 187, 114, 0.2);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    margin-right: 1rem;
    margin-top: 0.3rem;
    font-size: 1.2rem;
    width: 20px;
    color: var(--secondary-gold);
}

.contact-item h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-brown);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--secondary-gold);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
}

/* Form Styles */
.form-control {
    padding: 0.75rem;
    border: 2px solid rgba(217, 187, 114, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-control:focus {
    border-color: var(--secondary-gold);
    box-shadow: 0 0 0 0.2rem rgba(182, 139, 60, 0.25);
    background-color: var(--white);
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(45deg, var(--secondary-gold), var(--accent-gold)) !important;
    color: white !important;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--accent-gold), var(--primary-gold)) !important;
}

.btn-success {
    background: linear-gradient(45deg, var(--accent-gold), var(--primary-gold)) !important;
    color: var(--dark-brown) !important;
}

.btn-outline-primary {
    border: 2px solid var(--secondary-gold) !important;
    color: var(--secondary-gold) !important;
    background: transparent !important;
}

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

.btn-outline-warning {
    border: 2px solid var(--primary-gold) !important;
    color: var(--primary-gold) !important;
    background: transparent !important;
}

.btn-outline-warning:hover {
    background: var(--primary-gold) !important;
    color: var(--dark-brown) !important;
}

/* Impact Cards */
.impact-card {
    background: linear-gradient(135deg, rgba(217, 187, 114, 0.1), rgba(193, 163, 90, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(217, 187, 114, 0.3);
    transition: all 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(104, 52, 30, 0.1);
    background: linear-gradient(135deg, rgba(217, 187, 114, 0.15), rgba(193, 163, 90, 0.15));
}

.impact-card h4 {
    color: var(--secondary-gold) !important;
}

/* Background sections */
.bg-light {
    background-color: var(--light-cream) !important;
}

.bg-primary {
    background: var(--dark-brown) !important;
}

/* Footer */
footer.bg-dark {
    background: var(--dark-brown) !important;
}

footer h5, footer h6 {
    color: var(--primary-gold) !important;
}

footer .social-links a {
    background: var(--secondary-gold);
}

footer .social-links a:hover {
    background: var(--primary-gold);
}

/* Text colors */
.text-primary {
    color: var(--secondary-gold) !important;
}

.text-warning {
    color: var(--primary-gold) !important;
}

.text-success {
    color: var(--accent-gold) !important;
}

/* About section team styling */
.team-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(104, 52, 30, 0.1);
    border: 1px solid rgba(217, 187, 114, 0.2);
}

.team-member h5 {
    color: var(--dark-brown);
    font-weight: 600;
}

.team-member .text-muted {
    color: var(--text-light) !important;
}

.board-members h6 {
    color: var(--secondary-gold);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats .stat-card {
        margin-bottom: 1rem;
    }
    
    .service-card,
    .involvement-card {
        margin-bottom: 2rem;
    }
    
    .gallery-item {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    .modal-content {
        width: 95%;
    }

    .hero-section {
        text-align: center;
        padding: 3rem 0;
    }

}

@media (max-width: 576px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .achievement-item {
        flex-direction: column;
        text-align: center;
    }
    
    .achievement-icon {
        margin-bottom: 1rem;
        margin-right: 0;
    }
}

/* Animation for scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-cream);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--secondary-gold), var(--accent-gold));
}

/* Additional enhancements */
.blockquote {
    border-left: 4px solid var(--primary-gold);
    padding-left: 1rem;
    font-style: italic;
}

.blockquote .h5 {
    color: var(--primary-gold) !important;
}

/* Alert styles */
.alert-success {
    background-color: rgba(193, 163, 90, 0.1) !important;
    border-color: var(--accent-gold) !important;
    color: var(--dark-brown) !important;
}

.alert-danger {
    background-color: rgba(104, 52, 30, 0.1) !important;
    border-color: var(--dark-brown) !important;
    color: var(--dark-brown) !important;
}

/* Navbar toggler */
.navbar-toggler {
    border-color: var(--secondary-gold) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23B68B3C' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}


@media (min-width: 1600px) {
  .hero-section h1{
    margin-top: -8rem;
  }
}

