/* Google Font CDN link */
@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");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
  scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    background-color: black;
    background-image: url("https://www.transparenttextures.com/patterns/asfalt-light.png");
    background-repeat: repeat;
    background-size: auto;
    background-attachment: fixed;
    background-position: center center;
    overflow-x: hidden;
    font-family: "Poppins", sans-serif;
  }
  section, .hire-form-section, .skills, .contact {
    background-color: transparent !important;
  }
  

/* Custom Scroll Bar CSS */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #3498db;
  border-radius: 12px;
  transition: all 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: #3498db;
}

/* Navbar styling */
nav {
  width: 100%;
  height: 10vh;
}

.nav-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.logo {
  color: white;
  font-size: 2rem;
  font-weight: bold;
}
.logo span {
  color: #3498db;
  text-shadow: 0 0 10px #3498db;
}

.hamburg,
.cancel {
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 10px;
  color: white;
  opacity: 0;
  pointer-events: none;
  font-size: clamp(2.5rem, 0.5rem + 5vw, 3rem);
}

.nav-container .links {
  display: flex;
}
.nav-container .links a {
  position: relative;
  font-size: 1.2rem;
  color: white;
  margin: 0 2vw;
  font-weight: 550;
  transition: 0.3s linear;
}
.nav-container .links a::before {
  position: absolute;
  content: "";
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: #3498db;
  transition: 0.3s linear;
}
.nav-container .links a:hover::before {
  width: 100%;
}
.nav-container .links a:hover {
  color: #3498db;
}

.dropdown {
  z-index: 100;
  position: absolute;
  top: 0;
  transform: translateY(-500px);
  width: 100%;
  height: auto;
  backdrop-filter: blur(4px) brightness(40%);
  box-shadow: 0 0 20px black;
  transition: 0.2s linear;
}
.dropdown.active {
  transform: translateY(0);
  opacity: 1;
}
.dropdown .links a {
  display: flex;
  color: white;
  justify-content: center;
  padding: 2vh 0;
  align-items: center;
  transition: 0.2s linear;
}
.dropdown .links a:hover {
  background-color: #3498db;
}

section {
  width: 100%;
  min-height: 90vh;
  padding: 8vh 5%;
}

section .main-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 5vh;
}

.main-container .image {
    width: 300px;          /* Wider than tall for a horizontal oval */
    height: 400px;         /* Shorter height */
    border-radius: 50%;    /* Keeps it oval */
    overflow: hidden;
    box-shadow: 0 0 50px #3498db;
    will-change: transform;
  }
.main-container .image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.main-container .image:hover {
  animation: animate 1.5s ease-in-out infinite;
}

@keyframes animate {
  0% {
    scale: 1;
  }
  50% {
    scale: 1.05;
  }
  100% {
    scale: 1;
  }
}

.main-container .content {
  color: white;
  width: 40%;
}
.content h1 {
  font-size: clamp(1rem, 1rem + 5vw, 1.8rem);
}
.content h1 span {
  color: #3498db;
  text-shadow: 0 0 10px #3498db;
}
.content .typewriter {
  font-size: clamp(1rem, 1rem + 3vw, 2rem);
  font-weight: 600;
}
.content .typewriter-text {
  color: #3498db;
  text-shadow: 0 0 10px #3498db;
}
.content p {
  font-size: clamp(0.4rem, 0.2rem + 2vw, 1rem);
  margin: 2vh 0;
}

