* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Customized colors */
:root {
  --text-color: #fff;
  --color: #f52cf9;
  --bg-color: #2d2d2e;
  --first: #fff;
  --second: #000;
  --mob-color: #363636;
  --box-bg: #333;
  --clr-bg: #3e3e3e;
  --place-clr: #afafaf;
}

body.dark-mode {
  --text-color: #222;
  --bg-color: #f2f2f2;
  --first: #222;
  --second: #fff;
  --mob-color: #eae6e6;
  --box-bg: #e5e5e5;
  --clr-bg: #e5e5e5;
  --place-clr: #6b6b6b;
}

body {
  background-color: var(--bg-color);
}
body section {
  min-height: 100vh;
  padding: 12rem 9% 2rem;
}
.container {
  max-width: 1250px;
  width: 100%;
  margin: 0 auto;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  height: 90px;
  width: 100%;
  padding: 0 9%;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header nav .logo {
  z-index: 1;
}

header nav .logo a {
  text-decoration: none;
  font-size: 32px;
  font-weight: 600;
  color: var(--first);
}

header nav .logo a span {
  color: var(--color);
}

header nav .list-darkmode-menu {
  display: flex;
  text-align: center;
  gap: 2.5rem;
}

header nav .list-darkmode-menu ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
  font-size: 18px;
  list-style: none;
  z-index: 1;
}

header nav .list-darkmode-menu ul li a {
  position: relative;
  text-decoration: none;
  color: var(--first);
  font-size: 18px;
  font-weight: 500;
  transition: 0.3s ease;
}
header nav .list-darkmode-menu ul li a:active {
  color: var(--color);
}
header nav .list-darkmode-menu ul li a:hover {
  color: var(--color);
}
header nav .list-darkmode-menu ul li a:hover::before {
  width: 100%;
}
header nav .list-darkmode-menu ul li a::before {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--color);
  transition: 0.3s ease;
}

header nav .list-darkmode-menu .mode {
  color: var(--text-color);
  font-size: 24px;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

header nav .list-darkmode-menu .mode .fa-moon,
.fa-sun {
  position: absolute;
  animation: animate 0.5s;
}

header nav .list-darkmode-menu .mode .fa-moon {
  display: none;
}

header nav .list-darkmode-menu .mode input:checked ~ .fa-moon {
  display: block;
}

header nav .list-darkmode-menu .mode input:checked ~ .fa-sun {
  display: none;
}

header nav .list-darkmode-menu .mode input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
@keyframes animate {
  0% {
    transform: rotate(-360deg) scale(0);
    opacity: 0;
  }
  75% {
    transform: rotate(25deg);
  }
}

header nav .list-darkmode-menu .hamburger {
  position: relative;
  width: 30px;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  scale: 0.9;
  display: none;
}

header nav .list-darkmode-menu .hamburger .bar,
.hamburger::after,
.hamburger::before {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--first);
  margin: 6px 0;
  transition: 0.4s;
}

header nav .list-darkmode-menu .hamburger.active::before {
  transform: rotate(-45deg) translate(-8px, 5px);
}

header nav .list-darkmode-menu .hamburger.active::after {
  transform: rotate(45deg) translate(-8px, -5px);
}

header nav .list-darkmode-menu .hamburger.active .bar {
  opacity: 0;
}

/* Hero section */
.home .home-info {
  display: flex;
  align-items: center;
  justify-content: center;
}
.home .home-info .left {
  flex: 1;
}
.home .home-info .left h3 {
  font-size: 3.5rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: var(--first);
  border-radius: 25px;
}

.home .home-info .left h1 {
  font-size: 4.5em;
  color: var(--first);
  margin: 10px 0;
}

.home .home-info .left h4 {
  color: var(--first);
  font-size: 2.2em;
  font-weight: bold;
  min-width: 280px;
  margin-bottom: 20px;
}

.home .home-info .left h4 span {
  color: var(--color);
}

.home .home-info .left p {
  width: 90%;
  font-size: 16px;
  font-weight: 400;
  line-height: 25px;
  color: var(--first);
  mask-border: 50px;
  margin-bottom: 15px;
  text-align: justify;
}

