/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ── Very important global mobile fixes ── */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

body {
    font-size: 16px;          /* better base size for mobile readability */
    min-width: 320px;         /* prevent too narrow squeezing */
}

img, iframe, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent horizontal scroll on body */
html, body {
    overflow-x: hidden;
}

/* Better box-sizing everywhere */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: white;
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 80px;
    width: 80px; /* equal height and width for perfect circle */
    border-radius: 50%; /* makes it circular */
    transition: transform 0.3s ease;
    background-color: white; /* white circular background */
    padding: 2px; /* optional, gives spacing inside circle */
    object-fit: contain; /* keeps logo inside circle without stretching */
}

.logo-img:hover {
    transform: scale(1.1);
}



.logo-text {
    
    flex-direction: column;
    line-height: 1.2;
    color: black;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 700;
    color:rgb(0, 90, 139);
}

.logo-sub {
    font-size: 1.0rem;
    font-weight: 600;
}

.logo-tagline {
    font-size: 0.8rem;
    font-weight: 400;
    font-style: italic;
    opacity: 0.9;
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: black;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    cursor: pointer;
}

.nav-link:hover {
    color: #f43f5e;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #f43f5e;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}


@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;                       /* better from top */
        height: 100vh;
        width: 80%;                   /* wider for easier use */
        max-width: 320px;
        background: rgba(13, 148, 136, 0.98);
        flex-direction: column;
        justify-content: center;
        padding: 2rem 1rem;
        transition: left 0.4s ease;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.3rem;
        padding: 1.2rem 0;
        color: white;
    }

    /* Hamburger bigger & better contrast */
    .nav-toggle {
        z-index: 1000;
    }

    .bar {
        width: 32px;
        height: 4px;
        background: #0d9488;   /* better color contrast */
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    background-size: contain;      
    background-repeat: no-repeat;
      

    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slideshow {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-slide img.top-focus {
    object-position: top center;
}


.hero-slide-reflection {
    position: absolute;
    bottom: -30%;
    left: 0;
    width: 100%;
    height: 30%;
    /* background: linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0)); */
    transform: scaleY(-1);
    opacity: 0.4;
}

.hero-slide-reflection img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, rgba(13, 148, 136, 0.7), rgba(244, 63, 94, 0.7)); */
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    min-height: 2rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}
@media (max-width: 768px) {
    .hero {
        height: 85vh;              /* less height → more content visible */
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-slide img,
    .hero-slide-reflection img {
        object-position: center center !important; /* better centering on mobile */
    }
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, #0d9488, #14b8a6);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.6);
}

.btn-outline {
    background: transparent;
    color: #0d9488;
    border: 2px solid #0d9488;
}

.btn-outline:hover {
    background: #0d9488;
    color: white;
    transform: translateY(-3px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0d9488;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    padding-right: 2rem;
}

.about-text h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #0d9488;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.founder-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    object-position: top-center;
}

.founder-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
object-position: top-center;
 object-position: top center;

}


/* Projects Section */


/* Highlight the entire card when clicked (active state) */
.project-card.active {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(13, 148, 136, 0.5);
  border: 3px solid rgba(13, 148, 136, 0.6);
}

/* Optional: make the highlight color match the data-color attribute */
.project-card[data-color="blue"].active {
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
}

.project-card[data-color="red"].active {
  border-color: rgba(244, 63, 94, 0.8);
  box-shadow: 0 0 25px rgba(244, 63, 94, 0.5);
}

.project-card[data-color="green"].active {
  border-color: rgba(16, 185, 129, 0.8);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
}

.project-card[data-color="purple"].active {
  border-color: rgba(139, 92, 246, 0.8);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
}


.projects {
  position: relative;
}

.projects-slider {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 2rem;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #0d9488 #f8fafc;
}

.projects-slider::-webkit-scrollbar {
  height: 8px;
}

.projects-slider::-webkit-scrollbar-track {
  background: #f8fafc;
}

.projects-slider::-webkit-scrollbar-thumb {
  background: #0d9488;
  border-radius: 4px;
}

.project-card {
  flex: 0 0 350px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  scroll-snap-align: start;
  position: relative;
}