.social-links i {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  background-color: transparent;
  border: 0.2rem solid #3498db;
  border-radius: 50%;
  color: #3498db;
  margin: 1vh 1vw;
  font-size: 1.5rem;
  transition: 0.2s linear;
}
.social-links i:hover {
  scale: 1.3;
  color: black;
  background-color: #3498db;
  filter: drop-shadow(0 0 10px #3498db);
}

.content button {
  width: 50%;
  height: auto;
  padding: 1.2vh 2vw;
  margin: 5vh 0;
  background-color: #3498db;
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 5px;
  transition: 0.2s linear;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.content button:hover {
  transform: scale(1.05);
  color: #3498db;
  border: 2px solid #3498db;
  background-color: transparent;
  box-shadow: 0 0 40px #3498db;
}

/*Hire Me section*/
.hire-form-section {
  background: black;
  color: white;
  padding: 5vh 10vw;
  min-height: 100vh;
}

.hire-form {
  display: flex;
  flex-direction: column;
  gap: 2vh;
  max-width: 600px;
  margin: auto;
}

.hire-form label {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
}

.hire-form input,
.hire-form textarea {
  padding: 1vh;
  margin-top: 0.5vh;
  border-radius: 5px;
  border: 1px solid #3498db;
  background: #111;
  color: white;
}

.hire-form button {
  display: inline-block;
  background-color: transparent;
  color: #3498db;
  padding: 1vh 2vw;
  border: 2px solid #3498db;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.hire-form button:hover {
    transform: scale(1.05);
    color: #3498db;
    border: 2px solid #3498db;
    background-color: transparent;
    box-shadow: 0 0 40px #3498db;
}
.back-home-button {
  display: inline-block;
  background-color: transparent;
  color: #3498db;
  padding: 1vh 2vw;
  border: 2px solid #3498db;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.back-home-button:hover {
    transform: scale(1.05);
    color: #3498db;
    border: 2px solid #3498db;
    background-color: transparent;
    box-shadow: 0 0 40px #3498db;
}

/* About section styling */
section .content {
  width: fit-content;
  margin: 0px auto;
}
.about .about-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
section .title {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
section .title span {
  color: white;
  font-size: 30px;
  font-weight: 600;
  position: relative;
  padding-bottom: 8px;
}
section .title span::before,
section .title span::after {
  content: "";
  position: absolute;
  height: 3px;
  width: 100%;
  background: #3498db;
  left: 0;
  bottom: 0;
}
section .title span::after {
  bottom: -0.7vh;
  width: 70%;
  left: 50%;
  transform: translateX(-50%);
}

.about .about-details .left {
  width: 45%;
}
.about .left img {
    width: fit-content;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    margin: 0 auto;
  }
  
.about-details .right {
  width: 55%;
}
section .topic {
  color: white;
  font-size: 1.5rem;
  font-weight: 500;

}
.about-details .right p {
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: normal;
    word-wrap: break-word;
    color: white;
  }
  

section .button {
  margin: 2vh 0;
  display: flex;
  justify-content: center;
}

section .button button {
  display: inline-block;
  padding: 1vh 2vw;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 500;
  background: #3498db;
  color: #fff;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.4s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
  width: auto;
  min-width: 150px;
  box-sizing: border-box;
}
section .button button:hover {
    transform: scale(1.05);
    color: #3498db;
    border: 2px solid #3498db;
    background-color: transparent;
    box-shadow: 0 0 40px #3498db;
}

.about .about-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5vh;
}

@media (max-width: 768px) {
  .about .about-details {
    flex-direction: column;
    flex-wrap: wrap;
    text-align: center;
  }

  .about .about-details .left,
  .about-details .right {
    width: 100%;
  }

  .about .left img {
    height: 40vh;
    width: 90%;
    margin: auto;
  }

  .section .button {
    text-align: center;
  }
}
/* Skills section */
.skills {
  background: black;
}
.skills .content {
  padding: 5vh 0;
}
.skills .skills-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 5vh;
}
.skills-details .text {
  width: 50%;
}
.skills-details p {
  color: white;
  text-align: justify;
}
.skills-details .experience {
  display: flex;
  align-items: center;
  margin: 0 1vw;
}
.skills-details .experience .num {
  color: white;
  font-size: 5rem;
}
.skills-details .experience .exp {
  color: white;
  margin-left: 2vw;
  font-size: 1.2rem;
  font-weight: 500;
}
.skills-details .boxes {
  width: 45%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.skills-details .box {
  width: calc(100% / 2 - 2vw);
  margin: 2vh 0;
}
.skills-details .boxes .topic {
  font-size: 1.2rem;
  color: #3498db;
}
.skills-details .boxes .per {
  font-size: 3rem;
  color: #3498db;
}

/* Projects */
.projects .boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3vh;
}
.projects .boxes .box {
  width: calc(100% / 3 - 2vw);
  text-align: center;
  border-radius: 12px;
  padding: 3vh 1vw;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.12);
  color: white;
  transition: all 0.4s ease;
}
.projects .boxes .box:hover {
  background:  rgba(52, 152, 219, 0.1);
  color: #fff;
}
.projects .boxes .box .icon {
  height: 50px;
  width: 50px;
  background: #3498db;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-size: 18px;
  color: #fff;
  margin: 0 auto 1vh auto;
  transition: all 0.4s ease;
}
.boxes .box:hover .icon {
    transform: scale(1.05);
    color: #3498db;
    border: 2px solid #3498db;
    background-color: transparent;
    box-shadow: 0 0 40px #3498db;

}
.projects .boxes .box:hover .topic,
.projects .boxes .box:hover p {
  color: #fff;
}

