@import url("https://fonts.googleapis.com/css2?family=Merienda:wght@300..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rubik+Maze&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  display: flex;
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  width: 100%; /* Adjust width */
  padding: 0; /* Remove padding */
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  background: #0b090a;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  width: 90vw;
  position: sticky;
  background-color: transparent;
  top: 0;
  z-index: 1000;
}

.nav__link {
  position: relative;
  margin: 0 10px;
  color: #333;
  padding: 5px 10px;
  text-decoration: none;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 25px;
  transition: all 0.3s ease;
}

.nav__links {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.nav__link:hover {
  color: yellow;
  transform: translateX(5px);
}

.nav__link.active {
  color: yellow;
  transform: translateX(5px);
}

.section {
  background-color: transparent;
  min-height: 100vh;
  padding: 20px;
}

.section:nth-child(odd) {
  background-color: rgb(235, 235, 235);
}

p.welcome-subtext1 {
  font-family: "Covered By Your Grace", cursive;
  font-weight: 400;
  font-style: normal;
  padding: 10px;
  font-size: 0.8rem;
}

.arrow {
  width: 30px;
  height: 30px;
  border-bottom: 1px solid #d3d3d3;
  border-right: 1px solid #d3d3d3;
  transform: rotate(45deg);
  animation: move 1.3s infinite;
}
.arrow-container {
  display: block;
  justify-content: center;
  align-items: center;
  padding-left: 42%;
  padding-top: 10%;
}
.arrow:nth-child(2),
.arrow:nth-child(3) {
  animation-delay: 0.15s;
}

@keyframes move {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(40px) rotate(45deg);
  }
}

.header-container {
  z-index: 1000;
  text-align: center;
  padding-right: 15%;
  padding-top: 22%;
}

.social-media {
  margin-bottom: 10px; /* Add some space above the icons */
}
.social-media a {
  margin-right: 15px; /* Adjust the value as needed */
  margin: 0 15px;
  font-size: 24px; /* Increase the size of the icons */
  transition: transform 0.3s; /* Smooth transition for hover effect */
  color: inherit; /* Ensure the icons inherit the color */
  text-decoration: none; /* Remove underline from the icons */
}

.social-media a:last-child {
  margin-right: 0; /* Remove margin from the last item */
}
.social-media i:hover {
  transform: scale(1.4); /* Enlarge the icon on hover */
}
.social-media i {
  transition: transform 0.3s; /* Smooth transition for hover effect */
}
/* Specific colors for different platforms */
.social-media a.facebook {
  color: #0a399e;
}
.social-media a.twitter {
  color: #1da1f2;
}
.social-media a.linkedin {
  color: #0077b5;
}
.social-media a.instagram {
  color: #e4405f;
}
.social-media a.github {
  color: #d3d3d3;
}
.profile-pic {
  margin-bottom: 20px;
  border-radius: 50%;
  width: 250px;
  height: 250px;
  left: 50px;
  top: 200px;
  box-shadow: 0 0 15px #7198eb; /* Neon glow effect */
  transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition for background color and transform */
}
.sub-headings {
  text-align: left;
}

.tools {
  padding-top: 50px;
}

h1 {
  font-family: "Rubik Maze", system-ui;
  font-weight: 400;
  font-style: normal;
  font-size: 60px;
  z-index: 1000;
}
p {
  font-size: 15px;
  color: #d3d3d3;
  font-family: "Manrope", sans-serif;
  font-weight: normal;
  font-style: normal;
}
h2 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.5rem;
  color: #d3d3d3;
}
h3 {
  margin-bottom: 20px;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  z-index: 1000;
}
h4 {
  margin-bottom: 20px;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}
