* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  color: #c5c6c7;
}

/* To use custom font */
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Thin.ttf") format("truetype");
  font-weight: normal;
}

html,
body {
  height: 100%;
  width: 100%;
  /* background: #030420; */
  background: radial-gradient(
    circle farthest-corner at 17.6% 50.7%,
    rgb(0, 15, 99) 0%,
    rgba(0, 0, 0, 1) 90%
  );
}

body {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.5;
}

h1 {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.2;
}

h2 {
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.3;
}

h3 {
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.3;
}

h4 {
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.4;
}

h5 {
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.4;
}

h6 {
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.4;
}

/* Lists and links */
li,
a {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.5;
  text-decoration: none;
  list-style-type: none;
}

a:hover {
  color: #66fcf1;
}

.list {
  padding-left: 1.5rem;
}
.list li {
  list-style: circle;
}

/* Small text / captions */
small,
.caption {
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.4;
}

/* Top nav styles */
.nav-logo h1 {
  font-size: 1.3em;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: 80px;
  border-bottom: 1px solid #cddaff;
  padding: 0 16px;
  position: relative;
  background-color: #000000;
}

.nav-ul {
  display: none;
}

.top-nav.responsive ul {
  display: block;
  width: 100%;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  text-align: center;
  backdrop-filter: blur(6px);
  border-top: 1px solid #cddaff;
}

.top-nav.responsive ul a {
  color: #ffffff;
}

.nav-ul li {
  background-color: rgba(194, 194, 194, 0.5);
  width: 100%;
}

.nav-ul a {
  display: block;
  float: none;
  padding: 14px 16px;
  font-size: 1.2rem;
  font-weight: bold;
  transition: background-color 0.2s ease;
  text-shadow: 2px 2px 2px black;
}

.nav-ul li a:hover {
  background-color: #66fcf1;
  color: #030420;
  text-shadow: none;
}

a:active {
  color: #66fcf1;
}

.active {
  color: #66fcf1;
}

.top-nav .menu-icon {
  display: block;
}

.fa-bars {
  font-size: 1.5rem;
  color: #66fcf1;
}

/* Hero section styles */
.hero-flex {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-top: 5rem;
}

.hero-image img {
  max-width: 8rem;
  border-radius: 50%;
  border: 6px solid #66fcf1;
}

.hero-title h1 {
  padding-top: 1rem;
}

.hero-title h5 {
  padding: 1rem 0;
  font-size: 1.2rem;
}

.hero-title p {
  font-size: 1.1rem;
  font-style: italic;
  padding: 0 1rem 2rem;
}

.hero-title a {
  border: 2px solid #66fcf1;
  border-radius: 28px;
  padding: 12px 16px;
  transition: background-color 0.3s ease;
}

.hero-title a:hover {
  background-color: #45a29e;
  color: #030420;
  font-weight: bolder;
}

.name {
  background-color: #66fcf1;
  font-weight: bolder;
  color: #030420;
  padding: 0 10px;
  border-radius: 3px;
}

/* About section styles */
.about-flex {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-top: 3rem;
  background-image: radial-gradient(
    circle farthest-corner at 50% 52.5%,
    rgba(14, 53, 92, 1) 0%,
    rgba(16, 14, 72, 1) 90%
  );
}

.about-title {
  padding-bottom: 1rem;
}

.about-title2 {
  padding-top: 2rem;
}

.about-text {
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.about-text p {
  font-size: 1.1rem;
}

.about-icon {
  display: block;
  font-size: 1.5rem;
  padding: 1rem;
}

.icon-1 {
  border: 0.5px solid #434343;
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem;
  background-color: rgba(101, 101, 101, 0.3);
}

/* Project section styles */
.project-flex {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 1.5rem;
}

.project-title h1 {
  padding: 1.5rem 0;
}

.project-gallery {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 0.5px solid #434343;
  border-radius: 10px;
  margin: 1rem;
  padding: 1rem;
  background-color: rgba(101, 101, 101, 0.3);
  overflow: hidden;
}

.project-gallery img {
  width: 100%;
  height: auto;
}

.project-gallery .desc {
  padding: 15px;
  text-align: center;
}

.project-gallery:hover {
  transform: translateY(-5px);
}

/* Contact section styles */
.contact-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  text-align: center;
  background-image: radial-gradient(
    circle farthest-corner at 50% 52.5%,
    rgba(14, 53, 92, 1) 0%,
    rgba(16, 14, 72, 1) 90%
  );
  padding: 2rem;
}

.contact-title {
  padding-bottom: 1rem;
}

.contact-flex p {
  padding: 0 1.5rem;
}

.fa-css3-alt,
.fa-html5,
.fa-database,
.fa-react,
.fa-node-js,
.fa-js,
.fa-postgresql,
.fa-python {
  color: #66fcf1;
}

.fa-github,
.fa-linkedin {
  color: #66fcf1;
  font-size: 1.3rem;
  margin: 0.5rem;
}

