* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  scroll-behavior: smooth;
}

:root {
  --dark: #232323;
  --light: #ebebeb;
  --dimmed-light: #adacaf;
  --dimmed-dark: #747275;
}

body {
  background-color: var(--light);
  font-family: 'Times New Roman', Times, serif;
  color: var(--dark);
  transition: all 0.4s ease;
}

body[data-theme="dark"] {
  background-color: var(--dark);
  color: var(--light);
}

.top-bar {
  position: sticky;
  right: 8px;
  top: 10px;
  display: flex;
  justify-content: flex-end;
}

#theme-toggle {
  outline: none;
  border: none;
  padding: 10px;
  background-color: transparent;
  transition: all 0.2s ease;
  border-radius: 50%;
  color: inherit;
}

#theme-toggle:hover {
  cursor: pointer;
  transform: scale(1.2);
}

a, a:visited {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* TODO: maybe do something with this */
/* .text-link:hover { */
/*   color: red; */
/* } */

h1 {
  font-weight: normal;
}

.name {
  margin-bottom: 4rem;
  text-align: left;
  width: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.name-span {
  font-weight: bold;
}

.main {
  margin-inline: 10%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.container {
  height: 80vh;
  display: flex;
  min-height: 500px;
}

.container[data-theme="dark"]{
  background-color: var(--dark);
  color:var(--light);
}

#home, #about ,#contact {
  align-items: center;
  justify-content: center;
}

#home {
  margin-inline: 10%;
}

.hero-text, .name {
  cursor: default;
  max-width: 1000px;
  margin-bottom: 2rem;
}

#contact {
  flex-direction: column;
}

.contact-info {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.contact-info p {
  text-align: center;
  line-height: 10px;
}

#contact h2 {
  display: block;
}

#send-email:hover {
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
  transform: scale(1.05);
}

.social-icon:hover {
  transform: scale(1.3);
}

/* Mobile portrait and small screens */
@media only screen and (width <= 768px) and (orientation: portrait) {
  .hero-text {
    font-size: 1rem;
  }

  h1, h2 {
    font-size: 1rem;
  }

  .name {
    font-size: 0.7rem;
  }

  .container {
    height: 65vh;
    min-height: 350px;
  }

  .contact-info {
    font-size: 0.7rem;
  }

  .contact-info p {
    font-size: 0.7rem;
  }

  .social-icon {
    width: 18px;
    height: 18px;
  }

  #theme-icon {
    width: 18px;
    height: 18px;
  }
}

/* Mobile landscape */
@media only screen and (width <= 768px) and (orientation: landscape) {
  .hero-text {
    font-size: 1rem;
  }

  h1, h2 {
    font-size: 1rem;
  }

  .name {
    font-size: 0.7rem;
  }

  .container {
    height: 65vh;
    min-height: 300px;
  }

  .contact-info {
    font-size: 0.7rem;
  }

  .contact-info p {
    font-size: 0.7rem;
  }

  .social-icon {
    width: 18px;
    height: 18px;
  }

  #theme-icon {
    width: 18px;
    height: 18px;
  }
}

/* Tablets and larger screens - ensure socials are always visible */
@media only screen and (width >= 769px) {
  .container {
    height: 75vh;
    min-height: 500px;
  }
}
