@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");


* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  border: none;
  box-sizing: border-box;
  outline: none;
  font-family: poppins, sans-serif;
  scroll-behavior: smooth;
}
:root {
  --bg-color: #1f242d;
  --second-bg-color: #323946;
  --text-color: #fff;
  --main-color: #0ef;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}
body {
  background: var(--bg-color);
  color: var(--text-color);
}

section {
  min-height: 100vh;
  padding: 10rem 9% 2rem;
  width: 100%;
}
 
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.header.sticky {
  border-bottom: .1rem solid rgba(0, 0, 0, .2);
}




/*
.logo {
  font-size: 2.5rem;
  color: var(--text-color);
  font-weight: 600;
  cursor: default;
}*/
.header img{
  width: 140px;
  height: auto;
}
.navbar{
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 550; 
}
.navbar a {
  font-size: 1.7rem;
  color: var(--text-color);
  margin-left: 4rem;
  transition: 0.3s;
}

.navbar a:hover {
  color: var(--main-color);
}
.navbar a.active {
  color: var(--main-color);
}

#menu-icon {
  font-size: 3.6rem;
  color: var(--text-color);
  display: none;
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-content h3 {
  font-size: 2.6rem;
  font-weight: 700;
}
.home-content h3:nth-of-type(2) {
  font-size: 2.6rem;
  font-weight: 700;
}

.home-content h3:nth-of-type(2) {
  margin-top: 0.5rem;
}

span {
  color: var(--main-color);
}

.home-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
}

p {
  margin-top: 1.6rem;
  font-size: 15px;
  line-height: 25px;
  width: 80%;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.9);
}

.home-content .btn-sci {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.home-content .btn-sci .sci a {
  display: inline-flex;
  padding: 0.8rem;
  border: 0.2rem solid var(--main-color);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--main-color);
  margin: 0 0.8rem;
  transition: 0.5s;
}

.home-content .btn-sci .sci a:hover {
  background: var(--main-color);
  color: var(--bg-color);
  box-shadow: 0 0 1rem var(--main-color);
}

.btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--main-color);
  border: 0.2rem solid var(--main-color);
  border-radius: 4rem;
  box-shadow: 0 0 1rem var(--bg-color);
  font-size: 1.8rem;
  color: var(--bg-color);
  font-weight: 500;
  transition: 0.5s;
  margin-left: 5px;
}

.btn:hover {
  background: transparent;
  color: var(--main-color);
  box-shadow: 0 0 1rem var(--main-color);
}

.home-img {
  animation: floatimage 4s ease-in-out infinite;
}

@keyframes floatimage {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}


.home-img .img-box {
  position: relative;
  width: 30vw;
  height: 30vw;
  border-radius: 50%;
  padding: 0.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-top: 0px;
  margin-right: 0px;
}

.home-img .img-box::before,
.home-img .img-box::after {
  content: "";
  position: absolute;
  width: 50rem;
  height: 50rem;
  background: conic-gradient(
    transparent,
    transparent,
    transparent,
    var(--main-color)
  );
  transition: rotate(0deg);
  animation: rotate-border 10s linear infinite;
}

.home-img .img-box::after {
  animation-delay: -5s;
}

@keyframes rotate-border {
  100% {
    transform: rotate(360deg);
  }
}

