/* ================= GLOBAL STYLES ================= */
:root {
  /* Light Theme Variables */
  --bg-color: #ffffff;
  --text-main: #000000;
  --text-secondary: #333333;
  --nav-bg: #ffe3cf;
  --card-bg: #ffffff;
  --mission-card-bg: rgba(255, 255, 255, 0.9);
  --footer-bg: #f5e2cc;
  --footer-text: #000000;
  --primary-orange: #f47a1f;
  --secondary-orange: #a35b2e;
  --shadow-color: rgba(0,0,0,0.1);
}

/* Dark Theme Variables */
body.dark-theme {
  --bg-color: #121212;
  --text-main: #f5f5f5;
  --text-secondary: #cccccc;
  --nav-bg: #1e1e1e;
  --card-bg: #252525;
  --mission-card-bg: rgba(0, 0, 0, 0.85);
  
  /* CHANGED: Keep footer light so the Black Logo text is visible */
  --footer-bg: #f5e2cc; 
  --footer-text: #000000;
  
  --shadow-color: rgba(0,0,0,0.5);
}
/* ================= FORCE FOOTER TO STAY LIGHT ================= */
/* This ensures the footer is ALWAYS Peach, even in Dark Mode */
body.dark-theme .footer {
  background-color: #f5e2cc !important;
  color: #000000 !important;
}

/* Force all text inside footer to be Black in Dark Mode */
body.dark-theme .footer h3,
body.dark-theme .footer h4,
body.dark-theme .footer p,
body.dark-theme .footer ul li a {
  color: #000000 !important;
}

/* Keep the word "ORANGE" in its original color */
body.dark-theme .footer-center span {
  color: #f47a1f !important;
}

/* Stop social icons from turning white/inverting */
body.dark-theme .social-icons img {
  filter: none !important;
}
/*body.dark-theme {
  --bg-color: #121212;
  --text-main: #f5f5f5;
  --text-secondary: #cccccc;
  --nav-bg: #1e1e1e;
  --card-bg: #252525;
  --mission-card-bg: rgba(0, 0, 0, 0.85);
  --footer-bg: #1a1a1a;
  --footer-text: #ffffff;
  --shadow-color: rgba(0,0,0,0.5);
}*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  transition: color 0.3s ease;
}

p, li, span, blockquote {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

/* Utility Class for Orange Text */
.orange {
  color: var(--primary-orange) !important;
  font-weight: bold;
}

/* ================= NAVBAR ================= */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  padding: 10px 40px;
  position: relative;
  z-index: 1000;
  transition: background 0.3s ease;
}

.navbar img {
  height: 50px;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar ul li a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: color 0.3s;
}

.navbar ul li a.active {
  border-bottom: 2px solid var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 20px;
}

.contact-btn {
  background: #ffb996;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  color: #000 !important;
  font-weight: 600;
  transition: background 0.3s;
}

body.dark-theme .contact-btn {
  background: var(--primary-orange);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-main);
}

/* ================= THEME SWITCH (Gradient Style - FINAL) ================= */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* 1. The Pill Background (Gradients) */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Default: Night Mode Gradient (Purple to Pink) */
  background: linear-gradient(to right, #6a11cb, #2575fc); 
  transition: 0.4s;
  border-radius: 34px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

/* Checked State: Day Mode Gradient (Orange to Yellow) */
.theme-switch input:checked + .slider {
  background: linear-gradient(to right, #ff9a44, #fc6076);
}

/* 2. The Sliding Circle */
.slider:before {
  position: absolute;
  content: ""; /* This clears any old text symbols */
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  
  /* Center the icon inside */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Default Icon: Moon (SVG) */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%236a11cb" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/><path d="M18 7h.01"/><path d="M20.2 4.8h.01"/><path d="M16 3h.01"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
}

/* 3. Move and Change Icon on Check */
.theme-switch input:checked + .slider:before {
  transform: translateX(30px);
  /* Checked Icon: Sun (SVG) */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%23fc6076" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>');
}

/* ================= BLURRY HERO SECTION ================= */
.hero-blur {
  position: relative;
  height: 85vh; /* Takes up 85% of the screen height */
  width: 100%;
  overflow: hidden; /* Hides the blurry edges */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* 1. The Background Image (Blurred) */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Replace with your image file */
  background-image: url('homebg_website.webp'); 
  background-size: cover;
  background-position: center;
  
  /* The Blur Magic 
  filter: blur(px); 
  -webkit-filter: blur(px);*/
  
  /* Scale up slightly to hide white edges caused by blur */
  transform: scale(1.1); 
  z-index: 0;
}

/* 2. The Dark Overlay (Contrast) */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.50); /* Darkens the image by 65% */
  z-index: 1;
}

/* 3. The Content (Sharp Text) */
.hero-content {
  position: relative;
  z-index: 2; /* Sits above everything */
  max-width: 900px;
  padding: 0 20px;
  animation: fadeUp 1s ease-out;
}

