:root[color-mode='dark'] {
  --surface1: #262626; /*section background*/
  --surface2: #333333; /*background*/
  --shadow: #eeeeee; /*shadow*/
  --text2: #cccccc; /*text*/
  --color1: #ffcb3a; /*hero name color and li*/
  --color3: #ff4f61; /*H2 color*/
}
:root[color-mode='light'] {
  --surface1: #d4c9be;
  --surface2: #f1efec;
  --shadow: #474554;
  --text2: #030303;
  --color1: #123458;
  --color3: #506b72;
}
/*Body, Hero CSS*/

body {
  background-color: var(--surface2);
}
#hero {
  min-height: 100vh;
  opacity: 0;
  transform: translateY(104px);
  animation: hero-transition 1s ease-out forwards;
}

/*Hero Animation*/
@keyframes hero-transition {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/*Greetings*/
h1,
h4 {
  text-align: center;
  font-family: Audiowide;
}
.hero-greetings {
  text-align: center;
  margin-top: 1.25rem;
  color: var(--text2);
  font-size: 1rem;
}
.hero-name {
  color: var(--color1);
  font-size: 2.2rem;
  font-weight: bold;
}
.hero-role {
  text-align: center;
  color: var(--text2);
  font-size: 0.9rem;
}

/*Theme Button*/
.theme-section {
  position: fixed;
  top: 80px;
  right: 20px;
  text-align: center;
  color: var(--text2);
  z-index: 1;
}

.toggle-switch {
  width: 50px;
  height: 25px;
  position: relative;
  border: 1px solid #000;
  border-radius: 25px;
  box-sizing: border-box;
  background-color: var(--surface2);
}
.toggle-ball {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transition: transform 0.7s ease;
  background-color: var(--color1);
}

:root[color-mode='dark'] .toggle-ball {
  transform: translateX(0);
}
:root[color-mode='light'] .toggle-ball {
  transform: translateX(24px);
}
/*Navbar*/
.navbar a {
  font-family: Montserrat, sans-serif;
  background-color: var(--surface2);
  color: var(--text2);
}

/* Personal Photo CSS */
.personal-photo img {
  max-width: 260px;
  width: 80%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: inline-block;
  box-shadow: 0 8px 20px var(--shadow);
}
.personal-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Section Background CSS */
#topbar,
#about,
#education,
#learning,
#courses,
#projects,
#contact {
  background-image: linear-gradient(to bottom, var(--surface1) 0%, var(--surface2) 100%);
  margin-bottom: 20vh;
}
/* Text CSS */

h2 {
  font-family: Audiowide, sans-serif;
  text-align: center;
  padding: 5px;
  color: var(--color3);
  font-size: 2.5rem;
}
h3 {
  font-family: Audiowide, sans-serif;
  text-align: center;
  padding: 5px;
  color: var(--text2);
  font-size: 2rem;
}
li {
  font-family: Montserrat;
  text-align: justify;
  list-style-position: inside;
}
li::marker {
  color: var(--color1);
}

p,
ul {
  font-family: Montserrat, sans-serif;
  text-align: justify;
  padding: 2px;
  color: var(--text2);
  font-size: 1.25rem;
}
/* Form and Button CSS */
.form-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: 600px;
  margin: 0 auto 12px;
  font-size: 1.5rem;
  color: var(--text2);
}
.form-row label {
  font-size: 1.1rem;
}

.form-row textarea {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
}
.contact-section button {
  display: block;
  margin: 12px auto 0;
  padding: 6px 14px;
  font-size: 1.2rem;
  border-radius: 8px;
  cursor: pointer;
}
/*Button link*/
a {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 7px;
  font-size: 1rem;
  border-radius: 8px;
  background-color: var(--color1);
  color: var(--surface2);
}
/* Media Queries */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-greetings {
    font-size: 1.4rem;
  }
  .hero-name {
    font-size: 3rem;
  }
  .hero-role {
    font-size: 1.2rem;
  }
}
@media (min-width: 992px) {
  .personal-photo img {
    max-width: 500px;
  }
  .hero-greetings {
    font-size: 3rem;
  }
  .hero-name {
    font-size: 4rem;
  }
  .hero-role {
    font-size: 1.3rem;
  }
}
