/* ---------- Colors ---------- */
:root {
  --primary: #089cb6; /* Deep Cyan */
  --secondary: #3bb2c0; /* Teal Accent */
  --accent: #87ceeb; /* Sky Blue */
  --bg-main: #0f172a; /* Deep Slate - Industry Standard Dark Mode */
  --bg-card: rgba(30, 41, 59, 0.7);
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --white: #ffffff;
  --dark-overlay: rgba(0, 0, 0, 0.6);
  --shadow-md: 0 20px 50px rgba(0, 0, 0, 0.3);
  --btn-red: #e63946;
  --radius: 24px;
}

/* ---------- Global ---------- */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif; 
}

body { 
  background: var(--bg-main);
  background-attachment: fixed;
  color: var(--text-main); 
  scroll-behavior: smooth;
  overflow-x: hidden; 
}

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

/* ---------- Navbar ---------- */
nav {
  position: fixed;
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo { font-size: 1.8rem; font-weight: 900; color: var(--white); letter-spacing: 1px; }
.nav-links { display: flex; gap: 25px; list-style: none; }
.nav-links li a { color: var(--text-main); font-size: 0.9rem; font-weight: 500; transition: 0.3s; letter-spacing: 0.5px; text-transform: uppercase; }
.nav-links li a:hover { color: var(--primary); }
.menu-btn { display: none; cursor: pointer; font-size: 1.2rem; color: var(--primary); }

@media(max-width: 768px){
  nav { padding: 15px 20px; }
  .nav-links { 
    display: none; 
    position: absolute;
    right: 20px;
    top: 60px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    width: 250px;
    border-radius: var(--radius);
    padding: 30px 0;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary);
  }
  .nav-links li { text-align: left; padding: 10px 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .nav-links li:last-child { border-bottom: none; }
  .menu-btn { display: block; }
  .nav-links.active { display: flex !important; }
}

/* ---------- Hero ---------- */
header {
  height: 100vh;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(8, 156, 182, 0.3)), url('background.jpg') no-repeat center center/cover;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

.hero-glass-container {
    z-index: 2;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 500px;
    width: 80%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

header p { font-size: 1.4rem; font-style: italic; margin-bottom: 35px; opacity: 0.9; }
header .btn {
    background: var(--btn-red);
    color: var(--white);
    display: inline-block;
    padding: 18px 50px;
    font-weight: 800;
    border-radius: 12px;
    border: none;
    transition: 0.4s;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    animation: heroFadeIn 1s ease forwards, pulseRed 2s infinite;
    animation-delay: 0.8s;
}

header .btn:hover { 
  transform: scale(1.05) translateY(-3px);
  background: #ff4d4d;
}

/* ---------- Sections ---------- */
section {
  padding: 80px 20px;
  width: 100%;
  position: relative;
}

.container { 
  max-width: 1200px; 
  margin: auto; 
  width: 100%;
}

.bg-tint { background-color: rgba(30, 41, 59, 0.3); }

/* Background Image Sections */
.bg-image-section {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  overflow: hidden;
  transition: background-size 0.2s ease-out;
}

.bg-image-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--dark-overlay);
  z-index: 1;
}

.bg-image-section .container, .bg-image-section .section-header-container {
  position: relative;
  z-index: 2;
}