/* Typography */
.hero-content h1 {
  font-size: 4rem; /* Big and Bold */
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-content h1 .highlight {
  color: var(--primary-orange); /* Your brand orange */
}

.hero-content p {
  font-size: 1.5rem;
  color: #e0e0e0;
  margin-bottom: 40px;
  line-height: 1.6;
  font-weight: 300;
}

/* Button */
.cta-btn {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--primary-orange);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(244, 122, 31, 0.4);
}

.cta-btn:hover {
  background-color: #fff;
  color: var(--primary-orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}
/* Container to center everything (Adjust based on your existing hero section) */
.hero-section {
    position: relative;
    /* This ensures text stays on top of your background image */
    z-index: 2; 
    text-align: center;
    padding: 100px 20px;
}

/* THE MAIN TITLE: BLACK ORANGE TALENT */
.hero-title {
    /* Change font to Orbitron */
    font-family: 'Orbitron', sans-serif;
    
    /* 900 is the thickest weight available ("Black") */
    font-weight: 900; 
    
    text-transform: uppercase;
    color: #ffffff;
    font-size: 3.5rem; /* You might need to adjust this depending on screen size */
    letter-spacing: 2px;
    
    /* This heavy shadow makes it pop against the background like Image 1 */
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
    
    margin: 0;
    text-align: center;
}

/* THE SUBTITLE: Developing Fun, Passion... */
.hero-subtitle {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; /* Clean readable font */
    color: #f0f0f0;
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 15px;
    
    /* Slightly lighter shadow for the smaller text */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

/* RESPONSIVE: Make text smaller on mobile phones so it doesn't break */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem; 
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
}
/* ================= PAGE HERO / TITLES ================= */
.page-hero {
  padding: 40px 20px;
  text-align: center;
  background-color: var(--bg-color);
}

.peach-hero {
  background-color: var(--nav-bg);
}

.page-hero h1 {
  font-size: 2.5rem;
  margin: 0;
  color: var(--text-main);
}

/* ================= ABOUT US SECTION ================= */
.about {
  padding: 60px 20px;
  background: var(--bg-color);
  text-align: center;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--text-main);
  text-transform: uppercase;
}

