/* ===== CSS VARIABLES (LIGHT MODE) ===== */
:root {
  /* Brand Colors */
  --primary:        #1f55a6;
  --primary-light:  #2d6fd4;
  --primary-dark:   #153d7a;
  --secondary:      #1fa642;
  --secondary-light:#27c952;
  --accent:         #00a2c7; /* Darkened from #00d4ff for contrast */
  --accent2:        #7c3aed;

  /* Light Backgrounds */
  --bg-dark:        #fafbfd; /* Main background */
  --bg-card:        #ffffff; /* Pure white for cards */
  --bg-card2:       #f0f4f8; /* Light blue-gray for secondary elements */
  --bg-elevated:    #ffffff;
  --bg-glass:       rgba(255, 255, 255, 0.85); /* Frosted white glass */

  /* Text Colors for Light Mode */
  --text-primary:   #111827; /* Near black */
  --text-secondary: #4b5563; /* Medium slate gray */
  --text-muted:     #6b7280; /* Lighter gray */

  /* Subtler Borders */
  --border-color:   rgba(31, 85, 166, 0.15); 
  --border-glow:    rgba(31, 85, 166, 0.3);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1f55a6 0%, #2d6fd4 100%);
  --gradient-green:   linear-gradient(135deg, #1fa642 0%, #27c952 100%);
  --gradient-cyber:   linear-gradient(135deg, #fafbfd 0%, #f0f4f8 50%, #e8eef4 100%);
  --gradient-hero:    linear-gradient(135deg, rgba(250,251,253,0.95) 0%, rgba(240,244,248,0.9) 100%);

  /* Softer, cleaner shadows */
  --shadow-sm:    0 2px 4px rgba(0,0,0,0.05);
  --shadow-md:    0 8px 16px rgba(31,85,166,0.08); 
  --shadow-lg:    0 16px 40px rgba(31,85,166,0.12);
  --shadow-glow:  0 0 25px rgba(31,85,166,0.2);
  --shadow-green: 0 0 25px rgba(31,166,66,0.15);
  
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  30px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main:    'Space Grotesk', sans-serif;
  --font-display: 'Rajdhani', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

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

html, body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

.row {
  max-width: 100%;
  margin-right: 0;
  margin-left: 0;
}

::selection { background: var(--primary); color: #fff; }

img { max-width: 100%; height: auto; }

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; color: var(--text-primary); line-height: 1.2; }

/* ===== LOADER ===== */
#page-loader {
  position: fixed; inset: 0;
  background: var(--bg-dark);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; }

.loader-inner { text-align: center; }
.loader-hex {
  width: 60px; height: 60px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}
.loader-inner span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text-secondary);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  font-size: 13px;
}
.top-bar-link {
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 6px;
}
.top-bar-link:hover { color: var(--primary); }
.top-bar-link i { color: var(--primary-light); }

.social-icon {
  width: 30px; height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 13px;
  transition: var(--transition);
}
.social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== NAVBAR ===== */
.main-navbar {
  background: rgba(255, 255, 255, 0.98) !important; /* Changed to light */
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  transition: var(--transition);
}
.main-navbar.scrolled {
  padding: 8px 0;
  box-shadow: 0 4px 30px rgba(31,85,166,0.08); /* Lighter shadow */
}

.brand-logo { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
}

.brand-image {
  width: 30%; 
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  background-color: transparent; 
  border-radius: 12px;       
  padding: 8px;            
}
.nav-link {
  color: var(--text-secondary) !important;
  font-size: 16px; font-weight: 600;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 4px; left: 14px; right: 14px; height: 2px;
  background: var(--primary); /* Changed to primary */
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary) !important; /* Dark text on hover */
  background: rgba(31, 85, 166, 0.08);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.btn-nav {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600;
  padding: 8px 20px !important;
  box-shadow: var(--shadow-sm); /* Softer shadow for light mode */
}
.btn-nav:hover {
  background: var(--primary-light) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-nav::after { display: none; }

/* Dropdown */
.dropdown-menu-dark {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  padding: 8px;
  box-shadow: var(--shadow-lg);
}
.dropdown-item {
  color: var(--text-secondary) !important;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 500;
  transition: var(--transition);
}
.dropdown-item:hover {
  background: rgba(31,85,166,0.08) !important;
  color: var(--primary) !important;
}
.dropdown-divider { border-color: var(--border-color) !important; }

/* ===== HERO SLIDER ===== */
.hero-section {
  position: relative;
  width: 100%;
  max-width: 100%; 
  overflow: hidden;
  background: var(--bg-dark);
  padding: 0;
  margin: 0;
  box-sizing: border-box; 
  height: 220px; 
}

@media (min-width: 768px) {
  .hero-section { height: 350px; }
}
@media (min-width: 1024px) {
  .hero-section { height: 500px; }
}

#heroBackgroundSlider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#heroBackgroundSlider,
.carousel-inner,
.carousel-item {
  height: 100%;
  width: 100%;
  border-radius: 0 !important; 
  box-shadow: none !important; 
  border: none !important;     
}

.carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover; 
  object-position: center center; 
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#heroBackgroundSlider .carousel-indicators { margin-bottom: 15px; }

#heroBackgroundSlider .carousel-indicators button {
  width: 10px; height: 10px; border-radius: 50%;
  background-color: #fff; 
  border: none; opacity: 0.3; margin: 0 6px;
  transition: all 0.3s ease;
}

