* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #061a10;
  color: white;
  overflow-x: hidden;
}

/* ================= NAVBAR ================= */
header {
  position: fixed;
  top: 0;
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 6px 14px;
  background: rgba(0, 30, 15, 0.55);
  backdrop-filter: blur(10px);

  z-index: 1000;
}

header h2 {
  font-size: 12px;
  color: #b8ffcc;
}

header nav a {
  font-size: 10px;
  padding: 3px 8px;
  margin: 0 2px;

  border-radius: 999px;
  background: rgba(0,255,120,0.07);

  color: #d6ffe6;
  text-decoration: none;
}

/* ================= HERO ================= */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  background: url("Understanding.jpg") center/cover no-repeat;
  position: relative;
}

/* DARK OVERLAY */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1;
  pointer-events: none;
}

/* FIX CLICKABLE CONTENT */
.hero-text {
  position: relative;
  z-index: 5;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #00ff88;
  color: black;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;

  position: relative;
  z-index: 10;
}

/* ================= SECTIONS ================= */
.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  overflow: hidden;

  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

/* ACTIVE ANIMATION */
.page.active {
  opacity: 1;
  transform: translateY(0);
}

/* IMAGE */
.image-side {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;

  filter: brightness(0.6);
}

/* TEXT PANEL */
.text-side {
  position: relative;
  z-index: 2;

  width: 50%;
  margin-left: auto;
  padding: 70px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(10px);

  border-left: 1px solid rgba(0,255,120,0.12);
}

/* TEXT */
.text-side h2 {
  font-size: 38px;
  margin-bottom: 15px;
  color: #eafff0;
}

.text-side p {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255,255,255,0.88);
  white-space: pre-line;
}

/* ================= CAROUSEL ================= */
.slides-wrapper {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: slide 18s linear infinite;
}

.slide {
  min-width: 220px;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
}

/* ================= GALLERY ================= */
.gallery {
  display: flex;
  gap: 15px;
  width: max-content;
  animation: move 20s linear infinite;
}

.gallery img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

/* ================= ANIMATION ================= */
@keyframes slide {
  100% { transform: translateX(-50%); }
}

@keyframes move {
  100% { transform: translateX(-50%); }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  header {
    flex-direction: column;
    gap: 5px;
    padding: 8px;
  }

  .page {
    display: block;
  }

  .text-side {
    width: 100%;
    margin: 0;
    padding: 25px;
    background: rgba(10,10,10,0.75);
  }

  .text-side h2 {
    font-size: 24px;
  }

  .text-side p {
    font-size: 14px;
    line-height: 1.7;
  }
}
