/* Import Google Font (Poppins) */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

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

:root {
  --primary: #009688;
  --primary-light: rgba(0, 150, 136, 0.15);
  --primary-lighter: rgba(0, 150, 136, 0.08);
  --text-color: #333;
  --bg-color: #fdfdfd;
  --white: white;
}

html {
  scroll-behavior: smooth;
}

body {
  color: #333;
  background: #fdfdfd;
}

.scroll-margin-top-4rem {
  scroll-margin-top: 24px;
}

/* width css */

.max-width-1280px {
  max-width: 1280px;
}

a {
  text-decoration: none !important;
}

ul,
li,
a,
p {
  margin: 0 !important;
  padding: 0 !important;
}

/*  Header Section  */

.header-sec {
  background-color: var(--primary);
}

.header-sec .logo,
.header-sec .header-menu-sec ul li a {
  color: var(--white);
}

.header-sec .logo {
  font-size: 1.7rem;
  font-weight: 600;
}

.header-sec .header-menu-sec ul li a {
  font-weight: 500;
}

.header-sec .header-menu-sec ul li {
  border-radius: 5px;
}

.header-sec .header-menu-sec ul li:hover a {
  color: var(--primary);
  transition: all 0.2s ease;
}

.header-sec .header-menu-sec ul li:hover {
  background-color: var(--bg-color);
}

.main-box .menu-x-icon,
.main-box .menu-icon {
  background-color: transparent;
  border: none;
  display: none;
  cursor: pointer;
}

@media screen and (max-width: 650px) {
  .header-sec {
    position: relative;
  }

  .main-box .header-menu-sec {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100% !important;
    overflow: hidden;
  }

  .header-menu-sec ul {
    width: 100% !important;
    flex-direction: column !important;
    background-color: var(--primary);
    padding: 5px 0 !important;
  }

  .header-menu-sec ul li {
    width: 100%;
    margin: 0 !important;
    padding: 4px 0 4px 24px !important;
    border-radius: 0px !important;
  }

  .main-box #menuList {
    transition: all 0.5s !important;
  }

  .main-box .menu-icon {
    display: block;
  }

  .main-box .logo {
    font-size: 1rem;
  }

  .header-menu-sec ul li a {
    font-size: 12px;
    display: block;
  }
}

/* Hero Section */

.hero-sec .hero-container {
  background-color: var(--primary-light);
  height: auto;
  border-radius: 20px;
  color: var(--text-color);
}

.hero-img-sec {
  width: 80%;
}

.greeting {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-color);
}

.hero-main-heading {
  font-size: 40px;
}

.hero-social-icon-sec div {
  height: 30px;
  width: 30px;
  background-color: var(--white);
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease-in-out;
}

.hero-social-icon-sec div a i {
  height: auto;
  width: auto;
}

.hero-social-icon-sec div:hover {
  background-color: var(--primary-light);
}

.hero-social-icon-sec div:hover i {
  transition: all 0.8s ease-in-out;
  transform: rotate(360deg);
}

.hero-btn-sec {
  background-color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 8px;
  color: white;
}

.hero-btn-sec a {
  color: var(--white);
}

.hero-btn-sec:hover {
  background-color: var(--white);
  transition: all 0.3s ease-in-out;
  border: 2px solid var(--primary);
}

.hero-btn-sec:hover a,
.hero-btn-sec:hover a i {
  color: var(--primary) !important;
}

@media screen and (max-width: 840px) {
  .hero-sec .hero-container {
    display: block !important;
  }

  .hero-container .hero-left-sec,
  .hero-container .hero-right-sec {
    width: 100% !important;
  }

  .hero-container .hero-right-sec {
    margin-top: 70px;
  }
}

