* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

section {
  margin-top: 5rem;
  padding-bottom: 2rem;
}

body {
  background: linear-gradient(
    to right,
    rgb(5, 1, 18),
    rgb(13, 25, 66),
    rgb(9, 14, 38)
  );
  flex-wrap: wrap;
  overflow-x: hidden;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 28px;
  height: 22px;
  cursor: pointer;
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #ff9900;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Base nav styles */
/* nav {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
  font-size: x-large;
  flex-wrap: wrap;
  width: 100%;
} */

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  #main-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    background: linear-gradient(to right, rgb(4, 2, 11), rgb(4, 7, 18));
    padding: 1rem 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    position: static;
  }

  #main-nav.active {
    display: flex;
  }

  .nav-item {
    width: 100%;
    padding: 0.8rem 0;
    font-size: 1rem;
  }

  .nav-bar {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0;
  }

  .welcome-header {
    margin-top: 1rem;
    padding: 1rem;
  }
}

.nav-bar {
  background: linear-gradient(to right, rgb(31, 33, 33), rgb(34, 35, 36));
  border-radius: 3px;
  border-top: 2px solid #756f6c;
  padding: 1rem 0;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 9px rgba(152, 146, 146, 0.3);
}
@media (max-width: 768px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    justify-content: center;
    gap: 1rem;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 2rem;
    padding-right: 3rem;
  }

  .nav-item {
    font-size: 1rem;
    padding: 0.6rem 0;
  }
}

nav {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
  font-size: x-large;
}

.logo {
  position: absolute;
  left: 3rem;
}

.logo img {
  height: 60px;
  width: 80px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(143, 139, 139, 0.2);
}

@media (max-width: 768px) {
  .welcome-header {
    padding-top: 100px;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 2rem;
    padding-right: 3rem;
  }

  .logo {
    position: static;
    margin-bottom: 0;
  }

  .nav-item {
    padding: 0.5rem 0;
    font-size: large;
  }
}

.nav-item:last-child {
  margin-right: 2rem;
}

.nav-item {
  position: relative;
  color: #eee3e3;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem;
  display: inline-block;
}

.nav-item:hover {
  color: #ed962a;
  text-shadow: 0 0 0.3px #d93903;
  transform: scale(1.05);
}

.nav-item::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #e4592a;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.4s ease;
  border-radius: 5px;
}

.nav-item:hover::after {
  width: 100%;
}

p {
  margin-top: 100px;
}

#nav-item {
  color: #7a7827;
}

