/* --- Basic Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  /* Darshan-এর মতো গাঢ় ব্যাকগ্রাউন্ড এবং ওপরের গ্লো */
  background-color: #0b0b13;
  background-image: radial-gradient(
    circle at 50% -10%,
    #2d1b69 0%,
    transparent 40%
  );
  background-repeat: no-repeat;
  color: white;
  min-height: 100vh;
}

/* --- Navbar Styling --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  max-width: 1300px;
  margin: 0 auto;
}

.logo {
  color: #4ade80; /* হালকা সবুজ লোগো */
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
  font-weight: 600;
}

/* --- Hero Section Styling --- */
.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 40px auto; /* ওপর থেকে একটু গ্যাপ */
  padding: 0 30px;
  flex-wrap: wrap; /* ছোট স্ক্রিনে যাতে ভেঙে নিচে নামে */
}

/* --- Left Side Text --- */
.hero-text {
  flex: 1;
  min-width: 350px;
}

/* "Hi, I'm" - কালারফুল গ্রেডিয়েন্ট টেক্সট */
.greeting {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(to right, #a855f7, #ec4899); /* বেগুনি ও গোলাপি */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* নাম - সাদা রঙের */
.name {
  display: block;
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-top: 5px;
}

.role {
  color: #4ade80; /* সবুজ রঙের টাইটেল */
  font-size: 1.1rem;
  margin-top: 15px;
  font-weight: 500;
}

.description {
  color: #94a3b8; /* হালকা ছাই রঙ */
  margin-top: 20px;
  line-height: 1.6;
  max-width: 500px;
  font-size: 0.95rem;
}

/* সোশ্যাল আইকন - সবুজ (Darshan Style) */
.social-icons {
  margin: 30px 0;
  display: flex;
  gap: 20px;
}

.social-icons a {
  color: #4ade80; /* হুবহু ওই সবুজ রঙ */
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.social-icons a:hover {
  transform: translateY(-3px);
  color: #22c55e;
}

/* বাটন ডিজাইন */
.btn-resume {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(90deg, #ec4899, #8b5cf6); /* পিঙ্ক-বেগুনি বাটন */
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
  transition: 0.3s;
}

.btn-resume:hover {
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

/* --- Right Side Code Window --- */
.code-window {
  flex: 1;
  min-width: 400px;
  background: #11111b; /* কোড বক্সের ব্যাকগ্রাউন্ড */
  border: 1px solid #2d2d3a;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.15); /* পেছনের হালকা গ্লো */
  margin-top: 20px;
  position: relative;
  left: 20px; /* একটু ডান দিকে চাপানোর জন্য */
}

/* ১. পেছনের গ্লো বা কালার রিফ্লেকশন */
.code-card-wrapper {
  position: relative;
  display: inline-block;
  padding: 2px; /* বর্ডারের মতো কাজ করবে */
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.4),
    rgba(59, 130, 246, 0.4)
  ); /* বেগুনি-নীল আভা */
  box-shadow: 0 0 40px -10px rgba(139, 92, 246, 0.3); /* পেছনের বড় গ্লো */
}

/* ২. মূল কোড কার্ড */
.code-card {
  background-color: #0d0d16; /* খুব গাঢ় ব্যাকগ্রাউন্ড */
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: "Fira Code", monospace; /* সুন্দর কোড ফন্ট */
  width: 450px; /* ফিক্সড সাইজ দিলে লাইন ভাঙবে না */
  max-width: 100%;
}

/* ৩. Apple Icons (উইন্ডো হেডার) এবং মার্জিন - FIXED MERGED */
.window-header {
  display: flex;
  gap: 10px;
  padding-bottom: 15px; /* ডট এবং লাইনের মাঝখানের ফাঁকা */
  margin-bottom: 20px; /* লাইন এবং নিচের কোডের মাঝখানের ফাঁকা */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* হালকা লাইন */
  box-shadow: 0 4px 20px -5px rgba(129, 92, 246, 0.3); /* নিচে নীলচে রিফ্লেকশন */
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.red {
  background-color: #ff5f56;
}
.yellow {
  background-color: #ffbd2e;
}
.green {
  background-color: #27c93f;
}

/* কোড স্টাইলিং */
.code-body pre,
pre {
  font-family: "Fira Code", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  white-space: pre;
  overflow-x: auto; /* Fixed: allows scrolling if needed */
}

code {
  font-size: 15px;
  line-height: 1.6;
  color: #abb2bf;
}

/* সিনট্যাক্স কালার (দর্শনের মতো) */
.keyword {
  color: #c678dd;
} /* const, function, return - পিঙ্ক/বেগুনি */
.variable,
.variable-name {
  color: #e5c07b;
} /* Proshanto - হলুদ */
.operator {
  color: #ffffff;
} /* = */
.key {
  color: #ffffff;
} /* fullName, location - সাদা */
.string {
  color: #60cd13;
} /* 'India' - সবুজ */
.boolean {
  color: #d19a66;
} /* true - কমলা/হলুদ */

/* কার্সার অ্যানিমেশন (Blink Effect) - FIXED DUPLICATE */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.cursor {
  display: inline-block;
  width: 5px;
  height: 1.2em;
  background-color: #ffffff;
  margin-left: 5px;
  animation: blink 1s step-end infinite;
  vertical-align: sub;
}

/* রেসপন্সিভ ডিজাইন (মোবাইলের জন্য) */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column-reverse; /* মোবাইলে কোড নিচে যাবে */
    padding: 20px;
    text-align: center;
  }
  .code-window {
    min-width: 100%;
    left: 0;
    margin-bottom: 40px;
  }
  .social-icons {
    justify-content: center;
  }
  .navbar {
    padding: 20px;
    flex-direction: column;
    gap: 15px;
  }
  .name {
    font-size: 2.5rem;
  }

  .about-content {
    flex-direction: column-reverse;
    text-align: center;
  }
  .about-image img {
    width: 80%;
    height: auto;
  }
}

/* --- About & Socials --- */
.social-links {
  display: flex;
  gap: 20px;
  margin-top: 25px;
  margin-bottom: 30px;
}

.social-icon {
  font-size: 24px;
  color: #a8b2d1;
  transition: all 0.3s ease;
  display: inline-block;
}

.social-icon:hover {
  color: #64ffda;
  transform: translateY(-3px);
  text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

.about-section {
  padding: 100px 0;
  color: white;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.about-text {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #d1d5db;
}

.section-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 30px;
  color: #ec4899;
}

.section-title span {
  color: white;
}

.gradient-text {
  background: linear-gradient(to right, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 3.5rem;
}

.about-image {
  flex: 0.8;
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 300px;
  height: 350px;
  object-fit: cover;
  border-radius: 15px;
  border: 2px solid #a855f7;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.03);
}

/* --- Skills Section --- */
.skills-section {
  padding: 80px 0;
  text-align: center;
}

.section-title-center {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 50px;
  display: inline-block;
  border-bottom: 3px solid #a855f7;
  padding-bottom: 10px;
}

.skills-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.skill-card {
  background: #0d0d16;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 15px;
  padding: 30px;
  width: 350px;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
  border-color: #a855f7;
}

.skill-card h3 {
  color: #ec4899;
  margin-bottom: 25px;
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.skill-item i {
  font-size: 40px;
  transition: transform 0.3s;
}

.skill-item:hover i {
  transform: scale(1.2);
}

.skill-item span {
  color: #a0aec0;
  font-size: 0.9rem;
}

/* --- ১. GitHub আইকন ফিক্স (সাদা রং) --- */
/* FontAwesome এবং Devicon দুটোর জন্যই */
.fa-github,
.devicon-github-original {
  color: #ffffff !important; /* জোর করে সাদা করা হচ্ছে */
}

/* --- ২. গ্লোয়িং সেকশন হেডার (Skills, About, Projects এর জন্য) --- */
.section-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  margin: 60px 0 40px; /* উপরে নিচে ফাঁকা */
}

/* পেছনের আবছা লাইন */
.section-header-wrapper .line {
  position: absolute;
  width: 100%;
  height: 1px;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.5) 0%,
    transparent 80%
  );
  z-index: 1;
}

/* মাঝখানের বটন স্টাইল টাইটেল */
.section-pill {
  position: relative;
  z-index: 2;
  background: #0f172a; /* গাঢ় নীল ব্যাকগ্রাউন্ড */
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  padding: 10px 30px;
  border-radius: 50px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3); /* গ্লো এফেক্ট */
  text-transform: capitalize;
}

/* --- ৩. About Me সেকশন ফিক্স --- */
.about-text .gradient-text {
  background: linear-gradient(to right, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-text h2 {
  font-size: 32px;
  color: #64ffda; /* Who am I এর বাকি টেক্সট নীলচে */
  margin-bottom: 20px;
}

/* --- ১. সেকশন হেডার (মাঝখানে এবং গ্লোয়িং) --- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center; /* লেখা মাঝখানে আনবে */
  position: relative;
  width: 100%;
  margin: 80px 0 50px;
}

/* পেছনের লাইন */
.section-header .line {
  position: absolute;
  width: 100%;
  height: 1px;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.5) 0%,
    transparent 80%
  );
  z-index: 1;
}

