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

html, body {
  min-height: 100%;
  /* Replace solid background with a fog-like radial gradient */
  background: radial-gradient(ellipse at 60% 40%, #1a2a6c 0%, #061030 60%, #000 100%);
  overscroll-behavior: none;
}

body {
  font-family: 'Bungee', sans-serif;
  background-color: #000; 
  color: #fff;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* THIS CODE IS FOR ANIMATING AN INTRO, DELETE LATER IF UNWANTED BUT PRESERVE FOR NOW
#intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000; 
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 2000;
}

#hey, #welcome {
  position: absolute;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
}

#hey {
  font-size: clamp(1.8rem, 31vw, 10rem);
}

#welcome {
  font-size: clamp(1.8rem, 31vw, 10rem);
}
*/

/* Fixed Navigation */
#navbar {
  font-family: 'Poppins', sans-serif;
  position: fixed;
  font-size: 1.5rem;
  top: 0;
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
  z-index: 1500;
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
}

#navbar ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  gap: 2rem;
}

#navbar li:hover{
  transform: scale(1.2);
}

#navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

/* Landing Page Sections */
main {
  opacity: 0; 
  transition: opacity 1.5s ease-in-out;
}

main section {
  min-height: 100svh;
  padding: 6rem 2rem 2rem; 
  padding-top: 6rem; /* Already present, adjust if needed */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  scroll-margin-top: 4.5rem; /* Match or slightly exceed your navbar height */
}

main section h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 1rem;
}

main section h2 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

main section p {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 800px;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.skills-grid {
  font-family: 'Monstserrat', sans-serif;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 1rem auto;
  max-width: 60vw;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: transform 0.2s, background-color 0.2s;
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.5s, transform 0.5s;
}

.skill-item img {
  width: 40px;
  height: 40px;
}

.skill-item span {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: bold;
}

.skill-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.1);
}

.hidden-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.75s ease-out, transform 1.75s ease-out;
}

.header-hidden-section{
  font-family: 'Poppins', sans-serif;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.25s ease-out, transform 1.25s ease-out;
}

.visible-section {
  opacity: 1;
  transform: translateY(0);
}

.role {
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: bold;
  margin-bottom: 1rem;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  transition: transform 0.2s, opacity 0.2s;
}

.contact-icon:hover {
  transform: scale(1.2);
  opacity: 0.8;
}



#landing {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  position: relative;
  z-index: 100; 
}

.bungee-regular {
  font-family: "Bungee", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.bungee-bold {
  font-family: "Bungee", sans-serif;
  font-weight: 700;
  font-style: normal;
}

#theme-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 2001; 
  background: none;
  border: none;
  padding: 0.3rem;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  pointer-events: auto;
  outline: none;
}

#theme-toggle:hover,
#theme-toggle:focus {
  background: transparent;
  transform: scale(1.2);
  outline: none;
}

#theme-toggle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.project-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: black;
  border-radius: 1.2rem;
  border: 0.2rem solid white;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
  padding: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.project-image {
  width: 70rem;
  max-width: 90vw;
  border-radius: 0.8rem;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.12);
  object-fit: contain;
}

.project-info {
  flex: 1;
  min-width: 220px;
  text-align: left;
  gap: 10rem;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.project-header h3 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 2vw, 2.5rem);
}

.project-info p {
  font-size: clamp(1rem, 3vw, 1rem);
  margin-bottom: 2rem;
  line-height: 2;
}

.github-link {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  margin-top: 1rem;
  transition: color 0.2s;
  font-size: 1.35rem; 
}
.github-link:hover {
  color: #1da1f2; 
}

.github-link img {
  height: 2em;
  margin-right: 0.5em;
}

.project-skills {
  display: flex;
  gap: 1rem;
  margin: 1rem 0 0.5rem 0;
  flex-wrap: wrap;
}

.project-skill {
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.project-skill img {
  height: 2.2em;
  width: 2.2em;
  border-radius: 0.4em;
  background: #181818;
  padding: 0.25em;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.10);
  transition: transform 0.15s;
}

.project-skill img:hover {
  transform: scale(1.12);
}

.project-skill-label {
  font-size: 1.05em;
  color: #cfd8dc;
  font-family: 'Poppins', sans-serif;
  margin-left: 0.2em;
}

.fade-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-badge {
  display: inline-block;
  background: #43a047;
  color: #fff;
  font-weight: bold;
  padding: 0.3em 1em;
  border-radius: 1em;
  font-size: 1em;
  margin-left: 0.7em;
  text-decoration: none;
  transition: background 0.2s;
  font-family: "Poppins", sans-serif;
}
.demo-badge:hover {
  background: #2e7031;
}

@media (max-width: 600px), (max-height: 500px) {
  #navbar {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
  }
  main section {
    padding: 4rem 0.5rem 1rem;
    scroll-margin-top: 2.5rem; /* Match mobile navbar height */
  }
  .skills-grid {
    flex-direction: column;
    gap: 1rem;
    max-width: 95vw;
  }
  .contact-icons {
    gap: 1rem;
  }
  .demo-badge {
    font-size: 0.85rem;
    padding: 0.2em 0.6em;
  }
  #theme-toggle {
    top: auto;
    bottom: 1.2rem;
    left: auto;
    right: 1.2rem;
    width: 2.8rem;
    height: 2.8rem;
    /* Optionally, make it more touch-friendly: */
    padding: 0.5rem;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  }

  .project-card {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  .project-image {
    width: 100%;
    max-width: 100vw;
    margin-bottom: 1rem;
  }
  .project-info {
    min-width: 0;
    text-align: left;
  }
  .project-skills {
    gap: 0.7rem;
    margin: 0.7rem 0 0.3rem 0;
  }
  .github-link {
    font-size: 1.1rem;
    padding: 0.3em 0.7em;
  }
  .skill-item {
    transition-delay: 0s !important;
  }
}

.skill-item.visible {
  opacity: 1;
  transform: translateY(0);
}