/* Base layout for all sections */
#main-content > section {
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
  display: none;              /* hide by default */
}

/* Sections that get .active (JS থেকে) */
/* #main-content > section.active {
  display: flex;
} */
#main-content > section       { display: none; }
#main-content > section.active{ display: flex; }  /* or block/grid */

/* Projects section is *always* visible */
#projects {                    /* অথবা .projects-section */
  display: flex ;
}

/* About / Skills visible text override (যেমন আগেই করেছ) */
/* #about,
#skills,
#about *,
#skills * {
  color: white !important;
  opacity: 1 !important;
  visibility: visible !important;
} */

/* ───── new class ────────────────────────── */
.bounce-in-right {
  animation: bounce-in-right 1.1s both 0.3s;
}


    .intro {
      font-size: 3rem;
      font-weight: bold;
      white-space: pre;
      position: relative;
    }

    .intro::after {
      content: "";
      position: absolute;
      right: -5px;
      top: 0;
      width: 2px;
      height: 100%;
      background: black;
      animation: blink 0.7s steps(1) infinite;
    }

    @keyframes blink {
      50% { opacity: 0; }
    }
/* ───── keyframes (mirror of bounce‑in‑left) ─ */
@keyframes bounce-in-right {
  0% {
    transform: translateX(600px);
    animation-timing-function: ease-in;
    opacity: 0;
  }
  38% {
    transform: translateX(0);
    animation-timing-function: ease-out;
    opacity: 1;
  }
  55% {
    transform: translateX(68px);
    animation-timing-function: ease-in;
  }
  72% {
    transform: translateX(0);
    animation-timing-function: ease-out;
  }
  81% {
    transform: translateX(28px);
    animation-timing-function: ease-in;
  }
  90% {
    transform: translateX(0);
    animation-timing-function: ease-out;
  }
  95% {
    transform: translateX(8px);
    animation-timing-function: ease-in;
  }
  100% {
    transform: translateX(0);
    animation-timing-function: ease-out;
  }
}
/* ———  COLOR SYSTEM ——— */
:root {
  --accent: hsl(160, 100%, 70%);
  --accent-2: #90e0ef;
  --bg-dark: #0a0a0a;
  --text: #e7d8d8;
  --text-dim: #d3b4b4;
}

/* ———  SECTION WRAPPER ——— */
.about-me {
  background: #111; /* subtle dark backdrop */
  color: var(--text);
  padding-block: 4rem;
}

.about-me .container {
  max-width: 1100px;
  margin-inline: auto;
  display: grid;
  gap: 3rem;
}

/* ———  MAIN TITLE ——— */
.main-title {
  text-align: center;
  margin-bottom: 2.5rem;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
}
.main-title h2 {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.main-title span {
  color: var(--accent);
}
.main-title .bg-text {
  position: absolute;
  inset: 0;
  font-size: 5rem;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}



.main-title2 {
  position: relative !important;
  text-align: center;
  margin-bottom: 2.5rem;
   z-index: 10;  
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.main-title2 span {
  color: var(--accent);
}
.main-title2 h2 {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;   
}

/* big faint word behind */
.main-title2 .bg-text {
  position: absolute;
  top: 100%;              
  left: 50%;         
  transform: translate(-50%, -50%);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.086); /* faint */
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 1;            
}




.about-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

/* left column */
.left-about h4 {
  font-size: 30px;
  margin-bottom: 0.75rem;
  color: var(--accent);
}
.left-about p {
  line-height: 1.6;
  /* color: var(--text-dim); */
}
.btn-con {
  margin-top: 1.5rem;
}
/* মূল বাটন স্টাইল */
.main-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.6rem;
  font-weight: 600;
  color: rgb(0, 0, 0);
  text-decoration: none;
  border-radius: 4px;
  overflow: hidden;
  z-index: 0;
}

.main-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 50%,
    var(--accent) 100%
  );
  background-position: 100% 0;
  background-size: 200% 100%;
  transition: background-position 0.45s ease;
  z-index: -1;
}

.main-btn:hover::before {
  background-position: 0 0;
}
.main-btn:hover {
  color: white;
}

.btn-icon i {
  pointer-events: none;
}

.right-about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}

.about-item {
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.about-item::before,
.about-item::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border: 2px solid transparent;
  pointer-events: none;
  transition: all 0.6s ease;
}

/* Top-left to bottom-right */
.about-item::before {
  border-top: 2px solid #00ffd5;
  border-left: 2px solid #00ffd5;
  transform: scaleX(0) scaleY(0);
  transform-origin: top left;
}

/* Bottom-right to top-left */
.about-item::after {
  border-bottom: 2px solid #00ffd5;
  border-right: 2px solid #00ffd5;
  transform: scaleX(0) scaleY(0);
  transform-origin: bottom right;
}

.about-item:hover {
  transform: translateY(-4px);
}

.about-item:hover::before,
.about-item:hover::after {
  transform: scaleX(1) scaleY(1);
}

.abt-text .large-text {
  font-size: 40px;
  font-weight: 700;
  color: #00ffd5;
  /* text-align: left; */
}

.abt-text .small-text {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  
}


/* ———  TIMELINE ——— */
.timeline {
  margin-top: 2.5rem;
  position: relative;
  padding-left: 2.2rem;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem 3rem;
  padding-left: 0; /* remove vertical line space */
}
.timeline::before {
  display: none;
}
.timeline-item {
  padding-left: 2rem;
}

.tl-duration {
  color: var(--text-dim);
  margin-bottom: 0.25rem;
  margin-top: 20px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr)); /* প্রতিটি সারিতে ২টা */
  gap: 2rem 3rem; /* সারি ও কলামের ফাঁক */
  padding-left: 0; /* বরাবর বাম দিক থেকে শুরু */
}

/* উল্লম্ব লাইন আর লাগবে না, চাইলে সরিয়ে দাও */
.timeline::before {
  display: none;
}

/* প্রতিটি আইটেম নিজের অ্যারো/আইকন রাখবে */
.timeline-item {
  position: relative;
  padding-left: 2.4rem;
  background: #1a1a1a;
  border: 1px solid #222;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tl-icon {
  position: absolute;
  left: 0.5rem;
  top: 1rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  /* background: white; */
  color: var(--accent);
  border: 2px solid var(--accent);
}

@media (max-width: 768px) {
  .timeline {
    grid-template-columns: 1fr;
  }
}
.subtitle {
  position: relative;
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent, #00ffd5);
  margin-bottom: 2rem;
}

.subtitle::after {
  content: "Projects";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  color: #ffffff;
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
  text-transform: uppercase;
}

/* .main-title2 {
  position: relative;
  text-align: center;
  margin-bottom: 3rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-title2 h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: white;
  position: relative;
  display: inline-block;
  z-index: 2;
}

.main-title2 h2 span.bg-text {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(248, 248, 248, 0.1);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 1;
} */






.timeline-item h5{
  font-size: 20px;
}
.timeline-item h5>span{
  color: #90efcb;
}