.home .home-info .left .social {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 25px 0;
}

.home .home-info .left .social a {
  text-decoration: none;
  background: transparent;
  color: var(--color);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.4s ease;
  border: 2px solid var(--color);
}

.home .home-info .left .social a i {
  font-size: 20px;
}
.home .home-info .left .social a:hover {
  color: #fff;
  background: var(--color);
  transform: translateY(-7px);
  box-shadow: 0 0 0.7rem var(--color);
}

.home .home-info .left .btn {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 25px 0;
}

.home .home-info .left .btn button {
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 25px;
  color: var(--color);
  background: transparent;
  border: 2px solid var(--color);
  outline: none;
  cursor: pointer;
  transition: 0.3s ease-in;
}

.home .home-info .left .btn button:hover {
  color: #fff;
  background: var(--color);
  box-shadow: 0 0 0.7rem var(--color);
}

.home .home-info .right {
  flex: 1;
}

.home .home-info .right .profile {
  text-align: right;
}
.home .home-info .right .profile img {
  width: 450px;
  height: 450px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  background: var(--color);
  border: 3px solid var(--color);
  box-shadow: 0 0 40px var(--color);
  cursor: pointer;
  transition: 0.3s ease;
}
.home .home-info .right .profile img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 80px var(--color);
}

/* About */
.about .about-wrapper {
  display: flex;
  justify-content: center;
  gap: 7em;
}
.about .about-wrapper .about-left {
  flex: 1;
}
.about .about-wrapper .about-left .about-img img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  border: 3px solid var(--color);
  box-shadow: 0 0 40px var(--color);
  cursor: pointer;
  transition: 0.3s ease;
}
.about .about-wrapper .about-left .about-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 80px var(--color);
}
.about .about-wrapper .about-right {
  flex: 2;
}
.about .about-wrapper .about-right .about-info h2 {
  margin-top: 20px;
  font-size: 2.8em;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: var(--first);
  margin-bottom: 10px;
}
.about .about-wrapper .about-right .about-info h2 span {
  color: var(--color);
}
.about .about-wrapper .about-right .about-info h3 {
  font-size: 1.8em;
  color: var(--first);
  font-weight: 600;
  margin-bottom: 25px;
}
.about .about-wrapper .about-right .about-info p {
  font-size: 16px;
  font-weight: 300;
  color: var(--first);
  line-height: 1.4em;
  margin-bottom: 25px;
}
.button button {
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 25px;
  color: var(--color);
  background: transparent;
  border: 2px solid var(--color);
  outline: none;
  cursor: pointer;
  transition: 0.3s ease-in;
}
.button button:hover {
  color: #fff;
  background: var(--color);
  transform: translateY(-7px);
  box-shadow: 0 0 0.7rem var(--color);
}