.about-img img {
  width: 90%;
  max-width: 800px;
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.about-text {
  max-width: 900px;
  margin: 0 auto;
  text-align: justify; /* Makes text look like a book/newspaper */
  padding: 0 10px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ================= FOUNDER & DEVELOPERS SECTIONS ================= */
.founder, .developers {
  background: var(--bg-color);
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.founder h3, .developers h3 {
  font-size: 2rem;
  color: var(--secondary-orange);
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Shared Card Styles */
.founder-card, .developer-card {
  background: var(--nav-bg); /* Peach background in light mode */
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
  max-width: 800px;
  text-align: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.founder-card:hover, .developer-card:hover {
  transform: translateY(-5px);
}

/* Dark Mode Card Override */
body.dark-theme .founder-card,
body.dark-theme .developer-card {
  background: var(--card-bg); /* Dark grey in dark mode */
}

/* Images */
.founder-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #f8d1b3;
}

.developer-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: contain; /* Keeps logos visible */
  background-color: #fff;
  padding: 10px;
  margin-bottom: 15px;
  border: 2px solid #f8d1b3;
}

/* Typography inside cards */
.name {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 5px;
}

.designation {
  font-style: italic;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--primary-orange);
}

blockquote {
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
  margin-top: 15px;
  border-left: none; /* Removed default border */
  padding: 0 10px;
}

.partnered {
  margin: 15px 0;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* ================= GALLERY GRID (From previous requests) ================= */
.leaders {
  padding: 50px 20px;
  background: var(--bg-color);
  text-align: center; 
}

.leaders-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.leaders-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
  cursor: pointer;
  display: block;
}

.leaders-grid img:hover {
  transform: scale(1.05);
}

/* ================= HERO SECTION (Home Page) ================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 250px;
}

.hero-content h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

.hero-content h1 span {
  color: var(--primary-orange);
}

.hero-content p {
  margin-top: 10px;
  font-size: 1.1rem;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  width: 100%;
  max-width: 2500px;
  border-radius: 20px;
}
/* Container to center everything (Adjust based on your existing hero section) */
.hero-section {
    position: relative;
    /* This ensures text stays on top of your background image */
    z-index: 2; 
    text-align: center;
    padding: 100px 20px;
}

/* THE MAIN TITLE: BLACK ORANGE TALENT */
.hero-title {
    font-family: 'Orbitron', sans-serif;;
    color: #ffffff;
    font-size: 4rem; /* Large size to match image */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    
    /* Strong shadow to make white text readable on photos */
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

/* THE SUBTITLE: Developing Fun, Passion... */
.hero-subtitle {
    font-family: 'Orbitron', sans-serif; /* Clean readable font */
    color: #f0f0f0;
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 15px;
    
    /* Slightly lighter shadow for the smaller text */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

/* RESPONSIVE: Make text smaller on mobile phones so it doesn't break */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem; 
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ================= WHY ROBOTICS GRID ================= */
.why-robotics {
  padding: 50px 20px;
  background: var(--bg-color);
  height: auto;
}

.why-robotics h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.card {
  text-align: center;
  background: var(--card-bg);
  padding: 10px;
  border-radius: 12px;
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.card img:hover {
  transform: scale(1.05);
}

.card p {
  margin-top: 12px;
  font-weight: 600;
  color: var(--text-main);
}

/* ================= MISSION PAGE ================= */
.mission-bg {
  background: url('mission Bg.png') center/cover no-repeat;
  min-height: 70vh;
  height: auto;
  position: relative;
  padding: 50px 0;
}

.overlay {
  background: rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 100%;
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mission-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px;
  max-width: 1200px;
  width: 100%;
}

.mission-card {
  background: var(--mission-card-bg);
  border-radius: 15px;
  padding: 30px 20px;
  flex: 1 1 300px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mission-card h3 {
  color: var(--primary-orange);
  margin-bottom: 15px;
  font-weight: 700;
}

.mission-card p {
  line-height: 1.5;
  color: var(--text-main);
  font-size: 1rem;
}

/* ================= SUCCESS STORIES ================= */
/* ================= SUCCESS STORIES (Theme Adaptive) ================= */
.success {
  padding: 80px 20px;
  /* Use variable so it changes to white/peach in light mode */
  background-color: var(--bg-color); 
  text-align: center;
  transition: background 0.3s;
}

.success h2 {
  margin-bottom: 40px;
  font-size: 2.5rem;
  color: var(--text-main); /* Adapts to theme */
}

/* Card Background */
.story-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
  /* This ensures the card is visible against the background */
  background: var(--card-bg); 
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px var(--shadow-color); 
}
.carousel-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* Hide all slides by default */
.carousel-slide {
  display: none;
  width: 100%;
}

/* Only show the one with "current-slide" class */
.carousel-slide.current-slide {
  display: block;
  animation: fadeEffect 0.5s;
}

/* Fade animation for smooth transition */
@keyframes fadeEffect {
  from {opacity: 0.4;}
  to {opacity: 1;}
}

/* Card Background */
.story-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
  /* This ensures the card is visible against the background */
  background: var(--card-bg); 
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px var(--shadow-color); 
}

/* Video Constraint Container */
.video-wrapper {
  flex: 1;
  max-width: 500px; /* Limits width so it doesn't get huge */
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  /* Ensures aspect ratio stays consistent */
  aspect-ratio: 16 / 9; 
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures video fills the box without stretching */
  display: block;
}

/* Text Styling */
.text-wrapper {
  flex: 1;
}

.text-wrapper blockquote {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text-main); /* Black in Light Mode, White in Dark Mode */
}

.text-wrapper .author {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--primary-orange);
}

.text-wrapper .role {
  font-size: 0.9rem;
  color: var(--text-secondary); 
  margin-bottom: 10px;
}

/*.text-wrapper .stars {
  color: #f5b301;
  font-size: 1.2rem;
}*/

/* Carousel Buttons (Arrows) */
.carousel-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  transition: 0.3s;
  user-select: none;
}

.carousel-btn:hover {
  background: var(--primary-orange);
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .story-content {
    flex-direction: column; /* Stack vertically on mobile */
  }
  
  .video-wrapper {
    max-width: 100%;
    width: 100%;
  }

  .carousel-container {
    padding: 0 10px;
  }
  
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.5);
  }
  
  .prev-btn { left: 0; }
  .next-btn { right: 0; }
}

/* ================= FOOTER ================= */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 20px;
  text-align: center;
  transition: background 0.3s ease;
}

.footer-logo {
  height: 100px;
}

.footer h4, .footer h3 {
  margin-bottom: 10px;
  color: var(--footer-text);
}

.footer-center span {
  color: var(--primary-orange);
  font-weight: bold;
}

/* Links in footer */
.footer-right ul {
  list-style: none;
}

.footer-right ul li {
  margin: 10px 0;
}

.footer-right ul li a {
  text-decoration: none;
  color: var(--footer-text);
}

/* Social Icons */
.social-icons img {
  width: 25px;
  margin: 0 5px;
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
}


/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .contact-btn { display: none; }
  .menu-toggle { display: block; }

  #nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    box-shadow: 0 4px 8px var(--shadow-color);
    text-align: center;
    padding: 20px 0;
    display: none;
    z-index: 999;
  }

  #nav-menu.active {
    display: block;
  }

  #nav-menu ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .hero { flex-direction: column; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .leaders-grid { grid-template-columns: repeat(2, 1fr); }

  .story { flex-direction: column; text-align: center; }
  .video-wrapper { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .leaders-grid { grid-template-columns: 1fr; }
}