#heroBackgroundSlider .carousel-indicators button.active {
  opacity: 1; transform: scale(1.3);
  box-shadow: 0 0 10px rgba(31,85,166,0.3);
}

@media (max-width: 768px) {
  #heroBackgroundSlider .carousel-control-prev,
  #heroBackgroundSlider .carousel-control-next { display: none; }
}

/* ===== BUTTONS ===== */
.btn-primary-cyber {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm); /* Adjusted for light mode */
}
.btn-primary-cyber:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

/* Outlined buttons configured for Light Mode */
.btn-outline-cyber {
  background: transparent;
  color: var(--primary); /* Dark text on white bg */
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.btn-outline-cyber:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-green {
  background: var(--gradient-green);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-green:hover {
  transform: translateY(-3px);
  color: #fff;
  box-shadow: var(--shadow-md);
}

/* ===== SECTIONS ===== */
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 60px 0; }

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 3px;
  color: var(--primary-dark);
  background: rgba(31,85,166,0.08);
  border: 1px solid rgba(31,85,166,0.2);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 16px;
  font-weight: 600;
}
.section-tag::before { content: ''; color: var(--primary); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.section-title span { color: var(--primary); }
.section-title .green { color: var(--secondary); }

.section-desc { color: var(--text-secondary); font-size: 1rem; max-width: 600px; }
.section-desc.centered { margin: 0 auto; }

/* ===== CARDS ===== */
.cyber-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.cyber-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.cyber-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.cyber-card:hover::before { transform: scaleX(1); }

.card-icon-wrap {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  background: rgba(31,85,166,0.08);
  border: 1px solid rgba(31,85,166,0.15);
  color: var(--primary);
  transition: var(--transition);
}
.cyber-card:hover .card-icon-wrap {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: scale(1.1);
}

.card-title { font-size: 1.2rem; margin-bottom: 12px; color: var(--text-primary); }
.card-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* ===== SERVICES SECTION ===== */
.services-section { background: var(--bg-card2); }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--border-glow); }
.service-card:hover::after { opacity: 0.03; }
.service-card > * { position: relative; z-index: 1; }

.service-num {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: rgba(31,85,166,0.1);
  position: absolute;
  top: 16px; right: 20px;
  line-height: 1;
  transition: var(--transition);
}
.service-card:hover .service-num { color: rgba(31,85,166,0.2); }

.service-icon {
  width: 60px; height: 60px;
  border-radius: 12px;
  background: rgba(31,85,166,0.08);
  border: 1px solid rgba(31,85,166,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--primary);
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.service-features { list-style: none; padding: 0; margin: 16px 0 0; }
.service-features li {
  color: var(--text-secondary);
  font-size: 13px;
  padding: 4px 0;
  display: flex; align-items: center; gap: 8px;
}
.service-features li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--secondary); flex-shrink: 0;
}