@media screen and (max-width: 576px) {
  .hero-sec .hero-container {
    padding: 25px 0 !important;
  }

  .hero-right-sec {
    margin-top: 45px !important;
  }

  .hero-right-sec .greeting,
  .hero-right-sec .hero-line {
    font-size: 14px;
  }

  .hero-right-sec .hero-main-heading {
    font-size: 22px;
  }

  .hero-right-sec .hero-btn-sec {
    border: 1px solid var(--primary);
    padding: 6px 12px !important;
    border-radius: 5px;
  }

  .hero-btn-sec a {
    font-size: 12px;
  }
}

/* About Me Section */

.about-sec {
  height: auto;
  background-color: var(--primary-light);
  border-radius: 20px;
}

.about-sec .about-left-sec,
.about-sec .about-right-sec {
  width: 50%;
  color: var(--text-color);
}

.about-heading {
  color: var(--primary);
  font-weight: 600;
  font-size: 35px;
}

.about-heading::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary);
  opacity: 0.6;
  margin: 10px auto 0;
  border-radius: 2px;
}

.about-right-sec .about-img-sec img {
  border-radius: 20px;
  filter: drop-shadow(4px 4px 5px gray);
}

@media screen and (max-width: 840px) {
  main .about-container-sec {
    display: block !important;
  }

  .about-container-sec .about-left-sec,
  .about-container-sec .about-right-sec {
    width: 100% !important;
    padding: 0 !important;
  }

  .about-container-sec .about-right-sec {
    justify-content: start !important;
    margin-top: 25px;
  }

  .about-sec .about-heading {
    text-align: left !important;
    display: inline-block;
    margin-bottom: 40px !important;
  }

  .about-left-sec .about-para {
    padding-right: 0 !important;
  }

  .my-details {
    width: 80% !important;
  }
}

@media screen and (max-width: 576px) {
  main .about-sec {
    padding: 25px 16px !important;
  }

  .about-sec .about-heading {
    font-size: 20px;
  }

  .about-left-sec .about-para,
  .my-details div {
    font-size: 14px;
  }
}

@media screen and (max-width: 370px) {
  .about-img-sec img {
    width: 100% !important;
  }
}

/* My Skills Section */

.my-skills-sec {
  height: auto;
  background-color: var(--primary-light);
  border-radius: 20px;
}

.my-skills-heading {
  color: var(--primary);
  font-weight: 600;
  font-size: 35px;
}

.my-skills-heading::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary);
  opacity: 0.6;
  margin: 15px auto 0;
  border-radius: 2px;
}

.skill-list {
  width: 90%;
  gap: 30px;
}

.skill-list .skill {
  width: 220px;
  padding: 20px;
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.skill-list .skill:hover {
  transform: translateY(-10px);
  transition: all 0.2s ease-in-out;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
  background-color: var(--primary-lighter);
}

.skill-list .skill .skill-name {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 30px;
}

.skill-list .skill .skill-img-sec {
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 880px) {
  .main-skills-container .skill-list {
    width: 100%;
    gap: 50px !important;
  }
}

@media screen and (max-width: 576px) {
  main .my-skills-sec {
    padding: 25px 16px !important;
  }

  .my-skills-heading {
    font-size: 20px;
  }

  .skill-list .skill {
    padding: 15px;
  }

  .skill-name {
    font-size: 18px;
  }
}

/* projects Section*/

.projects-sec {
  height: auto;
  background-color: var(--primary-light);
  border-radius: 20px;
}

.projects-heading {
  color: var(--primary);
  font-weight: 600;
  font-size: 35px;
}

.projects-heading::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary);
  opacity: 0.6;
  margin: 15px auto 0;
  border-radius: 2px;
}

.projects-list {
  width: 90%;
  gap: 30px;
}

