:root {
  --primary: #ebebeb;
  --secondary: #7c22bf;
  --accent-1: #e5222d;
  --accent-2: #1150c4;
  --text-primary: #2f3b65;
  --text-secondary: #5a6a9a;
  --bg-light: #ebebeb;
  --bg-dark: #0a0e1d;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.15);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --radius: 24px;
  --radius-lg: 36px;
  --radius-xl: 48px;
  --navbar-height: 60px;
}

.dark-theme {
  --primary: #0a0e1d;
  --text-primary: #ffffff;
  --text-secondary: #a6b3d9;
  --bg-light: #12172e;
  --glass: rgba(10, 14, 29, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Nunito", sans-serif;
  background: var(--bg-light);
  color: var(--text-primary);
  transition: var(--transition);
  width: 100%;
  margin: 0;
  padding: 0;
  /* Prevent horizontal scrolling from any overflowing child */
  overflow-x: hidden;
}

html {
  width: 100%;
  /* Prevent horizontal scrolling from any overflowing child */
  overflow-x: hidden;
}

/* Claymorphic elements */
.clay {
  background: linear-gradient(22.5deg, #5781ff0f, var(--primary)),
    var(--primary);
  /* box-shadow: 0px 16px 35px rgba(0, 0, 0, 0.18),
          inset 6px 6px 12px rgba(255, 255, 255, 1),
          inset -6px -6px 12px rgba(0, 0, 0, 0.2); */
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  border-radius: var(--radius);
}

.dark-theme .clay {
  box-shadow: 0px 16px 35px rgba(0, 0, 0, 0.3),
    inset 6px 6px 12px rgba(255, 255, 255, 0.1),
    inset -6px -6px 12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .page-hero {
  background: none;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (min-width: 992px) {
  .page-hero {
    background: none;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  
  .dark-theme .page-hero {
    background: none;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
.clay-hover:hover {
  /* transform: translateY(-12px); */
  /* box-shadow: 0px 25px 50px rgba(0, 0, 0, 0.22),
          inset 6px 6px 12px rgba(255, 255, 255, 1),
          inset -6px -6px 12px rgba(0, 0, 0, 0.2); */
}

.navbar {
  background: var(--primary);

  /* box-shadow: 0px 25px 50px rgba(0, 0, 0, 0.2),
    inset 10px 10px 20px rgba(255, 255, 255, 1),
    inset -10px -10px 20px rgba(0, 0, 0, 0.18); */
  /* border: 1px solid rgba(255, 255, 255, 0.4); */
}

.fas,
.fab {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Background blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  z-index: -1;
  /* Prevent blobs from causing horizontal overflow */
  max-width: 100vw;
  max-height: 100vh;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: var(--secondary);
  top: 10%;
  right: -100px;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-1);
  bottom: 10%;
  left: -50px;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: var(--accent-2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  z-index: 2000;
  transition: var(--transition);
  background: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Reserve space for fixed navbar to prevent content jump */
#header-placeholder {
  height: var(--navbar-height);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.dark-theme .navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.logo {
  font-size: 28px;
  font-weight: 900;
  color: var(--secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  position: relative;
  transition: var(--transition);
}

.nav-links > .nav-item > a:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-links > .nav-item > a:hover:after {
  width: 100%;
}

.nav-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
}

.mobile-menu-overlay {
  display: none;
}

.btn {
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--accent-1));
  color: white;
  box-shadow: 0 6px 20px rgba(124, 34, 191, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(124, 34, 191, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
  background: var(--text-primary);
  color: white;
}

.theme-toggle {
  width: 50px;
  height: 26px;
  background: var(--glass);
  border-radius: 50px;
  padding: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--glass-border);
}

.theme-toggle:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary);
  transition: var(--transition);
  transform: translateX(0);
}

.dark-theme .theme-toggle:before {
  transform: translateX(24px);
}

/* Hero Section */
.hero {
  /* Fill screen area accounting for fixed navbar */
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  align-items: center;
  /* Tighter, responsive vertical padding */
  padding: clamp(24px, 6vh, 56px) 5% clamp(16px, 5vh, 40px);
  position: relative;
  overflow: hidden;
  border-bottom: #ffffff40 1.5px solid;
}

.page-hero {
  min-height: 40vh;
  padding-top: 50px;
  position: relative;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/zigzag-purple.svg');
  background-repeat: no-repeat;
  background-position: top left;
  background-size: 100% auto;
  opacity: 0.6;
  z-index: -1;
}








@media (min-width: 992px) {
  .page-hero::before {
    opacity: 0.6;
    background-size: 100% auto;
  }
}

/* Remove all additional zigzag layers */
.page-hero::after {
  display: none;
}

.page-hero .hero-content::before {
  display: none;
}

/* Additional responsive adjustments for mobile */
@media (max-width: 768px) {
  .page-hero::before {
    background-size: 100% auto;
    opacity: 0.4;
  }
  
  .page-hero::after {
    display: none;
  }
  
  .page-hero .hero-content::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .page-hero::before {
    background-size: 100% auto;
    opacity: 0.35;
  }
  
  .page-hero::after {
    display: none;
  }
  
  .page-hero .hero-content::before {
    display: none;
  }
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.tagline {
  font-size: 18px;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 .highlight-text {
  background: linear-gradient(
    135deg,
    var(--accent-1),
    var(--secondary),
    var(--accent-2)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 30px;
}

.contact-info-container {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--secondary);
  box-shadow: 0px 12px 28px rgba(0, 0, 0, 0.15),
    inset 4px 4px 8px rgba(255, 255, 255, 1),
    inset -4px -4px 8px rgba(0, 0, 0, 0.07);
}

.contact-details h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.contact-details p {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.hero-visual {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  /* Remove perspective and any border/frame styles if present */
  background: none;
  /* box-shadow: none; */
}

.hero-visual img {
  width: 550px; /* Make image bigger */
  max-width: 90vw; /* Responsive for smaller screens */
  height: auto;
  border-radius: 32px; /* Slightly larger rounding */
  /* dropshadow: 0 18px 48px rgba(124,34,191,0.25); Strong drop shadow */
  display: block;
  margin: 0 auto;
  background: none; /* Remove any background/frame */
  border: none; /* Remove border/frame */
  transition: transform 0.3s ease-out;
  /* box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); */
}


/* Sections common styles */
section {
  padding: 80px 5%;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--secondary), var(--accent-1));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Courses Section */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Force 2 cards per row for Core Values on desktop */
@media (min-width: 992px) {
  #core-values .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.course-card {
  padding: 40px 30px;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.course-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(124, 34, 191, 0.1),
    rgba(17, 80, 196, 0.1)
  );
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.course-card:hover:before {
  opacity: 1;
}

.course-icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 32px;
  color: var(--secondary);
  box-shadow: 0px 12px 28px rgba(0, 0, 0, 0.15);
  /* box-shadow: 0px 12px 28px rgba(0, 0, 0, 0.15),
    inset 4px 4px 8px rgba(255, 255, 255, 1),
    inset -4px -4px 8px rgba(0, 0, 0, 0.07); */
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.value-image {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: var(--transition);
}

.value-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* .course-card:hover .course-icon {
  transform: translateY(-5px) rotateZ(5deg);
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.18),
    inset 4px 4px 8px rgba(255, 255, 255, 1),
    inset -4px -4px 8px rgba(0, 0, 0, 0.07);
} */

.course-card:hover .value-image {
  transform: translateY(-5px);
}

.course-card:hover .course-icon {
  transform: translateY(-5px);
}

.course-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 15px;
}

.course-difficulty {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}

.difficulty-beginner {
  background: rgba(17, 80, 196, 0.15);
  color: var(--accent-2);
}

.difficulty-intermediate {
  background: rgba(124, 34, 191, 0.15);
  color: var(--secondary);
}

.difficulty-advanced {
  background: rgba(229, 34, 45, 0.15);
  color: var(--accent-1);
}

.course-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Interactive Labs */
.labs-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.labs-content {
  flex: 1;
}

.labs-visual {
  flex: 1;
  position: relative;
}

.terminal {
  background: var(--bg-dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.terminal-header {
  height: 40px;
  background: #1a1f2f;
  display: flex;
  align-items: center;
  padding: 0 15px;
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.button-red {
  background: #ff5f56;
}
.button-yellow {
  background: #ffbd2e;
}
.button-green {
  background: #27c93f;
}

.terminal-body {
  padding: 30px;
  font-family: "Courier New", monospace;
  font-size: 18px;
  line-height: 1.8;
  color: #8be9fd;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.terminal-line {
  display: block;
  margin-bottom: 10px;
}

.terminal-prompt {
  color: #50fa7b;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: #8be9fd;
  margin-left: 4px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Certifications */
.certs-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.cert-card {
  height: 380px;
  perspective: 1000px;
}

.cert-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.cert-card:hover .cert-inner {
  transform: rotateY(180deg);
}

.cert-front,
.cert-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  text-align: center;
}

.cert-front {
  background: linear-gradient(135deg, var(--secondary), var(--accent-2));
  color: white;
}
.cert-front.clay {
  box-shadow: 0px 25px 50px rgba(0, 0, 0, 0.2),
    inset 6px 6px 12px rgba(255, 255, 255, 0.5),
    inset -6px -6px 12px rgba(0, 0, 0, 0.5);
  /* border: 1px solid rgba(255, 255, 255, 0.4); */
}

.cert-back {
  background: var(--primary);
  transform: rotateY(180deg);
}

.cert-icon {
  font-size: 60px;
  margin-bottom: 20px;
}

.cert-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 15px;
}

/* For Teams */
.teams-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.teams-visual {
  flex: 1;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.dashboard-mockup {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.teams-content {
  flex: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

.feature-item:hover .feature-icon {
  transform: translateY(-5px);
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.18),
    inset 4px 4px 8px rgba(255, 255, 255, 1),
    inset -4px -4px 8px rgba(0, 0, 0, 0.07);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0px 12px 28px rgba(0, 0, 0, 0.15),
    inset 4px 4px 8px rgba(255, 255, 255, 1),
    inset -4px -4px 8px rgba(0, 0, 0, 0.07);
  /* border: 1px solid rgba(255, 255, 255, 0.5); */
  transition: var(--transition);
}

.feature-text h4 {
  font-size: 20px;
  margin-bottom: 8px;
}

/* Why 0day */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.value-item {
  text-align: center;
  padding: 40px 30px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.value-icon {
  width: 100px;
  height: 100px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 40px;
  color: var(--secondary);
  box-shadow: 0px 12px 28px rgba(0, 0, 0, 0.15),
    inset 4px 4px 8px rgba(255, 255, 255, 1),
    inset -4px -4px 8px rgba(0, 0, 0, 0.07);
  /* border: 1px solid rgba(255, 255, 255, 0.5); */
  transition: var(--transition);
}

.value-item:hover .value-icon {
  transform: translateY(-10px);
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.18),
    inset 4px 4px 8px rgba(255, 255, 255, 1),
    inset -4px -4px 8px rgba(0, 0, 0, 0.07);
}

.value-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

/* Testimonials */
.testimonials-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.testimonial {
  padding: 50px;
  border-radius: var(--radius);
  text-align: center;
  margin: 0 20px;
}

.testimonial-content {
  font-size: 20px;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 30px;
  position: relative;
}

.testimonial-content:before,
.testimonial-content:after {
  content: '"';
  font-size: 60px;
  color: var(--secondary);
  opacity: 0.3;
  position: absolute;
}

.testimonial-content:before {
  top: -20px;
  left: -20px;
}

.testimonial-content:after {
  bottom: -40px;
  right: -20px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 15px;
}

.author-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
}

.author-role {
  color: var(--text-secondary);
}

/* Progress Tracker */
.progress-container {
  display: flex;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.progress-visual {
  flex: 1;
  position: relative;
}

.skill-chart {
  width: 100%;
  height: 400px;
  position: relative;
}

.skill-bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  background: linear-gradient(to top, var(--secondary), var(--accent-1));
  border-radius: 20px 20px 0 0;
  bottom: 0;
  transform-origin: bottom;
}

.skill-label {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 700;
  color: var(--text-primary);
}

.progress-content {
  flex: 1;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  padding: 25px 30px;
  background: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 20px;
}

.faq-answer {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: rgba(124, 34, 191, 0.05);
  border-radius: 0 0 var(--radius) var(--radius);
}

.faq-item.active .faq-answer {
  padding: 25px 30px;
  max-height: 500px;
}

.faq-icon {
  transition: transform 0.4s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Newsletter */
.newsletter {
  text-align: center;
  padding: 100px 5%;
  border-radius: var(--radius-xl);
  margin: 0 20%;
  margin-bottom: 5%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary), var(--accent-2));
  width: 60%;

}

.newsletter:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><rect fill="rgba(255,255,255,0.05)" width="100" height="100"/></svg>');
  background-size: 20px 20px;
  opacity: 0.3;
}

.newsletter-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.newsletter h2 {
  font-size: 42px;
  color: white;
  margin-bottom: 20px;
}

.newsletter p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 15px;
}

.newsletter-input {
  flex: 1;
  padding: 16px 24px;
  border-radius: 50px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 16px;
  outline: none;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Our Team Certification Section */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.certification-card {
  padding: 30px 20px;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.certification-image {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.certification-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.certification-card:hover .certification-image {
  transform: translateY(-5px);
}

.certification-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 0;
}

/* Subtitle under certification initials on About page */
.certification-subtitle {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 600;
}

/* Contact Overview Section */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-card {
  padding: 40px 30px;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-align: center;
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 32px;
  color: var(--secondary);
  box-shadow: 0px 12px 28px rgba(0, 0, 0, 0.15),
    inset 4px 4px 8px rgba(255, 255, 255, 1),
    inset -4px -4px 8px rgba(0, 0, 0, 0.07);
  transition: var(--transition);
}

.contact-card:hover .contact-icon {
  transform: translateY(-5px);
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.18),
    inset 4px 4px 8px rgba(255, 255, 255, 1),
    inset -4px -4px 8px rgba(0, 0, 0, 0.07);
}

.contact-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 15px;
}

.contact-detail {
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 600;
  word-break: break-all;
}

/* Contact Form Section */
.contact-form-container {
  display: flex;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.contact-form-container .section-header {
  flex: 1;
  text-align: left;
  margin: 0;
}

.contact-form-container .section-header .section-title:after {
  left: 0;
  transform: translateX(0);
}

.contact-form {
  flex: 1;
  padding: 40px;
  border-radius: var(--radius);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border-radius: 16px;
  border: 2px solid rgba(47, 59, 101, 0.1);
  background: var(--primary);
  color: var(--text-primary);
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(124, 34, 191, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 700;
}

/* Our Clients Section */
.marquee-container {
  overflow: hidden;
  padding: 30px 0;
  position: relative;
}

.marquee-container:before,
.marquee-container:after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}

.marquee-container:before {
  left: 0;
  background: linear-gradient(to right, var(--primary), transparent);
}

.marquee-container:after {
  right: 0;
  background: linear-gradient(to left, var(--primary), transparent);
}

.marquee {
  display: inline-flex;
  width: max-content; /* Track width equals combined content width */
  animation: marquee 30s linear infinite;
  will-change: transform;
}

.marquee:hover {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  gap: 80px;
  align-items: center;
  justify-content: flex-start;
  width: max-content; /* Each duplicate track sizes to its contents */
  padding: 30px 80px 30px 0;
}

.client-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}

.marquee img {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  /* Tint grayscale logos toward --text-primary (#2f3b65) */
  /* filter: grayscale(1) sepia(5) hue-rotate(205deg) saturate(450%) brightness(0.9) contrast(1.05); */
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.client-logo:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.1);
}

/* Tooltip */
.client-logo:before {
  content: attr(data-name);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-dark);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
}

.client-logo:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom: 0;
  border-top-color: var(--bg-dark);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.client-logo:hover:before,
.client-logo:hover:after {
  opacity: 1;
  visibility: visible;
  bottom: -35px;
}

.client-logo:hover:after {
  bottom: -15px;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

#contact-form-section {
  padding: 80px 5%;
  position: relative;
}

#contact-form-section .section-header {
  text-align: left;
  max-width: 100%;
  margin: 0 0 50px;
}

#contact-form-section .section-header .section-title:after {
  left: 0;
  transform: translateX(0);
}

/* Footer */
footer {
  padding: 60px 5% 40px;
  background: var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

/* Responsive grid for smaller screens - stack columns */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h3 {
  font-size: 20px;
  margin-bottom: 25px;
  color: var(--secondary);
}

.footer-col h3 + .footer-links + h3 {
  margin-top: 30px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-links a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  padding: 12px 20px;
  border-radius: var(--radius);
}

.footer-links a:hover {
  color: var(--secondary);
  background-color: var(--glass);
  transform: translateX(5px);
}

.footer-links .dropdown-header {
  font-weight: 800;
  color: var(--secondary) !important;
  cursor: default;
  margin-bottom: 8px;
  pointer-events: none;
  padding: 12px 20px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-link-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.contact-link-item a:hover {
  color: var(--secondary);
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  box-shadow: 0px 8px 18px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: var(--transition);
  text-decoration: none;
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.18);
  color: var(--secondary);
}

.footer-col p i {
  margin-right: 10px;
  color: var(--secondary);
}

.copyright {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(47, 59, 101, 0.1);
  color: var(--text-secondary);
}

/* Animations */
[data-aos] {
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .labs-container,
  .teams-container,
  .progress-container {
    flex-direction: column;
  }

  .section-title {
    font-size: 36px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .contact-info-container {
    flex-direction: column;
    gap: 20px;
  }

  .contact-form-container {
    flex-direction: column;
    gap: 40px;
  }

  .contact-form-container .section-header {
    text-align: center;
  }

  .contact-form-container .section-header .section-title:after {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Fix blob overflow on tablets */
  .blob-1 {
    width: 400px;
    height: 400px;
    top: 15%;
    right: -50px;
  }

  .blob-2 {
    width: 350px;
    height: 350px;
    bottom: 15%;
    left: -25px;
  }
}

/* Prevent the navbar from overflowing on medium screens */
@media (max-width: 1100px) {
  .navbar {
    padding: 12px 20px;
  }
  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  :root {
    /* Slightly larger to ensure no overlap under fixed navbar */
    --navbar-height: 60px;
  }
  .navbar {
    padding: 12px 20px;
    width: 100%;
  }
  /* Keep a small breathing room under the navbar */
  .page-hero {
    padding-top: 12px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--navbar-height); /* Position below navbar */
    left: 0;
    width: 100%;
    background: var(--primary);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    z-index: 999;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: visible;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(47, 59, 101, 0.1);
    overflow: visible;
  }

  .nav-links .nav-item:last-child {
    border-bottom: none;
  }

  .nav-links .nav-item > a {
    display: block;
    padding: 15px 30px; /* Reduced padding */
    font-size: 16px; /* Slightly smaller font */
    color: var(--text-primary);
    position: relative;
  }

  .nav-links .nav-item > a:after {
    display: none;
  }

  /* Add indicator for items with dropdowns */
  .nav-links .nav-item.has-dropdown > a:after {
    content: "▼";
    position: absolute;
    right: 20px;
    font-size: 12px;
    transition: transform 0.3s ease;
  }

  .nav-links .nav-item.active.has-dropdown > a:after {
    transform: rotate(180deg);
  }

  /* Mobile dropdown menu styles */
  .nav-links .dropdown-menu {
    position: static;
    display: none;
    background: rgba(47, 59, 101, 0.05);
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0 30px; /* Add left padding for indentation */
    margin: 0;
    min-width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    z-index: 1000;
    overflow: visible;
  }

  .nav-links .nav-item.active .dropdown-menu {
    display: block;
  }

  .nav-links .dropdown-menu a {
    padding: 12px 20px; /* Adjusted padding */
    margin: 0;
    border-radius: 0;
    font-size: 15px; /* Slightly smaller font */
    display: block;
  }

  .nav-links .dropdown-header {
    font-weight: 800;
    color: var(--secondary) !important;
    cursor: default;
    margin-bottom: 8px;
    padding: 12px 20px;
    pointer-events: none;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10000;
  }

  .mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .nav-buttons {
    gap: 0;
  }

  .hero h1 {
    font-size: 36px;
  }

  .section-title {
    font-size: 32px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Fix blob overflow on mobile */
  .blob-1 {
    width: 300px;
    height: 300px;
    top: 20%;
    right: -25px;
  }

  .blob-2 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    left: -25px;
  }

  .blob-3 {
    width: 200px;
    height: 200px;
  }

  .newsletter {

  margin: 0 5%;
  margin-bottom: 5%;

  width: 90%;

}
}

/* Dropdown Menu */
.nav-item {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0; /* Align left edge with the nav item */
  padding: 20px;
  min-width: 250px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px); /* Remove centering offset */
  transition: all 0.3s ease;
  border-radius: var(--radius); /* Remove border radius for desktop dropdown */
}

.nav-item.show-dropdown .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.dropdown-menu a:last-child {
  margin-bottom: 0;
}

.dropdown-menu a:hover {
  background-color: var(--glass);
  transform: translateX(5px);
}

.dropdown-header {
  font-weight: 800;
  color: var(--secondary) !important;
  cursor: default;
  margin-bottom: 8px;
  pointer-events: none;
}