.project-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 80%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.project-card.active .project-overlay {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Define different colors for each project using data attributes */
.project-card[data-color="blue"] .project-overlay {
  background: linear-gradient(45deg, rgba(59, 130, 246, 0.8), rgba(147, 197, 253, 0.8));
}

.project-card[data-color="red"] .project-overlay {
  background: linear-gradient(45deg, rgba(244, 63, 94, 0.8), rgba(251, 113, 133, 0.8));
}

.project-card[data-color="green"] .project-overlay {
  background: linear-gradient(45deg, rgba(16, 185, 129, 0.8), rgba(52, 211, 153, 0.8));
}

.project-card[data-color="purple"] .project-overlay {
  background: linear-gradient(45deg, rgba(139, 92, 246, 0.8), rgba(192, 132, 252, 0.8));
}

.project-icon {
  font-size: 3rem;
  color: white;
}

.project-content {
  padding: 2rem;
}

.project-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0d9488;
  margin-bottom: 1rem;
}

.project-content p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
}

.slider-arrow {
  background: linear-gradient(45deg, #0d9488, #14b8a6);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
}

.slider-arrow:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.6);
}

.slider-arrow:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 768px) {
    /* All horizontal sliders become scrollable nicely */
    .projects-slider,
    .team-grid,
    .media-grid,
    .stories-slider {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 10px;
        scroll-padding: 10px;
    }

    .project-card,
    .team-member,
    .media-card {
        flex: 0 0 85vw;          /* almost full width - feels natural */
        max-width: 360px;
        scroll-snap-align: start;
    }

    .media-grid {
        grid-template-columns: 1fr; /* stack vertically on very small screens */
    }

    /* Improve readability */
    .project-content p,
    .member-description,
    .media-content p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.05rem;
    }
}

.project-card[data-link] {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card[data-link]:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.learn-more-btn {
    margin-top: 1rem;
    background: linear-gradient(45deg, #0d9488, #14b8a6);
    color: white;
    border: none;
}


/* Gallery Section */
.gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-preview img:hover {
    transform: scale(1.05);
}

.view-all-container {
    text-align: right;
    margin-top: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Media Spotlights Section */
.filter-buttons {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-btn {
    margin: 0 0.5rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.media-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.media-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.media-image {
    position: relative;
    height: 330px;
    overflow: hidden;
}

.media-image img,
.media-image iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-card:hover .media-image img,
.media-card:hover .media-image iframe {
    transform: scale(1.1);
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(13, 148, 136, 0.8), rgba(244, 63, 94, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-card:hover .media-overlay {
    opacity: 1;
}

.category-tag {
    background: #0d9488;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.media-content {
    padding: 1.5rem;
}

.media-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0d9488;
    margin-bottom: 0.5rem;
}

.media-content .date {
    color: #666;
    font-size: 0.9rem;
}
 .media-card[data-category="video"] .media-overlay,
 .media-card[data-category="podcast"] .media-overlay {
     display: none;
 }
/* Team Section */
.team {
    background: #f8fafc;
}

.team-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 2rem;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #0d9488 #f8fafc;
}

.team-grid::-webkit-scrollbar {
    height: 8px;
}

.team-grid::-webkit-scrollbar-track {
    background: #f8fafc;
}

.team-grid::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 4px;
}

.team-member {
    flex: 0 0 300px;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    scroll-snap-align: start;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #0d9488;

}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.member-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.member-role {
    color: #0d9488;
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-description {
    color: #666;
    line-height: 1.6;
}

/* Stories Section */
.story-featured {
    max-width: 1000px;
    margin: 0 auto;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.story-image {
    border-radius: 15px;
    overflow: hidden;
   
}

.story-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.story-text h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #0d9488;
    margin-bottom: 1.5rem;
}

.story-text p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Stories Slider */
.stories-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
}

.stories-track {
    display: flex;
    transition: transform 1s ease-in-out;
}
.story-item {
    min-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.story-image {
    border-radius: 15px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    object-position: top center;
    object-fit: contain;
}

.story-text h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #0d9488;
    margin-bottom: 1.5rem;
}

.story-text p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Slider Dots */
.slider-dots {
    text-align: center;
    margin-top: 2rem;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: #0d9488;
}

.testimonial-buttons {
    margin-top: 15px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.testimonial-buttons .btn {
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #e53935;
    color: #fff;
}

.btn-primary:hover {
    background-color: #c62828;
}

.btn-secondary {
    background-color: #1877f2;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #0d65d9;
}


/* Responsive */
@media (max-width: 768px) {
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    .story-image img {
        height: 250px;
    }
    .story-text h3 {
        font-size: 1.6rem;
    }
}

/* Impact Section */
.impact {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: white;
    text-align: center;
}

.impact .section-title,
.impact .section-subtitle {
    color: white;
}

 .stat-number::after { content: "+";}



.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: green;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

.donate-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    margin: 0 auto;
}

.donate-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.donate-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ---------- Modal Styles ---------- */
.qr-modal {
    display: none;               /* hidden until button click */
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}
.qr-modal-content {
    position: relative;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    animation: slideUp 0.4s ease-out;
}
.qr-close {
    position: absolute;
    top: 8px; right: 12px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color .2s;
}
.qr-close:hover { color: #333; }
.qr-image { 
    width: 100%; 
    max-width: 260px; 
    margin: 1rem 0;
}
.qr-text {
    margin-top: .5rem;
    font-size: .95rem;
    color: #555;
}

/* ---------- Animations ---------- */
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }
@keyframes slideUp { 
    from {transform:translateY(30px); opacity:0;} 
    to   {transform:translateY(0); opacity:1;} 
}

/* keep your existing button styles */
.btn-primary {
    /* example – replace with your own */
    background:#28a745; color:#fff; border:none; padding:.8rem 1.6rem;
    font-size:1rem; border-radius:6px; cursor:pointer;
}
.btn-primary:hover { background:#218838; }


/* Contact Section */
.contact {
    background: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    space-y: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 1.5rem;
    color: #0d9488;
    margin-top: 0.25rem;
}

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-item p {
    color: #666;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #0d9488, #14b8a6);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.4);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Partners Section */
.partners {
    background: #f8fafc;
    overflow: hidden;
    display:flex;
    justify-content: center;
}

.partners-slider {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
   /*  animation: autoScroll 20s linear infinite;*/
    width: max-content;
}

.partner-card {
    flex: 0 0 200px;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-10px);
}

.partner-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
}

.partner-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.partner-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0d9488;
    margin-bottom: 0.5rem;
}

.partner-content p {
    font-size: 0.9rem;
    color: #666;
}

@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-1000px);
    }
}


