/* ================= ROOT VARIABLES ================= */
:root {
  --bg-color: #061e29;
  --card-color: #6aece1;
  --font-dark: #1e1e1e;
  --font-light: #fffefd;
  --button-color: #fbf9e4;
  --button-hover: #5b88b2;
}

/* ================= GLOBAL STYLES ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Space Grotesk", sans-serif;
}

html {
  font-size: 14px;
}

body {
  background-color: var(--bg-color);
  color: var(--font-light);
}

/* ================= SECTIONS ================= */
.section {
  padding: 20px 10%;
}

.section-title {
  text-align: center;
  margin-bottom: 20px;
}

.hero-intro {
  font-size: clamp(2.2rem, 5vw, 3.2rem); /* responsive big text */
  font-weight: 500;
  line-height: 1.2;
  color: var(--button-color);
  margin-bottom: 12px;
}

.hero-subtext {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  color: var(--card-color);
  max-width: 700px;
}

/* ================= CARDS ================= */
.info-card,
.core-card,
.project-card,
.project-wide-card {
  background-color: var(--card-color);
  color: var(--font-dark);
  padding: 20px;
  border-radius: 12px;
}
.scenario-card {
  background-color: var(--button-color);
  align-items: center;
  justify-content: center;
  width: fit-content;
}
.core-card {
  height: 200px;
}
.info-card-stroke {
  border: 1px solid var(--card-color);
  padding: 20px;
  border-radius: 12px;
}

.card-header {
  display: flex;
  align-items: center; /* vertically center icon & text */
  gap: 10px; /* space between icon and h3 */
  padding-bottom: 10px;
}

.card-icon {
  font-size: 15px;
  color: var(--font-dark);
}

/* ================= BUTTON ================= */
.btn {
  display: inline-block;
  flex-direction: column;
  margin-top: 20px;
  padding: 10px 25px;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  align-items: center;
  justify-content: center;
  width: fit-content;
}
.primary-btn {
  display: flex;
  color: var(--font-light);
  margin: 10px auto 10px auto;
  background-color: var(--bg-color);
  border: 2px solid var(--font-light);
}
.primary-btn:hover {
  background-color: var(--font-light);
  color: var(--bg-color);
  border: 2px solid var(--bg-color);
}
.secondary-btn {
  display: flex;
  color: var(--bg-color);
  margin: 10px auto 10px auto;
  background-color: var(--font-light);
  border: 2px solid var(--card-color);
}
.secondary-btn:hover {
  background-color: var(--card-color);
  color: var(--font-dark);
  border: 2px solid var(--font-light);
}

.project-btn {
  background: transparent;
  color: var(--card-color);
  border: 1px solid #a0f0e0;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-btn:hover {
  background: #a0f0e0;
  color: #042c34;
}

.project-btn.active {
  background: #66f0dc;
  color: #042c34;
  border-color: #66f0dc;
}
/* ================= ABOUT ================= */

.about-grid,
.core-grid,
.three-image-container {
  display: grid;
  gap: 25px;
  align-items: center;
}
.about-grid {
  grid-template-columns: 1fr 1fr;
}
.core-grid {
  grid-template-columns: repeat(2, 1fr);
}
.wide {
  grid-column: span 2;
}
.three-image-container {
  grid-template-columns: 1fr 1fr 1fr;
  padding: 15px;
}
.profile-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-row: span 2; /* spans two rows in about-grid */
  margin-bottom: 15px;
}

.profile-image {
  width: 250px;
  height: 400px;
  object-fit: cover;
  border: 2px solid var(--card-color);
  border-radius: 20px;
}

/* ================= TIMELINE ================= */
.education-section {
  position: relative;
}

.timeline-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

/* Horizontal Line */
.timeline-line {
  position: absolute;
  top: 25px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: white;
  border-radius: 2px;
}

/* Timeline Item */
.timeline-item,
.image-item {
  text-align: center;
  position: relative;
  color: var(--font-light);
}

.image-item img {
  max-width: 100%;
  display: block;
}
/* Dot */
.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
}

/* Inner White Dot */
.inner-dot {
  width: 18px;
  height: 18px;
  background-color: #eaeaea;
  border-radius: 50%;
}

/* Vertical Line */
.timeline-connector {
  width: 4px;
  height: 50px;
  background-color: white;
  margin: 0 auto 20px;
}

/* Dot Colors */
.purple {
  background-color: #8a7cff;
}

.green {
  background-color: #9eff7c;
}

.gold {
  background-color: #d4a63a;
}