.bg-image-section h2 { color: white !important; }
.bg-image-section p, .bg-image-section strong { color: #eee !important; }

.vision-bg { background-image: url('https://images.unsplash.com/photo-1540497077202-7c8a3999166f?auto=format&fit=crop&q=80&w=1600'); }
.objectives-bg { background-image: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&q=80&w=1600'); }

.content-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
  overflow: hidden; 
}

.content-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.content-card h3, .content-card strong, .content-card i {
  color: var(--primary);
}

.content-card p, .content-card li { color: var(--text-dim); }
.stable-card:hover { transform: none !important; }

/* Generic Grid for Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;
}

.section-header-container { text-align: center; width: 100%; margin-bottom: 50px; }
section h2 {
  display: inline-block;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--white);
  margin-bottom: 20px;
}

section p, section li { margin-bottom: 15px; line-height: 1.8; color: var(--text-dim); font-size: 1.05rem; }
section p i, section li i { margin-right: 10px; }
section strong { color: var(--primary); }

/* ---------- Components ---------- */
.service-box {
  flex: 1 1 280px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 40px 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-box:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.service-box h3 { margin-bottom: 15px; color: var(--primary); }
.service-box p { color: var(--text-dim); }
.service-box i { color: var(--primary) !important; }

/* ---------- Schedule ---------- */
.schedule { 
  text-align: center; 
  background: var(--bg-card); 
  padding: 40px; 
  border-radius: var(--radius); 
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 20px 0;
}

.schedule p { margin-bottom: 12px; font-weight: 700; font-size: 1.2rem; color: var(--secondary); }

/* ---------- Team ---------- */
.team-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.team-member {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0 !important;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.team-member h3 { margin: 20px 0 5px; color: var(--white); font-size: 1.2rem; }
.team-member p { font-weight: 600; color: var(--text-dim); font-size: 0.9rem; margin-bottom: 25px; padding: 0 15px; }
.team-member img { 
  width: 100%; 
  height: auto;
  min-height: 350px;
  max-height: 500px;
  aspect-ratio: 3/4;
  object-fit: cover; 
  object-position: top center; 
  border-radius: 0; 
  transition: transform 0.2s ease-out; 
  will-change: transform;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 20px;
  border-left: 5px solid var(--primary);
  box-shadow: var(--shadow-md);
  transition: 0.3s;
  color: var(--text-main);
  word-wrap: break-word;
}

.testimonial:hover { transform: scale(1.02); border-color: var(--primary); }
.testimonial p { color: var(--text-dim); font-style: italic; font-size: 0.95rem; line-height: 1.6; }

/* ---------- Gallery ---------- */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.gallery img {
  width: 100%;
  max-width: 350px;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.gallery img:hover { transform: scale(1.03); }

/* ---------- Contact ---------- */
.contact-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
  gap: 30px; 
}

.contact-info, .contact-form {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
  color: var(--text-main);
}

.contact-info { 
  text-align: left; 
  word-wrap: break-word; 
  overflow-wrap: break-word;
}

.contact-info p { margin-bottom: 25px; font-size: 1rem; color: var(--text-dim); display: flex; align-items: center; font-weight: 500; }
.contact-info i { color: var(--primary); font-size: 1.2rem; margin-right: 15px; flex-shrink: 0; }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus { background: var(--white); border-color: var(--primary); }
.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover { background: var(--secondary); transform: translateY(-2px); }

.whatsapp-btn {
  background: #25D366;
  color: white;
  padding: 12px 25px;
  border-radius: 14px;
  display: inline-block;
  text-align: center;
}

/* ---------- Footer ---------- */
footer { 
  background: #080c14;
  color: var(--text-light);
  padding: 80px 20px 40px; 
  margin-top: 50px; 
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 40px; 
  margin-bottom: 40px;
}

.footer-section h3 { margin-bottom: 20px; font-size: 1rem; color: var(--white); font-weight: 700; text-transform: uppercase; }
.social-icons { display: flex; gap: 20px; margin-top: 15px; }
.social-icons a { color: var(--text-gray); font-size: 1.4rem; transition: 0.3s; width: 24px; text-align: center; }
.social-icons a:hover { color: var(--primary); transform: translateY(-3px); }
.quick-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.quick-links a { font-weight: 400; font-size: 0.95rem; color: var(--text-gray); transition: 0.3s; display: block; }
.quick-links a:hover { color: var(--primary); }
.copyright {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 25px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-gray);
}

/* ---------- Animations & Extra Elements ---------- */
@keyframes pulseRed {
  0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(230, 57, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
}

#counters .counter {
  font-size: 2.5rem;
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
  color: var(--white);
}

.video-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.video-gallery video {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--primary);
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-gallery video:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--primary);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-dust {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.dust-particle {
  position: absolute;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(1px);
  animation: floatDust linear infinite;
}

@keyframes floatDust {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  50% { opacity: 0.4; }
  100% { transform: translateY(-100vh) translateX(50px) rotate(360deg); opacity: 0; }
}

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

#backToTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  background: var(--primary);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: 0.3s;
}

/* ---------- MOBILE SCREEN FILL FIXES ---------- */
@media(max-width: 768px){
  /* Reduce outer section padding so cards can expand */
  section { padding: 40px 0px; }
  
  /* Give the container a tiny margin so cards aren't flush against the bezel */
  .container { padding: 0 10px; }

  /* Ensure the grid doesn't restrict width */
  .cards-grid {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 15px;
  }

  /* Adjust card padding for small screens */
  .content-card {
    margin: 0 5px 20px 5px;
    padding: 30px 20px;
    width: auto;
  }

  .bg-image-section { background-attachment: scroll; } 
  .services-container, .team-container, .gallery, .footer-grid { 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
  }
  
  .social-icons { justify-content: center; }
  header h1 { font-size: 2.2rem; }
  header p { font-size: 1rem; }
  header .btn { padding: 15px 35px; font-size: 0.95rem; }
  .hero-glass-container { width: 90%; padding: 25px 15px; }
}