.home-img .img-box .img-item {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  border-radius: 50%;
  border: 0.01rem solid var(--bg-color);
  display: flex;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

.home-img .img-box .img-item img {
  position: absolute;
  top: 0.5rem;
  display: block;
  width: 85%;
  object-fit: cover;
  mix-blend-mode: lighten;
}

.about-img {
  display: inline-block;
  justify-content: center;
}

.about-img img {
  width: 95%;
  height: 100%;
}

.about-content {
  width: 70%;
  border: 0.2rem solid var(--main-color);
  padding: 20px 20px;
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background: var(--second-bg-color);
}

.about-content .heading {
  font-size: 3.6rem;
}
.about-content span {
  font-size: 5rem;
}
.about-content h3 {
  font-size: 1.8rem;
  margin-top: 1rem;
}
.about-content p {
  font-size: 1.6rem;
  margin: 2rem 0 3rem;
}

.services{
  background-color: var(--bg-color); 
  min-height: 80vh;
}

.services .headings {
  font-size: 5em;
  justify-content: center;
  display: flex;
  align-items: center;
}
.services .headings span {
  font-size: 3.6rem;
  margin-left: 10px;
}

.services h2 {
  margin-bottom: 10rem;
  margin-top: -20px;
}

.services-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: -50px;
  flex-wrap: wrap;
 
}

.services-container .services-box {
  flex: 1 1 300px; /* All boxes same width & flexible */
  background: var(--second-bg-color);
  border: 3px solid #ff00ff;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column; /* Ensures equal vertical layout */
  justify-content: center;
  align-items: center;
}
.services-container .services-box:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.services-box i {
  font-size: 5rem;
  color: var(--main-color);
}
.services-box h3 {
  font-size: 2.6rem;
}
.services-box p {
  font-size: 1.5rem;
  margin: 1rem 0 3rem;
}



/* skills css */
.skills .heading {
  font-size: 5em;
  justify-content: center;
  display: flex;
  align-items: center;
}


/*portfolio css*/
.portfolio {
  background: var(--second-bg-color);

}
.portfolio .heading {
  font-size: 4.2em;
  justify-content: center;
  display: flex;
  align-items: center;
}
.portfolio .heading span {
  font-size: 5rem;
  margin-left: 10px;
}

.portfolio h2 {
  margin-bottom: 4rem;
  margin-top: -20px;
}
.Portfolio-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 2.5rem;
}
.Portfolio-container .Portfolio-Box{
  position: relative;
  border-radius: 2rem;
  box-shadow: 0 0 1rem var(--bg-color);
  overflow: hidden;
  display: flex;

}
.Portfolio-Box img{
  width: 100%;
  transition: .5s ease; 
}
.Portfolio-Box:hover img{
  transform: scale(1.1);
}

.Portfolio-Box .Portfolio-Layer{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0, .1), var(--main-color));
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 0 4rem;
  transform: translateY(100%);
  transition: .5s ease;

}
.Portfolio-Box:hover .Portfolio-Layer{
  transform: translateY(0);
}


.Portfolio-Layer h4{
  font-size: 3rem;

}
.Portfolio-Layer p{
  font-size: 1.2rem;
  margin: .3rem 0 1rem;
}
.Portfolio-Layer a{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 5rem;
  height: 5rem;
  background: var(--text-color);
  border-radius: 50%;

}
.Portfolio-Layer a i{
  font-size: 2rem;
  color: var(--second-bg-color);
}
.Portfolio-Layer a:hover{
  background-color: var(--main-color);
}
.contact .heading{
   font-size: 5em;
  justify-content: center;
  display: flex;
  align-items: center;
   
}

.contact-box{
 
  position: relative;   /* important */
  width:100%;
  max-width:400px;
  padding:25px;
  margin:30px auto;
  border-radius:8px;
  box-shadow:0 4px 15px rgba(182, 88, 88, 0.923);
  animation: glowRing 3s linear infinite;
  overflow: hidden;     /* video বাইরে যাবে না */

}

/* Video background */
.bg-video{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:-2;
}

/* Dark overlay */
.contact-box::before{
  content:"";
  position:absolute;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.6);
  top:0;
  left:0;
  z-index:-1;
  border-radius:8px;
}

/* Form above video */
.contact-box form{
  position:relative;
  z-index:1;
}



@keyframes glowRing {
    0% {
        box-shadow: 0 0 15px #00ffff;
    }
    25% {
        box-shadow: 0 0 25px #00bfff;
    }
    50% {
        box-shadow: 0 0 30px #007bff;
    }
    75% {
        box-shadow: 0 0 25px #00bfff;
    }
    100% {
        box-shadow: 0 0 15px #00ffff;
    }
}