/* ================= EVENTS PAGE ================= */
/*.events-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.events-intro {
  text-align: center;
  margin-bottom: 40px;
}

.events-intro h2 {
  font-size: 2.2rem;
  color: var(--secondary-orange);
  margin-bottom: 10px;
}

--- GRID LAYOUT (2 Cards per Row) --- 
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 30px;
}

--- EVENT CARD STYLING --- 
.event-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.event-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.3s;
}

.event-img:hover {
  opacity: 0.9;
}

.event-content {
  padding: 25px;
  flex: 1; 
}

.event-content h4 {
  font-size: 1.4rem;
  color: var(--primary-orange);
  margin-bottom: 10px;
}

.event-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

--- MODAL STYLING (For Image Popup) ---
.modal {
  display: none; 
  position: fixed; 
  z-index: 2000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.85); 
  align-items: center;
  justify-content: center;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  animation: zoom 0.3s;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--primary-orange);
  text-decoration: none;
  cursor: pointer;
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

================= RESPONSIVE ================= 
@media (max-width: 768px) {
  ---Stack cards on mobile---
  .events-grid {
    grid-template-columns: 1fr; 
  }
}*/
/* ================= EVENTS PAGE (Flexible Side-by-Side) ================= */
.events-section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.events-intro {
  text-align: center;
  margin-bottom: 50px;
}

.events-intro h2 {
  font-size: 2.5rem;
  color: var(--secondary-orange);
  margin-bottom: 10px;
}

/* --- GRID LAYOUT (1 Card per Row) --- */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* --- EVENT CARD STYLING --- */
.event-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
  /* Flex Row: Side-by-Side Layout */
  display: flex;
  flex-direction: row; 
  /* 'stretch' is default, ensures image covers full height of text */
  align-items: stretch; 
  min-height: 280px; /* Allows card to grow if text is long */
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* COLUMN 1: IMAGE */
.event-img {
  width: 40%; /* Image width */
  min-height: 100%; /* Forces image to fill height */
  object-fit: cover; /* Crops image neatly */
  cursor: pointer;
  transition: opacity 0.3s;
}

.event-img:hover {
  opacity: 0.9;
}

/* COLUMN 2: DESCRIPTION */
.event-content {
  width: 60%; /* Content width */
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-content h4 {
  font-size: 1.8rem;
  color: var(--primary-orange);
  margin-bottom: 15px;
}

.event-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 10px; /* Spacing between paragraphs */
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  /* On Mobile: Stack vertically */
  .event-card {
    flex-direction: column; 
    min-height: auto;
  }

  .event-img {
    width: 100%;
    height: 250px; /* Fixed height for image on mobile */
  }

  .event-content {
    width: 100%;
    padding: 25px;
  }
}

/* ================= PARTNERS PAGE (Fixed 4-Column Layout) ================= */
.partners {
  background: var(--bg-color);
  padding: 60px 20px;
  text-align: center;
}

.partners h2 {
  font-size: 2.2rem;
  color: var(--text-main);
  margin-bottom: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.partner-grid {
  display: grid;
  /* FORCES exactly 4 columns. */
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  justify-items: center;
}

.partner {
  padding: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ================= PARTNER LOGO FIX ================= */
.partner img {
  width: 100%;
  max-width: 200px;    /* Keeps logos from getting too huge */
  height: 120px;       /* CRITICAL: Reserves space so layout doesn't jump */
  object-fit: contain; /* Keeps logo shape correct (doesn't stretch) */
  
  /* Loading Style */
  background-color: #f0f0f0; /* Light grey box while image loads */
  border-radius: 8px;
  padding: 10px;       /* Nice whitespace around the logo */
  
  /* Interaction */
  cursor: pointer;     /* Shows 'Hand' icon so user knows to click */
  transition: transform 0.3s ease;
}

/* Hover Effect (Optional - makes them pop slightly) */
.partner img:hover {
  transform: scale(1.05);
  background-color: #ffffff; /* Turns pure white when you touch it */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Optional: Dark Mode Placeholder */
body.dark-theme .partner img {
  background-color: rgba(255, 255, 255, 0.1); /* Dark grey placeholder */
}


.partner img:hover {
  transform: scale(1.1); /* Slight zoom on hover */
  filter: grayscale(0%);
  opacity: 1;
}

/* --- MODAL STYLING (For the Pop-out effect) --- */
/* Ensure this CSS is present in your file */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9); /* Dark background */
  align-items: center;
  justify-content: center;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  object-fit: contain;
  background: white; /* White background for transparent logos */
  padding: 20px;
  animation: zoom 0.3s;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.modal-close:hover {
  color: var(--primary-orange);
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .partner-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 on tablets */
  }
}

@media (max-width: 600px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 on mobile */
    gap: 15px;
  }
}