.contact-form {
  width: 100%;
  max-width: 600px;
  padding: 1.5rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #66fcf1;
  border-radius: 10px;
  background-color: #030420;
  color: #ffffff;
  box-sizing: border-box;
  resize: vertical;
  margin-top: 6px;
  margin-bottom: 16px;
}

input,
textarea {
  font-size: 1rem;
}

label {
  float: left;
  font-size: 1rem;
}

input[type="submit"] {
  border: 2px solid #66fcf1;
  border-radius: 28px;
  padding: 12px 18px;
  transition: background-color 0.3s ease;
  cursor: pointer;
  background-color: #030420;
}

input[type="submit"]:hover {
  background-color: #45a29e;
  color: #030420;
  font-weight: bolder;
}

#tk-message {
  margin-top: 1.5rem;
  color: #66fcf1;
  display: none;
}

footer {
  padding: 1.5rem;
  text-align: center;
}

/* Portfolio */
.portfolio-flex {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

.portfolio-title {
  margin-top: 1.5rem;
}

.highlight-image-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 1rem;
}

.project-image {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 1rem auto;
  overflow: hidden;
  max-width: 90%;
}

.project-mobile-image {
  width: 300px;
}

.project-landscape-image {
  width: 500px;
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 0.5px solid #434343;
  border-radius: 4px;
}

.highlight-image-container .desc {
  text-align: center;
  padding-top: 0.5rem;
  font-size: 0.9rem;
}

/* HDB Resale */
.hdb-pipeline-image {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 1rem;
  margin: 0 auto;
  margin-top: 1rem;
  background-color: rgba(101, 101, 101, 0.3);
  border-radius: 0.5rem;
}

.hdb-pipeline-image img {
  width: 100%;
}

.hdb-pipeline-image a {
  font-size: 1rem;
}

/* Elderly Checkin */
.st-image-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 1rem;
}

.st-image {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 1rem auto;
  padding: 1rem 1rem 0.5rem;
  overflow: hidden;
  max-width: 90%;
  background-color: rgba(101, 101, 101, 0.3);
  border-radius: 0.5rem;
}

.st-image img {
  display: block;
  width: 100%;
  height: auto;
}

.st-image a {
  text-align: center;
  padding-top: 0.5rem;
  font-size: 0.9rem;
}

/* Tablet font adjustments */
@media (min-width: 768px) {
  h1 {
    font-size: 2rem;
  } /* ~32px */
  h2 {
    font-size: 1.75rem;
  } /* ~28px */
  p {
    font-size: 1.125rem;
  } /* ~18px */
}

/* Desktop font adjustments */
@media (min-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  } /* ~40px */
  h2 {
    font-size: 2rem;
  } /* ~32px */
  p {
    font-size: 1.25rem;
  } /* ~20px */
}

/* Tablet and laptop styles */
@media screen and (min-width: 720px) {
  .top-nav .menu-icon {
    display: none;
  }
  .nav-ul {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
  }
  .nav-ul li {
    background-color: transparent;
    font-size: 1rem;
    min-width: 100px;
    text-align: center;
  }
  .nav-ul li a {
    font-size: 1.2rem;
  }
  .nav-ul li a:hover {
    background-color: transparent;
    color: #66fcf1;
    font-weight: 600;
  }

  p,
  .hero-title p,
  .desc {
    font-size: 1.2rem;
  }

  .hero-title h5 {
    font-size: 1.5rem;
  }
  .about-icon {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .about-text p {
    width: 80%;
  }

  .about-icon {
    display: grid;
    margin: 0 auto;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
  }

  .icon-1 {
    font-size: 2.5rem;
    width: 100%;
    flex: 1 1 45%;
  }
  .project-flex {
    margin-top: 1.5rem;
  }
  .project-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .highlight-image-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }

  .hdb-pipeline-image {
    width: 80%;
  }

  .st-image-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
  }

  .st-image {
    width: 800px;
  }
}

@media screen and (min-width: 1024px) {
  .hero-flex {
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding-top: 0;
    padding: 2rem 5%;
  }
  .hero-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
  }
  .hero-image img {
    border: none;
    border-radius: 50%;
    border: 10px solid #66fcf1;
    width: 100%;
    max-width: 500px;
    max-height: auto;
  }
  .hero-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
  }
  .hero-title p {
    text-align: center;
    padding: 0;
  }
  .hero-title a {
    margin-top: 1rem;
  }

  .about-text p {
    width: 70%;
  }

  .about-icon {
    display: flex;
    flex-wrap: wrap;
  }
  .about-icon .icon-1 {
    flex: 1 1 45%;
  }

  .project-image {
    margin: 0 2rem;
  }

  .project-mobile-image {
    width: 400px;
  }

  .project-landscape-image {
    width: 600px;
  }

  .hdb-pipeline-image {
    width: 60%;
  }

  .st-image {
    width: 600px;
  }
}
