/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2563eb; /* Blue */
    --accent-color: #ef4444;  /* Red/Coral */
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}


/*  -------------------------------------------------------------------------------------------*/




* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #0f172a;
  color: white;
}

/* ================= GLOBAL RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
}

/* ================= NAVBAR ================= */
header {
  background-color: #ffffff;
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 0 40px;
}

nav h2 a {
  text-decoration: none;
  color: #2563eb;
  font-size: 1.6rem;
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 35px;
}

nav ul li a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  color: #2563eb;
  font-weight: 600;
}

.nav-btn {
  background: #2563eb;
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s;
}

.nav-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* ================= HOME SECTION ================= */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 10% 60px; /* navbar height fix */
}

.home-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 40px;
}

.home-text {
  flex: 1;
}

.home-text h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.home-text h1 {
  font-size: 45px;
  margin-bottom: 10px;
}

.home-text h1 span {
  color: #2563eb;
}

.home-text h2 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 15px;
  color: #555;
}

.home-text p {
  max-width: 450px;
  margin-bottom: 25px;
  color: #555;
}

/* ================= BUTTON ================= */
.btn {
  display: inline-block;
  padding: 10px 25px;
  background: #2563eb;
  color: white;
  border-radius: 25px;
  text-decoration: none;
  transition: 0.3s ease;
  margin-bottom: 30px;
}

.btn:hover {
  background: #1e40af;
}

/* ================= IMAGE SECTION ================= */
.home-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 50px;
}

.home-image .blob {
  width: 350px;
  height: 350px;
  background-color: #7d5fff; 
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  display: flex;
  align-items: flex-end; 
  justify-content: center;
  position: relative;
  transition: all 0.5s ease;
  
  /* মেইন পরিবর্তন এখানে: এটি ছবির নিচের বাড়তি অংশ কেটে ফেলবে */
  overflow: hidden; 
}

.home-image img {
  /* পরিবর্তন ২: ছবিকে ব্লব এর সমান বা একটু ছোট রাখুন */
  width: 100%; 
  height: 100%;
  object-fit: cover;
  border-radius: 0; 
  
  /* পজিশন ঠিক করার জন্য */
  transform: translateY(20px); 
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
}

.home-image .blob:hover {
  border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
}
/* ================= SOCIAL ICONS ================= */
.social-icons {
  margin-top: 15px;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  margin: 0 8px;
  border-radius: 50%;
  background: #111;
  color: white;
  font-size: 18px;
  text-decoration: none;
  transition: 0.4s ease;
}

.social-icons a:hover {
  transform: translateY(-6px) scale(1.1);
}

/* Individual Hover Colors */
.social-icons a:nth-child(1):hover {
  background: #0077b5;
  box-shadow: 0 0 20px #0077b5;
}

.social-icons a:nth-child(2):hover {
  background: #24292e;
  box-shadow: 0 0 20px #24292e;
}

.social-icons a:nth-child(3):hover {
  background: #1877f2;
  box-shadow: 0 0 20px #1877f2;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {

  .home-container {
    flex-direction: column;
    text-align: center;
  }

  .home-text h1 {
    font-size: 30px;
  }

  .home-text h2 {
    font-size: 18px;
  }

  .home-text p {
    font-size: 14px;
  }

  .home-image .blob {
    width: 260px;
    height: 260px;
  }

  .home-image img {
    width: 230px;
    height: 230px;
  }

}
/*  ------------------------------------try to fix mobile pic -------------------------------------------------------*/

/* HOME IMAGE MODERN STYLE */





/* ==================================================== Common Section Styling ===== */
section {
    
    padding: 100px 20px;
    max-width: 1200px;
    padding-top: 80px;
    margin: auto;
}

/* Sob section er heading center korar jonno */
section h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
    /* Extra code added below */
    display: inline-block; /* Eita add korle h2 sudu text-er soman width nibe */
    left: 50%;
    transform: translateX(-50%);
}


section h2::after {
    content: '';
    position: absolute;
    left: 20%;  /* Ektu gap thakbe bam dik theke */
    right: 20%; /* Ektu gap thakbe dan dik theke */
    bottom: 0;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}



/* =================================================================== Skills & Grid Cards =========================== */
#skills {
    padding: 60px 20px;
    background-color: #f9f9f9; /* হালকা ব্যাকগ্রাউন্ড */
}

