/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #eee7dc;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  flex: 1;
  margin-left: 40px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #ddcfb9;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #007bff;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: #007bff;
}

.nav-links a.active::after {
  width: 100%;
}

/* About Hero */
/* Hero section now inherits page background (image removed) */
.about-hero {
  background: transparent; /* use body background */
  padding-top: 80px;
  padding-bottom: 60px;
}

.about-hero h2 {
  font-family: 'Nunito', 'Heebo', sans-serif;
  font-weight: 800;
  color: #fff; /* updated to white per request */
  font-size: clamp(2.4rem, 4.6vw, 3.25rem); /* slightly larger */
  /* stronger multi-layer shadow for readability on light background */
  text-shadow:
    0 1px 0 rgba(0,0,0,0.16),
    0 3px 8px rgba(0,0,0,0.24),
    0 10px 24px rgba(0,0,0,0.18);
  letter-spacing: 0.8px; /* a bit more space */
  word-spacing: 3px;     /* ensure words are comfortably spaced */
}

.about-hero p {
  color: #555;
  font-size: 16px;
}

/* Underline accent for hero title */
.hero-underline { position: relative; display: inline-block; padding-bottom: 8px; }
.hero-underline::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, #3f51b5, #0ea5e9);
  border-radius: 999px;
  animation: underline-grow 1.2s ease-out .3s forwards;
}
@keyframes underline-grow { to { width: 78%; } }

/* Rotating keyword in hero subtitle */
.rotator { display: inline-block; min-width: 10ch; }
.rotator-word { display:inline-block; transition: opacity .35s ease, transform .35s ease; }
.rotator-word.hide { opacity: 0; transform: translateY(6px); }

/* Animated gradient text utility for hero title */
.text-gradient-animate {
  background: linear-gradient(90deg, #3f51b5, #0ea5e9, #3f51b5);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-move 6s ease-in-out infinite;
}

@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Per-letter reveal for hero heading */
.about-hero h2 .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
}
.about-hero h2 .char.in {
  opacity: 1;
  transform: translateY(0);
}

/* Generic scroll reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ICT Section */
.ict-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.ict-section h3 {
  color: #333;
}

.training-list {
  list-style: none;
  padding: 0;
}

.training-list li {
  margin-bottom: 10px;
  font-size: 15px;
  color: #555;
}

.training-list i {
  margin-right: 8px;
}

/* ICT image tilt styles */
.ict-section .tilt-wrap { perspective: 1000px; }
.ict-section .tilt-figure {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .22s ease-out, box-shadow .22s ease-out;
  border-radius: .5rem;
}
.ict-section .tilt-figure img { display: block; border-radius: .5rem; }
.ict-section .tilt-figure .tilt-glare {
  position: absolute;
  inset: 0;
  border-radius: .5rem;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .65;
}

/* Section underline accent for ICT title */
.section-underline { position: relative; display: inline-block; padding-bottom: 6px; }
.section-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px; width: 56px;
  background: linear-gradient(90deg, #3f51b5, #0ea5e9);
  border-radius: 999px;
}

/* Training list micro interaction */
.training-list li { transition: transform .18s ease, color .18s ease; }
.training-list li:hover { transform: translateX(4px); color: #333; }
.training-list li:hover i { color: #3f51b5; }

/* Features Section */
.features-section {
  background-color: transparent; /* inherit page background */
}

.features-section h3 {
  color: #333;
}

.feature-card {
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Features tilt and icons */
.features-section .tilt-wrap { perspective: 1000px; }
.features-section .tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .22s ease-out, box-shadow .22s ease-out;
}
.features-section .tilt-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.12); }

.features-section .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #e8edfb;
  color: #3f51b5;
  position: relative;
  margin-bottom: 10px;
}
/* Replace pulse ring with subtle rotating gradient glow */
.features-section .feature-icon::after {
  content: "";
  position: absolute;
  inset: -3px; /* slight outward halo */
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(63,81,181,0.55), rgba(14,165,233,0.0) 55%, rgba(63,81,181,0.55));
  filter: blur(6px) brightness(1.05);
  animation: rotate-glow 6s linear infinite;
  opacity: .85;
  z-index: -1; /* behind icon */
  pointer-events: none;
}

/* Intensify on hover */
.feature-card:hover .feature-icon::after {
  filter: blur(5px) brightness(1.18);
  opacity: 1;
}

@keyframes rotate-glow {
  to { transform: rotate(360deg); }
}

.features-section .feature-icon i { font-size: 1.5rem; }

/* Stats section */
.stats-section {
  background: transparent;
}
.stat-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  padding: 18px 16px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.12); }
.stat-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #e8edfb; color: #3f51b5; }
.stat-icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(63,81,181,0.45); animation: pulse-ring 1.6s ease-out infinite; }
.stat-value { font-size: 1.6rem; font-weight: 700; color: #333; line-height: 1; }
.stat-label { color: #666; font-size: .9rem; }

@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(63,81,181,0.45);} 70% { box-shadow: 0 0 0 14px rgba(63,81,181,0);} 100% { box-shadow: 0 0 0 0 rgba(63,81,181,0);} }

/* Pulse button helper */
.btn-pulse { position: relative; }
.btn-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 6px;
  box-shadow: 0 0 0 0 rgba(13,110,253,0.45);
  animation: pulse-ring 1.8s ease-out infinite;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .text-gradient-animate { animation: none; }
  .about-hero h2 .char { transition: none; opacity: 1; transform: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .stat-icon::after { animation: none; }
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  padding: 20px;
  text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
  .ict-section {
    text-align: center;
  }
}

/* Slightly stronger overlay on very small screens for text readability */
@media (max-width: 576px) {
  .about-hero {
    padding-top: 60px;
    padding-bottom: 50px;
  }
}
