/* Basic Reset & Styling */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f7f9fc;
    color: #333;
}

/* Hero Section Styles */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    background-image: url('../images/nssherobackground.png'); /* ✅ Your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* ✅ Softer gradient overlay for better text visibility */
.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(170, 170, 170, 0.7), rgba(0, 0, 0, 0.5));
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    color: #f3efef;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.hero-motto {
    font-style: italic;
    color: #aba8f5;
    margin-bottom: 2rem;
    font-weight: bold;
}

/* Buttons */
.hero-buttons .btn {
    padding: 12px 25px;
    margin: 0 10px;
    border: none;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: #007bff;
    color: white;
}

.secondary-btn {
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.primary-btn:hover {
    background-color: #0056b3;
}

.secondary-btn:hover {
    background-color: #007bff;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Navbar Styles (Same as before) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #007bff;
}

/* Hamburger Menu Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
}

/* Responsive Hamburger Styles */
/* Navbar (Same as before) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #007bff;
}

/* Hamburger Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 60px;
        right: 30px;
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;   /* ✔ Center horizontally */
        justify-content: center; /* ✔ Center vertically */
        width: 180px;
        overflow: hidden;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 0;
        height: 0;             /* ✔ Use height instead of max-height */
        transition: height 0.4s ease;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .nav-links.active {
        height: 360px; /* adjust based on how many links you have */
    }

    .menu-toggle {
        display: flex;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

/* Logo Image Style */
.logo img {
    height: 40px;
    width: auto;
}

/* About NSS Section Styles */
.about {
    background-color: #f7f9fc;
    padding: 80px 20px;
    text-align: center;
    color: #333;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #007bff;
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.about-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 30px 20px;
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.about-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #007bff;
}

.about-card p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .about-details {
        flex-direction: column;
        align-items: center;
    }
}

/* Events Section Styles */
.events {
    background-color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    color: #333;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #007bff;
}

.event-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* Event Card */
.event-card {
    background-color: #f7f9fc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    width: 300px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.event-card-img-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #eee;
    overflow: hidden;
    height: 180px; /* default for landscape */
}

.event-card-img-wrapper img {
    border-radius: 0;
    transition: all 0.2s;
    max-width: 100%;
    max-height: 300px;
    display: block;
}

.event-card-body {
    padding: 20px;
    text-align: left;
}

.event-card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #007bff;
}