/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

.footer-logo span {
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f43f5e;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #000;
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1500;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #0d9488, #14b8a6);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.4);
    transition: all 0.3s ease;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(13, 148, 136, 0.6);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-30px);
    }
    60% {
        transform: translateX(-50%) translateY(-15px);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(13, 148, 136, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text {
        padding-right: 0;
    }


    .founder-image img {
        height: 300px;
    }

    .projects-slider {
        gap: 1rem;
    }

    .project-card {
        flex: 0 0 300px;
    }

    .team-grid {
        gap: 1rem;
    }

    .team-member {
        flex: 0 0 250px;
    }

    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .story-image img {
        height: 250px;
    }

    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .donate-section {
        padding: 2rem;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .hero-slide-reflection {
        height: 20%;
        bottom: -20%;
    }

    .slider-controls {
        padding: 0 10px;
    }

    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .founder-image img {
        height: 250px;
    }

    .projects-slider {
        gap: 1rem;
    }

    .project-card {
        flex: 0 0 250px;
    }

    .project-content,
    .team-member {
        padding: 1.5rem;
    }

    .story-content {
        padding: 1.5rem;
    }

    .story-text h3 {
        font-size: 1.5rem;
    }

    .impact-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }

    .floating-contact {
        bottom: 20px;
        right: 20px;
    }

    .hero-slide-reflection {
        height: 15%;
        bottom: -15%;
    }

    .slider-controls {
        padding: 0 5px;
    }

    .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    /* All horizontal sliders become scrollable nicely */
    .projects-slider,
    .team-grid,
    .media-grid,
    .stories-slider {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 10px;
        scroll-padding: 10px;
    }

    .project-card,
    .team-member,
    .media-card {
        flex: 0 0 85vw;          /* almost full width - feels natural */
        max-width: 360px;
        scroll-snap-align: start;
    }

    .media-grid {
        grid-template-columns: 1fr; /* stack vertically on very small screens */
    }

    /* Improve readability */
    .project-content p,
    .member-description,
    .media-content p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.05rem;
    }
}