@keyframes dissolveIn {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* CSS Styles for the progress clock  https://speckyboy.com/progress-bars-css-javascript/  Progress Clock by Jon Kantner */

* {
  border: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --hue: 223;
  --bg: hsl(var(--hue), 10%, 90%);
  --fg: hsl(var(--hue), 10%, 10%);
  font-size: calc(16px + (24 - 16) * (100vw - 320px) / (1280 - 320));
}
body,
button {
  color: var(--fg);
  font: 1em/1.1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}
body {
  height: 100vh;
  display: grid;
  place-items: center;
}

.progress-clock {
  display: grid;
  justify-content: center;
  align-content: center;
  position: fixed;
  text-align: center;
  width: 5em;
  height: 5em;
  top: 150px;
  left: 80px;
}
.progress-clock__time-date,
.progress-clock__time-digit,
.progress-clock__time-colon,
.progress-clock__time-ampm {
  transition: color 0.2s linear;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.progress-clock__time-date,
.progress-clock__time-digit {
  background: transparent;
}
.progress-clock__time-date,
.progress-clock__time-ampm {
  grid-column: 1 / 6;
}
.progress-clock__time-date {
  font-size: 0.4em;
  line-height: 1;
}
.progress-clock__time-digit,
.progress-clock__time-colon {
  font-size: 0.7em;
  font-weight: 400;
  grid-row: 2;
}
.progress-clock__time-colon {
  line-height: 0.5;
}
.progress-clock__time-ampm {
  cursor: default;
  grid-row: 3;
  font-size: 0.5em;
  font-weight: 400;
}
.progress-clock__rings {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.progress-clock__ring {
  opacity: 0.1;
}
.progress-clock__ring-fill {
  transition: opacity 0s 0.3s linear, stroke-dashoffset 0.3s ease-in-out;
}
.progress-clock__ring-fill--360 {
  opacity: 0;
  stroke-dashoffset: 0;
  transition-duration: 0.3s;
}
[data-group]:focus {
  outline: transparent;
}
[data-units] {
  transition: opacity 0.2s linear;
}
[data-group="d"]:focus,
[data-group="d"]:hover {
  color: hsl(333, 90%, 55%);
}
[data-group="h"]:focus,
[data-group="h"]:hover {
  color: hsl(33, 90%, 55%);
}
[data-group="m"]:focus,
[data-group="m"]:hover {
  color: hsl(213, 90%, 55%);
}
[data-group="s"]:focus,
[data-group="s"]:hover {
  color: hsl(273, 90%, 55%);
}
[data-group]:focus ~ .progress-clock__rings [data-units],
[data-group]:hover ~ .progress-clock__rings [data-units] {
  opacity: 0.2;
}
[data-group="d"]:focus ~ .progress-clock__rings [data-units="d"],
[data-group="d"]:hover ~ .progress-clock__rings [data-units="d"],
[data-group="h"]:focus ~ .progress-clock__rings [data-units="h"],
[data-group="h"]:hover ~ .progress-clock__rings [data-units="h"],
[data-group="m"]:focus ~ .progress-clock__rings [data-units="m"],
[data-group="m"]:hover ~ .progress-clock__rings [data-units="m"],
[data-group="s"]:focus ~ .progress-clock__rings [data-units="s"],
[data-group="s"]:hover ~ .progress-clock__rings [data-units="s"] {
  opacity: 1;
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: hsl(var(--hue), 10%, 10%);
    --fg: hsl(var(--hue), 10%, 90%);
  }
  .progress-clock__ring {
    opacity: 0.2;
  }
}

.main-content {
  margin-left: 5%; /* Adjust based on sidebar width */
  padding: 20px;
  flex-grow: 1;
  width: 65%;
}
#welcome-page {
  animation: dissolveIn 2s ease-in-out forwards;
  padding: 1em 0 0 3em;
  margin-bottom: 2em;
  width: 100%;
  min-height: 95vh;
  position: relative;
  background-color: transparent;
}
#about {
  width: 100%;
  max-height: 100vh;
  padding: 0 1em 2em;
  margin: 0 0 5em;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: transparent;
}
#projects {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 1em 1em 2em;
  margin: 0 0 5em;
  justify-content: center;
  background-color: transparent;
  margin-bottom: 5rem;
  max-height: 100vh;
}

#contact {
  width: 100%;
  padding-top: 3rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: transparent;
}
.sub {
  background-color: transparent;
}

