html {
  scroll-behavior: smooth;
  scroll-padding-top: 170px;
}

body {
  font-family: 'Anton';
}

.title-section, .introduction-section, .skills-section, .projects-section, .certifications-section, .form-section {
  padding-left: 40px;
  padding-right: 40px;
}

.introduction-section, .skills-section, .projects-section, .certifications-section {
  margin-bottom: 350px;
}

.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: -1000;
  background: linear-gradient(135deg, #2c3e50, #3498db);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  backdrop-filter: blur(5px);
  border-bottom: 1.5px solid #e2b17e;
}

.navbar .container {
  max-width: 1800px;
}

.navbar-nav .nav-item .nav-link {
  font-size: 1.6rem;
  padding: 0;
  color: #dcb184;
  transition: 0.3s color ease;
}

.navbar-nav .nav-item .nav-link:hover {
  color: #fff;
}

.links-list .nav-item i {
  color: #dcb184;
  font-size: 1.7rem;
}

.title-section {
  margin-top: 175px;
  margin-bottom: 350px;
}

.title-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.title-container h1 {
  font-size: 8.5rem;
  color: #dcb184;
  text-shadow: 0 0 2px #000;
  margin: 0;
}

.title-container h2 {
  font-size: 2.2rem;
  color: #fff;
  text-shadow: 0 0 2px #000;
}

.title-container .downward-arrow {
  font-size: 5rem;
  color: #fff;
  border: 2px solid #e2b17e;
  border-radius: 50%;
  padding: 14px 42px 5px 42px;
  margin-top: 175px;
  transition: border 0.5s ease;
  text-decoration: none;
}

.title-container .downward-arrow:hover {
  border-color: #fff;
}

.title-container .downward-arrow i {
  transition: transform 0.7s ease;
}

.title-container .downward-arrow:hover i {
  transform: translateY(13px);
}

.introduction-section .container, .skills-section .container, .projects-section .container, .certifications-section .container {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 60px;
  border-radius: 40px;
}

.profile-container img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 4px #e2b17e;
}

.text-container h2 {
  font-size: 6rem;
  color: #dcb184;
}

.text-container h3 {
  line-height: 1.4;
  font-size: 3rem;
  color: #fff;
}

.hand-wave {
  display: inline-block;
  animation: waveAnimation 2.5s infinite;
}

@keyframes waveAnimation {
  0%, 80%, 100% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.2);
  }
  30%, 50% {
    transform: rotate(10deg);
  }
  40%, 60% {
    transform: rotate(-10deg);
  }
}

.skills-section .skills-container img {
  width: 85px;
  height: auto;
  transition: transform 0.6s ease;
}

.skills-section h3, .projects-section h3, .certifications-section h3 {
  text-align: center;
  color: #dcb184;
  font-size: 4rem;
}

.skills-section .skills-container img:hover {
  transform: translateY(-13px);
}

.projects-section .container {
  max-width: 1700px;
}

.projects-section .project-container h4 {
  text-align: center;
  color: #dcb184;
  font-size: 3rem;
}

.projects-section .project-container h5 {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  text-align: center;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.5;
}

.projects-section .project-container h4::after {
  content: "";
  display: block;
  width: 40%;
  height: 2px;
  background-color: #fff;
  margin: 18px auto 24px auto;
}

.projects-section .project-container .screenshot-container {
  display: block;
  transition: transform 0.4s ease;
}

.projects-section .project-container .screenshot-container img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: none;
  transition: box-shadow 0.4s ease;
}

.projects-section .project-container .screenshot-container img:hover {
  box-shadow: 0 0 4px #fff;
}

.projects-section .project-container .screenshot-container:hover {
  transform: scale(0.96);
}

.certifications-section .container {
  max-width: 1200px;
}

.slider-container {
  position: relative;
}

.certification-slider,
.slick-slide {
  text-align: center;
}

.slick-slide {
  text-align: center !important;
}