/* ===== STATS SECTION ===== */
.stats-section {
  background: var(--gradient-primary); /* Keeps it blue, text must stay white inside */
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: ''; position: absolute; inset: 0;
  /* Switched SVG pattern color to a slightly lighter blue to blend with primary gradient */
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stat-box { text-align: center; position: relative; }
.stat-number {
  font-family: var(--font-display); font-size: 3.5rem; font-weight: 700;
  color: #fff; /* Always white inside stats section */
  display: block; line-height: 1;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 8px; letter-spacing: 1px; }

/* ===== ABOUT SECTION ===== */
.about-section { background: var(--bg-dark); }

.about-image-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.about-image-wrap img { border-radius: var(--radius-lg); border: 1px solid var(--border-color); }
.about-badge {
  position: absolute; bottom: 24px; left: 24px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  padding: 16px 20px; text-align: center;
  box-shadow: var(--shadow-md);
}
.about-badge-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: #fff; display: block; }
.about-badge-label { font-size: 12px; color: rgba(255,255,255,0.9); }

.about-check-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.about-check-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(31,166,66,0.1); border: 1px solid rgba(31,166,66,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--secondary);
  flex-shrink: 0; margin-top: 2px;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section { background: var(--bg-card2); }

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 32px; position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute; top: 16px; right: 24px; font-size: 80px;
  font-family: Georgia, serif; color: rgba(31,85,166,0.08); line-height: 1;
}
.stars { color: #f59e0b; font-size: 14px; margin-bottom: 16px; }
.testimonial-text { color: var(--text-secondary); font-style: italic; line-height: 1.8; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; font-weight: 700; flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 15px; color: var(--text-primary); }
.author-title { font-size: 12px; color: var(--text-muted); }

/* ===== GALLERY ===== */
.gallery-section { background: var(--bg-dark); }

.gallery-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 100px; padding: 8px 20px;
  color: var(--text-secondary); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gradient-primary); border-color: transparent; color: #fff;
}

.gallery-grid { columns: 4 200px; gap: 16px; }
.gallery-item {
  break-inside: avoid; margin-bottom: 16px; position: relative;
  border-radius: var(--radius-md); overflow: hidden; cursor: pointer;
}
.gallery-item img { width: 100%; display: block; transition: transform 0.4s ease; }

/* Lightened Gallery Overlay */
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, transparent 80%);
  opacity: 0; transition: opacity 0.3s ease;
  display: flex; align-items: flex-end; padding: 16px;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-content .gallery-title { font-size: 14px; font-weight: 700; color: var(--primary-dark); }
.gallery-zoom {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-zoom { transform: translate(-50%,-50%) scale(1); }

@media (max-width: 768px) { .gallery-grid { columns: 2; } }
@media (max-width: 480px) { .gallery-grid { columns: 1; } }

/* ===== COURSES ===== */
.courses-section { background: var(--bg-card2); }

.course-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); height: 100%;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--border-glow); }

.course-header {
  padding: 24px;
  background: linear-gradient(135deg, rgba(31,85,166,0.08) 0%, rgba(31,85,166,0.02) 100%);
  border-bottom: 1px solid var(--border-color); position: relative;
}
.course-level {
  display: inline-block; font-size: 10px; letter-spacing: 2px;
  background: rgba(31,85,166,0.1); border: 1px solid rgba(31,85,166,0.2);
  color: var(--primary); border-radius: 100px; padding: 3px 10px; margin-bottom: 12px; font-family: var(--font-mono); font-weight: 600;
}
.course-icon { font-size: 36px; color: var(--primary); margin-bottom: 12px; }
.course-title { font-size: 1.15rem; margin: 0; color: var(--text-primary); }
.course-title-head { font-size: 32px; margin: 0; color: var(--text-primary); }
.course-body { padding: 24px; }
.course-meta { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.course-meta-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); font-weight: 500;}
.course-price { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--secondary); margin: 16px 0; }
.cert-badge-sm {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(31,166,66,0.1); border: 1px solid rgba(31,166,66,0.2);
  color: var(--secondary); border-radius: 100px; padding: 3px 10px; font-size: 11px; font-weight: 600;
}

/* ===== CLIENTS ===== */
.clients-section { background: var(--bg-dark); }
.clients-carousel { overflow: hidden; position: relative; }
.clients-track { display: flex; gap: 24px; animation: scroll 25s linear infinite; }
.clients-track:hover { animation-play-state: paused; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.client-logo-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 24px 36px;
  display: flex; align-items: center; justify-content: center;
  min-width: 200px; height: 90px; flex-shrink: 0; transition: var(--transition);
  /* filter: grayscale(100%) opacity(0.5);  */
}
.client-logo-card:hover { filter: none; border-color: var(--primary); box-shadow: var(--shadow-sm); }
.client-logo-card img { max-height: 50px; max-width: 140px; object-fit: contain; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--bg-card); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31,85,166,0.05) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.cta-title { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 16px; color: var(--text-primary); }

