/* SETTING FONT FOR ENTIRE PROJECT */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Code:wght@400;500;700&display=swap');

.google-sans-code {
  font-family: 'Google Sans Code', monospace;
  font-optical-sizing: auto;
  font-weight: 400; /* Choose 400, 500, or 700 depending on your use */
  font-style: normal;
}

body {
    font-family: 'Google Sans Code', monospace;
    background-color: #111;
    color: white;
}

/* Resetting defaults */
* {
  box-sizing: border-box;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1.5rem;
  background-color: #111;
  color: white;
}

.site-header h1 {
  font-size: 2rem;
  margin: 0;
  font-weight: bold;
}

.navbar-right {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-right li a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  transition: color 0.2s ease;
}

.navbar-right li a:hover {
  color: #00ffff;
}

.cursor {
  animation: blink 1.2s steps(2, start) infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* Content wrapper */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Example sections */
section {
  margin-bottom: 3rem;
}

/* Images responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Responsive typography */
h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.125rem;
}



.contact-form {
  border: 1px solid white;
  padding: 20px;
}

#typewrite {
  font-family: 'Google Sans Code', monospace;
  color: white;
  display: inline;
  word-wrap: break-word;
  font-size: 2rem;
}

.cursor {
  color: white;
  font-weight: bold;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}


#learn-more {
  padding: 10px 20px;
  font-size: 1rem;
  color: white;
  background-color: black;
  border: 1px solid white;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
}

#learn-more:hover {
  background-color: white;
  color: black;
}

#home-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* align items at the top */
  align-items: center;
  height: calc(100vh - 6.67vh - 20vh);
  margin: auto; /* visually shifts content down */
  margin-top: 20vh;
  text-align: center;
  width: 70%;
}

#home-page-content {
  max-height: 100vh; /* allows room for growing content */
  overflow-y: hidden;  /* enables scroll if content overflows */
}

.skill-orbit {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 60px auto;
}

.center-circle {
  position: absolute;
  top: 57%;
  left: 57%;
  width: 200px;
  height: 200px;
  background: #111;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  font-family: 'Google Sans Code', monospace;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  box-shadow: 0 0 12px white;
}

.orbit-icon {
  --radius: 170px;
  --angle: calc(360deg / 12);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: rotate(calc(var(--i) * var(--angle)))
             translateX(var(--radius))
             rotate(calc(-1 * var(--i) * var(--angle)));
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.orbit-icon img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 4px white);
  transition: transform 0.3s;
}

.orbit-icon span {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: white;
}

.orbit-icon:hover img {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px white);
}


/* -------- Media Queries -------- */

/* Tablets and below */
@media (max-width: 768px) {
  .navbar {
    justify-content: center;
  }

  .site-header {
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 1rem;
  }

  .navbar-right {
    flex-basis: 100%;
    justify-content: center;
    gap: 1rem;
  }

  h2 {
    font-size: 3rem;
  }

  p {
    font-size: 2rem;
  }

}

/* Mobile phones */
@media (max-width: 480px) {
  .navbar-right {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .navbar-right li a {
    font-size: 0.9rem;
  }

  body {
    padding: 0.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  p {
    font-size: 0.9rem;
  }

  #home-text {
    margin-top: 8vh; 
  }
}