/* ================= BLOGS PAGE ================= */
.blogs-list {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  /* Creates exactly 3 columns of equal width */
  grid-template-columns: repeat(3, 1fr);
  gap: 30px; /* Space between cards */
}

.blog-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden; /* Keeps image corners rounded */
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensures all cards in a row are same height */
  display: flex;
  flex-direction: column;
}

/* Make the link cover the whole card but behave like a block */
.blog-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Uniform Image Sizing */
.blog-card img {
  width: 100%;
  height: 220px; /* Fixed height for uniformity */
  object-fit: cover; /* Crops image neatly */
  border-bottom: 3px solid var(--nav-bg); /* Subtle separator line */
}

/* Card Text Styling */
.blog-card h3 {
  padding: 20px 20px 10px 20px; /* Top Right Bottom Left */
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  transition: color 0.3s ease;
}

.blog-card:hover h3 {
  color: var(--primary-orange); /* Title highlights on hover */
}

.blog-card .excerpt {
  padding: 0 20px 25px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  /* Pushes text to the bottom if needed, or just standard spacing */
  flex-grow: 1; 
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  /* Tablet: 2 Columns */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  /* Mobile: 1 Column */
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-card img {
    height: 200px; /* Slightly smaller image on mobile */
  }
}

/* ================= CONTACT US PAGE ================= */

/* Header Text */
.contact-header {
  text-align: center;
  padding: 60px 20px 20px;
  background-color: var(--bg-color);
}

.contact-header h1 {
  color: var(--primary-orange); 
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.contact-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Main Container: Split Layout */
.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* Form is slightly wider */
  gap: 40px;
  align-items: start;
}