.welcome-header {
  padding: 5rem 0 2rem;
  text-align: left;
  border-radius: 10px;
  margin-top: 2rem;

  text-align: center;
  box-shadow: 0 0 12px rgba(218, 157, 6, 0.3);
  background: linear-gradient(
    to right,
    rgb(2, 1, 21),
    rgb(35, 35, 37),
    rgb(9, 14, 38)
  );
}
@media (max-width: 768px) {
  .welcome-header {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.welcome-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 2rem;
}

@media (max-width: 768px) {
  .welcome-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .welcome-banner,
  .welcome-image {
    width: 100%;
  }

  .welcome-banner h2 {
    font-size: 1.6rem;
  }

  .highlight {
    font-size: 2rem;
  }
}

.welcome-banner {
  flex: 1;
  text-align: left;
  color: #fff;
}

.welcome-banner h2 {
  font-size: 2rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 900;
  background: linear-gradient(90deg, #ffd700, #ff7f50);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 5px rgba(191, 11, 11, 0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: welcomeFadeIn 1.8s ease-out forwards;
}

.highlight {
  font-size: 3rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 900;
  background: linear-gradient(90deg, #7eb9ae, #86c0cd);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 5px rgba(22, 22, 22, 0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: welcomeFadeIn 1.8s ease-out forwards;
}

@keyframes welcomeFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.welcome-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .welcome-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 0;
  }

  .welcome-image img {
    max-width: 90vw;
    width: 250px;
    height: 250px;
  }
}

.welcome-image img {
  width: 330px;
  height: 330px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid transparent;
  background-origin: border-box;
  background-clip: content-box, border-box;
  box-shadow: 0 0 1px rgba(64, 21, 1, 0.903);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.welcome-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(235, 208, 201, 0.5);
}

h1 {
  font-size: 2rem;
  font-weight: 900;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background: linear-gradient(90deg, #d5d34f, #ca6543);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
  text-align: center;
  margin: 2rem auto;
  padding: 0.5rem 1rem;
}

@keyframes subtitleFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text {
  word-wrap: normal;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
  font-size: 20px;
  text-align: justify;
  color: #f4e8d7;
}

.text:hover {
  color: #b2caed;
  transition: color 0.3s ease;
}

.button-container {
  text-align: center;
  margin: rem 0;
}

.btn-primary {
  background: linear-gradient(45deg, #c4c238, #bc5d3d);
  color: white;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(145, 68, 43, 0.6);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(45deg, #082a55, #215b6a);
  box-shadow: 0 6px 20px rgba(222, 103, 17, 0.9);
  transform: scale(1.05);
}
#my-portfolio,
.contact-me,
.skills-section {
  border-radius: 10px;
  margin: 0.1rem;
  margin-top: 2rem;
  padding: 2rem;
  text-align: center;
  text-wrap: wrap;
  box-shadow: 0 0 12px rgba(218, 157, 6, 0.3);
  background: linear-gradient(
    to right,
    rgb(2, 1, 21),
    rgb(35, 35, 37),
    rgb(9, 14, 38)
  );
}
#about-me {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  margin: 2rem auto;
  border-radius: 12px;
  max-width: 900px;
  background: linear-gradient(
    to right,
    rgb(2, 1, 21),
    rgb(35, 35, 37),
    rgb(9, 14, 38)
  );
  box-shadow: 0 0 12px rgba(218, 157, 6, 0.3);
  text-align: center;
}

#about-me h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #d5d34f, #ca6543);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.aboutme-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(250, 209, 10, 0.2);
  margin: 1.5rem 0; /* spacing above and below image */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aboutme-image:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(235, 208, 201, 0.3);
}

#about-me .text {
  max-width: 800px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #f4e8d7;
  text-align: justify;
  padding: 0 1rem;
}

#about-me .text:hover {
  color: #b2caed;
  transition: color 0.3s ease;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.social-links {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.contact-info {
  text-align: center;
  margin-top: 1rem;
}

.phone {
  font-size: x-large;
  color: rgb(235, 226, 226);
  margin: 0.5rem 0;
}

.skills-section {
  max-width: 100%;
  overflow-x: auto;
  padding: 2rem 1rem;
}

.skills-container {
  display: flex;
  gap: 3rem;
  justify-content: flex-start;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  padding-bottom: 1rem;
  width: 100%;
  flex-wrap: nowrap;
  scroll-behavior: smooth;
}

.skills-container::-webkit-scrollbar {
  display: none;
  height: 8px;
}

.skills-container::-webkit-scrollbar-track {
  background: transparent;
}

.skills-container::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}
.skill * {
  max-width: 100%;
  overflow: hidden;
}

.skill {
  flex: 0 0 auto;
  width: 140px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  color: white;
  scroll-snap-align: center;
  transition: transform 0.3s ease;
}

.skill:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 191, 0, 0.3);
}
.circle-container {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto;
}

.circle-container svg {
  width: 100%;
  height: 100%;
}

.circle-container img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.percentage {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: #0db1e6;
}

.label {
  margin-top: 0.2rem;
  font-size: 1rem;
  color: #ddd;
}

#email {
  color: rgb(224, 235, 217);
  text-decoration: none;
  font-size: 1.1rem;
  text-wrap: wrap;
}

#email:hover {
  text-transform: none;
  font-size: larger;
}

.social-icon {
  font-size: 1.8rem;
  padding: 0.6rem;
  border-radius: 25%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 45px;
  height: 45px;
}

.fb {
  background-color: #0f73f7;
  text-decoration: none;
}

.li {
  background-color: #0077b5;
  text-decoration: none;
}

