/* ============================================================
   home.css — fully responsive across all device sizes
   Breakpoints:
     Mobile:       < 480px   (base styles below)
     Mobile-L:     ≥ 480px
     Tablet:       ≥ 768px
     Desktop:      ≥ 1000px
     Desktop-L:    ≥ 1280px
   ============================================================ */


.word {
  display: inline-block;
  color: var(--black-color);
  font-family: 'Inknut Antiqua', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ── TextType container ─────────────────────────────────────────── */
    #title-container {
      font-family: var(--body-font2);
      font-size: clamp(1.1rem, 2.8vw, 1.7rem);
      font-weight: 600;
      color: var(--black-color);
      min-height: auto;
      margin-top: 2rem;
      display: flex;
      align-items: baseline;
    }
 
    /* TextType.css — inlined */
    .text-type {
      display: inline-block;
      white-space: pre-wrap;
    }
    .text-type__content {
      color: var(--accent-color);
    }
    .text-type__cursor {
      margin-left: 2px;
      display: inline-block;
      opacity: 1;
      color: var(--accent-color);
    }
    .text-type__cursor--hidden {
      display: none;
    }

    

.card-section {
  scroll-snap-align: start;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.home__container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0 1rem;
  align-items: center;
}

.home__data {
  display: block;
  margin-top: 5rem;
  padding: 10px;
  width: 100%;
  backdrop-filter: blur(1.8px);
  -webkit-backdrop-filter: blur(1.7px);
  border-radius: 30px;
  order: 2;

}

.image-container1 {
  width: 100%;
  display: flex;
  justify-content: center;
  order: 1;
}

.home__img1 {
  border-radius: 20px;
  max-width: 260px;
  width: 100%;
}

.home__name {
  font-family: "Rock Salt", sans-serif;
  font-weight: 900;
  font-style: oblique;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 1rem;
  padding-left: 6px;
  line-height: 1.2;
  font-size: 1.4rem;
  letter-spacing: 2.5px;
  color: var(--hedna);
}
.home__name .blur-word {
      display: inline-block;
      will-change: transform, filter, opacity;
    }

/* TrueFocus.css — drop alongside TrueFocus.js */

.focus-container {
  position: relative;
  display: flex;
  gap: 1em;
  margin-top: 1rem;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  outline: none;
  user-select: none;
}

.focus-word {
  position: relative;
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: filter 0.3s ease, color 0.3s ease;
  outline: none;
  user-select: none;
}

.focus-word.active {
  filter: blur(0);
}

.focus-frame {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  box-sizing: content-box;
  border: none;
}

.corner {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 3px solid var(--border-color, #fff);
  filter: drop-shadow(0px 0px 4px var(--glow-color, rgba(255,255,255,0.6)));
  border-radius: 3px;
  transition: none;
}

.top-left    { top: -10px;    left: -10px;  border-right: none;  border-bottom: none; }
.top-right   { top: -10px;    right: -10px; border-left: none;   border-bottom: none; }
.bottom-left { bottom: -10px; left: -10px;  border-right: none;  border-top: none;    }
.bottom-right{ bottom: -10px; right: -10px; border-left: none;   border-top: none;    }

.focus-word {
  font-family: "BioRhyme", sans-serif;
  color: var(--black-color);
  font-size: 1rem;
  font-weight: 600;
  margin: 0.4rem 0;

}

.home__subh {
  font-family: 'BioRhyme', sans-serif;
  color: var(--black-color);
  font-size: 0.9rem;
  font-weight: 400;
  text-align: justify;

}

#b2 {
  order: 1;
}

#b1 {
  order: 2;
}



/* Style SVG path */
svg path {
  fill: transparent;
  stroke: var(--hedna);
  stroke-width: 2;
  stroke-dasharray: 5000;
  stroke-dashoffset: 5000;
}

.animate-path svg path {
  animation: textanimation 4s ease-in-out forwards;
}

