body {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  padding-top: 76px;
}

html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

.dark-mode .main-nav {
  background-color: #1e1e1e;
}

.dark-mode .main-navbar {
  background-color: #1e1e1e;
}

.dark-mode .main-nav a {
  color: #ffffff;
}

.dark-mode .social-icons i {
  color: #fff;
}

#darkModeToggleIcon {
  cursor: pointer;
  color: #333; /* light mode default */
  transition: color 0.3s ease;
}

.dark-mode #darkModeToggleIcon {
  color: #fff;
}

.main-container {
  width: 1227px;
  margin: 0 auto;
}

.bold-text {
  font-weight: 700;
}

.main-navbar {
  position: fixed;
  top: 0;
  width: 100%;
  left: 0;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  font-size: x-large;
  height: 76px;
  margin: auto;
  align-items: center;
  gap: 20px;
  max-width: 1227px;
  background-color: white;
}

/* Hamburger button hidden on desktop */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
}

.main-nav-page-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-nav-links {
  margin: 0;
}

.main-nav-links li {
  display: inline;
  padding: 0px 20px;
}

.main-nav-links li a {
  color: #222;
  text-decoration: none;
}

.main-nav-links li a {
  position: relative;
  transition: color 0.3s ease;
}

.main-nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: rgb(151, 111, 59);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.main-nav-links li a:hover {
  background: linear-gradient(to right, rgb(151, 111, 59), rgb(202, 177, 145));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  cursor: pointer;
}

.main-nav-links li a:hover::after {
  width: 100%;
}

.main-nav-logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-section {
  font-size: 36px;
  margin-top: 15%;
  display: flex;
  justify-content: space-between;
  min-height: 100vh;
}

.gradient-text {
  background: linear-gradient(to right, rgb(151, 111, 59), rgb(202, 177, 145));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.connect-btn,
.github-btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  background-color: rgb(203, 183, 157);
  text-align: center;
  vertical-align: middle;
  user-select: none;
  font-size: 1rem;
  text-decoration: none;
  border-width: 1px;
  border-style: solid;
  border-color: transparent;
  border-image: initial;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  width: 87px;
}

.connect-btn:hover,
.github-btn:hover {
  box-shadow: inset;
  color: rgb(151, 111, 59);
  border-color: rgb(151, 111, 59);
  background-color: transparent;
}

.landing-section-right-img-container {
  width: 500px;
  height: 500px;
  background-color: rgb(203, 183, 157);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  overflow: hidden;
  position: relative;
}

.landing-section-right-img-container img {
  position: absolute;
  bottom: 0%;
  margin-left: 40px;
}

.social-icons {
  margin-top: 32px;
  font-size: 1rem;
}

.social-icons a {
  color: black;
  margin-right: 12px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
}

.about-section-contents {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin: 20px;
}

.about-section h2 {
  padding-bottom: 30px;
  padding-top: 50px;
  text-align: center;
  font-size: 2rem;
}

.about-section-right {
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  text-align: left;
  padding: 20px 40px;
  overflow: hidden;
  max-width: 50%;
  background-color: #fff;
  height: 100%;
  border: solid 1px rgb(155, 154, 154);
  border-radius: 20px;
  height: 523px;
}
.about-section-right:hover {
  box-shadow: 0 0 20px rgba(151, 111, 59, 0.5);
  transform: translateY(-2px);
}
.dark-mode .about-section-right {
  background-color: #222;
}