.social-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.action-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.header-icon {
  font-size: 1 rem;
  color: white;
  width: 30px;
  height: 30px;
  background-color: #2a2a2a;
  padding: 0.6rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px #e4e3e1;
}

.fb {
  background-color: #0f73f7;
  text-decoration: none;
}

.li {
  background-color: #0077b5;
  text-decoration: none;
}

.contact-section-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.contact-subtitle {
  color: aliceblue;
  font-size: large;
  font-weight: 100;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
}

/* .contact-form {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-shadow: 0 0 15px rgba(243, 207, 6, 0.1);
} */

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.form-group label {
  margin-bottom: 0.5rem;
  color: #f3ebeb;
  font-weight: 600;
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #b2b6ba;
  color: #100322;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.1);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 8px rgba(255, 183, 0, 0.7);
}

.contact-form button.btn-primary {
  display: block;
  margin: 1rem auto;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  width: auto;
  text-align: center;
  box-sizing: border-box;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #010100;
  opacity: 0.8;
  font-style: italic;
  text-wrap: wrap;
}
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }

  .form-group {
    width: 100%;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
  }

  .footer .home-icon {
    position: static;
    margin-top: 0.5rem;
  }
  @media (max-width: 768px) {
    .portfolio-container {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 auto !important;
      padding: 0 1rem !important;
      overflow-x: hidden !important;
      box-sizing: border-box;
    }

    .portfolio-grid {
      display: block !important;
      margin: 0 !important;
      padding: 0 !important;
      gap: 0 !important;
    }

    .project-block {
      width: 100% !important;
      margin: 0 0 1.5rem 0 !important;
      padding: 1rem !important;
      box-sizing: border-box;
    }
  }
}
#my-portfolio .carousel {
  position: relative;
  overflow-x: hidden;
  border-radius: 10px;
  max-width: 100%;
  width: 100%;
  max-width: 100%;
  height: auto;
}

#my-portfolio .slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  flex-wrap: nowrap;
  overflow-x: hidden;
  padding-bottom: 0.5rem;
  margin: 0;
  height: auto;
}

#my-portfolio .slides img {
  flex-shrink: 0;
  width: auto;
  max-width: 100%;
  height: auto !important;
  max-height: 240px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 10px;
  display: block;
  margin-left: 0;
}

#my-portfolio .carousel img {
  height: 400px;
  width: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}
#my-portfolio .carousel img:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.portfolio-container {
  max-width: 1100px;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 2rem;
}

/* @media (max-width: 768px) {
  #my-portfolio .slides img {
    width: 100% !important;
    height: auto !important;
    max-height: none;
    margin-right: 0;
    margin-bottom: 1rem;
  }
} */

.project-block {
  padding: 1rem;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 1 0 10px rgba(139, 109, 2, 0.1);
  transition: transform 0.3s ease;
}

.project-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 7px 10px rgb(181, 119, 5);
}
@media (max-width: 768px) {
  .project-block {
    margin-left: 0;
    margin-right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
    box-sizing: border-box;
  }
}

.portfolio-grid {
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
  gap: 1rem;

  .portfolio-container {
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
}

.project-title {
  color: #58cce3;
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: auto;
  overflow: hidden;
}

.slides img {
  min-width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 8px;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(229, 226, 226, 0.2);
  color: #b5afaf;
  border: none;
  font-size: 2rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 1;
  border-radius: 50%;
}

.carousel button:hover {
  background: rgba(78, 85, 87, 0.4);
}

.carousel .prev {
  left: 10px;
}

.carousel .next {
  right: 10px;
}

@media (max-width: 600px) {
  .project-title {
    font-size: 1.2rem;
  }

  .carousel button {
    font-size: 1.5rem;
  }

  .slides img {
    max-height: 200px;
  }
}

.footer {
  background-color: #10110f;
  color: #daf5fb;
  text-align: center;
  padding: 1rem 0rem;
  font-size: 1rem;
  margin-top: 3rem;
  border-top: 2px solid #d78028;
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.footer .home-icon {
  position: absolute;
  font-size: 1.2rem;
  color: #daf5fb;
  text-decoration: none;
}

.footer .home-icon:hover {
  color: #d78028;
}
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}