/* --- LEFT: Contact Form Wrapper --- */
.contact-form-wrapper {
  background-color: #fff5eb; /* The Peach Color */
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Dark mode adjustment */
body.dark-theme .contact-form-wrapper {
  background-color: #2a2a2a;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #5c3a21; /* Brownish text for labels */
}

body.dark-theme .form-group label {
  color: var(--primary-orange);
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #fff;
  transition: border 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 5px rgba(244, 122, 31, 0.2);
}

.submit-btn {
  background-color: var(--primary-orange);
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  width: 100%; 
  transition: background 0.3s;
}

.submit-btn:hover {
  background-color: #d9630f;
}

/* --- RIGHT: Info & Map Wrapper --- */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Reach Us Card */
.info-card {
  background-color: #fff5eb; /* The Peach Color */
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

body.dark-theme .info-card {
  background-color: #2a2a2a;
}

.info-card h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
  color: #333;
}

body.dark-theme .info-card h3 {
  color: #fff;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}

.info-item .icon {
  font-size: 1.2rem;
}

.info-item p {
  color: #555;
  margin: 0;
  font-size: 0.95rem;
}

body.dark-theme .info-item p {
  color: #ccc;
}

/* Map Container */
.map-container iframe {
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  background: #eee;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 100;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .contact-container {
    grid-template-columns: 1fr; /* Stack vertically on mobile */
  }
}

/* 1. Define the scaling animation (The "Heartbeat") */
@keyframes pulse-size {
  0% {
    transform: scale(1); /* Normal size */
  }
  50% {
    transform: scale(1.1); /* Grow 10% bigger */
  }
  100% {
    transform: scale(1); /* Back to normal */
  }
}

/* 2. Apply it to the text */
.stats-highlight {
  display: inline-block;
  
  /* CHANGE THIS LINE */
  /* Old: color: #ff6b35; */
  color: var(--text-main); /* Now it will switch between black/white automatically */
  
  font-size: 1.5rem; 
  font-weight: 900;
  
  /* The pulsing animation stays the same */
  animation: pulse-size 1.5s infinite ease-in-out;
}

/* ================= SERVICES SECTION (Light & Dark Mode) ================= */

/* --- 1. LIGHT MODE (Default) --- */
.glass-section {
  padding: 80px 20px;
  /* Clean White Background for Light Mode */
  background: #ffffff; 
  /* Subtle orange pattern for visual interest */
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(244, 122, 31, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(244, 122, 31, 0.05) 0%, transparent 40%);
  transition: background 0.3s ease;
}

.glass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* CARD STYLE (Light Mode) */
.glass-card {
  position: relative;
  /* Solid White Card */
  background: #ffffff;
  border-radius: 20px;
  /* Light grey border for structure */
  border: 1px solid #e0e0e0; 
  /* Soft shadow to make it pop off the white background */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 40px 30px;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

/* Light Mode Text Colors */
.glass-card h3 {
  font-family: 'Orbitron', sans-serif;
  color: #333333; /* Dark Grey Text */
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.glass-card p {
  color: #666666; /* Medium Grey Text */
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 1rem;
}

.glass-card a {
  color: var(--primary-orange);
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

.icon-glow {
  font-size: 3.5rem;
  margin-bottom: 20px;
  /* No glow in light mode, just sharp icons */
  text-shadow: none; 
}

/* HOVER EFFECT (Light Mode) */
.glass-card:hover {
  transform: translateY(-10px);
  /* Orange Border appears */
  border-color: var(--primary-orange); 
  /* Deeper shadow */
  box-shadow: 0 20px 40px rgba(244, 122, 31, 0.15); 
}

/* --- 2. DARK MODE OVERRIDES (The "Holographic" Look) --- */
body.dark-theme .glass-section {
  background: #1a1a1a; 
  /* Darker gradient background */
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(244, 122, 31, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(244, 122, 31, 0.05) 0%, transparent 50%);
}

body.dark-theme .glass-card {
  /* Semi-transparent Glass Background */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px); 
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

body.dark-theme .glass-card h3 {
  color: #ffffff; /* White Text */
}

body.dark-theme .glass-card p {
  color: #cccccc; /* Light Grey Text */
}

body.dark-theme .icon-glow {
  /* Add the glow back in dark mode */
  text-shadow: 0 0 20px rgba(244, 122, 31, 0.4); 
}

body.dark-theme .glass-card:hover {
  border-color: rgba(244, 122, 31, 0.6);
  box-shadow: 0 0 25px rgba(244, 122, 31, 0.15);
}

/* --- 3. SCANNER ANIMATION (Works in both, looks cooler in dark) --- */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  /* Subtle shine */
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-25deg);
  transition: 0.5s;
  pointer-events: none; /* Allows clicking through the shine */
}

.glass-card:hover::before {
  left: 150%;
  transition: 0.7s;
}

/* ================= 1. GLOBAL VARIABLES & THEME ================= */
:root {
  /* LIGHT MODE (Clean, White, Professional) */
  --bg-color: #ffffff;
  --bg-pattern: radial-gradient(circle at 10% 10%, rgba(244, 122, 31, 0.05) 0%, transparent 40%);
  
  --card-bg: #ffffff;
  --card-border: 1px solid #e0e0e0;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  
  --text-main: #333333;
  --text-secondary: #666666;
  --primary-orange: #ff6b35;
  
  --glow-shadow: none;
  --text-glow: none;
}

body.dark-theme {
  /* DARK MODE (Holographic, Neon, Space) */
  --bg-color: #1a1a1a;
  --bg-pattern: radial-gradient(circle at 50% 50%, rgba(244, 122, 31, 0.08) 0%, transparent 60%);
  
  /* The Glass Effect */
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: 1px solid rgba(255, 255, 255, 0.1);
  --card-shadow: none;
  
  --text-main: #ffffff;
  --text-secondary: #cccccc;
  
  /* Neon Effects */
  --glow-shadow: 0 0 25px rgba(244, 122, 31, 0.2);
  --text-glow: 0 0 15px rgba(244, 122, 31, 0.5);
}

body {
  background-color: var(--bg-color);
  background-image: var(--bg-pattern);
  background-attachment: fixed; /* Background stays still while scrolling */
  color: var(--text-main);
  font-family: 'Poppins', sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ================= 2. FUTURISTIC TYPOGRAPHY ================= */
/* Apply Orbitron to ALL Headings across the website */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  color: var(--text-main);
  transition: text-shadow 0.3s ease;
}

/* In Dark Mode, headings get a slight neon glow */
body.dark-theme h1, 
body.dark-theme h2, 
body.dark-theme h3 {
  text-shadow: var(--text-glow);
}

/* ================= 3. UNIVERSAL GLASS CARDS ================= */
/* This is the MAGIC part. 
   We target ALL your existing class names so they transform instantly.
*/
.card, 
.mission-card, 
.service-card, 
.glass-card, 
.blog-card, 
.event-card, 
.founder-card,
.developer-card,
.contact-form-wrapper, 
.info-card,
.story-content {
  
  position: relative;
  background: var(--card-bg);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 20px;
  padding: 30px; /* Standard padding */
  
  /* Glass Blur Filter */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden; /* Needed for scanner animation */
  z-index: 1;
}

/* HOVER EFFECT FOR ALL CARDS */
.card:hover, 
.mission-card:hover, 
.service-card:hover, 
.glass-card:hover, 
.blog-card:hover, 
.event-card:hover,
.founder-card:hover,
.developer-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-orange);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1); /* Light Mode Shadow */
}

/* Dark Mode Hover Glow */
body.dark-theme .card:hover, 
body.dark-theme .mission-card:hover, 
body.dark-theme .glass-card:hover,
body.dark-theme .blog-card:hover,
body.dark-theme .event-card:hover {
  box-shadow: var(--glow-shadow);
  border-color: rgba(244, 122, 31, 0.8);
}