/* Contact Me */
.contact {
  background: black;
}

.contact .content {
  margin: 0 auto;
  padding: 5vh 0;
}

.contact .text {
  width: 80%;
  text-align: center;
  margin: auto;
  color: white;
}

.contact .button {
  margin-top: 2vh;
  display: flex;
  justify-content: center;
}

.contact .button button {
  padding: 1vh 2vw;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 500;
  background: #3498db;
  color: #fff;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.4s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
  width: auto;
  min-width: 150px;
  box-sizing: border-box;
}

.contact .button button:hover {
    transform: scale(1.05);
    color: #3498db;
    border: 2px solid #3498db;
    background-color: transparent;
    box-shadow: 0 0 40px #3498db;
}

/* Contact info block */
.contact .contact-info {
  margin-top: 30px;
  font-size: 1rem;
  line-height: 2.2;
  color: white;
  display: none;
  transition: all 0.3s ease;
}

.contact .contact-info.show {
  display: block;
}

.contact .contact-info p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0;
  padding: 10px 15px;
  background-color: rgba(52, 152, 219, 0.1);
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.contact .contact-info p:hover {
  background-color: rgba(52, 152, 219, 0.2);
}

.contact .contact-info i {
  color: #3498db;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.contact .contact-info i:hover {
  transform: scale(1.2);
}

.contact .contact-info a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact .contact-info a:hover {
  color: white;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact .contact-info {
    font-size: 0.95rem;
  }

  .contact .contact-info i {
    font-size: 1rem;
  }
}

/* Footer */
footer {
  background: #3498db;
  padding: 2vh 0;
  text-align: center;
}
footer .text span {
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
}
footer .text span a:hover {
  text-decoration: underline;
}

/* Scroll Button */
.scroll-button a {
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: #fff;
  background: #3498db;
  padding: 7px 12px;
  font-size: 18px;
  border-radius: 6px;
  display: none;
}

/* Responsive Media Queries */
@media (max-width: 1000px) {
  .about .about-details {
    justify-content: center;
    flex-direction: column;
  }
  .about-details .left,
  .about-details .right {
    width: 90%;
  }
  .projects .boxes .box {
    width: calc(100% / 2 - 2vw);
  }
}

@media (max-width: 900px) {
  .about .left img {
    height: 35vh;
  }
}

@media (max-width: 968px) {
  nav .logo {
    position: absolute;
    top: 2vh;
    left: 2vw;
    font-size: 1.5rem;
  }

  section .main-container {
    padding-left: 0;
    flex-direction: column;
  }

  .nav-container .links {
    display: none;
  }

  .hamburg,
  .cancel {
    opacity: 1;
    pointer-events: visible;
  }

  .main-container .content {
    margin-top: 2vh;
    width: 80%;
  }

  .main-container .image {
    width: 60%;
    height: 50vh;
  }

  .skills-details {
    flex-direction: column;
  }

  .skills-details .text,
  .skills-details .boxes {
    width: 100%;
  }

  .projects .boxes .box {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .main-container .image {
    width: 80%;
    height: 50vh;
  }

  .main-container .contact {
    width: 80%;
  }

  .main-container button {
    margin-top: 2vh;
  }

  .skills-details .boxes .per {
    font-size: 2.5rem;
  }
}
