:root {
  /* Colors */
  --white: #ffffff;
  --black: #000000;
  --blue: #aad1fc;
  --dark-blue: #2c3e50;
  --accent-blue: #3498db;
  --grey: #c2c3c4;
  --light-grey: #f8f9fa;
  --text-color: #333333;
  --text-light: #666666;

  /* Fonts */
  --font-primary: "Montserrat", sans-serif;
  --font-secondary: "Roboto", sans-serif;

  /* Font Sizes */
  --h1-size: clamp(2.5rem, 5vw, 4.5rem);
  --h2-size: clamp(2rem, 4vw, 3.5rem);
  --h3-size: clamp(1.5rem, 3vw, 2.5rem);
  --body-size: 1rem;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--white);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Navigation */
.navbar {
  background-color: var(--blue);
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 85px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.brand-logo {
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--white);
  z-index: 1001;
  /* Ensure logo stays on top */
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-link:hover {
  text-decoration: underline;
  color: var(--dark-blue);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  transition: all 0.3s ease;
}

/* Mobile Nav Toggle Logic (Checkbox Hack or JS Class) */
/* We will use a simple checkbox hack for pure CSS or JS toggling */
.nav-active {
  transform: translateX(0%) !important;
}

/* Hero Section (Home) */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 5%;
  min-height: calc(100vh - 85px);
  width: 100%;
  gap: 2rem;
}

.hero-image-container {
  flex: 1;
  max-width: 50%;
  display: flex;
  justify-content: flex-start;
}

.hero-image {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  max-height: 80vh;
}

.hero-content {
  flex: 1;
  max-width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: var(--h1-size);
  font-weight: 600;
  line-height: 1.3;
  color: var(--black);
}

.hero-subtitle {
  font-family: var(--font-secondary);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--black);
  margin-top: 1rem;
}

/* Page Hero (Services, Clientelle, Training) */
.page-hero {
  background: linear-gradient(120deg, var(--dark-blue) 0%, var(--accent-blue) 100%);
  color: var(--white);
  padding: 80px 20px;
  text-align: center;
  margin-bottom: 50px;
}

.page-hero h1 {
  font-family: var(--font-primary);
  font-size: var(--h2-size);
  font-weight: 700;
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Training Hero Specifics */
.training-hero {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: var(--dark-blue);
  padding: 80px 20px;
  text-align: center;
}

.training-hero h1 {
  color: var(--dark-blue);
  font-size: 4rem;
  font-family: var(--font-primary);
  font-weight: 700;
  margin-bottom: 20px;
}

.training-hero p {
  color: #555;
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Common Section Styles */
.section-heading,
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  color: var(--dark-blue);
  position: relative;
  font-family: var(--font-primary);
  font-weight: 600;
}

.section-heading::after,
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-blue);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Grids */
.feature-grid,
.modules-grid,
.stats-grid,
.gem-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

/* Cards */
.feature-card,
.module-card,
.stat-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 5px solid transparent;
  display: flex;
  flex-direction: column;
}

.feature-card:hover,
.module-card:hover,
.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-bottom-color: var(--accent-blue);
}

.feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #eee;
}

.feature-content {
  padding: 25px;
  flex-grow: 1;
}

.feature-title,
.module-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark-blue);
}

.feature-text,
.module-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Module Card Specifics (Training) */
.module-card {
  padding: 30px;
  text-align: left;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

/* Stat Card Specifics (About) */
.stat-card {
  padding: 30px;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-blue);
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-primary);
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Certificates Grid (About) */
.certificates-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 40px 20px;
  background: #f5f5f5;
}

.certificate-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* GeM Details (Services) */
.gem-details-section {
  background-color: var(--light-grey);
  padding: 80px 20px;
}

.gem-detail-item {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  gap: 15px;
  border-left: 4px solid var(--accent-blue);
}

.gem-check-icon {
  font-size: 1.2rem;
}

.gem-detail-text {
  font-weight: 500;
  color: var(--text-color);
}

/* Contact / Newsletter */
.newsletter-section,
.connect-section {
  padding: 60px 20px;
  text-align: center;
}

.newsletter-section {
  background-color: var(--blue);
  color: var(--white);
}

.newsletter-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.newsletter-section p {
  color: var(--white);
  margin-bottom: 2rem;
}

.subscribe-btn {
  padding: 12px 30px;
  background-color: var(--dark-blue);
  color: white;
  font-weight: bold;
  border-radius: 30px;
  display: inline-block;
  transition: background 0.3s;
}

.subscribe-btn:hover {
  background-color: #34495e;
}

/* Social Icons (About) */
.social-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 40px;
  background: var(--dark-blue);
}

.social-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  width: 180px;
  align-items: center;
  color: white;
  text-align: center;
}

/* Animations */
.fade-in-down {
  animation: fadeInDown 0.8s ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .section-heading {
    font-size: 2rem;
  }
}

@media (max-width: 900px) {

  /* Mobile Navigation */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    right: 0;
    top: 85px;
    height: calc(100vh - 85px);
    background-color: var(--blue);
    flex-direction: column;
    align-items: center;
    width: 60%;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding-top: 2rem;
  }

  .nav-links.active {
    transform: translateX(0%);
  }

  /* Hero Adjustments */
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 2rem;
  }

  .hero-image-container,
  .hero-content {
    max-width: 100%;
  }

  .hero-content {
    align-items: center;
  }

  .hero-image {
    max-height: 50vh;
  }
}

@media (max-width: 768px) {

  /* Responsive Typography */
  :root {
    --h1-size: 2.5rem;
  }

  .training-hero h1 {
    font-size: 2.5rem;
  }

  .feature-grid,
  .modules-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    padding: 0 1rem;
  }
}