/* ================= 4. THE SCANNER ANIMATION ================= */
/* Adds the shiny moving line to all interactive cards */
.card::before, 
.mission-card::before, 
.service-card::before, 
.glass-card::before, 
.blog-card::before, 
.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: skewX(-25deg);
  transition: 0.5s;
  pointer-events: none;
}

/* Trigger animation on hover */
.card:hover::before, 
.mission-card:hover::before, 
.glass-card:hover::before, 
.blog-card:hover::before,
.event-card:hover::before {
  left: 150%;
  transition: 0.7s;
}

/* ================= 5. FORM INPUTS (Contact Page) ================= */
/* Inputs need to look cool too */
input, textarea, select {
  background: transparent !important;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  color: var(--text-main);
  font-family: 'Poppins', sans-serif;
  transition: 0.3s;
}

body.dark-theme input, 
body.dark-theme textarea {
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-orange) !important;
  box-shadow: 0 0 10px rgba(244, 122, 31, 0.3);
}

/* ================= 6. BUTTONS ================= */
button, .cta-btn, .service-btn, .submit-btn, .contact-btn {
  background: var(--primary-orange);
  color: #fff !important; /* Always white text */
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(244, 122, 31, 0.3);
  transition: 0.3s;
  text-decoration: none;
  display: inline-block;
}

button:hover, .cta-btn:hover, .service-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(244, 122, 31, 0.6); /* Glowing Button */
}

/* ================= 7. NAVBAR GLASS ================= */
/* Make the navbar float and look like glass */
.navbar {
  background: rgba(255, 255, 255, 0.9); /* Light mode semi-transparent */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
}

