:root {
    --primary: #2e7d32;
    --primary-light: #4caf50;
    --primary-dark: #1b5e20;
    --secondary: #ff9800;
    --accent: #f44336;
    --text: #333333;
    --text-light: #666666;
    --background: #ffffff;
    --light-bg: #f5f5f5;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
    background-color: var(--background);
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

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

.btn-secondary:hover {
    background-color: #e68900;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
}

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

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

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

.language-toggle {
    display: flex;
    align-items: center;
    margin-left: 20px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 4px;
    background-color: var(--light-bg);
    transition: var(--transition);
}

.language-toggle:hover {
    background-color: #e0e0e0;
}

.language-toggle i {
    margin-right: 8px;
    color: var(--primary);
}

.donate-btn {
    background-color: var(--secondary) !important;
    padding: 10px 20px !important;
    border-radius: 4px;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    transition: var(--transition);
}

.donate-btn:hover {
    background-color: #e68900 !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.5s;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.8s;
}

.hero-btns {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 1.1s;
}

.hero-btns .btn {
    margin: 0 10px;
}

.tamil-banner {
    position: relative;
    background-color: var(--primary-dark);
    color: white;
    padding: 10px 0;
    overflow: hidden;
}

.tamil-text-container {
    display: flex;
    width: 200%;
    animation: scrollTamil 30s linear infinite;
}

.tamil-text {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 0 20px;
    flex-shrink: 0;
}

.about {
    background-color: var(--light-bg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateX(-50px);
    transition: var(--transition);
}

.about-img.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

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

.about-text {
    flex: 1;
    opacity: 0;
    transform: translateX(50px);
    transition: var(--transition);
}

.about-text.animate {
    opacity: 1;
    transform: translateX(0);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.program-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.program-img {
    height: 200px;
    overflow: hidden;
}

.program-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.program-card:hover .program-img img {
    transform: scale(1.1);
}

.program-content {
    padding: 20px;
}

.program-content h3 {
    color: var(--primary-dark);
    font-size: 1.4rem;
}

.impact {
    background-color: var(--primary);
    color: white;
    text-align: center;
}

.impact .section-title h2 {
    color: white;
}

.impact .section-title h2::after {
    background-color: var(--secondary);
}

.impact-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stat {
    margin: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.stat.animate {
    opacity: 1;
    transform: translateY(0);
}

.stat i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.stat h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.announcements {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.announcements-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.announcement-poster {
    max-width: 600px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.announcement-poster:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.announcement-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery {
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.gallery-container {
    position: relative;
    height: 600px;
    margin: 40px 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-track {
    display: flex;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    transition: transform 0.5s ease;
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

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

.gallery-slide.active img {
    transform: scale(1.1);
}

.gallery-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s ease 0.3s;
}

.gallery-slide.active .gallery-content {
    transform: translateY(0);
    opacity: 1;
}

.gallery-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

.gallery-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 10;
}

.gallery-control {
    background-color: rgba(255, 255, 255, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.gallery-control:hover {
    background-color: white;
    transform: scale(1.1);
}

.floating-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.floating-img {
    width: 180px;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    animation: float 6s ease-in-out infinite;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
    cursor: pointer;
}

.floating-img.animate {
    opacity: 1;
    transform: translateY(0);
}

.floating-img:nth-child(2) {
    animation-delay: 0.5s;
}

.floating-img:nth-child(3) {
    animation-delay: 1s;
}

.floating-img:nth-child(4) {
    animation-delay: 1.5s;
}

.floating-img:nth-child(5) {
    animation-delay: 2s;
}

.floating-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.floating-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 125, 50, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.floating-img:hover .floating-overlay {
    opacity: 1;
}

.floating-overlay i {
    font-size: 1.5rem;
    color: white;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 15px;
    margin-top: 5px;
}

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

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

footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
    bottom: 0;
    left: 0;
}

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

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

.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 2001;
}

.program-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.category-btn {
    padding: 10px 20px;
    background-color: var(--light-bg);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.category-btn.active, .category-btn:hover {
    background-color: var(--primary);
    color: white;
}

@media (min-width: 769px) and (max-width: 1200px) {
    .hero h1 {
        font-size: 2.8rem !important;
    }
    .hero p {
        font-size: 1.1rem !important;
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes scrollTamil {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .gallery-container {
        height: 500px;
    }
    
    .tamil-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .language-toggle {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero {
        height: 100vh;
        min-height: 400px;
        align-items: center;
        text-align: center;
    }
    
    .hero-bg-slide {
        background-size: cover;
        background-position: center 30%;
    }
    
    .hero-content {
        max-width: 90%;
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 0.8rem;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .hero-btns .btn {
        margin: 0;
        padding: 8px 16px;
        font-size: 0.75rem;
        width: 160px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .stat {
        width: 45%;
    }
    
    .gallery-container {
        height: 400px;
    }
    
    .floating-img {
        width: 150px;
        height: 150px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .tamil-text {
        font-size: 0.8rem;
        padding: 0 15px;
    }
    
    .tamil-banner {
        padding: 8px 0;
    }
    
    .program-categories {
        gap: 5px;
    }
    
    .category-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 100vh;
        min-height: 350px;
    }
    
    .hero-content {
        max-width: 95%;
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .hero p {
        font-size: 0.75rem;
        margin-bottom: 15px;
    }
    
    .hero-btns .btn {
        padding: 6px 12px;
        font-size: 0.7rem;
        width: 140px;
    }
    
    .stat {
        width: 100%;
    }
    
    .gallery-container {
        height: 300px;
    }
    
    .floating-img {
        width: 120px;
        height: 120px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
        margin-right: 8px;
    }
    
    .tamil-text {
        font-size: 0.75rem;
        padding: 0 10px;
    }
    
    .tamil-banner {
        padding: 6px 0;
    }
    
    .category-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .hero {
        height: 100vh;
        min-height: 300px;
    }
    
    .hero h1 {
        font-size: 1.2rem;
    }
    
    .hero p {
        font-size: 0.7rem;
    }
    
    .hero-btns .btn {
        padding: 5px 10px;
        font-size: 0.65rem;
        width: 130px;
    }
    
    .tamil-text {
        font-size: 0.7rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        padding-top: 60px;
    }
    
    .hero h1 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    
    .hero p {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }
    
    .hero-btns .btn {
        padding: 6px 12px;
        font-size: 0.7rem;
        width: 140px;
    }
    
    .hero-bg-slide {
        background-position: center 40%;
    }
}