.contact-box input,
.contact-box textarea{
  width:100%;
  padding:10px;
  margin-bottom:18px;
  border:1px solid #a79292;
  border-radius:5px;
  font-size:14px;
  background-color: transparent !important;
  color: white !important;
   
 
}
.contact-box input::placeholder,
.contact-box textarea::placeholder{
  color: #ffffff8d;
  opacity: 1;
}

.s1984 {
  margin-top: 20px;
}

textarea{
  background-color: var(--second-bg-color)!important;
  color: white !important;
}

.contact-box textarea{
  resize:none;
  height:100px;
}

.contact-box button{
  width:100%;
  padding:10px;
  background: var(--main-color);
  color:#000000;
  border: 1px solid var(--text-color);
  border-radius:15px;
  font-size:16px;
  cursor:pointer;
}

.contact-box button:hover{
  background: rgba(103, 82, 82, 0.34);
  color: white;
}

#status{
  text-align:center;
  margin-top:10px;
  color:rgb(251, 251, 251);
  font-weight:600;
}


.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .8rem 5%;
  background: var(--second-bg-color);
}
.footer-text p {
  font-size: 1.5rem;
  color: rgb(255, 255, 5);
  width: 100%;
}
.footer-icontop a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: var(--main-color);
  border-radius: 12px;
}

.footer-icontop a i {
  font-size: 20px;   /* 👈 important */
  color: black;
}

.footer-icontop a:hover {
  box-shadow: 0 0 1rem var(--main-color);
}


/* BREAKPOINTS */
@media (max-width: 1200px) {
  html {
    font-size: 50%;

  }
}
  
@media (max-width: 991px) {
  .header {
    padding: 2rem 3%;

  }

  section {
    padding: 10rem 3% 2rem;
  }

  .footer {
    padding: 2rem 3%;
  }
}

@media (max-width: 768px) {
  #menu-icon {
    display: block;
    cursor: pointer;
    z-index: 1200;
  }

  .navbar {
    /* position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    padding: 1rem 3%;
    display: none;
    flex-direction: column; */
  }

  .navbar.active {
    /* display: block; */
  }

  .navbar a {
    /* display: block;
    margin: 2rem 0;
    font-size: 2rem;
    text-align: left; */
  }
}
@media (max-width: 768px) {

  #menu-icon {
    display: block;
    cursor: pointer;
    z-index: 1200;
  }

  .navbar {
    /* position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-color); 
    padding: 1rem 3%;
    display: none;              🔴 hide by default
    flex-direction: column;
    background: rgb(50 57 70 / 7%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);  */
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;

    background: rgb(50 57 70 / 7%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    flex-direction: column;
    padding: 100px 30px;
    transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    z-index:1100;

    
  }

  .navbar.active {
    /* display: block;             ☰ click করলে show */
      left: 0;

  }

  .navbar a {
    /* display: block;
    margin: 2rem 0;
    font-size: 2rem;
    text-align: left; */
     margin: 20px 0;
    font-size: 2.5rem;
  }

  .home {
    flex-direction: column;
    padding-bottom: 45px;

  }

  .home-content h3 {
    font-size: 2.6rem;
  }

  .home-content h1 {
    font-size: 5rem;
  }

  .img-box {
    width: 85vw !important;
    height: 85vw !important;
    margin-top: 95px !important;
    margin-right: -5px !important;
  }

  .home-img img {
    width: 90vw;
  }

  .about {
    flex-direction: column-reverse;
  }

  .about-img {
    width: 80vw;
    margin-top: 2rem;

  }

  .Portfolio-container {
    grid-template-columns: repeat(2, 1fr);
    
  }

}

 
@media (max-width: 768px) {
  .Portfolio-container {
    grid-template-columns: 1fr; 
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }
}