body.dark-theme .navbar {
  background: rgba(26, 26, 26, 0.8); /* Dark mode semi-transparent */
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ================= SAFE PATCH: GLASS THEME & FOOTER FIX ================= */

/* 1. FOOTER VISIBILITY FIX (Only forces color and layer position) */
.footer {
  background-color: #f5e2cc !important; /* Forces Peach Color */
  color: #000000 !important;
  position: relative;
  z-index: 9999; /* Brings it to the very top layer */
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure footer text stays black */
.footer h3, .footer h4, .footer p, .footer a {
  color: #000000 !important;
  text-shadow: none !important;
}

/* 2. GLASS EFFECT (Visuals ONLY - No Layout Changes) */
/* This targets your cards but DOES NOT change their size or alignment */
.card, 
.mission-card, 
.service-card, 
.glass-card, 
.blog-card, 
.event-card, 
.founder-card,
.developer-card,
.contact-form-wrapper, 
.info-card,
.story-content {
  /* Visual Style Only */
  background: rgba(255, 255, 255, 0.9); /* Slight transparency */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border-radius: 20px; /* Keeps your rounded corners */
  
  /* Transition for hover effect */
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* 3. HOVER EFFECT (Glows Orange) */
.card:hover, .mission-card:hover, .service-card:hover, .glass-card:hover, 
.blog-card:hover, .event-card:hover, .founder-card:hover {
  transform: translateY(-5px); /* Gentle lift */
  border-color: #ff6b35; /* Orange Border */
  box-shadow: 0 15px 30px rgba(255, 107, 53, 0.15); /* Soft Orange Shadow */
}

/* 4. DARK MODE SPECIFICS (If you use the theme toggle) */
body.dark-theme .card, 
body.dark-theme .mission-card, 
body.dark-theme .service-card,
body.dark-theme .story-content {
  background: rgba(255, 255, 255, 0.05); /* Dark Glass */
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

body.dark-theme .card:hover {
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.3); /* Neon Glow */
}

/* 5. TYPOGRAPHY (Updates font to Orbitron for Headings only) */
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
}

/* ================= EVENT CARDS DARK MODE FIX ================= */

/* 1. Make the Card Background "Glass Black" */
body.dark-theme .event-card {
  background: rgba(255, 255, 255, 0.03) !important; /* Transparent Black */
  backdrop-filter: blur(10px); /* Blur effect */
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
  box-shadow: none;
  color: #fff;
}

/* 2. Make the Text White/Light Grey */
body.dark-theme .event-content h4 {
  color: #ffffff !important; /* White Title */
}

body.dark-theme .event-content p {
  color: #cccccc !important; /* Light Grey Description */
}

/* 3. Add the Neon Glow on Hover */
body.dark-theme .event-card:hover {
  transform: translateY(-5px);
  border-color: rgba(244, 122, 31, 0.6); /* Orange Border */
  box-shadow: 0 0 25px rgba(244, 122, 31, 0.2); /* Neon Glow */
}

/* ================= BLOG CARDS DARK MODE FIX ================= */

/* 1. Make the Blog Card Background "Glass Black" */
body.dark-theme .blog-card {
  background: rgba(255, 255, 255, 0.03) !important; /* Transparent Black */
  backdrop-filter: blur(10px); 
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

/* 2. Fix Text Colors (White Title, Grey Text) */
body.dark-theme .blog-card h3 {
  color: #ffffff !important;
}

body.dark-theme .blog-card .excerpt {
  color: #cccccc !important;
}

/* 3. Ensure the Image Border matches the dark theme */
body.dark-theme .blog-card img {
  border-bottom: 3px solid rgba(255, 255, 255, 0.1); 
}

/* 4. Neon Hover Effect */
body.dark-theme .blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(244, 122, 31, 0.6); /* Orange Border */
  box-shadow: 0 0 25px rgba(244, 122, 31, 0.2); /* Neon Glow */
}

/* 5. Highlight the Title in Orange on Hover */
body.dark-theme .blog-card:hover h3 {
  color: #ff6b35 !important;
}
/* ================= LIGHT MODE: BLACK SCANNER FLASH ================= */

/* 1. Target the "Scanner Line" for ALL cards in Light Mode */
body:not(.dark-theme) .card::before, 
body:not(.dark-theme) .mission-card::before, 
body:not(.dark-theme) .service-card::before, 
body:not(.dark-theme) .glass-card::before, 
body:not(.dark-theme) .blog-card::before, 
body:not(.dark-theme) .event-card::before,
body:not(.dark-theme) .founder-card::before,
body:not(.dark-theme) .story-content::before {
  
  /* Change the shine from White to Transparent Black */
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(0, 0, 0, 0), /* This is the Black Flash color (10% opacity) */
    transparent
  ) !important;
}

/* 2. Reset the Card Background (In case previous code turned it black) */
body:not(.dark-theme) .card:hover, 
body:not(.dark-theme) .mission-card:hover, 
body:not(.dark-theme) .service-card:hover,
body:not(.dark-theme) .glass-card:hover,
body:not(.dark-theme) .event-card:hover {
  background: #ffffff !important; /* Keep card white */
  color: #333 !important; /* Keep text dark */
  transform: translateY(-5px); /* Keep the lift effect */
  border-color: #ff6b35 !important; /* Keep orange border */
}

/* 3. Ensure Text stays Black on Hover (Resetting previous White text rule) */
body:not(.dark-theme) .card:hover h3,
body:not(.dark-theme) .service-card:hover h3,
body:not(.dark-theme) .event-card:hover h4 {
  color: #333 !important;
  text-shadow: none !important;
}

/* ================= SERVICE IMAGE SIZE FIX ================= */

/* Target images inside Service Cards (and general cards) */
.service-card img, 
.card img, 
.glass-card img {
  width: 100%;         /* Force it to fill the card width */
  height: 220px;       /* FORCE a fixed height (Desktop) */
  object-fit: cover;   /* Magic Rule: Crops the image neatly to fit */
  border-radius: 10px; /* Keeps corners rounded */
  margin-bottom: 15px; /* Adds space between image and text */
  display: block;
}

/* Mobile Adjustment (Make them slightly shorter on phones) */
@media (max-width: 768px) {
  .service-card img, 
  .card img, 
  .glass-card img {
    height: 180px; /* Perfect height for mobile screens */
  }
}

/* ================= MOBILE HEADER FIX ================= */
@media (max-width: 768px) {
  
  /* 1. Hide the big "Contact Us" button on mobile */
  /* This creates space for your logo and menu */
  .nav-actions .contact-btn {
    display: none !important;
  }

  /* 2. Fix the Theme Toggle Sizing & Position */
  /* Make the switch slightly smaller to fit phone screens better */
  .theme-switch {
    transform: scale(0.8); 
    margin: 0 !important; /* Remove extra spacing */
  }

  /* 3. Align the Right Side (Toggle + Hamburger) */
  .nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
  }

  /* 4. Ensure the Hamburger Menu (3 Lines) is Visible */
  .menu-toggle {
    display: block !important;
    font-size: 28px;
    margin-left: 15px;
    cursor: pointer;
    line-height: 1; /* Fixes vertical alignment issues */
  }
  
  /* 5. Navbar Spacing Adjustment */
  .navbar {
    padding: 15px 20px; /* Shrink height slightly for mobile */
  }
}

/* ================= GALLERY STYLES ================= */
.gallery-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Controls (Arrows + Title) */
.gallery-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.gallery-controls h2 {
  font-family: 'Orbitron', sans-serif;
  color: #333;
  margin: 0;
  width: 300px; /* Fixed width prevents jumping */
  text-align: center;
}

body.dark-theme .gallery-controls h2 {
  color: #fff;
}

/* Arrow Buttons */
.arrow-btn {
  background-color: #ff6b35;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(244, 107, 53, 0.3);
}

.arrow-btn:hover {
  transform: scale(1.1);
  background-color: #e65a25;
}

/* The Photo Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  transition: opacity 0.3s ease; /* For smooth fading between sections */
}

.gallery-grid img {
  width: 100%;
  height: 200px; /* Fixed height for neatness */
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}