.section-title {
    text-align: center;
    color: #000106;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.skills-column h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #333;
    font-weight: 700;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.progress-line {
    height: 10px;
    width: 100%;
    background: #e0e0e0; /* খালি অংশের রঙ */
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-line span {
    height: 100%;
    background: #4466ff; /* আপনার নীল রঙ */
    position: absolute;
    left: 0;
    border-radius: 10px;
    
    /* এনিমেশন লজিক */
    transform-origin: left;
    animation: animateBar 2s cubic-bezier(1, 0, 0.5, 1) forwards;
}

/* বার এনিমেশন কি-ফ্রেম */
@keyframes animateBar {
    0% {
        transform: scaleX(0); /* শুরুতে শূন্য */
    }
    100% {
        transform: scaleX(1); /* শেষে পূর্ণ (অর্থাৎ স্টাইলে দেওয়া % পর্যন্ত) */
    }
}



.progress-line span {
    height: 100%;
    background: #4466ff;
    width: 0; /* শুরুতে ০ থাকবে */
    position: absolute;
    left: 0;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.1, 0, 0.2, 1); /* স্মুথ এনিমেশন */
}

/* Jokhon JavaScript diye 'show' class jog kora hobe tokhon-e animation hobe */
.progress-line span.show {
    /* width value ta JS theke ashbe */
}

/* =========================================== Achievements & Gallery ================== */
/* Achievements & Gallery common base */
#achievements {
    text-align: center;
}

.certificates img {
    display: block;
    margin: 0 auto;
}

#achievements, #gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

#achievements div, #gallery div {
    background: var(--white);
    padding: 15px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

#gallery img, #achievements img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

#achievements p {
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
}









#achievements, #gallery {
    display: grid;
    gap: 20px;
    padding: 100px 20px;
    max-width: 1200px;
    margin: auto;
}

/* Gallery-te 1 line-e 4-ta picture rakhar jonno */
#gallery {
    grid-template-columns: repeat(4, 1fr); /* 4-ta column */
}

/* Achievements-e 1 line-e 3-ta picture rakhar jonno (apni 3-ta thik ache bolesen) */
#achievements {
    grid-template-columns: repeat(3, 1fr); /* 3-ta column */
}

/* Image gulo jate automatic fit hoy */
#gallery img, #achievements img {
    width: 100%;
    height: 180px; /* Eikhane height fixed kore dile sob pic ek soman lagbe */
    object-fit: cover; /* Picture choto holeo jeno kete na jay ba chepta na hoy */
    border-radius: 12px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #gallery { grid-template-columns: repeat(2, 1fr); } /* Mobile-e 2-ta kore */
    #achievements { grid-template-columns: repeat(1, 1fr); }
}










/* Achievement ebong Gallery box-er hover effect */
#achievements div:hover, 
#gallery div:hover {
    border-color: var(--primary-color); /* Hover korle border hobe */
    color: var(--primary-color);         /* Text-er color change hobe */
    transform: translateY(-10px);        /* Box-ta ektu upore uthbe */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); /* Shadow-ta aro boro hobe */
    border: 1px solid var(--primary-color);    /* Skills-er moto border */
}

/* Image-tao jate ektu smooth lage */
#achievements div img:hover, 
#gallery div img:hover {
    filter: brightness(1.1); /* Hover korle pic-ta ektu bright hobe */
    transition: 0.3s;
}


/* Achievements, Gallery ebong Videos common base */
#achievements, #gallery, #videos {
    display: grid;
    gap: 25px;
    padding: 100px 20px;
    max-width: 1200px;
    margin: auto;
}

/* Video section-e 1 line-e 3-ta video thakbe (Achievement-er moto) */
#videos {
    grid-template-columns: repeat(3, 1fr);
}

/* Box Styling (Background, Shadow, Padding) */
#achievements div, #gallery div, #videos div {
    background: var(--white);
    padding: 15px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    text-align: center;
}

/* Hover Effect (Sobgulor jonno eksathe) */
#achievements div:hover, 
#gallery div:hover,
#videos div:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--primary-color);
}

/* Text styling */
#videos p {
    margin-top: 15px;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #videos { grid-template-columns: repeat(1, 1fr); }
}






/* ================================================ Contact Section (Buttons Like Image) =========================== */


.articles {
  padding: 80px 10%;
}