.event-card-date {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

.event-card-description {
    font-size: 1rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .event-cards {
        flex-direction: column;
        align-items: center;
    }
}

/* Gallery Preview Styles */
.gallery-preview {
    padding: 50px 20px;
    background-color: #f9fbff;
    text-align: center;
}

.gallery-preview h2 {
    margin-bottom: 30px;
    color: #007bff;
}

.preview-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.preview-grid img {
    width: 220px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.preview-grid img:hover {
    transform: scale(1.05);
}

.gallery-button {
    margin-top: 30px;
}

.view-gallery-btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.view-gallery-btn:hover {
    background-color: #0056b3;
}

/* Add this for mobile 2x2 grid */
@media (max-width: 600px) {
    .preview-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        justify-items: center;
    }
    .preview-grid img {
        width: 100%;
        max-width: 100%;
        height: 110px;
        object-fit: cover;
        border-radius: 8px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .hero-buttons .btn {
        margin: 0;
        width: 100%;
        max-width: 250px;
    }
}

/* Volunteers Section Styles */
.volunteers-section {
    padding: 40px 20px;
    background-color: #f7f9fc;
    text-align: center;
}

.volunteers-section h2 {
    color: #007bff;
    margin-bottom: 30px;
}

.volunteers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.volunteer-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 200px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.volunteer-card:hover {
    transform: translateY(-5px);
}

.volunteer-card img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.volunteer-name {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.volunteer-role {
    font-size: 0.9rem;
    color: #555;
}

/* Volunteer Section (additional styles) */
.view-all-container {
    margin-top: 30px;
    text-align: center;
}

.view-all-btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.view-all-btn:hover {
    background-color: #0056b3;
}

.volunteers-section { padding: 40px 20px; background: #f7f9fc; text-align: center; }
.volunteers-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 20px; }
.volunteer-card {
    background: #fff; border-radius: 6px; box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    width: 150px; padding: 12px; text-align: center;
}
.volunteer-card img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.volunteer-card .name { font-weight: bold; }
.volunteer-card .role { font-size: 0.85rem; color: #555; }

.contact-section {
    background: #f7f9fc;
    padding: 50px 20px;
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 30px;
    color: #007bff;
}

.contact-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    width: 280px;
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2em;
    color: #007bff;
    margin-bottom: 10px;
}

.contact-card h3 {
    margin-bottom: 8px;
    color: #333;
}

.contact-card p {
    font-size: 0.95rem;
    color: #555;
}

.contact-card a {
    color: #007bff;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

@media(max-width: 768px) {
    .contact-cards { flex-direction: column; align-items: center; }
}

/* Import Font */
@import url('https://fonts.googleapis.com/css?family=Source+Code+Pro:200,900');

:root {
    --text-color: hsla(210, 50%, 95%, 1);
    --shadow-color: hsla(210, 40%, 52%, .4);
    --btn-color: hsl(210, 10%, 59%);
    --bg-color: #141218;
}

/* Reset & Base */
.contact-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-family: "Source Code Pro", monospace;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--btn-color);
    text-decoration: none;
    box-shadow: var(--shadow-color) 2px 2px 22px;
    overflow: hidden;
    cursor: pointer;
    z-index: 0;
}

/* Hover + Focus Effects */
.contact-btn:hover, .contact-btn:focus {
    background-color: #0f61c6;
    box-shadow: var(--btn-color) 0 0 25px;
    color: #fff;
}

/* Bubbles */
.contact-btn::before {
    content: '';
    opacity: 0.5;
    background:
        radial-gradient(circle at 20% 35%, transparent 0, transparent 2px, var(--text-color) 3px, var(--text-color) 4px, transparent 4px),
        radial-gradient(circle at 75% 44%, transparent 0, transparent 2px, var(--text-color) 3px, var(--text-color) 4px, transparent 4px),
        radial-gradient(circle at 46% 52%, transparent 0, transparent 4px, var(--text-color) 5px, var(--text-color) 6px, transparent 6px);
    width: 100%;
    height: 300%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    animation: bubbles 5s linear infinite both;
}

/* Bubbles Animation */
@keyframes bubbles {
    from { transform: translateY(0); }
    to   { transform: translateY(-66.666%); }
}

/* --- Contact Buttons --- */
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.08rem;
    text-transform: none;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    outline: none;
}

.contact-btn i {
    font-size: 1.2em;
    margin-right: 8px;
    transition: transform 0.2s;
}

.contact-btn:active {
    transform: scale(0.97);
}

/* Email Button */
.email-btn {
    background: linear-gradient(90deg, #007bff 80%, #0056b3 100%);
    color: #fff;
    border: 1.5px solid #007bff;
    box-shadow: 0 2px 10px rgba(0,123,255,0.08);
}
.email-btn:hover, .email-btn:focus {
    background: linear-gradient(90deg, #0056b3 80%, #007bff 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(0,123,255,0.13);
}

/* Instagram Button */
.insta-btn {
    background: linear-gradient(90deg, #e1306c 60%, #fd1d1d 100%);
    color: #fff;
    border: 1.5px solid #e1306c;
    box-shadow: 0 2px 10px rgba(225,48,108,0.10);
    
}
.insta-btn:hover, .insta-btn:focus {
    background: linear-gradient(90deg, #fd1d1d 60%, #e1306c 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(225,48,108,0.15);
}

/* Remove underline on hover for all contact buttons */
.contact-btn, .contact-btn:hover, .contact-btn:focus {
    text-decoration: none !important;
}

/* Make all contact button text white */
.contact-btn,
.contact-btn:visited,
.contact-btn:active,
.contact-btn:focus,
.contact-btn:hover {
    color: #fff !important;
}

/* Add fade effect on hover for contact buttons */
.contact-btn:hover, .contact-btn:focus {
    opacity: 0.85;
    transition: opacity 0.25s, background 0.5s, color 0.2s, box-shadow 0.2s, transform 0.5s;
}


/* Responsive: full width on mobile */
@media (max-width: 600px) {
    .contact-btn {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 13px 0;
    }
}

.activities-section {
  padding: 50px 20px;
  background-color: #ffffff;
  text-align: center;
}

.activities-section h2 {
  color: #007bff;
  margin-bottom: 30px;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: auto;
}

.activity-card {
  background-color: #f7f9fc;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.activity-card:hover {
  transform: translateY(-5px);
}

.activity-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.activity-info {
  padding: 15px;
  flex-grow: 1;
  text-align: left;
}

.activity-info h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #333;
}

.activity-info p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

.activity-info .date {
  font-size: 0.8rem;
  color: #888;
}

.view-all-activities {
  margin-top: 30px;
}

.view-all-activities .btn {
  background-color: #007bff;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.view-all-activities .btn:hover {
  background-color: #0056b3;
}

.activities-section {
  padding: 60px 20px;
  background-color: #f7f9fc;
  text-align: center;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: auto;
}

.activity-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: 0.3s;
  cursor: pointer;
}
.activity-card:hover {
  transform: translateY(-5px);
}
.activity-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.activity-card-content {
  padding: 16px;
  text-align: left;
}
.activity-title {
  font-weight: bold;
  color: #007bff;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.activity-short {
  font-size: 0.9rem;
  color: #555;
}

.view-more-btn {
  margin-top: 20px;
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}
.view-more-btn:hover {
  background: #0056b3;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 99;
  padding: 60px 20px;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background: white;
  margin: auto;
  max-width: 500px;
  padding: 30px;
  border-radius: 8px;
  position: relative;
}
.modal-content img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 15px;
}
.close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-content h3 {
  margin-bottom: 10px;
}
.modal-content ul {
  list-style: none;
  padding: 0;
  font-size: 0.9rem;
}
.modal-content li {
  margin-bottom: 6px;
  color: #444;
}

/* Responsive modal fix for mobile */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #fff;
  margin: auto;
  border-radius: 10px;
  padding: 24px 18px;
  max-width: 95vw;
  width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Center modal content a bit more to the left on mobile */
@media (max-width: 600px) {
  .modal-content {
    width: 97vw;
    max-width: 97vw;
    margin-left: -3.5vw; /* Shift slightly to the left */
    margin-right: auto;
    padding: 16px 6px;
  }
  .modal img {
    max-width: 90vw;
    height: auto;
  }
}

footer a:hover {
    color: #fff;
    transition: color 0.3s;
}

.reels-btn {
    background-color: #007bff;
    color: #fff;
    padding: 12px 24px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.2s;
    margin-top: 24px;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    outline: none;
}

.reels-btn:hover,
.reels-btn:focus {
    background-color: #0056b3;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,123,255,0.13);
    text-decoration: none;
    opacity: 0.93;
}

.built-by {
    margin-top: 10px;
    font-style: italic;
    font-size: 13px;
    color: #888;
    text-align: center;
}

.built-by a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.built-by a:hover,
.built-by a:focus {
    color: #1976d2;
    text-decoration: underline;
}

.nexa-contact-popup {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 260px;
    background: #fff;
    color: #222;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    z-index: 9999;
    font-family: Arial, sans-serif;
    border: 1px solid #e0e0e0;
    animation: fadeInNexa 0.3s;
}
@keyframes fadeInNexa {
    from { opacity: 0; transform: translateY(30px);}
    to { opacity: 1; transform: translateY(0);}
}
.nexa-contact-header {
    background: #1976d2;
    color: #fff;
    padding: 10px 16px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}
.nexa-close {
    cursor: pointer;
    font-size: 1.3em;
    font-weight: bold;
}
.nexa-contact-body {
    padding: 14px 16px 16px 16px;
    font-size: 0.97rem;
}
.nexa-contact-body a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
}
.nexa-contact-body a:hover {
    text-decoration: underline;
}
