/* ----------------------------- */
/* GENERAL STYLES                */
/* ----------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #0f172a;
  color: #ffffff;
  line-height: 1.6;
  scroll-behavior: smooth;
}

section {
  padding: 80px 20px;
}

h1, h2, h3, h4 {
  font-weight: 600;
}

/* ----------------------------- */
/* HERO SECTION                  */
/* ----------------------------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 10%;
  flex-wrap: wrap;
}

.hero-left h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

.hero-left .subtitle {
  font-size: 18px;
  color: #38bdf8;
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-block;
  padding: 10px 25px;
  background: #38bdf8;
  color: #0f172a;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #22c1c3;
  color: #ffffff;
}

.hero-right .profile-card {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient typing text */
.hero-left h1 .typing {
  font-weight: 700;
  background: linear-gradient(
    90deg,
    #38bdf8 0%,
    #38bdf8 50%,
    #22c55e 50%,
    #22c55e 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----------------------------- */
/* Hire Me Platform Icons         */
/* ----------------------------- */
.hire-platforms {
  display: flex;
  gap: 25px;
  margin-top: 20px;
  align-items: center;
  flex-wrap: wrap;       /* Mobile wrap */
  justify-content: flex-start; /* Desktop left aligned */
}

.hire-platforms a {
  width: 70px;            /* Same width for all */
  height: 70px;           /* Same height */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Freelancer / Fiverr / Upwork images */
.hire-platforms a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Hover effect */
.hire-platforms a:hover {
  transform: translateY(-8px) scale(1.15);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hire-platforms {
    justify-content: center;
    gap: 20px;
  }
  .hire-platforms a {
    width: 60px;
    height: 60px;
  }
}
/* ----------------------------- */
/* SECTIONS                       */
/* ----------------------------- */
.section-card {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.section-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-card h2 {
  font-size: 28px;
  color: #38bdf8;
  margin-bottom: 25px;
}

/* ----------------------------- */
/* SERVICES GRID / CARD STYLE    */
/* ----------------------------- */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-card {
  background: #1e293b;
  padding: 15px 20px;
  border-left: 5px solid #38bdf8; /* default, inline override possible */
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease, transform 0.4s ease;
  cursor: default;
}

.service-card p {
  color: #ffffff; /* চাইলে এই রঙ পরিবর্তন করুন */
  font-size: 15px;
  margin: 0;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover effect */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.5);
}
/* ----------------------------- */
/* SKILLS SECTION                */
/* ----------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 25px;
  justify-items: center;
  margin-top: 30px;
}

.skill-card {
  width: 150px;
  background: #1e293b;
  border-radius: 20px;
  padding: 20px 15px 25px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.skill-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.skill-card i {
  font-size: 36px;
  margin-bottom: 10px;
}

.skill-card h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #fff;
}

/* Skill bar */
.skill-bar {
  width: 100%;
  height: 10px;
  background: #0f172a;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 10px;
  width: 0;
  transition: width 1.5s ease-in-out;
}

/* % label */
.skill-percent {
  position: absolute;
  right: 5px;
  top: -25px;
  font-size: 12px;
  color: #fff;
  font-weight: 600;
}

/* Animate on scroll */
.skill-card {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.skill-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .skill-card {
    width: 120px;
    padding: 15px 10px 20px;
  }
  .skill-card i { font-size: 28px; }
  .skill-card h4 { font-size: 14px; }
  .skill-bar { height: 8px; }
  .skill-percent { top: -20px; font-size: 11px; }
}
/* ----------------------------- */
/* CONTACT SECTION               */
/* ----------------------------- */
.contact-icons {
  display: flex;
  gap: 20px;
  margin-top: 25px;
}

.contact-icons a {
  background: #1e293b;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #38bdf8;
  font-size: 20px;
  transition: 0.3s;
}

.contact-icons a:hover {
  background: #38bdf8;
  color: #0f172a;
}

/* ===============================
   HERO MOBILE ALIGN FIX
================================ */
@media (max-width: 768px) {

  .hero {
    flex-direction: row;      /* PC এর মতোই */
    padding: 40px 20px;
    gap: 20px;
  }

  /* TEXT CENTER */
  .hero-left {
    flex: 1;
    text-align: center;
  }

  /* HIRE ME BUTTON CENTER */
  .btn-primary {
    display: inline-block;
    margin: 0 auto 20px auto; /* Fiverr icons এর উপরে gap */
  }

  /* Hire platforms center */
  .hire-platforms {
    justify-content: center;
  }

  /* Image size mobile */
  .hero-right .profile-card {
    width: 110px;
    height: 110px;
  }

  .hero-left h1 {
    font-size: 24px;
  }

  .hero-left .subtitle {
    font-size: 14px;
  }
}

  .hero-left h1 { font-size: 28px; }
  .hero-left .subtitle { font-size: 16px; }

  .skill-card {
    width: 120px;
    height: 120px;
    transform: translateY(50px) !important;
  }

  .skill-card i { font-size: 28px; }
  .skill-card h4 { font-size: 13px; }
}

/* ----------------------------- */
/* CARD-LIKE SECTIONS            */
/* ----------------------------- */
.section-card {
  background: #1c2936; /* subtle dark background */
  padding: 30px 25px;
  margin-bottom: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35); /* subtle, no white glow */
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.section-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section title */
.section-card h2 {
  font-size: 28px;
  color: #38bdf8;
  margin-bottom: 20px;
}

/* Paragraph inside card */
.section-card p {
  font-size: 15px;
  color: #e2e8f0;
  line-height: 1.7;
}

/* ----------------------------- */
/* SERVICE CARDS                 */
/* ----------------------------- */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-card {
  background: #0f172a;
  padding: 15px 20px;
  border-left: 5px solid #38bdf8;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease, transform 0.4s ease;
}

.service-card p {
  margin: 0;
  font-size: 15px;
  color: #ffffff;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* ----------------------------- */
/* SKILLS GRID                   */
/* ----------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 25px;
  justify-items: center;
  margin-top: 30px;
  padding-bottom: 30px; /* section shadow লম্বা দেখানোর জন্য */
}

/* ----------------------------- */
/* SKILL CARD                    */
/* ----------------------------- */
.skill-card {
  width: 150px;
  min-height: 220px; /* <<< এটায় background/shadow লম্বা হবে */
  background: #0f172a;
  border-radius: 20px;
  padding: 25px 15px 25px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.4); /* subtle dark shadow */
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;

  /* animation */
  opacity: 0;
  transform: translateY(50px);

  /* layout fix */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden; /* কিছুই বাইরে যাবে না */
}

.skill-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-card:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 35px rgba(0,0,0,0.55);
}