/* Text Styling */
.timeline-item h3 {
  font-size: 15px;
  margin-bottom: 10px;
}

.timeline-item .title {
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-item .subtitle {
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 6px;
  font-style: italic;
}

.timeline-item .highlight {
  font-size: 14px;
  font-weight: 600;
}

/* ================= PROJECTS ================= */
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.project-wide-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.fyp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  justify-content: center;
  align-items: center;
  padding: 15px;
}
.award-box {
  background: var(--button-color);
  padding: 16px 20px;
  margin: 10px auto;
  margin: 10px auto;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);

  text-align: center; /* THIS is what you want */
}

.award-box h4 {
  margin: 0 0 6px 0;
  color: var(--font-dark);
  font-size: 1.05rem;
}

.award-box p {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
}

.content-list {
  padding-left: 3rem;
}

/* LEFT CARD */
.project-card {
  background-color: var(--card-color);
  color: var(--font-dark);
  padding: 20px;
  border-radius: 16px;
  min-height: 360px;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.4;
}

/* RIGHT SIDE */
.fyp-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

/* ================= IMAGE SLIDER ================= */
.image-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.image-slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.image-slide {
  flex: 0 0 100%; /* show one slide at a time */
}

.image-slide img {
  width: 100%;
  height: 250px; /* default for VH */
  object-fit: cover;
  display: block;
}

/* ================= STRATA SLIDER ================= */
.image-slider .image-slide img {
  height: 280px;
  object-fit: contain;
}

/* Bullets */
.slider-bullets {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.bullet {
  width: 12px;
  height: 12px;
  background-color: var(--card-color);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.bullet.active {
  opacity: 1;
}

.deploy-label {
  font-size: 0.8rem;
  opacity: 0.9;
}

.deploy-link {
  font-size: 1rem;
  font-weight: 600;
}

/* ================= EXPERIENCE ================= */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  justify-content: center;
  align-items: center;
}

/* ================= SUB TITLES ================= */
.sub-title {
  margin: 5px;
}

.aboutA-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 25px;
  align-items: start;
}

h4 {
  color: var(--card-color);
}

.aboutA-grid i {
  color: var(--card-color);
}

.badge-link,
.project-btn {
  text-decoration: none;
  display: block;
}

/* badge image */
.badge-image {
  max-width: 100%;
  height: 80px;
  object-fit: contain;
}

.social-icons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 15px;
}

.social-icons a {
  color: var(--button-color);
  font-size: 1.2rem;
  transition:
    color 0.3s ease,
    transform 0.2s ease;
}

.social-icons a:hover {
  color: var(--font-light);
  transform: translateY(-2px);
}
/* PROJECTS */
.project-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .project-selection {
    justify-content: center;
  }
}
.project-image,
.project-image-dark {
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
}
.project-image {
  border: 2px solid var(--card-color);
}
.project-image-dark {
  border: 2px solid var(--bg-color);
}
.three-image-item {
  width: 300px;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border: 2px solid var(--card-color);
  border-radius: 5px;
}
.three-image-item-no-border {
  width: 300px;
  height: auto;
  max-height: 300px;
  object-fit: contain;
}
.project-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 15px;
}
h3 {
  text-align: center;
}
/* WORKSHOPS */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 30px auto;
}

/* vertical line */
.timeline::before {
  content: "";
  position: absolute;
  left: 42px;
  top: 0;
  width: 4px;
  height: 100%;
  background: #fff;
}

/* each timeline event */
.timeline-event {
  position: relative;
  margin-bottom: 50px;
  padding-left: 80px;
}

/* circle for year */
.timeline-event::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #38bdf8; /* default color, you can override */
  border: 4px solid #fff;
}

.timeline-year {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 8px;
}

.timeline-content {
  line-height: 1.5;
}

.timeline-content strong {
  color: #facc15; /* yellow for emphasis */
}

/* Different colors for each year */
.year-2026::before {
  background: #fbbf24;
} /* yellow */
.year-2025::before {
  background: #84cc16;
} /* green */
.year-2024::before {
  background: #818cf8;
} /* purple */
.year-2023::before {
  background: #f87171;
} /* red */
.year-2022::before {
  background: #1b41bc;
} /* red */
.image-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 32px;
  cursor: pointer;
}

.popup-img {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.popup-img:hover {
  transform: scale(1.03);
}
.four-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.four-image-grid img {
  width: 100%;
  height: auto;
  border: 2px solid var(--card-color);
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.four-image-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
t {
  color: #000;
  font-weight: bold;
}