/* CSS for the welcome link */
.welcome {
  font-size: 25px;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  animation: dissolveIn 1s ease-in-out forwards;
}

.no-underline {
  text-decoration: none;
  color: #d3d3d3;
}

.letter {
  display: inline-block;
  animation: colorChange 3s infinite;
}

.letter:nth-child(1) {
  animation-delay: 0s;
}
.letter:nth-child(2) {
  animation-delay: 0.5s;
}
.letter:nth-child(3) {
  animation-delay: 1s;
}
.letter:nth-child(4) {
  animation-delay: 1.5s;
}
.letter:nth-child(5) {
  animation-delay: 2s;
}
.letter:nth-child(6) {
  animation-delay: 2.5s;
}
.letter:nth-child(7) {
  animation-delay: 3s;
}
@keyframes colorChange {
  0% {
    color: #ff0000;
  }
  14% {
    color: #ff7300;
  }
  28% {
    color: #fffb00;
  }
  42% {
    color: #48ff00;
  }
  57% {
    color: #00ffd5;
  }
  71% {
    color: #002bff;
  }
  85% {
    color: #7a00ff;
  }
  100% {
    color: #ff00c8;
  }
}

/* CSS for the skills section */
.skills-logos {
  display: flex;
  flex-direction: row;
  gap: 2rem; /* Adjust the gap between logos as needed */
  justify-items: center; /* Center the logos within each column */
  align-items: center; /* Center the logos vertically */
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.skills-logos img {
  transition: transform 0.3s ease; /* Smooth transition for hover effect */
  width: 30px; /* Increase the width of the logos */
  height: 30px; /* Increase the height of the logos */
}

.skills-logos img:hover {
  transform: scale(1.2); /* Slightly enlarge the logo on hover */
}

.skill p {
  margin-top: 10px; /* Add some space between the logo and the text */
  font-size: 14px; /* Adjust the font size as needed */
  color: #d3d3d3; /* Adjust the text color as needed */
}

/* CSS for the projects section */

.user-projects {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1em;
}

.project-left {
  flex-direction: row;
}

.project-right {
  flex-direction: row-reverse;
}

.images-left {
  flex: 1;
  padding: 10px;
  padding-right: 20px;
}
.images-right {
  padding-left: 20px;
}
.images-left img,
.images-right img {
  width: 250px; /* Set a fixed width */
  height: 150px; /* Set a fixed height to make it a square */
  object-fit: cover; /* Ensure the image covers the entire area */
  border-radius: 10px;
  box-shadow: 0 0 15px #7198eb; /* Neon glow effect */
  transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition for background color and transform */
}

img:hover {
  transform: scale(1.1); /* Slightly enlarge the button on hover */
}
.contents-right,
.contents-left {
  flex: 2;
  padding: 10px;
}

.contents-right h3,
.contents-left h3 {
  margin-top: 0;
}

.contents-right p,
.contents-left p {
  margin: 0;
}

/* CSS for the contact form */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 45vh;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}

form {
  padding: 20px;
  width: 700px;
  border-radius: 10px;
  font-size: 18px;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  border: 1px solid #d3d3d3;
}
.message-icon {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  margin-bottom: 10px;
}

.message-icon i {
  font-size: 20px;
}

.message-icon span {
  font-size: 20px;
  font-weight: bold;
  margin-right: 10px;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}
