*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  scroll-behavior: smooth;
}


body{
  font-family:'Inter',sans-serif;
  background:#0a0a0b;
  color:white;
}

/* ================= LOADER ================= */

.loader{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;

  background:
    radial-gradient(circle at 50% 45%, rgba(43,43,43,0.85), rgba(255,255,255,0.35)),
    linear-gradient(to bottom, #f6f7fb, #e9ecf5);

  transition:1s ease;
}

.loader.hide{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.loader-content{
  position:relative;
  z-index:5;
  text-align:center;
}

.loader-content h1{
  font-size:48px;
  font-weight:800;
  letter-spacing:4px;
  color:#111;
}

.loader-line{
  width:0;
  height:3px;
  background:#e11d48;
  margin:14px auto 0;
  border-radius:10px;
  animation:lineGrow 1.2s ease forwards;
}

@keyframes lineGrow{
  to{width:120px;}
}

/* CLOUDS */

.cloud{
  position:absolute;
  left:50%;
  bottom:0;
  width:140%;
  transform:translate3d(-50%,120%,0) scale(1.2);
  mix-blend-mode:screen;
  opacity:0.35;
}

.cloud1{ animation:cloudMove 6s ease-out forwards; }
.cloud2{ animation:cloudMove 7s ease-out forwards; opacity:0.25; filter:blur(2px);}
.cloud3{ animation:cloudMove 8s ease-out forwards; opacity:0.4;}

@keyframes cloudMove{
  0%{
    transform:translate3d(-50%,120%,0) scale(1.2);
    opacity:0;
  }
  100%{
    transform:translate3d(-50%,-140%,0) scale(1.4);
    opacity:0.9;
  }
}

/* ================= HERO ================= */
.hero{
  position:relative;
  height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:40px;

  overflow:hidden;
}

/* 🏯 DOJO IMAGE LAYER */
.hero-bg{
  position:absolute;
  inset:0;

  background:url("images/dojo.png") center/cover no-repeat;

  transform:translateY(var(--parallax, 0px));

  z-index:-2;
}

/* 🌑 DARK OVERLAY */
.hero-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.65);
  z-index:-1;
}

.hero-inner{
  width:min(1100px, 92%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:48px;
}

/* MAIN CARD */

.hero-main-card{
  backdrop-filter:blur(8px);
  background:linear-gradient(
    135deg,
    rgba(15,15,18,0.75),
    rgba(15,15,18,0.45)
  );

  padding:90px 140px;
  border-radius:24px;

    transition: transform .35s ease, box-shadow .35s ease;

  border:1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.05);



  width: 100%;
}



.hero-main-card:hover{
  transform:translateY(-6px) scale(1.02);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.8),
    0 0 40px rgba(255,255,255,0.06);
}

/* STATS */


.hero-stats{
  width:100%;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:32px;
}

.stat-card{
  height:220px;
  border-radius:20px;

  backdrop-filter:blur(6px);
  background:linear-gradient(
    145deg,
    rgba(15,15,18,0.75),
    rgba(15,15,18,0.45)
  );

  border:1px solid rgba(255,255,255,0.08);

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;

    transition: transform .35s ease, box-shadow .35s ease;

  box-shadow:
    0 15px 40px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.05);


}

.stat-card:hover{
  transform:translateY(-8px) scale(1.05);

  box-shadow:
    0 25px 60px rgba(0,0,0,0.75),
    0 0 30px rgba(255,255,255,0.05);
}

.stat-card:nth-child(1){animation-delay:5.4s;}
.stat-card:nth-child(2){animation-delay:5.6s;}
.stat-card:nth-child(3){animation-delay:5.8s;}

.card-link{
  text-decoration: none;
  color: inherit;
}

.stat-label{
  font-size:14px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:rgba(255,255,255,0.6);
}

.stat-value{
  font-size:42px;
  font-weight:800;
}

.stat-card::before,
.hero-main-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;

  background:linear-gradient(
    120deg,
    transparent 20%,
    rgba(255,255,255,0.08),
    transparent 80%
  );

  opacity:0;
  transition:0.4s;
}

.stat-card:hover::before,
.hero-main-card:hover::before{
  opacity:1;
}