.about-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.about-section-left {
  margin: auto;
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-me-highlights {
  background-color: #fff;
  padding: 20px;
  border: solid 1px rgb(155, 154, 154);
  border-radius: 10px;
  text-align: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.about-me-highlights:hover {
  box-shadow: 0 0 20px rgba(151, 111, 59, 0.5);
  transform: translateY(-2px);
}

.dark-mode .about-me-highlights {
  background-color: #222;
}

.about-me-highlights div {
  align-content: center;
  font-weight: 700;
  margin: 0 auto;
}

.about-me-highlights div:nth-child(2){
  max-width: 450px;
}

.about-me-highlights div span {
  font-size: small;
  font-weight: 100;
}

.about-me-highlights i {
  background: linear-gradient(rgb(151, 111, 59), rgb(202, 177, 145));
  border-radius: 10px;
  width: 20px;
  padding: 10px 10px;
  float: left;
}

.skills-section h2,
.work-section h2,
.contact-section h2 {
  margin-bottom: 50px;
  text-align: center;
  font-size: 2rem;
}

.skills-section h3 {
  margin-bottom: 30px;
  font-size: 1.5em;
}

.skills-subheader,
.work-subheader,
.contact-section-subheader {
  font-size: 1rem;
  font-weight: 100;
}

.skills-section-content {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.skills-section {
  padding: 20px;
  font-family: "Montserrat", sans-serif;
}

.skills-section-left,
.skills-section-mid,
.skills-section-right {
  background-color: #fff;
  border: solid 1px rgb(155, 154, 154);
  border-radius: 10px;
  width: 100%;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* For dark mode */
body.dark-mode .skills-section-left,
body.dark-mode .skills-section-mid,
body.dark-mode .skills-section-right {
  background-color: #1e1e1e;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

/* Glow effect on hover */
.skills-section-left:hover,
.skills-section-mid:hover,
.skills-section-right:hover {
  box-shadow: 0 0 20px rgba(151, 111, 59, 0.5);
  transform: translateY(-2px);
}

.skills-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
}

.skills-list li {
  margin-bottom: 24px;
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
}

.skills-list li img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 10px;
}

.bar-container {
  background-color: #e0e0e0;
  border-radius: 8px;
  height: 16px;
  width: 100%;
  margin-top: 8px;
  overflow: hidden;
}

.bar-fill {
  background: linear-gradient(to right, rgb(151, 111, 59), rgb(202, 177, 145));
  height: 100%;
  width: 50%;
  border-radius: 8px 0 0 8px;
  transition: width 0.5s ease, background 0.3s ease;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
}

.skill-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.skill-percentage {
  color: #999;
  font-size: 0.9em;
}

.skill-section-content2 h3 {
  margin-top: 50px;
  text-align: center;
  margin-bottom: 40px;
}

.skill-section-content2 ul {
  display: flex;
  text-decoration: none;
  list-style: none;
  gap: 20px;
  padding-left: 0;
  margin-left: 0;
}

.skill-section-content2-li {
  border: solid 1px rgb(189, 188, 188);
  border-radius: 10px;
  padding: 10px;
  background-color: #fff;
}
body.dark-mode .skill-section-content2-li {
  background-color: rgb(30, 30, 30);
  border: solid 1px #747373;
}
.skill-section-content2-li:hover {
  border-radius: 10px;
  padding: 10px;
  background: linear-gradient(to right, rgb(202, 177, 145), rgb(151, 111, 59));
  transform: translateY(-2px);
}

.skill-section-content2 a {
  color: inherit;
  text-decoration: none;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: auto;
  align-items: center;
}

.skill-section-content2 img {
  width: 40px;
}

.scroll-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.scroll-list {
  display: flex;
  gap: 40px;
  animation: scroll-left 20s linear infinite;
  list-style: none;
  padding: 0;
  margin: 0;
}

.scroll-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.scroll-list img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* WORK SECTION */
.work-section-contents {
  margin: 10px 0px;
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 20px 0px;
}

.image-cycle {
  position: relative;
  width: 560px;
  height: 270px;
  overflow: hidden;
  border-radius: 0px !important;
  padding: 0px !important;
  border: none !important;
}

.image-cycle img {
  position: absolute;
  top: 0;
  left: 0;
  width: 560px;
  height: 270px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* First image is visible by default */
.image-cycle img:first-child {
  opacity: 1;
}

/* Trigger animation on hover */
.image-cycle:hover img {
  animation: cycleImages 6s infinite;
}

/* Delay each image in the cycle */
.image-cycle:hover img:nth-child(2) {
  animation-delay: 2s;
}

.image-cycle:hover img:nth-child(3) {
  animation-delay: 4s;
}

/* Smooth cycling without gaps */
@keyframes cycleImages {
  0%,
  32% {
    opacity: 1;
  }

  33%,
  100% {
    opacity: 0;
  }
}

.work-section-contents div {
  /* Overlapping with img-cycle */
  border: solid 1px rgb(155, 154, 154);
  border-radius: 10px;
  padding: 20px;
  max-width: 570px !important;
}

.work-section-contents div a {
  color: #000000;
  text-decoration: none;
}

.dark-mode .work-section-project-name {
  color: #bebdbd;
}

.work-section-contents div span {
  font-size: 14px;
  font-weight: 400;
  color: #bfc1c7;
}

.work-section-contents div link {
  font-size: 13px;
  font-weight: 600;
}

.work-section h4 {
  font-size: 24px;
}

/* Contact section styling */
.contact-section {
  position: relative;
  padding: 30px 20px;
  font-family: "Montserrat", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: solid 1px gray;
  border-radius: 10px;
  padding: 50px 20px;
  padding-left: 0;
  padding-right: 0;
}

.contact-form .form-group {
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  background-color: rgb(203, 183, 157);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 16px;
  color: black;
  font-family: inherit;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  width: 80%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: white;
  outline: none;
}

.contact-form button {
  padding: 14px;
  background-color: black;
  color: rgb(204, 203, 203);
  border: solid 0.5px rgba(255, 255, 255, 0.2);
  font-weight: 500;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  transition: color 0.3s ease;
  margin: 0 auto;
}

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

.contact-section-contents {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.form-left {
  width: 506px;
}

.form-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.form-right p {
  border: solid 1px gray;
  border-radius: 10px;
  padding: 20px;
  background: linear-gradient(rgb(203, 183, 157), rgb(202, 177, 145));
}
.form-right p:hover {
  box-shadow: 0 0 20px rgba(151, 111, 59, 0.5);
  transform: translateY(-2px);
}

.form-right span {
  font-size: 0.8rem;
  color: rgb(236, 235, 235);
}

.dark-mode .form-right span {
  color: #333;
}

/* styles for small mobile screens */
@media (max-width: 425px) {
  body {
    padding: 0px !important;
    width: 425px;
  }

  img {
    max-width: 380px;
  }

  .main-navbar {
    width: 425px;
  }

  .main-container {
    width: 425px;
    margin: 0 auto;
    padding: 0px !important;
  }

  .landing-section {
    flex-direction: column;
    align-items: center;
  }

  .landing-section-right-img-container {
    margin-top: 20px;
    max-width: 380px;
    max-height: 380px;
  }

  .about-section-contents {
    flex-direction: column;
    align-items: center;
    width: 415px;
    margin: 5px;
  }

  .about-section-left {
    width: 90%;
    margin: 0 auto;
  }

  .about-section-right {
    padding: 0px 20px;
    max-width: 80%;
    height: fit-content;
  }

  .skills-section {
    width: inherit !important;
    padding: 0px;
  }

  .skills-section-content {
    flex-direction: column;
    align-items: center;
  }

  .skills-section-left,
  .skills-section-mid,
  .skills-section-right {
    width: 350px;
    padding: 10px;
  }

  .work-section {
    width: inherit !important;
    margin: 0px !important;
  }

  .work-section h2 {
    margin-bottom: 0px;
  }

  .work-section-contents {
    flex-direction: column;
    align-items: center;
    gap: 5px !important;
    padding-bottom: 0px;
    margin-top: 0px;
    margin: 0 auto;
  }

  .work-section-contents p {
    width: 380px !important;
  }

  .work-section-contents div {
    width: 380px !important;
    padding: 10px;
  }

  .work-section-contents div a {
    display: flex;
    margin: 0 auto;
  }

  .work-section hr {
    display: none;
  }

  .image-cycle {
    max-height: 270px;
  }

  .github-btn {
    color: #373737 !important;
    margin-top: 30px !important;
  }

  .contact-section {
    margin: 0 auto;
    width: 400px !important;
  }

  .contact-section-contents {
    flex-direction: column;
  }

  .contact-form {
    margin: 0 auto;
  }

  .form-left,
  .form-right {
    width: 400px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    color: #222;
  }

  .dark-mode .menu-toggle i {
    color: #fff;
  }

  .main-nav {
    flex-wrap: wrap;
    height: auto;
    padding: 10px;
  }

  .main-nav-page-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: white;
    padding-top: 10px;
  }

  .main-nav-page-links.open {
    display: block;
  }

  .main-nav-links {
    flex-direction: column;
    width: 100%;
    padding: 0;
  }

  .main-nav-links li {
    display: block;
    text-align: center;
    padding: 10px 0;
  }

  .dark-mode .main-nav-page-links {
    background-color: #333;
  }

  #darkModeToggle {
    text-align: center;
    margin: 10px 0;
  }

  .main-nav-links li a {
    color: #222;
  }

  /* Dark mode */
  .dark-mode .main-nav-links li a {
    color: #fff;
  }

  .dark-mode .main-nav-links li a:hover {
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  body {
    padding: 0px 20px;
  }

  .landing-section {
    min-height: 400px;
  }

  .about-section {
    margin: 0px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
  }

  .about-section-contents {
    gap: 50px !important;
  }

  .skills-section {
    width: 95%;
  }

  .work-section {
    margin-bottom: 50px !important;
    width: initial;
  }

  .work-section-contents {
    width: 98%;
  }

  .work-section-contents div {
    width: 550px;
  }

  .work-section-contents div a {
    color: rgb(199, 198, 198);
  }

  .github-btn {
    color: rgba(0, 0, 0, 0.05);
  }

  .image-cycle img {
    width: 400px;
  }

  .contact-section {
    left: 0;
    right: 0;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 1024px) {
  .main-container {
    padding: 0px 20px;
  }

  .landing-section {
    margin: 0px 20px;
    margin-top: 15%;
    justify-content: center;
  }

  .about-section {
    margin: 0px 20px;
    width: 1100px;
  }

  .about-section-contents {
    gap: 100px;
  }

  .skills-section {
    width: 1100px;
  }

  .work-section {
    width: 1100px;
    margin: 0px 20px;
  }

  .work-section-contents {
    gap: 20px;
  }

  .image-cycle img {
    width: 550px;
  }

  .contact-section {
    width: 1024px;
    margin: 0 auto;
  }
}

@media (min-width: 768px) {
  .btn-float-right {
    float: right;
  }
}