form input,
textarea {
  width: 100%;
  border-top: none;
  border-right: none;
  border-left: none;
  border-bottom: 1px solid #d3d3d3;
  outline: none;
  color: #d3d3d3;
  background: transparent;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.input-field {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
}
.input-field i {
  font-size: 15px;
}
.input-field input {
  font-size: 12px; /* Increase font size */
  padding: 12px; /* Increase padding */
  height: 30px; /* Set a specific height */
}
.input-field input,
.input-field textarea {
  padding-left: 10px;
  width: 100%;
  box-sizing: border-box;
}
.send-btn {
  background: #1c2541;
  color: #d3d3d3;
  border: none;
  font-size: 16px;
  padding: 6px 0;
  width: 130px;
  border-radius: 10px;
  box-shadow: 0 0 15px #7198eb; /* Neon glow effect */
  transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition for background color and transform */
}

.send-btn:hover {
  transform: scale(1.1); /* Slightly enlarge the button on hover */
}

.details {
  align-self: start;
  margin-bottom: 80px;
  padding: 10px;
}

.address {
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 100px;
  margin-bottom: 20px;
}

/* Footer Styles */
footer {
  margin-left: 50px;
  text-decoration: none;
  bottom: 0; /* Align to the bottom */
  z-index: 1000;
  font-size: 0.7em;
  text-align: right;
}
footer p {
  margin: 0;
  font-weight: 100;
  font-style: normal;
  font-size: 10px;
}

@media (max-width: 430px) {
  .main-content {
    margin-left: 0; /* Remove left margin on mobile */
    padding: 10px;
    width: 100%; /* Full width on mobile */
  }
  .progress-clock {
    top: 30px;
    left: 20px;
  }

  .navbar {
    position: absolute;
    flex-direction: column; /* Stack navbar items vertically */
    right: 0;
    top: 0;
    width: 200px;
  }

  .nav__links {
    flex-direction: column; /* Stack nav links vertically */
    gap: 10px;
    width: 100%;
    text-align: center;
  }

  .nav__link {
    font-size: 20px; /* Slightly smaller font */
    margin: 5px 0;
  }

  #welcome-page {
    padding: 0;
    margin-top: 12em;
    margin-bottom: 2em;
    margin-left: 2rem;
    min-height: 80vh; /* Reduced height for mobile */
    width: 90%;
  }

  #about {
    padding: 0 0.5em 1em;
    margin: 1em 1em;
    max-height: none; /* Remove max-height restriction */
    width: 90%;
  }

  #projects {
    padding: 0.5em;
    margin: 1em 1em;
    max-height: none;
    width: 90%;
    margin-bottom: 5rem;
  }

  #contact {
    padding: 0;
    width: 90%;
    margin: 1em 1em;
    min-height: 60vh;
  }

  .welcome {
    font-size: 20px; /* Smaller font for mobile */
  }

  .skills-logos {
    flex-wrap: wrap; /* Allow skills to wrap */
    gap: 1rem;
    justify-content: center;
  }

  .skills-logos img {
    width: 25px; /* Smaller logos */
    height: 25px;
  }

  .skill p {
    font-size: 12px;
  }

  .user-projects {
    flex-direction: column; /* Stack project content */
    padding: 0.5em;
  }

  .project-left,
  .project-right {
    flex-direction: column; /* Consistent stacking */
  }

  .images-left,
  .images-right {
    padding: 10px;
  }

  .images-left img,
  .images-right img {
    height: 150px;
    max-width: 250px; /* Cap max width */
  }

  .contents-right,
  .contents-left {
    padding: 5px;
  }

  .hero {
    height: auto; /* Flexible height */
  }

  form {
    width: 100%; /* Full width form */
    padding: 10px;
    font-size: 16px;
  }

  .input-field input {
    font-size: 10px;
    padding: 8px;
    height: 25px;
  }

  .send-btn {
    width: 100px;
    font-size: 14px;
  }

  .details {
    margin-bottom: 40px;
  }

  .address {
    margin-top: 50px;
  }

  footer {
    text-align: center;
    margin-left: 5px;
    width: 100%;
  }
}
/* Mobile devices (up to 767px) */
@media (min-width: 431px) and (max-width: 767px) {
  .main-content {
    margin-left: 0; /* Remove left margin on mobile */
    padding: 10px;
    width: 100%; /* Full width on mobile */
  }
  .progress-clock {
    top: 30px;
    left: 20px;
  }

  .navbar {
    position: absolute;
    flex-direction: column; /* Stack navbar items vertically */
    right: 0;
    top: 0;
    width: 200px;
  }

  .nav__links {
    flex-direction: column; /* Stack nav links vertically */
    gap: 10px;
    width: 100%;
    text-align: center;
  }

  .nav__link {
    font-size: 20px; /* Slightly smaller font */
    margin: 5px 0;
  }

  #welcome-page {
    padding: 1em;
    margin-top: 12em;
    margin-bottom: 2em;
    margin-left: 3rem;
    min-height: 80vh; /* Reduced height for mobile */
    width: 100%;
  }

  #about {
    padding: 0 0.5em 1em;
    margin: 0 0 2em;
    max-height: none; /* Remove max-height restriction */
    width: 100%;
  }

  #projects {
    padding: 0.5em;
    margin: 0 0 2em;
    max-height: none;
    width: 100%;
    margin-bottom: 5rem;
  }

  #contact {
    padding: 0;
    width: 100%;
    margin: 3rem 0;
    min-height: 60vh;
  }

  .welcome {
    font-size: 20px; /* Smaller font for mobile */
  }

  .skills-logos {
    flex-wrap: wrap; /* Allow skills to wrap */
    gap: 1rem;
    justify-content: center;
  }

  .skills-logos img {
    width: 25px; /* Smaller logos */
    height: 25px;
  }

  .skill p {
    font-size: 12px;
  }

  .user-projects {
    flex-direction: column; /* Stack project content */
    padding: 0.5em;
  }

  .project-left,
  .project-right {
    flex-direction: column; /* Consistent stacking */
  }

  .images-left,
  .images-right {
    padding: 5px;
    width: 100%;
  }

  .images-left img,
  .images-right img {
    width: 100%; /* Full width images */
    height: auto;
    max-width: 200px; /* Cap max width */
  }

  .contents-right,
  .contents-left {
    padding: 5px;
  }

  .hero {
    height: auto; /* Flexible height */
  }

  form {
    width: 100%; /* Full width form */
    padding: 10px;
    font-size: 16px;
  }

  .input-field input {
    font-size: 10px;
    padding: 8px;
    height: 25px;
  }

  .send-btn {
    width: 100px;
    font-size: 14px;
  }

  .details {
    margin-bottom: 40px;
  }

  .address {
    margin-top: 50px;
  }

  footer {
    text-align: center;
    margin-left: 5px;
    width: 100%;
  }
}