@keyframes textanimation {
  0% {
    stroke-dashoffset: 5000;
  }

  80% {
    fill: transparent;
  }

  100% {
    fill: var(--black-color);
    stroke-dashoffset: 0;
  }
}

.tooltip {
  border-bottom: 1px dotted #333;
  cursor: help;
  position: relative;
}

.tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  top: 1.5em;
  background: #222;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.8em;
  z-index: 10;
}

/* Right: Title + Content stacked */
.about__content-wrapper {
  /* flex: 1;
  display: flex;
  gap: 1rem;
  max-width: 0;
  order: 2; */

  display: block;
  margin-top: 5rem;
  padding: 10px;
  width: 100%;
  backdrop-filter: blur(1.8px);
  -webkit-backdrop-filter: blur(1.7px);
  border-radius: 30px;
  order: 2;
}
.scroll-trigger svg {
      width: 30%;
      max-width: 300px; /* Limits how big it can get on desktop */
      height: auto;
    }

.animate-path svg {
  width: 20%;
  max-width: 300px;
  height: auto;
}

.about-title-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  margin: 0;
  gap: 1rem;
}


.about__container {
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
  align-items: center;
  width: 100%;
  gap: 1rem;
}
#c2 {
  order: 2;
}

#c1 {
  order: 1;
}

.image-container2 {
  width: 100%;
  display: flex;
  justify-content: center;
  orphans: 1;
  order: 1;
}

.home__img2 {
  border-radius: 20px;
  max-width: 260px;
  width: 100%;
}

.about__block {
  padding-top: 3px;
  color: var(--black-color);
  line-height: 1.55;
  backdrop-filter: blur(2.2px);
  -webkit-backdrop-filter: blur(1.7px);
  font-family: var(--body-font);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: justify;
  width: 100%;
  min-width: 0;
}

.toggle-about {
  display: flex;
}

.abt-btn {
  background-color: #1e1e1e;
  color: #fff;
  border: 2px solid #ccc;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.abt-btn:hover {
  background-color: #444;
}

.about_block_official,
.about_block_unofficial {
  display: none;
}

.about_block_official.active,
.about_block_unofficial.active {
  display: block;
}

.qoteP {
  font-weight: 600;
}

#profile {
  justify-content: flex-start;
}