.articles h2 {
  text-align: center;
  margin-bottom: 40px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.article-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.article-card h3 {
  margin-bottom: 10px;
}

.article-card p {
  color: #555;
}

.article-card button {
  margin-top: 15px;
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-weight: bold;
}

.full-article {
  display: none;
  margin-top: 15px;
}


/* ===== Contact Section (Buttons Like Image) ===== */
/* ===== Contact Section ===== */
#contact {
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;   /* horizontal center */
    text-align: center;    /* h2, p etc center */
}

/* Section Title */
#contact h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
    align-items: center;   /* horizontal center */
    text-align: center;    /* h2, p etc center */
}

/* Blue underline */
#contact h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #007bff;
    border-radius: 2px;
}

/* Icons Container */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* Circle Icon Box */
.icon-box {
    width: 65px;
    height: 65px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    transition: all 0.3s ease;
}

.icon-box:hover {
    transform: translateY(-10px);
    color: #fff;
}

/* Hover Colors for all icons */
.linkedin:hover { background-color: #0077b5; }
.github:hover { background-color: #24292e; }
.facebook:hover { background-color: #1877f2; }
.gmail:hover { background-color: #D44638; }   /* Gmail red */
.cv:hover { background-color: #FF4B2B; }     /* CV PDF orange/red */
.instagram:hover { background-color: #E1306C; }
.x:hover {  background-color: #000000; }   /* X official black */


.parent-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Or whatever your grid setup is */
}



/* Email text style */
.email-text {
  margin-top: 15px;
  font-size: 18px;
  color: #333;
}

.email-text span:first-child {
  font-weight: 500;
  margin-right: 6px;
}



.email-text {
  margin-top: 25px;
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  color: #444;
  user-select: none; /* "For Gmail:" select না হবে */
}

#email {
  user-select: text;          /* শুধু email select হবে */
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  background-color: #f3f3f3;
  border: 1px solid #ddd;
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

/* Selection color */
#email::selection {
  background: #87CEEB;
  color: #000;
}

#email::-moz-selection {
  background: #87CEEB;
  color: #000;
}

#email::-webkit-selection {
  background: #87CEEB;
  color: #000;
}



/*---------------------------- Footer --------------------------------------------------------------------------------*/
/* ================= MODERN FOOTER ================= */

/* ===== Modern Compact Footer ===== */

.footer {
  background: #000;
  color: #bbb;
  position: relative;
  padding: 60px 8% 20px;
  overflow: hidden;
}

/* Wave Top */
.footer::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 80px;
  background: #000;
  border-top-left-radius: 50% 100%;
  border-top-right-radius: 50% 100%;
}

/* Layout */
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

/* Headings */
.footer h2 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 15px;
}

.footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 10px;
}

/* Links */
.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul li a {
  color: #bbb;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.footer ul li a:hover {
  color: #4f46e5;
  padding-left: 4px;
}

/* Text */
.footer p {
  font-size: 14px;
  margin-bottom: 6px;
}

/* Bottom Bar */
.footer-bottom {
  text-align: center;
  border-top: 1px solid #222;
  margin-top: 25px;
  padding-top: 15px;
  font-size: 13px;
  color: #777;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 25px;
  }
}






/* মেইন কন্টেইনার */
.footer-social-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.follow-text {
  font-weight: bold;
  font-size: 1.1rem;
  color: #fff;
}

.footer-social-icons {
  display: flex;
  gap: 15px;
}

/* কমন আইকন স্টাইল */
.footer-social-icons a {
  color: #fff; /* শুরুতে সব সাদা থাকবে */
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

/* মাউস নিলে আলাদা আলাদা কালার হবে */

/* YouTube - Red */
.footer-social-icons a:hover .fa-youtube {
  color: #FF0000;
  transform: scale(1.2);
}

/* Facebook - Blue */
.footer-social-icons a:hover .fa-facebook-f {
  color: #1877F2;
  transform: scale(1.2);
}

/* Twitter (X) - Sky Blue or Black */
.footer-social-icons a:hover .fa-twitter {
  color: #1DA1F2;
  transform: scale(1.2);
}

/* LinkedIn - Dark Blue */
.footer-social-icons a:hover .fa-linkedin-in {
  color: #0077B5;
  transform: scale(1.2);
}

/* Instagram - Pink/Gradient mood */
.footer-social-icons a:hover .fa-instagram {
  color: #E4405F;
  transform: scale(1.2);
}