/* মাঝখানের প্রজেক্ট বাটন */
.section-title {
  position: relative;
  z-index: 2;
  background: #0f172a; /* পেছনের রঙের সাথে মিল রেখে */
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  padding: 10px 35px;
  border-radius: 50px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

/* --- ২. গ্রিড লেআউট (পাশাপাশি কার্ড) --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(350px, 1fr)
  ); /* রেস্পন্সিভ কলাম */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- ৩. কার্ড ডিজাইন --- */
.project-card {
  background: #111827; /* গাঢ় নীল/কালো */
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* কার্ড হোভার এফেক্ট (নীল বর্ডার ও শ্যাডো) */
.project-card:hover {
  transform: translateY(-5px);
  border-color: #3b82f6;
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.2);
}

/* কার্ডের ওপরের অংশ */
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.project-name {
  color: #38bdf8; /* সাইয়ান/নীল কালার */
  font-size: 20px;
  font-weight: bold;
  margin: 0;
}

.github-link i {
  color: #94a3b8;
  font-size: 18px;
  transition: color 0.3s;
}
.github-link:hover i {
  color: #38bdf8; /* লিংকে মাউস নিলে নীল হবে */
}

/* ডেসক্রিপশন */
.project-desc {
  color: #cbd5e1; /* হালকা সাদা */
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* কার্ড ফুটার (লাইন এবং নিচের অংশ) */
.card-footer {
  border-top: 1px solid #1f2937; /* সেপারেটর লাইন */
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* টেক স্ট্যাক (Dots) */
.tech-stack {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 500;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.yellow {
  background-color: #facc15;
}
.orange {
  background-color: #f97316;
}

/* ডানদিকের বাটন */
.visit-btn {
  color: #e2e8f0;
  text-decoration: underline;
  font-size: 14px;
  transition: color 0.3s;
}

.visit-btn:hover {
  color: #38bdf8;
  text-decoration: none;
}

/* মেইন কন্টেইনার */
.timeline-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

/* বাম পাশের লম্বা লাইন */
.timeline-container::after {
  content: "";
  position: absolute;
  width: 2px;
  background: rgba(59, 130, 246, 0.3); /* আবছা নীল লাইন */
  top: 0;
  bottom: 0;
  left: 150px; /* লাইনটা কোথায় থাকবে */
  margin-left: -1px;
}

/* প্রতিটা আইটেম */
.timeline-item {
  display: flex;
  margin-bottom: 50px;
  position: relative;
}

/* তারিখ (বাম পাশে) */
.timeline-date {
  width: 120px; /* লাইনের বামে জায়গাটুকু */
  text-align: right;
  padding-right: 30px;
  color: #94a3b8;
  font-size: 14px;
  padding-top: 10px;
}

/* মাঝখানের গোল ডট বা আইকন */
.timeline-dot {
  width: 40px;
  height: 40px;
  background: #1e293b; /* গাঢ় ব্যাকগ্রাউন্ড */
  border: 2px solid #3b82f6; /* নীল বর্ডার */
  border-radius: 50%;
  position: absolute;
  left: 150px; /* লাইনের ঠিক উপরে বসবে */
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6; /* আইকন কালার */
  z-index: 1;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4); /* গ্লো */
}

/* ডান পাশের কন্টেন্ট বক্স */
.timeline-content {
  flex: 1;
  margin-left: 60px; /* লাইন থেকে দূরত্ব */
  background: #111827;
  border: 1px solid rgba(168, 85, 247, 0.3); /* হালকা বেগুনি বর্ডার */
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-3px);
  border-color: #a855f7; /* হোভার করলে বর্ডার উজ্জ্বল হবে */
  box-shadow: 0 10px 30px -10px rgba(168, 85, 247, 0.2);
}

/* লেখার স্টাইল */
.role {
  color: #e879f9; /* পিঙ্ক টাইটেল */
  font-size: 18px;
  margin-bottom: 5px;
}

.company {
  color: #38bdf8; /* নীল কোম্পানির নাম */
  font-size: 15px;
  margin-bottom: 15px;
}

.description {
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* টেক ট্যাগস (নিচের ছোট ছোট বক্স) */
.tech-tags span {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  margin-right: 8px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* মোবাইল রেস্পন্সিভ (ফোনে লাইনটা বামে সরে যাবে) */
@media (max-width: 768px) {
  .timeline-container::after {
    left: 20px;
  }
  .timeline-dot {
    left: 20px;
  }
  .timeline-date {
    position: absolute;
    top: -25px;
    left: 50px;
    width: auto;
    text-align: left;
  }
  .timeline-content {
    margin-left: 50px;
    margin-top: 10px;
  }
}
/* --- কন্টাক্ট সেকশন --- */
.contact-container {
  max-width: 800px;
  margin: 0 auto 80px; /* নিচে ফুটারের জন্য ফাঁকা */
  padding: 0 20px;
}

/* মেইন বক্স ডিজাইন */
.contact-box {
  background: #0f172a; /* খুব গাঢ় নীল */
  border: 1px solid rgba(168, 85, 247, 0.3); /* হালকা বেগুনি বর্ডার */
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 40px -10px rgba(139, 92, 246, 0.15); /* সফট গ্লো */
}

.contact-subtitle {
  color: #e2e8f0;
  font-size: 16px;
  margin-bottom: 30px;
  font-weight: normal;
}

/* ইনপুট গ্রুপ */
.input-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.input-group {
  flex: 1;
  text-align: left;
}

/* লেবেল */
.input-group label {
  display: block;
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
}

.input-group label i {
  color: #38bdf8; /* আইকন কালার নীল */
  margin-right: 5px;
}

/* ইনপুট ফিল্ড স্টাইল */
input,
textarea {
  width: 100%;
  background: transparent; /* ট্রান্সপারেন্ট */
  border: 1px solid #334155;
  padding: 12px 15px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: inherit;
}

/* ফোকাস করলে বর্ডার কালার হবে */
input:focus,
textarea:focus {
  outline: none;
  border-color: #a855f7; /* বেগুনি বর্ডার */
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

textarea {
  resize: vertical; /* ইউজার সাইজ ছোটবড় করতে পারবে */
}

/* সেন্ড বাটন */
.send-btn {
  background: linear-gradient(90deg, #a855f7, #ec4899);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease;
}

.send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
}

/* রেস্পন্সিভ (মোবাইলে ইনপুট নিচে নিচে আসবে) */
@media (max-width: 600px) {
  .input-row {
    flex-direction: column;
  }
}

/* --- ফুটার --- */
.footer {
  background: #020617; /* একদম কালো */
  padding: 20px 0;
  border-top: 1px solid #1e293b;
  margin-top: 50px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
  font-size: 14px;
}

.highlight-name {
  color: #38bdf8; /* নামটা নীল হবে */
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ffffff;
}

/* --- Always Container (Grid দিয়ে স্থির রাখা হয়েছে) --- */
.always-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* সমান দুই ভাগ */
  align-items: center;
  gap: 15px;
  margin: 60px 0;
  width: 100%;
  min-height: 60px; /* একটা ফিক্সড হাইট রাখা ভালো */
}

/* বাম পাশের স্থির লেখা */
.static-text {
  text-align: right;
  font-size: 26px;
  font-weight: bold;
  color: #ffffff;
}

/* --- ডান পাশের রঙিন বক্স (আয়তাকার) --- */
.changing-box {
  justify-self: left; /* বামে ফিক্সড থাকবে */
  background: linear-gradient(90deg, #a855f7, #ec4899);
  padding: 10px 25px; /* ভেতরে জায়গা */
  display: flex;
  align-items: center;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
  position: relative;

  /* আয়তাকার করার জন্য বর্ডার রেডিয়াস কমানো হলো */
  border-radius: 10px; /* 30px এর বদলে 10px */

  /* হাইট আর ফিক্সড নয়, লেখার সাথে বাড়বে */
  height: auto;
  min-height: 50px;
}

/* যে লেখাটা টাইপ হবে */
.typing-text {
  color: #ffffff;
  font-weight: bold;
  font-size: 22px;
  white-space: nowrap; /* লেখা ভাঙবে না */
}

/* ব্লিঙ্কিং কার্সার (|) */
.cursor {
  color: #ffffff;
  font-size: 22px;
  font-weight: bold;
  margin-left: 5px;
  animation: blink 1s step-end infinite;
}

/* কার্সার ব্লিঙ্ক করার এনিমেশন */
@keyframes blink {
  from,
  to {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
/* ============ MOBILE RESPONSIVE FINAL FIX (MERGED) ============ */
@media (max-width: 768px) {
  /* ১. বডি এবং মেইন কন্টেইনার ফিক্স */
  body,
  html {
    overflow-x: hidden; /* ডানে-বামে স্ক্রল বন্ধ */
    width: 100%;
  }

  .hero-container,
  .container,
  .navbar,
  .skills-container,
  .projects-grid,
  .achievements-grid {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
  }

  /* ২. কোড উইন্ডো (Code Window) সাইজ ফিক্স - [UPDATED] */
  .code-window {
    min-width: auto !important; /* ফিক্সড সাইজ বাতিল */
    width: 100% !important; /* স্ক্রিনের সমান চওড়া */
    left: 0 !important; /* ডানদিকে সরবে না */
    margin: 20px 0;
    padding: 10px; /* প্যাডিং কমানো হলো */
  }

  .code-card {
    width: 100% !important; /* কার্ডটিও ১০০% হবে */
    padding: 15px; /* ভেতরের জায়গা কমানো */
    box-sizing: border-box; /* বর্ডারসহ মাপ */
  }

  /* [NEW] কোডের লেখা যাতে না কাটে, তার জন্য এই অংশটি যোগ করা হয়েছে */
  .code-body pre,
  pre,
  code {
    font-size: 11px !important; /* ফন্ট সাইজ ছোট করা হলো */
    line-height: 1.4;
    white-space: pre-wrap; /* লাইন লম্বা হলে ভেঙে নিচে নামবে */
    overflow-x: hidden; /* স্ক্রলবার আসবে না */
  }

  /* ৩. ফন্ট সাইজ কমানো */
  .name {
    font-size: 2.5rem;
  }

  .greeting {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  /* ৪. স্কিল এবং প্রজেক্ট কার্ড ফিক্স */
  .skill-card,
  .project-card,
  .achievement-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px;
  }

  /* স্কিল গ্রিড ফিক্স (২টা করে দেখাবে) */
  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  /* ৫. এবাউট সেকশন ছবি */
  .about-image img {
    width: 80%;
    height: auto;
    margin-top: 30px;
  }

  /* ৬. কন্টাক্ট ফর্ম */
  .contact-box {
    padding: 20px;
  }

  .input-row {
    flex-direction: column;
    gap: 15px;
  }

  /* ৭. Always Innovating বক্স ফিক্স (Flexbox দিয়ে ঠিক করা) */
  .always-container {
    display: flex !important; /* গ্রিড সরিয়ে ফ্লেক্স দেওয়া হলো */
    flex-direction: column; /* লেখা উপরে, বক্স নিচে */
    align-items: center; /* মাঝখানে */
    gap: 15px;
    margin: 40px 0;
  }

  .static-text {
    text-align: center;
    width: 100%;
    margin-bottom: 5px;
  }

  .changing-box {
    justify-content: center;
    width: auto !important;
    min-width: 200px;
  }
}