.projects-list .project {
  background-color: var(--white);
  border-radius: 15px;
  width: 31% !important;
  max-height: 372px;
  box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.projects-list .project:hover {
  transform: translateY(-10px);
  transition: all 0.2s ease-in-out;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
  background-color: var(--primary-lighter);
}

.projects-list .project .project-name {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 30px;
}

.project .project-img-sec a img {
  border-radius: 10px;
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  object-position: top;
  transition: all 2s ease-in-out;
}

.project .project-img-sec a img:hover {
  object-position: bottom;
}

@media screen and (max-width: 1035px) {
  .projects-list .project {
    width: 45% !important;
  }

  .projects-list {
    gap: 50px !important;
  }
}

@media screen and (max-width: 768px) {
  main .projects-sec {
    padding: 25px 16px !important;
  }

  .projects-heading {
    font-size: 20px;
  }

  .projects-list {
    gap: 40px !important;
    display: block !important;
    flex-direction: column;
    justify-content: center !important;
  }

  .projects-list .project {
    width: 100% !important;
    padding: 15px !important;
  }

  .project-name {
    font-size: 18px;
  }

  .projects-list {
    width: 100%;
  }

  .project .project-img-sec a img {
    width: 100%;
  }
}

/* Contact Me Section */

.contact-me-sec {
  height: auto;
  background-color: var(--primary-light);
  border-radius: 20px;
}

.contact-me-heading {
  color: var(--primary);
  font-weight: 600;
  font-size: 35px;
}

.contact-me-heading::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary);
  opacity: 0.6;
  margin: 15px auto 0;
  border-radius: 2px;
}

.contact-form {
  max-width: 600px;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
  width: 100%;
  border-radius: 8px;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #ccc;
  padding: 12px;
  outline: none;
  transition: border 0.3s, box-shadow 0.3s;
  color: var(--text-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(0, 150, 136, 0.4);
}

.contact-form textarea {
  max-height: 150px;
  min-height: 50px;
  overflow: auto;
  scrollbar-width: none;
}

.contact-form textarea::-webkit-scrollbar {
  display: none;
}

.contact-form button {
  padding: 14px;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

.contact-form button:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

@media screen and (max-width: 576px) {
  main .contact-me-sec {
    padding: 25px 16px !important;
  }

  .contact-me-heading {
    font-size: 20px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
    padding: 10px;
  }

  .contact-form textarea {
    min-height: 42px;
  }

  .contact-form button {
    font-size: 14px;
    width: 140px;
    padding: 6px 12px;
  }
}

/* Footer Section */

.footer-sec {
  background-color: var(--primary);
  color: var(--white);
}

.footer-main-line {
  font-size: 25px;
}

.footer-navbar ul li {
  color: var(--white);
  border-radius: 5px;
  transition: all 0.1s ease-in-out;
}

.footer-navbar ul li a {
  color: var(--white);
}

.footer-navbar ul li:hover {
  background-color: var(--white);
}

.footer-navbar ul li:hover a {
  color: var(--primary);
}

.footer-social-icon-sec div {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background-color: var(--white);
}

.footer-social-icon-sec div:hover a i {
  transition: all 0.8s ease-in-out;
  transform: rotate(360deg);
}

@media screen and (max-width: 768px) {
  .footer-navbar {
    display: none !important;
  }

  .footer-sec .main-footer-content {
    display: block !important;
  }

  .footer-social-icon-sec {
    justify-content: center;
    margin-top: 10px;
  }
}

@media screen and (max-width: 576px) {
  .footer-main-line {
    font-size: 18px;
  }
}

/* Go to top Button Section */

.go-to-top-btn {
  width: 30px;
  height: 30px;
  background-color: var(--white);
  border-radius: 50%;
  position: fixed;
  bottom: 15px;
  right: 15px;
  border: 1px solid var(--primary);
  transition: all 0.3s;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.5);
  animation: pulse 2s infinite;
  display: none !important;
}

.go-to-top-btn i {
  color: #009688;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.3);
  }
  70% {
    box-shadow: 0 0 10px 10px rgba(0, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

@media screen and (max-width: 768px) {
  .go-to-top-btn {
    display: flex !important;
  }
}