@media (max-width: 368px) {

  body {
    overflow-x: hidden;
  }

  .home {
    flex-direction: column;
    text-align: center;
  }

  .home-content {
    width: 100%;
  }

  .home-content p {
    width: 100%;
  }

  .home-img {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .home-img .img-box {
    width: 75vw;
    height: 75vw;
    margin: 40px 0 0 0;
  }

  .contact-box {
    width: 90%;
  }

}


/* shills css */
.skills {
  min-height: auto;
  padding-bottom: 7rem;
  background: #193e57;
}

.skills .skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5rem;
}

.skills-row .skills-column {
  flex: 1 1 40rem;
}

.skills-column .title {
  font-size: 2.5rem;
  margin: 0 0 1.5rem;
}

.skills-box .skills-content {
  position: relative;
  border: .2rem solid var(--main-color);
  border-radius: .6rem;
  padding: .5rem 1.5rem;
  z-index: 1;
  overflow: hidden;
}

/* hover of box */
.skills-box .skills-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(0, 0, 0, 0.251);
  z-index: -1;
  transition: .5s ease;
 
}

.skills-box .skills-content:hover::before {
  width: 100%;

}

.skills-content .progress {
  padding: 1rem 0;

}

.skills-content .progress h3 {
  font-size: 1.7rem;
  display: flex;
  justify-content: space-between;
}

.skills-content .progress h3 span {
  color: var(--text-color);

}
.skills-content .progress .bar {
  height: 1.8rem;
  border-radius: .6rem;
  border: .2rem solid var(--main-color);
  padding: .5rem;
  margin: 1rem 0;
}
.skills-content .progress .bar span {
  display: block;
  height: 100%;
  border-radius: .3rem;
  background: rgba(253, 244, 0, 0.897);
  width: 0;
  transition: width 6s ease-in-out;

  
  
}


@keyframes fillBar {
  from {
    width: 0;
  }
}

/* 1111111 */
.skills-column:nth-child(1) .skills-content .progress:nth-child(1) .bar span {
  width: 75%;
  animation: fillBar 25s ease forwards;
  
}
.skills-column:nth-child(1) .skills-content .progress:nth-child(2) .bar span {
  width: 55%;
  animation: fillBar 25s ease forwards;
}
.skills-column:nth-child(1) .skills-content .progress:nth-child(3) .bar span {
  width: 35%;
  animation: fillBar 25s ease forwards;
}
.skills-column:nth-child(1) .skills-content .progress:nth-child(4) .bar span {
  width: 100%;
  animation: fillBar 25s ease forwards;
}

/* 2222222progress bar */
.skills-column:nth-child(2) .skills-content .progress:nth-child(1) .bar span {
  width: 95%;
  animation: fillBar 25s ease forwards;
}
.skills-column:nth-child(2) .skills-content .progress:nth-child(2) .bar span {
  width: 50%;
  animation: fillBar 25s ease forwards;
}
.skills-column:nth-child(2) .skills-content .progress:nth-child(3) .bar span {
  width: 95%;
  animation: fillBar 25s ease forwards;
}
.skills-column:nth-child(2) .skills-content .progress:nth-child(4) .bar span {
  width: 65%;
  animation: fillBar 25s ease forwards;
}
 
/* ===== ANIMATED LOGO LOADER ===== */
#preloader {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: #1f242d;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.logo-loader {
  text-align: center;
}

.logo-loader img {
  width: 150px;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 5px #0ef); }
  to { filter: drop-shadow(0 0 25px #0ef); }
}

.loading-bar {
  margin-top: 25px;
  width: 200px;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.loading-bar::before {
  content: "";
  position: absolute;
  width: 40%;
  height: 100%;
  background: #0ef;
  animation: slide 1.2s infinite;
  border-radius: 20px;
}

@keyframes slide {
  0% { left: -40%; }
  100% { left: 100%; }
}