/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    overflow-x: hidden;
}

/* ===== VIDEO HERO SECTION ===== */
.video-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 105, 92, 0.8), rgba(0, 77, 64, 0.9));
    z-index: 2;
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 105, 92, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 5px 0;
    background: rgba(0, 105, 92, 0.98);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffd700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-text span {
    color: #ffd700;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    gap: 5px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background: rgba(0, 105, 92, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    padding: 15px;
    margin: 8px 0;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ===== HERO CONTENT ===== */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #ffd700, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 30px;
    max-width: 800px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::after {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #00695c;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.card-btn {
    padding: 12px 30px;
    background: #00695c;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background: #004d40;
    transform: translateY(-3px);
}

/* ===== SECTIONS & LAYOUT ===== */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section {
    margin-bottom: 80px;
}

.section-title {
    text-align: center;
    color: #00695c;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #ffd700, #00695c);
    border-radius: 2px;
}

/* ===== TABS SECTION ===== */
.tabs-section {
    background: white;
    padding: 80px 20px;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 1400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 30px;
    background: #f8f9fa;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    background: #00695c;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 105, 92, 0.3);
}

.tab-btn.active {
    background: #00695c;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 105, 92, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

/* ===== CARDS & GRIDS ===== */
.cards-grid,
.mission-grid,
.donate-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Slideshow inside cards */
.slideshow-card .slideshow-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.slideshow-container .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slideshow-container .slide:first-child {
    opacity: 1;
}

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

.slideshow-container .prev,
.slideshow-container .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slideshow-container .prev {
    left: 15px;
}

.slideshow-container .next {
    right: 15px;
}

.slideshow-container .prev:hover,
.slideshow-container .next:hover {
    background: rgba(0, 105, 92, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-container .dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slideshow-container .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slideshow-container .dot.active {
    background: white;
    transform: scale(1.2);
}

/* Gallery slideshow */
.gallery-item .slideshow-container {
    height: 300px;
}

/* Card content */
.card-content {
    padding: 25px;
    text-align: center;
}

.card-category {
    display: inline-block;
    padding: 5px 15px;
    background: #00695c;
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.card-title {
    color: #00695c;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.card-text {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-footer {
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.card-date {
    color: #999;
    font-size: 0.9rem;
}

/* Founding Story */
.founding-story {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.story-text h3 {
    color: #00695c;
    font-size: 2rem;
    margin-bottom: 25px;
}

.story-text p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.story-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.story-image img:hover {
    transform: scale(1.02);
}

/* Mission Cards */
.mission-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s ease;
    border-top: 5px solid #00695c;
}

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

.mission-icon {
    font-size: 3.5rem;
    color: #00695c;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.mission-card:hover .mission-icon {
    transform: scale(1.2);
}

.mission-card h4 {
    color: #00695c;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.mission-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Calendar */
#calendar {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #00695c;
}

/* Forms */
.form-container {
    max-width: 700px;
    margin: 0 auto;
}

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

.form-card h3 {
    color: #00695c;
    text-align: center;
    margin-bottom: 35px;
    font-size: 2rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #00695c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 105, 92, 0.1);
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #00695c, #009688);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #004d40, #00796b);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 105, 92, 0.3);
}

/* Gallery */
.gallery-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.gallery-item .slideshow-container {
    height: 100%;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 105, 92, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #004d40, #00695c);
    color: white;
    padding: 80px 20px 30px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h4 {
    color: #ffd700;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #ffd700;
    color: #00695c;
    transform: translateY(-5px) rotate(360deg);
}

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

/* Floating Buttons */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.4s ease;
    border: 4px solid white;
    animation: float 3s ease-in-out infinite;
}

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

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.back-to-top {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #00695c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 105, 92, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #004d40;
    transform: translateY(-5px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .header-container { max-width: 1100px; }
}

@media (max-width: 992px) {
    .desktop-nav { display: none; }
    .mobile-menu-toggle { display: block; }
    .header-container { padding: 12px 15px; }
    .logo-text { font-size: 1.3rem; }

    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2.2rem; }
    .story-content { grid-template-columns: 1fr; }
    .cards-grid, .mission-grid, .donate-grid, .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .logo-img { width: 50px; height: 50px; }
    .logo-text { font-size: 1.2rem; }

    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-buttons { flex-direction: column; max-width: 300px; margin: 30px auto 0; }
    .btn { width: 100%; justify-content: center; }

    .founding-story { padding: 30px 20px; }
    .cards-grid, .mission-grid, .donate-grid, .gallery-grid { grid-template-columns: 1fr; }

    .tabs-header { flex-direction: column; align-items: center; }
    .tab-btn { width: 100%; max-width: 300px; justify-content: center; }

    .form-card { padding: 30px 20px; }

    .slideshow-container .prev,
    .slideshow-container .next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        font-size: 1.8rem;
    }
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 90px;
        right: 20px;
        font-size: 1.3rem;
    }

    main { padding: 60px 15px; }
    .section { margin-bottom: 60px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.8rem; }
    .gallery-grid { grid-template-columns: 1fr; }
}