/* Import Google Font */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: white;
  color: #222;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navbar Container */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar-container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.navbar-logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0077ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-logo:hover {
  color: #0056b3;
}

/* Menu Items */
.navbar-menu {
  display: flex;
  list-style: none;
  gap: 5rem;
}

.navbar-menu li a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  position: relative;
}

.navbar-menu li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: #0077ff;
  transition: width 0.3s ease;
}

.navbar-menu li a:hover::after {
  width: 100%;
}

.navbar-menu li a:hover {
  color: #0077ff;
}

/* Hamburger Button */
.navbar-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

.bar {
  height: 3px;
  width: 25px;
  background-color: #333;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s ease;
  }

  .navbar-menu.active {
    right: 0;
  }

  .navbar-toggle {
    display: flex;
  }

  .bar.active:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .bar.active:nth-child(2) {
    opacity: 0;
  }

  .bar.active:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* Hero Section Container */
.main-div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  height: 100vh;
  padding: 0 2rem;
  flex-wrap: wrap;
}

 /* Image */
.home-img {
  border-radius: 40%;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  min-width: 220px;
  max-width: 420px;
}

.home-img img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 40%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
}
 
.home-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 300deg,
     #00e5ff,
     #2979ff,
    transparent 360deg
  );
  animation: borderRun 5s linear infinite;
}

.home-img::after {
  content: "";
  position: absolute;
  inset: 7px;
  background: #000; 
  border-radius: 40%;
}


@keyframes borderRun {
  to {
    transform: rotate(360deg);
  }
}



/* Responsive Design */
@media (max-width: 768px) {
  .main-div {
    flex-direction: column;
    text-align: center;
    height: auto;
    padding: 4rem 1rem;
  }
}

.section {
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.section-titile {
  color: #0077ff;
  text-align: center;
  font-size: 2.1rem;
}

/* Relevant CSS for the provided HTML portion */

.home-data {
  grid-column: unset;
  flex: 1 1 48%;
  max-width: 720px;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
}

/* Tweak text alignment and spacing inside data */
.home-data .home-data-title,
.home-data .home-data-subtitle,
.home-data .home-data-description {
  margin: 0 0 0.5rem 0;
  text-align: left;
}

.home-data-description {
  margin-bottom: 2rem;
  color: hsl(169, 8%, 45%);
  font-size: 0.938rem;
}

/* Button used inside .home-data */
.button {
  display: inline-block;
  background-color: #0077ff;
  border-radius: 0.5rem;
  border: none;
  color: #fff;
  padding: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.button:hover {
  background-color: hsl(167, 43%, 64%);
}

.button-flex {
  display: inline-flex;
  align-items: center;
}

.button-icon {
  margin-left: 0.5rem;
  font-size: 1.25rem;
  transition: transform 0.25s;
}

.section-subtitle {
  display: block;
  font-size: 1rem;
  text-align: center;
}

/* about me  */

/* General section styling */
.about.section {
  padding: 3rem 1rem;
  text-align: center;
}

/* Title and subtitle */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: #777;
  font-size: 1rem;
  display: block;
  margin-bottom: 2rem;
}

/* Container layout */
.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.about-container-img video {
  width: 290px;
  height: 290px;
}

/* Text section */
.about-container-data {
  max-width: 500px;
  text-align: left;
  flex-wrap: wrap;
  margin-top: -4.5rem;
}

/* Responsive stacking on mobile */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
  }

  .about-container-data {
    margin-top: 0.5rem;
  }
}

.about-container-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
}

/* Button styling */
.about-buttons .button {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  background-color: #007bff;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.about-buttons .button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/* skills section  */

.skills__container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

/* Make each column smaller but keep text the same */
.skills__content {
  width: 450px;
  padding: 1rem;
  border-radius: 0.75rem;
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.skills__content:hover {
  transform: translateY(-3px);
}

/* Keep text readable */
.skills__subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.skills__text {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1.2rem;
}

.skills__data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0.4rem 0.8rem;
  margin-bottom: 0.8rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(14, 36, 49, 0.1);
}

.skills__names {
  display: flex;
  align-items: center;
}

.skills__icon {
  font-size: 1.6rem;
  color: #007bff;
  margin-right: 0.6rem;
}

.skills__name {
  font-size: 0.95rem;
  font-weight: 500;
}

.skills__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 0.25rem;
  background-color: #007bff;
  border-radius: 0.5rem;
  z-index: -1;
}

.skills__html {
  width: 95%;
}
.skills__css {
  width: 85%;
}
.skills__js {
  width: 65%;
}
.skills__re {
  width: 50%;
}
.skills__python{
  width: 50%;
}
.skills__github{
  width: 95%;
}
.skills__english {
  width: 95%;
}
.skills__hindi {
  width: 90%;
}
.skills__bengali {
  width: 100%;
}

.skills__percentage {
  font-weight: 500;
  color: #333;
}

/* footer  */
.footer {
  background-color: whitesmoke;
  padding: 20px 0;
}

.footer .social {
  text-align: center;
  padding-bottom: 25px;
  color: #007bff;
}

.footer .social a {
  font-size: 24px;
  color: inherit;
  border: 1px solid black;
  width: 40px;
  height: 40px;
  line-height: 38px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  margin: 0 8px;
  opacity: 0.75;
}

.copyright {
  text-align: center;
  margin-top: 1px;
}

.copyright a {
  font-size: 13px;
  text-decoration: none;
  color: inherit;
}
.copyright i {
  color: #007bff;
}

.experience-img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.experience-img img {
  width: 45%;
  height: auto;
  object-fit: cover;
}

@media screen and (max-width: 768px) {
  .experience-img img {
    width: 100%;
  }
}
/* ===== Scroll Up Button Style ===== */
.scrollup {
  position: fixed;
  right: 1.5rem;
  background-color: white;
  color: #007bff;
  padding: 0.5rem;
  font-size: 1.25rem;
  transition: bottom 0.3s ease, background-color 0.3s ease;
  z-index: 999;
  cursor: pointer;
}

/* Show the button */
.show-scroll {
  bottom: 1.5rem;
}

/* Icon style */
.scrollup-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px;
}

.card {
  width: 20rem;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  text-align: center;
}

.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.card .btn {
  display: inline-block;
  padding: 10px 20px;
  background: #0d6efd;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 10px;
  transition: 0.3s;
}

.card .btn:hover {
  background: #084298;
}

.home-data-title {
  font-size: 2.2rem;
  font-weight: 700;

  /* rainbow gradient */
  background: linear-gradient(90deg, black, green, cyan, blue, violet);

  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  animation: rainbow-move 15s linear infinite;
}

/* animation to move the gradient */
@keyframes rainbow-move {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/**Contact from  */

.contact-container-second{
  height: 45vb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 20px;
}

.contact-left{
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 20px;
}

.contact-inputs{
  width: 400px;
  height: 50px;
  border: 2px solid #007bff;
  padding-left: 25px;
  font-weight: 500;
  color: #666;
  border-radius: 30px;
}

.contact-left textarea{
  height: 140px;
  padding-top: 15px;
  border-radius: 30px;
}

.contact-left button{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-size: 12px;
  color: white;
  gap: 10px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(270deg,#007bff);
  cursor: pointer;
}
.contact-left button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.35);
}
.contact-container-second button {
  justify-content: center;
  margin: 0 auto;
  display: flex;
}
/* mobile responsive  */
@media (max-width:800px) {
  .contact-inputs{
    width: 80vw;
  }
}