/* Tablet devices (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .main-content {
    margin-left: 1rem; /* Reduced margin */
    padding: 15px;
    width: 100%;
  }
  .progress-clock {
    top: 70px;
    left: 30px;
  }
  .navbar {
    padding: 15px;
    width: 95vw;
  }

  .nav__links {
    gap: 15px;
  }

  .nav__link {
    font-size: 22px;
  }

  #welcome-page {
    padding: 1em 2em;
    min-height: 90vh;
    width: 100%;
  }

  #about {
    padding: 0 1em 1.5em;
    margin: 0 0 3em;
  }

  #projects {
    padding: 1em;
    margin: 0 0 3em;
  }

  #contact {
    padding-top: 2rem;
  }

  .welcome {
    font-size: 22px;
  }

  .skills-logos {
    gap: 1.5rem;
  }

  .skills-logos img {
    width: 28px;
    height: 28px;
  }

  .user-projects {
    flex-direction: row; /* Keep horizontal layout */
  }

  .images-left img,
  .images-right img {
    width: 200px;
    height: 120px;
  }

  form {
    width: 500px;
  }

  .input-field input {
    font-size: 11px;
    padding: 10px;
  }

  .send-btn {
    width: 120px;
  }
}

/* Large screens (1024px and up) */
@media (min-width: 1024px) {
  /* Default styles from your original CSS are suitable for desktop */
  /* Add specific tweaks if needed */
  .main-content {
    margin-left: 5%;
    padding: 20px;
    width: 65%;
  }

  .navbar {
    width: 90vw;
  }

  .nav__links {
    gap: 20px;
  }

  .nav__link {
    font-size: 25px;
  }

  #welcome-page {
    padding: 1em 0 0 3em;
  }

  .skills-logos {
    gap: 2rem;
  }

  form {
    width: 700px;
  }
}