.slick-track {
  display: flex !important;
  align-items: center !important;
}

.custom-prev-arrow,
.custom-next-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 90px;
  height: 90px;
  background: transparent;
  border: 2px solid #e2b17e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-prev-arrow {
  padding: 0 4px 4px 0;
  left: 5px;
}

.custom-next-arrow {
  padding: 0 0 4px 4px;
  right: 5px;
}

.custom-prev-arrow:hover,
.custom-next-arrow:hover {
  background-color: rgba(226, 177, 126, 0.4);
  border-color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.custom-prev-arrow i,
.custom-next-arrow i {
  font-size: 60px;
  color: #fff;
  transition: color 0.3s ease;
}

.certification {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  text-align: center !important;
}

.certification img {
  max-width: 675px !important;
  max-height: 600px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 8px;
  margin: 0 auto !important;
  display: block !important;
  cursor: pointer;
  transition: all 0.4s ease;
}

.certification img:hover {
  transform: scale(0.96);
}

.modal {
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
}

.modal-body {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.simple-close-btn {
  position: absolute;
  top: 10px;
  right: -45px;
  color: #333;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s ease;
  font-weight: light;
}

.simple-close-btn:hover {
  background: #fff;
}

#modalCertImage {
  max-width: 85vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.form-container {
  width: 45%;
  max-width: 600px;
  margin: 0 auto 30px;
  padding: 30px;
  border-radius: 6px;
  border: 6px solid #dcb184;
  backdrop-filter: blur(8px);
}

.form-container h2 {
  font-size: 2.5rem;
  color: #dcb184;
  margin-bottom: 25px;
  text-align: left;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  font-size: 1.1rem;
  color: #fff;
  text-align: left;
}

.contact-form input[type="text"], 
.contact-form input[type="email"], 
.contact-form textarea {
  width: 100%;
  padding: 8px;
  border: none;
  border-bottom: 1px solid #dcb184;
  background: transparent;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 15px;
}

.contact-form input[type="text"]:focus, 
.contact-form input[type="email"]:focus, 
.contact-form textarea:focus {
  outline: none;
  border-bottom: 2px solid #dcb184;
}

.contact-form textarea {
  height: 100px;
  resize: none;
}

.contact-form button {
  font-family: 'Anton', sans-serif;
  background-color: #dcb184;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.contact-form button:hover {
  background-color: #b8906b;
}

h6 {
  font-family: 'Poppins';
  font-weight: 300;
  font-size: 1rem;
  color: white;
}

.custom-toggler {
  border: none;
  border-radius: 8px;
  padding: 10px;
  background: rgba(226, 177, 126, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.custom-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(226, 177, 126, 0.4);
  outline: none;
}

.custom-toggler:hover {
  background: rgba(226, 177, 126, 0.2);
  transform: scale(1.05);
}

.custom-toggler-icon {
  display: inline-block;
  width: 1.8em;
  height: 1.5em;
  vertical-align: middle;
  background: none;
  position: relative;
}

.custom-toggler-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background: linear-gradient(45deg, #e2b17e, #fff);
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.custom-toggler:hover .custom-toggler-icon span {
  background: linear-gradient(45deg, #fff, #e2b17e);
  box-shadow: 0 2px 8px rgba(226, 177, 126, 0.4);
}

.mobile-profile-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.mobile-greeting {
  font-size: 3.5rem;
  color: #dcb184;
  text-align: center;
  margin-bottom: 25px;
  order: 1;
}

.mobile-profile-wrapper img {
  order: 2;
}

/* Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  html {
    scroll-padding-top: 100px;
  }

  .title-section, .introduction-section, .skills-section, .projects-section, .certifications-section, .form-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .introduction-section, .skills-section, .projects-section, .certifications-section {
    margin-bottom: 300px;
  }

  .title-section {
    margin-top: 275px;
    margin-bottom: 500px;
  }

   .title-container h1 {
    font-size: 12vw;  /* Scales with screen width */
    white-space: nowrap;  /* Prevents line break */
  }
  
  .title-container h2 {
    font-size: 1.6rem;
  }

  .title-container .downward-arrow {
    font-size: 4rem;
    padding: 8px 20px;
    margin-top: 150px;
    border-width: 2px;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .introduction-section .container, .skills-section .container, .projects-section .container, .certifications-section .container {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .text-container h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
  }

  .text-container h3 {
    font-size: 4.5vw;
    text-wrap: nowrap;
    text-align: center;
    margin-bottom: 15px;
  }

  .profile-container {
    margin-bottom: 30px;
  }

  .profile-container img {
    max-width: 200px;
    margin: 0 auto;
  }

  .skills-section h3, .projects-section h3, .certifications-section h3 {
    font-size: 2.5rem;
    margin-bottom: 30px;
  }

  .skills-container {
    gap: 15px !important;
    justify-content: center !important;
  }

  .skill-icon {
    width: 60px !important;
  }

  .projects-section .project-container {
    gap: 20px !important;
  }

  .projects-section .project-container h4 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .projects-section .project-container h5 {
    font-size: 1rem;
    line-height: 1.4;
  }

  .custom-prev-arrow,
  .custom-next-arrow {
    width: 40px;
    height: 40px;
    top: 45%;
  }

  .custom-prev-arrow {
    left: -10px;
  }

  .custom-next-arrow {
    right: -10px;
  }

  .custom-prev-arrow i,
  .custom-next-arrow i {
    font-size: 25px;
  }

  .certification img {
    max-width: 100% !important;
    max-height: 450px !important;
    margin: 0 30px !important;
  }

  .slider-container {
    padding: 0 40px;
  }

  .form-container {
    width: 95%;
    padding: 20px;
    border-width: 3px;
  }

  .form-container h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
  }

  .contact-form {
    gap: 12px;
  }

  .contact-form label {
    font-size: 1rem;
  }

  .contact-form input[type="text"], 
  .contact-form input[type="email"], 
  .contact-form textarea {
    padding: 10px;
    font-size: 0.95rem;
  }

  .contact-form button {
    align-self: center;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
  }

  h6 {
    font-size: 1rem;
    padding: 15px 0;
  }

  .simple-close-btn {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  #modalCertImage {
    max-width: 95vw;
    max-height: 85vh;
  }

  .navbar-nav .nav-item .nav-link {
    color: #fff !important;
    font-size: 1.2rem;
    padding: 10px 0;
  }

  .navbar-nav .nav-item .nav-link:hover {
    color: #dcb184 !important;
  }

  .links-list {
    margin-top: 20px;
    border-top: 1px solid #e2b17e;
    padding-top: 20px;
  }

  .links-list .nav-item {
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .links-list .nav-item i {
    color: #fff;
    padding-left: 0 !important;
    font-size: 1.2rem;
  }

  .links-list .nav-item:hover i {
    color: #dcb184;
  }
}

/* Medium devices (tablets, 576px to 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .title-section, .introduction-section, .skills-section, .projects-section, .certifications-section, .form-section {
    padding-left: 25px;
    padding-right: 25px;
  }

  .introduction-section, .skills-section, .projects-section, .certifications-section {
    margin-bottom: 150px;
  }

  .title-container h1 {
    font-size: 3rem;
  }

  .title-container h2 {
    font-size: 1.8rem;
  }

  .title-container .downward-arrow {
    font-size: 5rem;
    padding: 10px 30px;
    margin-top: 200px;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .introduction-section .container, .skills-section .container, .projects-section .container, .certifications-section .container {
    padding: 40px 30px;
    border-radius: 30px;
  }

  .text-container h2 {
    font-size: 3rem;
    text-align: center;
  }

  .text-container h3 {
    font-size: 2.5rem;
    text-align: center;
  }

  .profile-container img {
    max-width: 250px;
  }

  .skills-section h3, .projects-section h3, .certifications-section h3 {
    font-size: 3rem;
  }

  .skill-icon {
    width: 80px !important;
  }

  .projects-section .project-container h4 {
    font-size: 2.2rem;
  }

  .projects-section .project-container h5 {
    font-size: 1.1rem;
  }

  .custom-prev-arrow,
  .custom-next-arrow {
    width: 55px;
    height: 55px;
    top: 45%;
  }

  .custom-prev-arrow {
    left: -20px;
  }

  .custom-next-arrow {
    right: -20px;
  }

  .custom-prev-arrow i,
  .custom-next-arrow i {
    font-size: 25px;
  }

  .certification img {
    max-width: 100% !important;
    max-height: 450px !important;
    margin: 0 30px !important;
  }

  .slider-container {
    padding: 0 40px;
  }

  .form-container {
    width: 80%;
    padding: 25px;
  }

  .form-container h2 {
    font-size: 2rem;
  }

  #modalCertImage {
    max-width: 95vw;
    max-height: 90vh;
  }

  .navbar-nav .nav-item .nav-link {
    color: #fff !important;
    font-size: 1.2rem;
    padding: 10px 0;
  }

  .navbar-nav .nav-item .nav-link:hover {
    color: #dcb184 !important;
  }

  .links-list {
    margin-top: 20px;
    border-top: 1px solid #e2b17e;
    padding-top: 20px;
  }

  .links-list .nav-item {
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .links-list .nav-item i {
    color: #fff;
    padding-left: 0 !important;
    font-size: 1.2rem;
  }

  .links-list .nav-item:hover i {
    color: #dcb184;
  }
}

/* Large devices (small laptops, 768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .title-section, .introduction-section, .skills-section, .projects-section, .certifications-section, .form-section {
    padding-left: 30px;
    padding-right: 30px;
  }

  .introduction-section, .skills-section, .projects-section, .certifications-section {
    margin-bottom: 200px;
  }

  .title-container h1 {
    font-size: 6rem;
  }

  .title-container h2 {
    font-size: 3rem;
  }

  .text-container h2 {
    font-size: 5.4rem;
  }

  .text-container h3 {
    font-size: 2.3rem;
  }

  .skills-section h3, .projects-section h3, .certifications-section h3 {
    font-size: 3.5rem;
  }

  .skill-icon {
    width: 90px !important;
  }

  .projects-section .project-container h4 {
    font-size: 2.5rem;
  }

  .form-container {
    width: 65%;
  }

  .custom-prev-arrow,
  .custom-next-arrow {
    width: 60px;
    height: 60px;
  }

  .custom-prev-arrow {
    left: -35px;
  }

  .custom-next-arrow {
    right: -35px;
  }

  .custom-prev-arrow i,
  .custom-next-arrow i {
    font-size: 40px;
  }

  .certification img {
    max-width: 600px !important;
    max-height: 500px !important;
  }

  .slider-container {
    padding: 0 10px;
  }
}

/* Extra large devices (large laptops and desktops, 992px to 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .title-container h1 {
    font-size: 8rem;
  }

  .text-container h2 {
    font-size: 4rem;
  }

  .text-container h3 {
    font-size: 2.2rem;
  }

  .skill-icon {
    width: 100px !important;
  }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  .title-section {
    margin-top: 100px;
    margin-bottom: 60px;
  }

  .title-container h1 {
    font-size: 2rem;
  }

  .title-container h2 {
    font-size: 1.5rem;
  }

  .title-container .downward-arrow {
    font-size: 2rem;
    padding: 5px 15px;
    margin-top: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .introduction-section, .skills-section, .projects-section, .certifications-section {
    margin-bottom: 60px;
  }

  .text-container h2 {
    font-size: 2.5rem;
  }

  .text-container h3 {
    font-size: 1.5rem;
  }
}