/* ===== BREADCRUMB ===== */
.page-banner {
  background: var(--bg-card); border-bottom: 1px solid var(--border-color);
  padding: 60px 0 40px; position: relative; overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(31,85,166,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(31,85,166,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-banner-title { font-size: clamp(1.6rem, 4vw, 2.5rem); color: var(--text-primary); }
.breadcrumb { margin: 0; background: none; padding: 0; }
.breadcrumb-item a { color: var(--primary); font-weight: 500;}
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ===== CONTACT FORM ===== */
.contact-form-wrap {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm);
}
.form-control-cyber {
  background: var(--bg-dark) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  padding: 12px 16px !important;
  font-family: var(--font-main) !important;
  transition: var(--transition);
}
.form-control-cyber:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(31,85,166,0.1) !important; outline: none; background: #fff !important;
}
.form-control-cyber::placeholder { color: #9ca3af !important; }
.form-label-cyber { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }

.contact-info-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 28px; margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 16px; box-shadow: var(--shadow-sm);
}
.contact-info-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(31,85,166,0.1); border: 1px solid rgba(31,85,166,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--primary); flex-shrink: 0;
}

/* ===== ADMIN PANEL ===== */
.admin-body { font-family: var(--font-main); background: var(--bg-dark); color: var(--text-primary); min-height: 100vh; }
.admin-sidebar {
  width: 260px; background: var(--bg-card); border-right: 1px solid var(--border-color);
  min-height: 100vh; position: fixed; top: 0; left: 0; z-index: 1000; display: flex; flex-direction: column; transition: transform 0.3s ease;
}
.admin-sidebar-brand { padding: 24px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 12px; }
.admin-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.admin-nav-section { font-size: 10px; letter-spacing: 2px; color: var(--text-muted); padding: 16px 12px 8px; font-family: var(--font-mono); font-weight: 600;}
.admin-nav-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 14px; font-weight: 500; margin-bottom: 2px; transition: var(--transition);
}
.admin-nav-link i { font-size: 18px; width: 20px; }
.admin-nav-link:hover, .admin-nav-link.active { background: rgba(31,85,166,0.08); color: var(--primary); }
.admin-nav-link.active { border-left: 3px solid var(--primary); font-weight: 600; }

.admin-main { margin-left: 260px; min-height: 100vh; }
.admin-topbar {
  background: var(--bg-card); border-bottom: 1px solid var(--border-color);
  padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100;
}
.admin-content { padding: 32px; }
.admin-page-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.admin-page-sub { color: var(--text-muted); font-size: 14px; }

/* Stat Cards */
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 24px; display: flex; align-items: center; gap: 20px; transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-glow); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.stat-card-icon {
  width: 60px; height: 60px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0;
}
.stat-card-icon.blue { background: rgba(31,85,166,0.1); color: var(--primary); }
.stat-card-icon.green { background: rgba(31,166,66,0.1); color: var(--secondary); }
.stat-card-icon.yellow { background: rgba(245,158,11,0.1); color: #f59e0b; }
.stat-card-icon.red { background: rgba(239,68,68,0.1); color: #ef4444; }
.stat-card-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; color: var(--text-primary);}
.stat-card-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; font-weight: 500;}