.profile__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.profile__btn {
  padding: 0.4rem 0.9rem;
  font-family: var(--body-font2);
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background-color: transparent;
  color: var(--black-color);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.profile__btn:hover {
  background-color: #5a5a5a;
  transform: translateY(-2px);
  /* subtle hover animation */
}

.profile__btn.active {
  background-color: #6adeda;
}

/* Tab content animation */
.profile__content {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: none;
}

.profile__content.active-tab {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.timeline-horizontal {
  position: relative;
  height: 240px;
  width: 100%;
  margin-top: 4.5rem;
  overflow: hidden;
}
.timecar {
   padding: 2%;
  position: absolute;
  top: 0;
  z-index: 4;
}
.timecar img { max-width: 60px; height: auto; }

.road-line {
  position: absolute;
  top: 50%;
  left: 0;
  height: 10px;
  width: 100%;
  background: repeating-linear-gradient(to right,
      #333 0px,
      #333 10px,
      #fff 10px,
      #fff 20px);
  background-size: 200px 6px;
  background-repeat: repeat-x;
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-dots {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 0;
  z-index: 2;
}

.timeline-dots .dot{
  position: absolute;
  top: 0;
  width: 10px;
  height: 10px;
  background: #222;
  border: 2px solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* If you have more dots, use nth-child or add class for left: XX% */

.dot-line {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 3px;
  height: 32px;
  background: linear-gradient(to bottom, #1976d2 70%, transparent 100%);
  transform: translateX(-50%);
}

.dot-label {
  backdrop-filter: blur(1px);
  font-size: 0.55rem;
  color: #1976d2;
  white-space: nowrap;
  font-weight: bold;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.degree {
  font-family: var(--body-font3);
  font-size: 0.6rem;
  color: var(--black-color);
  margin: 0;
}

.timedate {
  margin: 0;
  font-size: 0.7rem;
  color: var(--black-color);
  font-family: var(--body-font5);

}

.college {
  font-size: 0.65rem;
  font-weight: 900;
  font-family: var(--body-font2);
  margin: 0;

}

.timecarexp {
  padding: 2% 2% 0% 55%;
  align-items: end;
}

.twork {
  font-family: var(--body-font2);
  font-size: 0.6rem;
  color: var(--black-color);
  margin: 0;
}

.skills-title {
  margin-top: 24px;
  margin-bottom: 20px;
  font-family: var(--body-font5);
  font-size: 0.85rem;
  color: var(--black-color);
  display: flex;
  justify-content: center;
  letter-spacing: 1.5px;
  text-align: center;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 20px;
  max-width: 100%;
  padding: 0 0.5rem;
  margin: 0 auto;
}

.skill-item {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #3ca1c3;
  background: var(--black-color);
  transition: box-shadow 0.2s;
  cursor: pointer;
}

.skill-item:hover {
  box-shadow: 0 6px 24px rgba(60, 161, 195, 0.15);
}

.skill-item img {
  width: 38px;
  height: 38px;
  object-fit: contain;

  user-select: none;
}

/* Tooltip styling */
.skill-tooltip {
  display: none;
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.18s;
}

.skill-item:hover .skill-tooltip,
.skill-item:focus .skill-tooltip {
  display: block;
  opacity: 1;
}

/* ============================================================
   BREAKPOINTS
   ============================================================ */
/* --- Mobile-S: 340px */
@media screen and (min-width: 340px) {
  .home__name  { font-size: 1.2rem; }
  .focus-word   { font-size: 1.15rem; }
  .home__subh  { font-size: 0.95rem; }
  .word        { font-size: 1rem; }
  #title-container {font-size: clamp(1.1rem, 2.8vw, 1.7rem); }

  .home__img1 { max-width: 300px; }

  .image-container2{display: none;}
  .about__block{font-size: 0.85rem; }
  .about-title-list  { gap: 1rem; justify-content: space-around; flex-wrap: nowrap; }
  .animate-path svg  { width: 45%;}
  .toggle-about{max-width: 5rem; height: 3rem;}
  #abtToggle{font-size: 0.8rem;}

  .skill-item { width: 68px; height: 68px; border-width: 2px; }
  .skill-item img { width: 44px; height: 44px; }
  .skills-grid { gap: 22px 26px; }
  .skills-title { font-size: 0.95rem; }

  .timeline-horizontal { height: 260px; margin-top: 1rem; }
  .dot-label { font-size: 0.6rem; }
  .degree    { font-size: 0.68rem; }
  .timedate  { font-size: 0.8rem; }
  .college   { font-size: 0.72rem; }
  .timecar{padding: 16.5% 3.5%;}
  .timecarexp{ padding: 25.5% 3.5% 0 70%; }
  .twork     { font-size: 0.65rem; }
  .timecar img { max-width: 30%; }
  .road-line{top: 100%;}
  .timeline-dots{top:1%}
  #a1{left: 50%;}
  #a2{left: 50%;top:4.8rem}
  #a3{left: 50%;top: 10rem;}
  #e0{left: 50%;top:-0.5rem}
  #e1{left: 50%;top:3rem}
  #e2{left: 50%;top:6.4rem}
  #e3{left: 50%;top:10rem}
}

/* ── Mobile-L: 480px ── */
@media screen and (min-width: 480px) {
  .home__name  { font-size: 1.6rem; }
  .focus-word   { font-size: 1.15rem; }
  .home__subh  { font-size: 0.95rem; }
  .word        { font-size: 1rem; }
  #title-container { font-size: clamp(1.1rem, 2.8vw, 1.7rem); }

  .home__img1 { max-width: 300px; }

  .image-container2{display: none;}
  .about__block{font-size: 0.85rem; }
  .about-title-list  { gap: 1rem; justify-content: space-around; flex-wrap: nowrap; }
  .animate-path svg  { width: 52%;}
  .toggle-about{max-width: 5rem; height: 3rem;}
  #abtToggle{font-size: 0.8rem;}

  .skill-item { width: 68px; height: 68px; border-width: 2px; }
  .skill-item img { width: 44px; height: 44px; }
  .skills-grid { gap: 22px 26px; }
  .skills-title { font-size: 0.95rem; }

  .timeline-horizontal { height: 260px; margin-top: 1rem; }
  .dot-label { font-size: 0.6rem; }
  .degree    { font-size: 0.68rem; }
  .timedate  { font-size: 0.8rem; }
  .college   { font-size: 0.72rem; }
  .timecar{padding: 16.5% 3.5%;}
  .timecarexp{ padding: 15.5% 3.5% 0 70%; }
  .twork     { font-size: 0.65rem; }
  .timecar img { max-width: 30%; }
  .road-line{top: 100%;}
  .timeline-dots{top:1%}
  #a1{left: 50%;}
  #a2{left: 50%;top:3.8rem}
  #a3{left: 50%;top: 9rem;}
  #e0{left: 50%;top:-0.6rem}
  #e1{left: 50%;top:3rem}
  #e2{left: 50%;top:6.4rem}
  #e3{left: 50%;top:10rem}
}

/* ── Tablet: 768px ── */
@media screen and (min-width: 768px) {
  /* Home: side-by-side */
  .home__container {
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
  }
  .home__data        { width: 55%; margin-top: 1rem; order: 1; }
  .image-container1  { width: 43%; justify-content: flex-start; order: 2; }
  .home__img1        { max-width: 100%; }
  #b2 { order: 1; }
  #b1 { order: 2; }

  .home__name  { font-size: 1.6rem; }
  .focus-word   { font-size: 1.4rem; }
  .home__subh  { font-size: 1.05rem; }
  .word        { font-size: 1rem; }
  #title-container { font-size: clamp(1.1rem, 2.8vw, 1.5rem); }

  /* About: side-by-side */
  .about__container   { flex-wrap: nowrap; align-items: center; gap: 1rem; }
  .image-container2  { width: 32%; justify-content: flex-start;align-items: center; display:flex; }
  .home__img2        { max-width: 100%; }
  .about__content-wrapper { width: 65%; margin-top: 0rem;}
  .about__block      { font-size: 0.8rem; }
  .about-title-list  { gap: 6rem; justify-content: space-around; flex-wrap: nowrap; }
  .animate-path svg { width: 48%;}
  .toggle-about{max-width: 5rem; height: 3rem;}

  #abtToggle{font-size: 0.8rem;}

  /* Timeline */
  .timeline-horizontal { height: 290px; margin-top: 3rem; }
  .timeline-dot { width: 13px; height: 13px; }
  .dot-line     { height: 30px; width: 4px; }
  .dot-label    { font-size: 0.75rem; }
  .degree       { font-size: 0.85rem; }
  .road-line{top: 50%;}
  .timeline-dots{top:50%}
  .timedate     { font-size: 0.92rem; }
  .college      { font-size: 0.95rem; }
  .twork        { font-size: 0.85rem; }
  .timecarexp   { padding: 5.5% 3.5% 0 70%; }
  .timecar img  { max-width: 70%; }
  .timecar      { padding: 6.5% 3.5%; }
  #a1{left: 20%;}
  #a2{left: 60%;top:0}
  #a3{left: 85%;top:0}
  #e0{left: 11%;top:0}
  #e1{left: 35%;top: 0;}
  #e2{left: 58%;top:0}
  #e3{left: 81%;top:0}

  /* Skills */
  .skill-item   { width: 78px; height: 78px; border-width: 3px; }
  .skill-item img { width: 50px; height: 50px; }
  .skills-grid  { gap: 30px 36px; max-width: 500px; }
  .skills-title { font-size: 1.2rem; margin-top: 32px; margin-bottom: 26px; }

  /* Profile */
  .profile__btn { font-size: 1.25rem; padding: 0.45rem 1.2rem; }
}

/* ── Desktop: 1000px ── */
@media screen and (min-width: 1000px) {
  .home__container { 
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem; padding: 0 2rem; }
  .home__data       { width: 50%; margin-top: 0rem; }
  .image-container1 { width: 46%; }

  .home__name  { font-size: 2rem; padding-left: 5px; }
  .focus-word   { font-size: 1.8rem; }
  .home__subh  { font-size: 1.2rem; }
  .word        { font-size: 1.2rem; }
  #title-container { font-size: clamp(1.1rem, 2.8vw, 1.8rem); }


  /* About */
  .about__container   { flex-wrap: nowrap; align-items: center; gap: 3rem; }
  .image-container2  { width: 35%;justify-content: flex-start;align-items: center; }
  .about__content-wrapper { width: 60%; margin-top: 0rem;}
  .about__block      { font-size: 0.9rem; }
  .about-title-list  { gap: 20rem; }
  .animate-path svg { width: 60%;}

  /* Timeline */
  .timeline-horizontal { height: 320px; margin-top: 5rem; }
  .timeline-dot { width: 16px; height: 16px; border-width: 3px; }
  .dot-line     { height: 35px; width: 4px; }
  .dot-label    { font-size: 1rem; }
  .degree       { font-size: 0.86rem; }
  .timedate     { font-size: 1.2rem; }
  .college      { font-size: 1.2rem; }
  .twork        { font-size: 1.2rem; }
  .timecar      { padding: 3.3% 3.5%; }
  .timecar img  { max-width: none; width: auto; }
  .timecarexp   { padding: 3.5% 2% 0 70%; }
  #a1{left: 25%;}
  #a2{left: 58%;}
  #a3{left: 85%;}
  #e0{left: 11%;top:0}
  #e1{left: 35%;top: 0;}
  #e2{left: 58%;top:0}
  #e3{left: 84%;top:0}


  /* Skills */
  .skill-item   { width: 90px; height: 90px; }
  .skill-item img { width: 60px; height: 60px; }
  .skills-grid  { gap: 40px 48px; max-width: 600px; }
  .skills-title { font-size: 1.5rem; margin-top: 40px; margin-bottom: 32px; }

  /* Profile */
  .profile__btn { font-size: 1.5rem; padding: 0.5rem 1.5rem; }
  .profile__buttons { gap: 1rem; }
}

/* ── Large Desktop: 1280px ── */
@media screen and (min-width: 1280px) {
  .home__container { 
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem; padding: 0 2rem; }
  .image-container1 { width: 48%; }
  .home__data       { width: 70%; margin-top: 0rem; }
  .home__name  { font-size: 2.5rem; }
  .focus-word   { font-size: 2.2rem; }
  #title-container { font-size: clamp(1.1rem, 2.8vw, 2rem); }
  
  .home__subh  { font-size: 1.35rem; }
  .word{font-size: 1.8rem;}
  /* About */
  .about__container   { flex-wrap: nowrap; align-items: center; gap: 4rem; }
  .image-container2{
    width: 40%;
    justify-content: flex-start;
    align-items: center;
  }
  .about__content-wrapper { 
    width: 60%; margin-top: 0rem; 

  }
  .about__block{
    font-size: 1.01rem;
  }
  .about-title-list   { gap: 21rem; }
/* timeline */
  .timeline-horizontal{
    height: 320px;
    margin-top: 6rem;
  }
  .dot-line{
    height: 35px; width: 5px; 
  }
  .timedate{
    font-size: 1.4rem;
  }
  .degree{
    font-size: 1.1rem;
  }
  .college{font-size: 1.4rem;}
  .timecar{
   padding: 3.4% 3.5%; 
  }

  .skills-grid { max-width: 680px; }
}