/* ----------------------------- */
/* SKILL ICON                    */
/* ----------------------------- */
.skill-card i {
  font-size: 30px;
  margin-bottom: 12px;
}

/* ----------------------------- */
/* SKILL NAME                    */
/* ----------------------------- */
.skill-card h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #ffffff;
}

/* ----------------------------- */
/* SKILL BAR                     */
/* ----------------------------- */
.skill-bar {
  width: 100%;
  height: 10px;
  background: #1e293b;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 10px;
  width: 0;
  transition: width 1.5s ease-in-out;
}

.skill-percent {
  position: absolute;
  right: 6px;
  top: -22px;
  font-size: 12px;
  color: #ffffff;
  font-weight: 600;
}

/* ----------------------------- */
/* MOBILE FIX                    */
/* ----------------------------- */
@media (max-width: 768px) {
  .skill-card {
    width: 140px;
    min-height: 210px; /* মোবাইলে আর কাটবে না */
    padding: 20px 10px 20px;
  }

  .skill-card i {
    font-size: 24px;
  }

  .skill-card h4 {
    font-size: 14px;
  }

  .skill-bar {
    height: 8px;
  }

  .skill-percent {
    font-size: 11px;
    top: -20px;
  }
}

/* ----------------------------- */
/* CONTACT SECTION              */
/* ----------------------------- */
#contact {
  background: #1c2936;
  padding: 30px 25px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.contact-icons {
  display: flex;
  gap: 20px;
  margin-top: 25px;
}

.contact-icons a {
  background: linear-gradient(145deg, #0f172a, #020617);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;

  /* REAL ICON COLOR */
 color: #00e5ff;

  font-size: 26px;
  transition: all 0.35s ease;

  /* subtle glow */
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

.contact-icons a:hover {
  background: #38bdf8;
  color: #0f172a;
}
/* ----------------------------- */
/* MOBILE RESPONSIVE            */
/* ----------------------------- */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-left h1 { font-size: 28px; }
  .hero-left .subtitle { font-size: 16px; }

  .skill-card {
    width: 140px;
    padding: 35px 10px 25px;
  }

  .skill-card i { font-size: 30px; transform: translateY(-5px); }
  .skill-card h4 { font-size: 14px; }

  .service-list {
    grid-template-columns: 1fr;
  }
}