@keyframes heroReveal{
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* MOBILE */

@media(max-width:900px){

  .hero-main-card{
    padding:40px;
  }

  .hero-stats{
    grid-template-columns:1fr;
  }

}

.navbar{
  position:fixed;
  top:20px;
  left:50%;
  transform:translateX(-50%);

  width:min(1100px, 92%);
  height:70px;

  padding:0 30px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  backdrop-filter:blur(14px);
  background:rgba(15,15,18,0.55);

  border:1px solid rgba(255,255,255,0.08);
  border-radius:16px;

  box-shadow:0 10px 40px rgba(0,0,0,0.5);

  z-index:999;
}

.nav-left{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo-box{
  width:28px;
  height:28px;
  border:2px solid #ff2a6d;
  transform:rotate(45deg);
}

.logo-text{
  font-weight:600;
  letter-spacing:1px;
  font-size:14px;
}

.nav-links{
  position:relative;
  display:flex;
  gap:40px;
  list-style:none;
}

.nav-links a{
  text-decoration:none;
  color:rgba(255,255,255,0.75);
  font-size:14px;
  font-weight:500;
  letter-spacing:0.8px;
  padding:6px 2px;
  transition:0.3s;
}

.nav-links a:hover{
  color:white;
}

.nav-indicator{
  position:absolute;
  bottom:-6px;
  height:2px;
  width:0;
  left:0;
  background:#ff2a6d;
  border-radius:10px;
  transition:all 0.3s ease;
}


.timeline{
  position:relative;
  width:min(1100px,92%);
  margin:auto;
}

.section-title{
  text-align:center;
  font-size:42px;
  font-weight:700;
  margin-bottom:120px;
}

/* CENTER LINE */

.timeline-line{
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  width:1px;
  background:rgba(255,255,255,0.15);
  transform:translateX(-50%);
}

/* ITEMS */

.timeline-container{
  display:flex;
  flex-direction:column;
  gap:120px;
}

.timeline-item{
  position:relative;
  width:50%;
  padding:0 40px;

  opacity:0;
  filter:blur(8px);
  transition:
    transform 0.9s cubic-bezier(.2,.65,.2,1),
    opacity 0.6s ease,
    filter 0.6s ease;
}

/* LEFT ITEMS → start from left */
.timeline-item:nth-child(odd){
  align-self:flex-start;
  transform:translateX(-120px);
}

/* RIGHT ITEMS → start from right */
.timeline-item:nth-child(even){
  align-self:flex-end;
  transform:translateX(120px);
}

.timeline-item.show{
  opacity:1;
  transform:translateX(0);
  filter:blur(0);
}

/* DOT */

.timeline-dot{
  position:absolute;
  top:18px;
  right:-7px;
  width:14px;
  height:14px;
  background:#ff2a6d;
  border-radius:50%;
}

.timeline-item:nth-child(even) .timeline-dot{
  left:-7px;
}

/* CARD */

.timeline-card{
  background:#0f0f12;
  padding:32px;
  border-radius:14px;

  border:1px solid rgba(255,255,255,0.06);


  transform:translateY(0);
  transition:0.35s ease;
}

/* HOVER = PREMIUM LIFT */

.timeline-card:hover{
  border-color:rgba(255,255,255,0.18);
  transform:translateY(-8px) scale(1.02);
}

/* TEXT */

.timeline-card span{
  font-size:12px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:#ff2a6d;
}

.timeline-card h3{
  margin:12px 0 10px;
  font-size:22px;
}

.timeline-card p{
  color:rgba(255,255,255,0.65);
  line-height:1.6;
}

.timeline-item{
  opacity:0;
  transform:translateY(60px);
  transition:0.7s ease;
}

#timeline{
  position:relative;
  padding:160px 0;

  background:
    linear-gradient(rgba(10,10,12,0.75), rgba(10,10,12,0.85)),
    url("images/concrete.png");

  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

/* =========================================================
   🧠 SECTION BASE
========================================================= */

.mentors-section{
  position: relative;
  padding: 160px 0;
  overflow: hidden;
  z-index: 1;
}

/* subtle depth */

/* 🖼 SAMURAI BACKGROUND */
.mentors-section::before{
  content: "";
  position: absolute;
  inset: -10%; /* extra space for movement */

  background: url("images/samurai-bg.png") center / cover no-repeat;

  opacity: 0.12;


  transform: translateY(var(--mentor-parallax, 0px)) scale(1.1);
  will-change: transform;

  z-index: -2;
}

/* 🌑 DARK OVERLAY FOR READABILITY */
.mentors-section::after{
  content: "";
  position: absolute;
  inset: 0;


  z-index: -1;
}

.mentors-section > *{
  position: relative;
  z-index: 2;
}

.section-title{
  text-align:center;
  font-size:44px;
  font-weight:700;
  margin-bottom:90px;
  position:relative;
  z-index:2;
}

.students-section{
  position: relative;
  padding: 160px 0;
  z-index: 1;
}

/* BACKGROUND IMAGE LAYER */
.students-section::before{
  content: "";
  position: absolute;
  inset: 0;

  background:
        linear-gradient(rgba(10,10,12,0.55), rgba(10,10,12,0.65)),
    url("images/students-bg.png");

  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  z-index: -1;
}
/* =========================================================
   🧱 GRID SYSTEM
========================================================= */

.mentors-grid,
.students-grid{
  width:min(1100px,92%);
  margin:auto;
  display:grid;
  gap:36px;
  position:relative;
  z-index:2;
}

.mentors-grid{
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
}

.students-grid{
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
}


/* =========================================================
   🧩 CARD BASE (USED BY BOTH)
========================================================= */

.student-card{
  position:relative;
  padding:38px 28px;
  border-radius:18px;

  background:#111114;
  border:1px solid rgba(255,255,255,0.08);

  text-align:center;

  transition:
    transform .4s ease,
    box-shadow .4s ease,
    border-color .4s ease;
}

/* hover lift */

.student-card:hover{
  transform:translateY(-10px);
  border-color:rgba(255,255,255,0.2);

  box-shadow:
    0 25px 70px rgba(0,0,0,0.85);
}


/* =========================================================
   👤 AVATAR
========================================================= */

.profile-img,
.profile-fallback{
  width:88px;
  height:88px;
  border-radius:50%;
  margin:auto;
  margin-bottom:18px;
}

.profile-img{
  object-fit: cover;
  object-position: center 20%; /* 👈 shift focus slightly upward */
  border:2px solid rgba(255,255,255,0.2);
  transition:.35s ease;
}


.student-card:hover .profile-img{
  transform:scale(1.08);
  border-color:#ff2a6d;
}

.profile-fallback{
  display:flex;
  align-items:center;
  justify-content:center;

  font-size:26px;
  font-weight:700;

  background:linear-gradient(135deg,#ff2a6d,#ff6b6b);
}


/* =========================================================
   📝 TEXT
========================================================= */

.student-card h3{
  font-size:20px;
  margin-bottom:10px;
  font-weight:600;
}

.student-card p{
  font-size:14px;
  line-height:1.6;
  color:rgba(255,255,255,0.65);
}


/* =========================================================
   🏷 MENTOR BADGE
========================================================= */

.mentors-grid .student-card::after{
  content:"MENTOR";

  position:absolute;
  top:16px;
  right:16px;

  font-size:10px;
  letter-spacing:2px;

  padding:6px 12px;
  border-radius:30px;

  background:rgba(255,42,109,0.12);
  color:#ff2a6d;
  border:1px solid rgba(255,42,109,0.35);
}


/* =========================================================
   🪟 MODAL BACKDROP
========================================================= */

.profile-modal{
  position:fixed;
  inset:0;

  display:flex;
  align-items:center;
  justify-content:center;

  background:rgba(0,0,0,0.75);

  opacity:0;
  visibility:hidden;

  transition:.35s ease;
  z-index:2000;
}

.profile-modal.active{
  opacity:1;
  visibility:visible;
}


/* =========================================================
   🧾 MODAL BOX
========================================================= */

.modal-content{
  position:relative;

  width:min(560px,92%);
  padding:44px;

  background:#111114;
  border-radius:20px;

  border:1px solid rgba(255,255,255,0.1);

  transform:translateY(40px) scale(.95);
  transition:.35s ease;
}

.profile-modal.active .modal-content{
  transform:translateY(0) scale(1);
}


/* CLOSE BUTTON */

.modal-close{
  position:absolute;
  top:18px;
  right:22px;

  font-size:26px;
  cursor:pointer;
  opacity:.7;
  transition:.25s;
}

.modal-close:hover{
  opacity:1;
}


/* =========================================================
   🧑 MODAL PROFILE
========================================================= */

.modal-body{
  text-align:center;
}

.modal-body img{
  width:110px;
  height:110px;
  border-radius:50%;
  object-fit:cover;
  margin-bottom:16px;

  border:2px solid #ff2a6d;
}

.modal-body h3{
  font-size:22px;
  margin-bottom:6px;
}

.modal-projects{
  font-size:13px;
  color:#ff2a6d;
  margin-bottom:16px;
}

.modal-body p{
  opacity:.7;
  margin-bottom:22px;
  line-height:1.6;
}


/* =========================================================
   🔗 MODAL LINKS
========================================================= */

.modal-links{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.modal-links a{
  text-decoration:none;
  font-size:14px;
  color:#fff;

  padding:10px 14px;
  border-radius:10px;

  background:#1a1a1d;
  border:1px solid rgba(255,255,255,0.08);

  transition:.25s ease;
}

.modal-links a:hover{
  border-color:#ff2a6d;
  color:#ff2a6d;
  transform:translateX(6px);
}