/* Services Section */
.services {
  padding: 80px 0;
  background: var(--bg-color, #f9f9f9);
}

.services h2 {
  font-size: 2.8em;
  text-align: center;
  color: var(--first);
  margin-bottom: 1.5em;
}

.services h2 span {
  color: var(--color);
}

.services .services-box {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2.5em;
}

/* Service Card */
.services .box {
  background: var(--box-bg, #fff);
  text-align: center;
  width: 350px;
  padding: 2em 1.5em 3em;
  border-radius: 16px;
  border: 2px solid transparent;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.services .box:hover {
  border: 2px solid var(--color);
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.services .box .icon {
  color: var(--color);
  font-size: 3em;
  margin-bottom: 0.5em;
}

.services .box h5 {
  font-size: 1.6em;
  color: var(--first);
  margin-bottom: 0.5em;
}

.services .box p {
  font-size: 0.95em;
  color: var(--first);
  padding: 0 10px;
  line-height: 1.6em;
  letter-spacing: 0.5px;
  margin-bottom: 1.5em;
}

/* Button */
.services .services-btn button {
  font-size: 15px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 25px;
  color: var(--color);
  background: transparent;
  border: 2px solid var(--color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.services .services-btn button:hover {
  color: #fff;
  background: var(--color);
  transform: translateY(-5px);
  box-shadow: 0 0 1rem var(--color);
}

/* ============================= */
/* 🌍 RESPONSIVE DESIGN SECTION */
/* ============================= */

/* Tablet */
@media (max-width: 992px) {
  .services .services-box {
    gap: 2em;
  }
  .services .box {
    width: 300px;
  }
  .services h2 {
    font-size: 2.3em;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .services .services-box {
    flex-direction: column;
    align-items: center;
  }
  .services .box {
    width: 90%;
    max-width: 400px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .services {
    padding: 60px 0;
  }
  .services h2 {
    font-size: 2em;
  }
  .services .box p {
    font-size: 0.9em;
  }
  .services .services-btn button {
    font-size: 14px;
    padding: 8px 18px;
  }
}

/* Skills */

.skills .section-title {
  font-size: 2.8em;
  color: var(--first);
  margin-bottom: 0.3em;
  text-align: center;
}
.skills .section-title span {
  color: var(--color);
}

.skills .section-subtitle {
  font-size: 1.2rem;
  color: var(--place-clr);
  margin-bottom: 50px;
  text-align: center;
}

.skills .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.skills .skill-category {
  background: var(--box-bg);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills .skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.skills .skill-category h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--first);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.skills .skill-category i {
  font-size: 1.5rem;
  color: var(--color);
}
.skills .skill-item {
  font-size: 1.2rem;
  color: var(--first);
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  transition: color 0.3s ease;
}

.skills .skill-item:last-child {
  border-bottom: none;
}

.skills .skill-item:hover {
  color: var(--color);
}

/* Portfolio */
.portfolio {
  padding: 80px 0;
  background: var(--bg-color, #f9f9f9);
}

.portfolio h2 {
  font-size: 2.8em;
  text-align: center;
  color: var(--first);
  margin-bottom: 1.5em;
}

.portfolio h2 span {
  color: var(--color);
}

.portfolio-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5em;
}

.portfolio-box {
  position: relative;
  width: 350px;
  height: 300px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.5s ease;
}

.portfolio-box:hover img {
  transform: scale(1.1);
}

.portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), var(--color));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5em;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s ease;
}

.portfolio-box:hover .portfolio-info {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-info h4 {
  font-size: 1.6em;
  margin-bottom: 0.5em;
}

.portfolio-info p {
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 1em;
}

.portfolio-info a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3em;
  height: 3em;
  background: #fff;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s ease;
}

.portfolio-info a:hover {
  background: var(--first);
  transform: rotate(10deg);
}

.portfolio-info a i {
  font-size: 1em;
  color: #000;
}

/* Contact */
.contact h2 {
  font-size: 2.8em;
  text-align: center;
  color: var(--first);
  margin-bottom: 1em;
}

.contact h2 span {
  color: var(--color);
}

.contact form {
  max-width: 40em;
  margin: 1em auto;
  text-align: center;
  margin-bottom: 3em;
}

.contact form .input-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact form .input-box input {
  width: 49%;
  padding: 1em;
  font-size: 16px;
  color: var(--first);
  background: var(--clr-bg);
  border: none;
  outline: none;
  border-radius: 8px;
  margin: 8px 0;
}

.contact form .input-box input::placeholder {
  color: var(--place-clr);
}

.contact form textarea {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  color: var(--first);
  background: var(--clr-bg);
  border: none;
  outline: none;
  resize: none;
  border-radius: 8px;
  margin: 8px 0;
}

.contact form textarea::placeholder {
  color: var(--place-clr);
}

.contact form button {
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  margin-top: 1em;
  border-radius: 25px;
  color: #fff;
  background: var(--color);
  border: 2px solid var(--color);
  outline: none;
  cursor: pointer;
  transition: 0.3s ease-in;
}

.contact form button:hover {
  color: var(--color);
  background: transparent;
  transform: translateY(-7px);
  box-shadow: 0 0 0.7rem var(--color);
}

/* Footer */
.footer {
  padding: 1.5em 9%;
  display: flex;
  align-items: center;
  background: var(--clr-bg);
}
.footer .footer-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer .footer-wrapper .footer-info p {
  font-size: 16px;
  letter-spacing: 0.8px;
  color: var(--first);
}
.footer .footer-wrapper .iconTop a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5em;
  height: 2.5em;
  padding: 0.7em;
  border-radius: 50%;
  transition: 0.3s;
  background-color: var(--color);
}

.footer .footer-wrapper .iconTop a:hover {
  box-shadow: 0 0 0.7rem var(--color);
}

.footer .footer-wrapper .iconTop a i {
  font-size: 1em;
  color: #fff;
}

/* Responsive */
@media screen and (max-width: 1280px) {
  .home .home-info .left h1 {
    font-size: 4em;
  }
  .home .home-info .right .profile img {
    width: 400px;
    height: 400px;
  }
  .services .services-box {
    justify-content: center;
  }
}

@media screen and (max-width: 992px) {
  body section {
    padding: 8rem 5% 2rem;
  }

  header {
    background: var(--mob-color);
    position: sticky;
    top: 0;
    padding: 0 5%;
    z-index: 9;
  }

  header nav .list-darkmode-menu ul {
    position: fixed;
    top: 89px;
    left: -100%;
    max-width: 60%;
    width: 100%;
    height: 100vh;
    background: var(--mob-color);
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 30px;
    padding: 2rem 5% 0;
    transition: 0.3s ease;
  }

  header nav .list-darkmode-menu ul.open {
    left: 0%;
  }

  header nav .list-darkmode-menu ul li a {
    font-size: 22px;
  }

  header nav .list-darkmode-menu .hamburger {
    display: block;
    cursor: pointer;
  }
  .home {
    padding: 8rem 5% 2rem;
  }
  .home .home-info {
    flex-direction: column-reverse;
  }
  .home .home-info .left {
    padding-top: 50px;
  }
  .home .home-info .left p {
    width: 100%;
  }
  .home .home-info .left .social {
    display: flex;
    flex-wrap: wrap;
  }
  .home .home-info .right .profile {
    margin-top: 25px;
  }
  .home .home-info .right .profile img {
    width: 375px;
    height: 375px;
  }
  .home .home-info .right .profile img:hover {
    box-shadow: 0 0 60px var(--color);
  }
  .about .about-wrapper {
    flex-direction: column-reverse;
  }
  .about .about-wrapper .about-left .about-img img {
    width: 375px;
    height: 375px;
    display: block;
    margin: 0 auto;
  }
  .about .about-wrapper .about-left .about-img img:hover {
    box-shadow: 0 0 60px var(--color);
  }
}

@media screen and (max-width: 767px) {
  header nav .list-darkmode-menu ul li a {
    font-size: 20px;
  }
  .home .home-info .left h1 {
    font-size: 3.6rem;
  }
  .home .home-info .left h4 {
    font-size: 1.8rem;
  }
  .home .home-info .left p {
    font-size: 14px;
  }
  .home .home-info .right .profile img {
    width: 350px;
    height: 350px;
  }
  .services .services-box .box {
    width: 340px;
  }
  .portfolio .portfolio-wrapper .portfolio-box {
    width: 340px;
  }
}

@media screen and (max-width: 567px) {
  header nav .logo a {
    font-size: 28px;
  }
  .home .home-info .left h3 {
    font-size: 1.8rem;
  }
  .home .home-info .left h1 {
    font-size: 2.5rem;
  }
  .home .home-info .left h4 {
    font-size: 1.4rem;
  }
  .home .home-info .left p {
    font-size: 14px;
  }
  .home .home-info .right .profile img {
    width: 280px;
    height: 280px;
  }
  .about .about-wrapper .about-left .about-img img {
    width: 280px;
    height: 280px;
  }
  .about .about-wrapper .about-right .about-info h2 {
    font-size: 2.5em;
  }
  .services h2 {
    font-size: 2.5em;
  }
  .portfolio h2 {
    font-size: 2.5em;
  }
  .contact h2 {
    font-size: 2.5em;
  }
  .contact form .input-box input {
    width: 100%;
  }
  .footer {
    padding: 1.2em 5%;
  }
  .footer .footer-wrapper {
    flex-direction: column-reverse;
    text-align: center;
  }
  .footer .footer-wrapper .footer-info {
    line-height: 1.5em;
  }
  .footer .footer-wrapper .iconTop {
    margin-bottom: 1em;
  }
}