/* Admin Tables */
.admin-table { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.table-dark-custom { color: var(--text-primary); }
.table-dark-custom thead th {
  background: var(--bg-card2); border-color: var(--border-color); color: var(--text-secondary);
  font-size: 12px; letter-spacing: 1px; font-weight: 600; padding: 14px 16px; text-transform: uppercase;
}
.table-dark-custom tbody td { border-color: var(--border-color); padding: 14px 16px; vertical-align: middle; }
.table-dark-custom tbody tr:hover { background: rgba(31,85,166,0.03); }

/* Admin Login */
.admin-login-page { min-height: 100vh; background: var(--bg-dark); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.admin-login-box {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 48px 40px; width: 100%; max-width: 440px; position: relative; z-index: 1; box-shadow: var(--shadow-md);
}

/* ===== FOOTER ===== */
.cyber-footer-dark {
    background-color: #0b1528; 
    color: #e2e8f0;
    overflow: hidden;
    border-top: 3px solid var(--primary);
}

.footer-3d-grid {
    position: absolute;
    bottom: -20%; left: -50%; right: -50%; top: 0;
    background-image:
        linear-gradient(rgba(45, 111, 212, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 111, 212, 0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(600px) rotateX(60deg) scale(2);
    transform-origin: top;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.footer-neon-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
}

.glow-blue {
    top: -100px; left: -100px;
    width: 450px; height: 450px;
    background: var(--primary);
}

.glow-purple {
    bottom: -150px; right: -100px;
    width: 500px; height: 500px;
    background: var(--secondary);
}

.neon-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    opacity: 0.5;
    margin: 10px 0;
}

.footer-seo-top {
    background: rgba(11, 21, 40, 0.7);
    backdrop-filter: blur(5px);
}

.footer-seo-section .seo-heading {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-seo-section .seo-heading i {
    color: var(--primary-light);
}

.footer-seo-section .seo-links {
    list-style: none; padding: 0; margin: 0;
}

.footer-seo-section .seo-links li {
    margin-bottom: 12px;
}

.footer-seo-section .seo-links a {
    color: #94a3b8;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    line-height: 1.6;
}

.footer-seo-section .seo-links a:hover {
    color: #ffffff; 
    transform: translateX(4px);
}

.cyber-footer-dark .footer-heading {
    font-size: 20px; font-weight: 700; letter-spacing: 1px; color: #fff;
    margin-bottom: 24px; position: relative; padding-bottom: 12px; text-transform: uppercase;
}

.cyber-footer-dark .footer-heading::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px;
    background: var(--primary); border-radius: 2px;
}

.cyber-footer-dark .footer-links { list-style: none; padding: 0; }

.cyber-footer-dark .footer-links li { margin-bottom: 12px; }

.cyber-footer-dark .footer-links a { 
    color: #cbd5e1; font-size: 15px; display: flex; align-items: center; gap: 8px; font-weight: 500; white-space: nowrap; transition: 0.3s;
}

.cyber-footer-dark .footer-links a::before { content: '›'; color: var(--primary-light); font-size: 18px; font-weight: bold; }

.cyber-footer-dark .footer-links a:hover { color: #fff; padding-left: 5px; }

.cyber-footer-dark .footer-contact { list-style: none; padding: 0; }

.cyber-footer-dark .footer-contact li { display: flex; gap: 12px; margin-bottom: 18px; font-size: 15px; line-height: 1.6; }

.text-neon-blue { color: var(--primary-light); font-size: 18px; margin-top: 2px; }

.cyber-footer-dark .footer-contact a { color: #cbd5e1; transition: 0.3s; }

.cyber-footer-dark .footer-contact a:hover { color: #ffffff; }

.social-btn {
    width: 40px; height: 40px; border-radius: 8px; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex; align-items: center; justify-content: center;
    color: #ffffff; font-size: 18px; transition: all 0.3s ease;
    margin-right: 8px;
}

.social-btn:hover { 
    background: var(--primary); border-color: var(--primary); color: #ffffff; transform: translateY(-3px);
}

.cyber-footer-dark .footer-bottom { 
    padding: 24px 0; 
    background: rgba(6, 11, 22, 0.8);
    border-top: 1px solid rgba(255,255,255,0.05); 
}

.encryption-badge {
    font-family: var(--font-mono); font-size: 12px; color: var(--secondary-light); 
    display: inline-flex; align-items: center; gap: 6px; 
    background: rgba(31, 166, 66, 0.1); padding: 6px 14px; 
    border-radius: 4px; border: 1px solid rgba(31, 166, 66, 0.3);
}
/* ===== BACK TO TOP ===== */
#backToTop {
  position: fixed; bottom: 30px; right: 30px; width: 48px; height: 48px;
  background: var(--gradient-primary); border: none; border-radius: 12px;
  color: #fff; font-size: 18px; cursor: pointer; opacity: 0; visibility: hidden;
  transition: var(--transition); z-index: 999; box-shadow: var(--shadow-md);
}
#backToTop.visible { opacity: 1; visibility: visible; }
#backToTop:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg);}

/* ===== ALERT / FLASH ===== */
.alert-cyber { border-radius: var(--radius-sm); border: 1px solid; padding: 14px 20px; font-size: 14px; font-weight: 500;}
.alert-success-cyber { background: rgba(31,166,66,0.1); border-color: rgba(31,166,66,0.3); color: var(--secondary-light); }
.alert-danger-cyber  { background: rgba(239,68,68,0.1);  border-color: rgba(239,68,68,0.3);  color: #dc2626; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn     { from { opacity: 0; } to { opacity: 1; } }

.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.in-view { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-card2); }
::-webkit-scrollbar-thumb { background: rgba(31,85,166,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-stats { gap: 24px; }
  .hero-shield { width: 280px; height: 280px; }
}

@media (max-width: 768px) {
  .section-pad { padding: 60px 0; }
  .hero-content { padding: 80px 0 60px; }
  .hero-title { text-align: center; }
  .hero-desc { text-align: center; margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-badge { font-size: 10px; }
  .hero-visual { display: none; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; align-items: center; gap: 20px; }
  .admin-login-box { padding: 32px 24px; }
  .contact-form-wrap { padding: 24px; }
}

    .popup-overlay {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(11, 15, 25, 0.85); /* Dark frosted background */
        backdrop-filter: blur(5px);
        z-index: 99999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    
    .popup-box {
        position: relative;
        background: var(--bg-card, #ffffff);
        border-radius: 12px;
        max-width: 650px;
        width: 100%;
        box-shadow: 0 20px 50px rgba(0,0,0,0.3);
        overflow: hidden;
    }

    .popup-close-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background: rgba(0,0,0,0.1);
        border: none;
        color: #333;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s ease;
    }

    .popup-close-btn:hover {
        background: #ef4444;
        color: white;
    }

    .popup-link-wrapper {
        display: block;
        text-decoration: none;
        color: inherit;
    }

    .popup-image {
        display: block;
        width: 100%;
        height: auto;
        max-height: 80vh;
        object-fit: contain;
    }

    .popup-text-content {
        padding: 40px;
        text-align: center;
    }

    /* Simple pop-in animation */
    .animate-popup {
        animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }

    @keyframes popIn {
        0% { transform: scale(0.8); opacity: 0; }
        100% { transform: scale(1); opacity: 1; }
    }

/* ===== FIXED LEFT SOCIAL BAR ===== */
.sticky-social-bar {
    position: fixed;
    top: 40%; 
    left: 0;  
    transform: translateY(-50%); 
    display: flex;
    flex-direction: column;
    gap: 8px; 
    z-index: 9999; 
}

.sticky-social-bar .sticky-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff; 
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0 4px 4px 0; 
    border: 1px solid #ffffff98;
    border-left: none;
}

.sticky-social-bar .sticky-icon:hover {
    width: 50px; 
    padding-left: 10px;
    color: #ffffff;
}

.sticky-social-bar .fb { background-color: #3b5998; }
.sticky-social-bar .tw { background-color: #000000; } 
.sticky-social-bar .li { background-color: #0077b5; }
.sticky-social-bar .yt { background-color: #ff0000; }

/* ==========================================================================
   ICON ALIGNMENT FIXES
   ========================================================================== */
i.bi {
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.d-flex.align-items-start > i.bi {
    margin-top: 0.3rem !important; 
    transform: none !important;
}
.d-flex.align-items-center > i.bi {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transform: none !important;
}

.footer-contact li {
    align-items: flex-start !important; 
}
.footer-contact i.bi {
    margin-top: 0.25rem !important;
    font-size: 1.1rem !important;
}

.top-bar-link i.bi {
    margin-top: -2px !important; 
}

.btn-primary-cyber i.bi, 
.btn-outline-cyber i.bi, 
.btn-green i.bi {
    transform: translateY(-1px) !important;
}
.mt-1 { margin-top: 0 !important; }
/* ===== ISO CERTIFICATION BADGE ===== */
.iso-cert-badge {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    white-space: nowrap; 
    background: rgba(31, 166, 66, 0.08) !important; 
    border: 1px solid rgba(31, 166, 66, 0.3);
    color: var(--secondary) !important; 
    padding: 6px 16px !important;
    border-radius: 100px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.iso-cert-badge:hover {
    background: var(--secondary) !important;
    color: #ffffff !important;
    border-color: var(--secondary);
    box-shadow: 0 6px 15px rgba(31, 166, 66, 0.2);
    transform: translateY(-2px);
}

.iso-cert-badge:hover i.bi {
    color: #ffffff !important;
}

.iso-cert-badge {
    animation: softPulse 3s infinite ease-in-out;
}

@keyframes softPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(31, 166, 66, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(31, 166, 66, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(31, 166, 66, 0);
    }
}

.about-text {
        color: var(--text-secondary);
        font-size: 15.5px;
        line-height: 1.8;
    }
    
    .lead-text {
        font-size: 1.15rem;
        color: var(--text-primary);
        font-weight: 400;
        line-height: 1.7;
    }

    /* Three Pillars */
    .pillar-icon-box {
        background: var(--gradient-primary);
        color: #ffffff;
        width: 65px;
        height: 65px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        flex-shrink: 0;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
    }
    
    .pillar-icon-box .bi-send-fill {
        transform: rotate(45deg);
        margin-right: 4px;
        margin-bottom: 4px;
    }

    .pillar-wrapper:hover .pillar-icon-box {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

    .pillar-title {
        color: var(--text-primary);
        font-size: 20px;
        font-weight: 800;
        margin-bottom: 0;
        font-family: var(--font-display);
        letter-spacing: 0.5px;
    }

  /* Founder Section */
    .founder-section {
        background-color: #f8fafc; /* Soft gray/blue background */
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }

    .founder-header-title {
        font-size: 26px;
        font-weight: 800;
        color: #1e293b;
        margin-bottom: 4px;
        font-family: var(--font-display);
    }
    
    .founder-header-subtitle {
        font-size: 12px;
        color: var(--primary);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    /* Upgraded Founder Image Wrapper (Fixed for Height/Width Balance) */
    .founder-img-wrap {
        position: relative;
        display: block; /* Changed to block */
        margin: 0 auto 20px;
        padding-right: 18px;
        padding-bottom: 18px;
        width: 100%;
        max-width: 500px; /* Allows it to grow much larger to match text height */
    }
    
    .founder-img-wrap::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: calc(100% - 20px);
        height: calc(100% - 20px);
        border: 2px solid #a5b4fc; /* Soft blue outline */
        border-radius: 16px;
        z-index: 0;
    }
    
    .founder-img-wrap img {
        position: relative;
        z-index: 1;
        border-radius: 16px;
        box-shadow: var(--shadow-md);
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3.2; /* Forces a tall, professional portrait/landscape hybrid ratio */
        object-fit: cover;
        object-position: top center; /* Keeps focus on the person's face */
    }

    /* Founder List with Green Checks */
    .founder-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .founder-list li {
        display: flex;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 22px;
        color: var(--text-secondary);
        font-size: 14.5px;
        line-height: 1.7;
    }
    
    .founder-list li i {
        color: #22c55e; /* Green checkmark */
        font-size: 20px;
        margin-top: 2px;
    }

    /* Read More Button */
    .btn-read-profile {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: transparent;
        color: var(--primary-dark);
        border: 1px solid var(--primary-dark);
        border-radius: 6px;
        padding: 10px 24px;
        font-size: 14px;
        font-weight: 600;
        transition: var(--transition);
    }
    
    .btn-read-profile:hover {
        background: rgba(31, 85, 166, 0.05);
        color: var(--primary);
    }

    /* Achievements Grid */
    .achievement-card {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 24px;
        height: 100%;
        display: flex;
        align-items: flex-start;
        gap: 16px;
        transition: var(--transition);
    }
    
    .achievement-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
        border-color: var(--primary-light);
    }

    .achievement-card i {
        color: var(--primary);
        font-size: 24px;
        background: rgba(31, 85, 166, 0.1);
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        flex-shrink: 0;
    }
    
    .achievement-card p {
        color: var(--text-secondary);
        font-size: 14px;
        line-height: 1.6;
        margin: 0;
    }
    /* Team Section Styles */
    .team-card {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 15px;
        text-align: center;
        transition: var(--transition);
        cursor: pointer;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .team-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
        border-color: var(--primary-light);
    }
    
    .team-card img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        border-radius: var(--radius-md);
        margin-bottom: 16px;
    }
    
    .team-card h4 {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 0;
        font-family: var(--font-display);
    }

    /* Team Modal Styles */
    .team-modal-img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: var(--shadow-sm);
    }
    
    .team-modal-name {
        font-size: 26px;
        font-weight: 800;
        color: var(--text-primary);
        margin-bottom: 4px;
        font-family: var(--font-display);
    }
    
    .team-modal-designation {
        font-size: 14px;
        color: var(--primary);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 16px;
    }
    
    .team-modal-desc {
        color: var(--text-secondary);
        font-size: 15px;
        line-height: 1.7;
    }