section {
  flex: 1 0 auto;
  position: relative;
  width: 100%;
  -webkit-transition: all 0.5s ease-in;
  -o-transition: all 0.5s ease-in;
  transition: all 0.5s ease-in;
}

.who_am_I {
  font-family: Cinzel;
}

.has-first-color {
  color: var(--primary-color);
}

.btn-portfolio {
  background: var(--primary-color);
  border-radius: 0;
}

.btn-portfolio a {
  color: #000;
  text-decoration: none;
}

.btn-about a {
  color: var(--text-color);
  text-decoration: none;
}

.intro_sec {
  height: calc(100vh - 60px);
  min-height: 700px;
  height: 100vh;
  margin-top: 0;
}

/* Mobile-first responsive styles */
@media (max-width: 991.98px) {
  .intro_sec {
    display: flex;
    flex-direction: column;
    height: auto !important;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
  }

  .intro_sec .text,
  .intro_sec .h_bg-image {
    width: 100%;
    margin: 0 auto;
  }

  .intro_sec .text h1 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-top: 10px;
    padding-bottom: 20px;
  }

  .intro_sec .text h3 {
    font-size: 14px;
  }

  .intro_sec .h_bg-image {
    display: none !important;
  }

  .intro_sec .mobile-image {
    width: 250px;
    height: 250px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: transparent;
    border: 3px solid var(--secondary-color);
    display: block;
  }

  .intro_btn-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 0;
  }

  .intro_btn-action .buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
  }

  .ac_btn {
    padding: 12px 24px;
    margin: 0;
    width: 200px;
    text-align: center;
  }

  .intro_sec .intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
  }

  .intro_sec .text p {
    text-align: center;
    max-width: 90%;
    margin: 0 auto 20px;
  }

  .social-icons {
    justify-content: center;
    margin-bottom: 20px;
  }
}

/* Extra small devices (phones, 600px and down) */
@media (max-width: 600px) {
  .intro_sec .text h1 {
    font-size: 22px;
  }

  .intro_sec .h_bg-image {
    min-height: 300px;
  }

  .btn-portfolio,
  .btn-about {
    font-size: 14px;
    padding: 10px 20px;
  }

  .ac_btn {
    width: 180px; /* Slightly smaller on very small screens */
    padding: 10px 20px;
  }
}

.intro_sec .text,
.intro_sec .h_bg-image {
  width: 50%;
}

@media (max-width: 991.98px) {
  .intro_sec .text,
  .intro_sec .h_bg-image {
    width: 100%;
  }
}

.intro_sec .intro {
  max-width: 450px;
  margin: 0 auto;
}

@media (max-width: 991.98px) {
  .intro_sec .intro {
    max-width: 700px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

.intro_sec .intro .feature .wrap-icon {
  background: 0 0 !important;
  width: auto;
  height: auto;
  margin-bottom: 0;
}

.intro_sec .intro .feature .wrap-icon svg {
  color: #5cccc9;
}

.intro_sec .text h1 {
  font-size: 30px;
  margin-bottom: 50px;
  font-weight: 700;
}

.intro_sec .text h3 {
  font-size: 16px;
  font-weight: 700;
}

.intro_sec .h_bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 700px;
  position: relative;
  max-width: 600px;
  max-height: 600px;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background-color: transparent;
  border: 0.5px solid var(--secondary-color);
  display: block;
}

.ac_btn {
  padding: 4px 19px;
  color: var(--secondary-color);
  position: relative;
  border: var(--secondary-color) 2px solid;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.55, 0, 0.1, 1);
  cursor: pointer;
  border-radius: 0;
  margin-right: 20px;
}

.ac_btn a {
  text-decoration: none;
}

.ac_btn:hover {
  box-shadow: 8px 8px 0px var(--text-color), -8px -8px 0px var(--text-color);
}

.ac_btn:hover .one {
  opacity: 1;
  transform: translate3d(0px, 0px, 0px);
}

.ac_btn:hover .two {
  transform: translate3d(0px, 0px, 0px);
}

.ac_btn:hover .three {
  transform: translate3d(0px, 0px, 0px);
}

.ac_btn:hover .four {
  transform: translate3d(0px, 0px, 0px);
}

.ac_btn .ring {
  width: 100%;
  height: 100%;
  position: absolute;
  background: transparent;
  top: 0;
  left: 0;
  transform: translate3d(0px, 90px, 0px);
}

.ac_btn .one {
  background-color: #000;
  transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -3;
  z-index: -4;
}

.ac_btn .two {
  background-color: var(--primary-color);
  transition: all 0.5s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -3;
}

.ac_btn .three {
  background-color: var(--secondary-color);
  z-index: -2;
  transition: all 0.7s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -3;
}

#button_p {
  background: var(--secondary-color);
  color: var(--primary-color);
}

#button_h:hover {
  color: var(--primary-color);
}

.intro_sec .h_bg-image .resume-icon {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  color: var(--text-color);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.intro_sec .h_bg-image .resume-icon:hover {
  transform: scale(1.1);
}

@media (max-width: 991.98px) {
  .intro_sec .h_bg-image .resume-icon {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
  }
}

.intro_sec .mobile-image {
  width: 250px;
  height: 250px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background-color: transparent;
  border: 3px solid var(--secondary-color);
  display: block;
}

/* Desktop styles */
@media (min-width: 992px) {
  .intro_sec .mobile-image {
    display: none !important;
  }

  .intro_sec .h_bg-image {
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 700px;
    position: relative;
    max-width: 600px;
    max-height: 600px;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: transparent;
    border: 0.5px solid var(--secondary-color);
  }

  .intro_btn-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    padding: 0;
  }

  .intro_btn-action .buttons-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .ac_btn {
    margin-right: 0; /* Remove default right margin */
  }
}

.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  margin: 0;
}

.social-icons .icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(var(--bg-color-rgb, 0, 0, 0), 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icons .icon-link:hover {
  background: rgba(var(--primary-color-rgb, 255, 1, 79), 0.1);
  transform: translateY(-2px);
}

.social-icons .icon-link svg {
  width: 18px;
  height: 18px;
  fill: var(--text-color);
  opacity: 0.8;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icons .icon-link:hover svg {
  opacity: 1;
  fill: var(--primary-color, #ff014f);
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
  .social-icons {
    justify-content: center;
  }
}
