* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", "Poppins", sans-serif;
  /* Cleaner font for Jumin style */
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: #f8fafc;
  color: #0f172a;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Background Shapes */
.bg-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  background: #56555f;
  opacity: 0.05;
  filter: blur(2px);
  animation: floatShape 20s infinite linear;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 5%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-2 {
  width: 150px;
  height: 150px;
  bottom: 15%;
  right: 10%;
  border-radius: 50%;
  animation-duration: 25s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  top: 50%;
  left: 40%;
  border-radius: 20%;
  animation-duration: 15s;
}

@keyframes floatShape {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(100px, 50px) rotate(180deg);
  }

  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

/* ================= NAV ================= */
header {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #5b4beb;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #5b4beb;
}

/* ================= JUMIN HERO TEMPLATE ================= */
.hero {
  min-height: 100vh;
  background-color: #f8fafc;
  padding: 8rem 4rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1300px;
  margin: 0 auto;
}

.hero-content {
  z-index: 2;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: #111;
}

/* .highlight-text {
  background: #56555f;
  color: #fff;
  padding: 0 15px;
  border-radius: 8px;
  display: inline-block;
  transform: rotate(-2deg);
} */

.hero-desc {
  font-size: 1.15rem;
  color: #666;
  border-left: 3px solid #ddd;
  padding-left: 2rem;
  margin-bottom: 3rem;
  max-width: 450px;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.btn-enroll {
  background: #f97316;
  color: #fff;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.2);
}

.btn-learn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

.play-icon {
  width: 50px;
  height: 50px;
  background: #0ea5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

/* Testimonials Row */
.testimonials {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.avatar-group {
  display: flex;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 4px solid #fff;
  margin-left: -15px;
  object-fit: cover;
}

.avatar:first-child {
  margin-left: 0;
}

.success-text {
  font-weight: 700;
  color: #111;
}

.success-text span {
  display: block;
  font-weight: 400;
  color: #666;
  font-size: 0.9rem;
}

/* Tilted Image Container */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-bg-tilted {
  width: 400px;
  height: 500px;
  background: #56555f;
  border-radius: 5rem;
  transform: rotate(-15deg);
  position: absolute;
  z-index: 1;
}

.hero-portrait {
  width: 400px;
  height: 500px;
  object-fit: cover;
  z-index: 2;
  position: relative;
  border-radius: 3rem;
  margin-top: -50px;
}


/* Section Dividers */
.section-divider {
  width: 100%;
  height: 80px;
  background-color: #f8fafc;
  margin-top: -40px;
  position: relative;
  z-index: 3;
}

section:nth-of-type(even) .section-divider {
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

section:nth-of-type(odd) .section-divider {
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

section {
  max-width: 1200px;
  margin: auto;
  padding: 5rem 2rem;
}

section h3 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  position: relative;
}

section h3::after {
  content: "";
  width: 60px;
  height: 4px;
  background: #56555f;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* ================= ABOUT (NORMAL CARD STYLE) ================= */
.about-container {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 4rem;
  background: #ffffff;
  padding: 3rem;
  border-radius: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skill-category h4,
.projects-container h4,
.group-projects-container h4,
.els-category h4 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
}

.els-category {
  position: relative;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.about-info h4 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #000;
}

.about-desc {
  color: #475569;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ================= SKILLS ================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category h4 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.skill-item {
  margin-bottom: 1rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.progress-bar {
  height: 10px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: #5b4beb;
}

/* ================= SKILL CARDS ================= */
.skills-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .skills-container {
    grid-template-columns: 1fr;
  }
}

.grid-2-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 2rem auto;
}

@media (max-width: 600px) {
  .grid-2-2 {
    grid-template-columns: 1fr;
  }
}

.skill-card {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #5b4beb, #0ea5e9);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(91, 75, 235, 0.15);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card i {
  font-size: 3rem;
  background: linear-gradient(135deg, #5b4beb, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.2rem;
  transition: transform 0.3s ease;
}

.skill-card:hover i {
  transform: scale(1.1);
}

.skill-card h5 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.skill-card h6 {
  font-size: 0.95rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 1rem;
  background: rgba(91, 75, 235, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

/* ================= STAR RATINGS ================= */
.star-rating {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #ffffff;
  border-radius: 0.8rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.stars {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.3rem;
  justify-content: center;
}

.stars i {
  color: #FFD100;
  /* Richer golden color */
  font-size: 0.8rem;
  /* Even smaller */
  text-shadow: 0 0 5px rgba(255, 209, 0, 0.3);
  /* Subtle golden glow */
}

.star-rating span {
  font-weight: 500;
}

/* ================= CARDS ================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.15);
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.card h4 {
  margin-bottom: 0.5rem;
}

.card p {
  color: #475569;
  font-size: 0.95rem;
  flex-grow: 1;
}

.card-link {
  color: #56555f;
  font-weight: 600;
}

/* ================= JOURNEY BENTO GRID ================= */
.journey-wrapper {
  padding: 0;
  margin-top: 1rem;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.journey-card {
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
}

.journey-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(91, 75, 235, 0.15);
}

.journey-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.journey-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.journey-content h4 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #111;
}

.journey-content p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Primary Card (Spans full width, image on left) */
.journey-card.primary {
  grid-column: span 12;
  flex-direction: row;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid rgba(91, 75, 235, 0.1);
}

.journey-card.primary .journey-img {
  width: 50%;
  height: 350px;
  border-right: 4px solid #fff;
}

.journey-card.primary .journey-content {
  padding: 3rem;
  width: 50%;
}

.journey-card.primary .journey-content h4 {
  font-size: 2rem;
  color: #5b4beb;
}

.journey-card.primary .journey-content p {
  font-size: 1.1rem;
}

/* Secondary Cards */
.journey-card.secondary {
  grid-column: span 4;
}

/* Achievement Card */
.journey-card.achievement {
  grid-column: span 4;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  text-align: center;
}

.journey-card.achievement .journey-content {
  align-items: center;
}

.journey-card.achievement .journey-img {
  height: 140px;
  width: 140px;
  border-radius: 50%;
  margin: 1.5rem auto 0;
  border: 4px solid #fff;
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2);
}

.achievement-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f59e0b;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
}

.level-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #10b981;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
  z-index: 10;
}

/* Responsive adjustments for Journey Grid */
@media (max-width: 950px) {
  .journey-card.primary {
    flex-direction: column;
  }

  .journey-card.primary .journey-img {
    width: 100%;
    height: 300px;
    border-right: none;
    border-bottom: 4px solid #fff;
  }

  .journey-card.primary .journey-content {
    width: 100%;
    padding: 2rem;
  }
}

@media (max-width: 800px) {
  .journey-card.secondary {
    grid-column: span 6;
  }

  .journey-card.achievement {
    grid-column: span 12;
    flex-direction: row;
    text-align: left;
  }

  .journey-card.achievement .journey-content {
    align-items: flex-start;
  }

  .journey-card.achievement .journey-img {
    margin: 2rem;
  }
}

@media (max-width: 600px) {

  .journey-card.secondary,
  .journey-card.primary,
  .journey-card.achievement {
    grid-column: span 12;
  }

  .journey-card.achievement {
    flex-direction: column;
    text-align: center;
  }

  .journey-card.achievement .journey-content {
    align-items: center;
  }

  .journey-card.achievement .journey-img {
    margin: 1.5rem auto 0;
  }
}

/* ================= CONTACT ================= */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1.5rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.contact-icon {
  font-size: 2rem;
  color: #5b4beb;
  margin-bottom: 1rem;
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 3rem 1rem;
  background: #0f172a;
  color: #94a3b8;
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .hero-image img {
    max-width: 250px;
  }

  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nav-subtitle {
    white-space: normal;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
  }

  .els-subtitle {
    align-items: center;
  }

  .nav-item {
    padding: 0.5rem 0;
  }
}

@media (max-width: 600px) {

  .skills-grid,
  .card-grid,
  .contact-container {
    grid-template-columns: 1fr;
  }

  section {
    padding: 4rem 1.5rem;
  }

  footer {
    font-size: 0.8rem;
  }
}