@import url('https://fonts.googleapis.com/css2?family=Comfortaa&family=Kaushan+Script&family=Oswald&display=swap');

:root {
  --primary-color: #f6928f;
  --primary-variant: #b65c59;
  --secondary-color: #e98c28;
  --on-primary: rgb(250, 250, 250);
  --on-background: #424242;
  --on-background-alt: rgba(66, 66, 66, 0.7);
  --background: rgb(255, 255, 255);
  --box-shadow: 0 5px 20px 1px rgba(0, 0, 0, 0.5);
  --image-background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.616),
      rgba(255, 255, 255, 0.5)
    ),
    url('./img/Background.png');
}

[data-theme='dark'] {
  --primary-color: #eeba00;
  --primary-variant: #b49110;
  --secondary-color: #1d836d;
  --on-primary: #222222;
  --on-background: rgba(255, 255, 255, 0.9);
  --on-background-alt: rgba(255, 255, 255, 0.7);
  --background: #121212;
  --image-background: linear-gradient(
      to right,
      rgba(71, 71, 71, 0.603),
      rgba(66, 66, 66, 0.5)
    ),
    url('./img/Background-dark.png');
}

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

html {
  font-size: 62.5%; /* 10px = 1rem */
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--background);
  background-image: var(--image-background);
  background-size: cover;
  font-family: 'Comfortaa', sans-serif;
  color: var(--on-background);
}

section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

h1 {
  font-size: 10rem;
  margin-bottom: 3rem;
  font-family: 'Kaushan Script', sans-serif;
}

h2 {
  font-size: 3.2rem;
  font-weight: normal;
  color: var(--on-background-alt);
}

/* Navigation */
nav {
  z-index: 10;
  position: fixed;
  font-size: 2.4rem;
  letter-spacing: 0.3rem;
  padding: 2.5rem;
  width: 100vw;
  background: rgb(255 255 255 / 70%);
}

a {
  margin-right: 2.5rem;
  color: var(--primary-variant);
  text-decoration: none;
  border-bottom: 0.3rem solid transparent;
  font-family: 'Oswald', sans-serif;
  font-weight: bold;
}

a:hover,
a:focus {
  color: var(--on-background);
  border-bottom: 0.3rem solid;
}

.social-link:hover {
  border-bottom: none;
}

/* Home Section */
.title-group {
  text-align: center;
}

/* About Section */
.about-container {
  display: flex;
}

.image-container {
  border: 0.1rem solid var(--secondary-color);
  border-radius: 1rem;
  padding: 1rem 2rem;
  margin-right: 2.5rem;
  width: auto;
  background: var(--background);
  box-shadow: var(--box-shadow);
}

img {
  height: 30rem;
  width: 30rem;
}

/* Projects Section */
.buttons {
  margin-top: 1.5rem;
  margin-bottom: 5rem;
}

button {
  min-width: 10rem;
  height: 4rem;
  cursor: pointer;
  border-radius: 1rem;
  margin-right: 1rem;
  border: 0.2rem solid var(--primary-color);
  font-size: 1.5rem;
  outline: none;
}

button:disabled {
  opacity: 0.4;
  cursor: default;
}

button:hover:not(.outline) {
  filter: brightness(110%);
}

.primary {
  background: var(--primary-color);
  color: var(--on-primary);
}

.secondary {
  border: 0.2rem solid var(--secondary-color);
}

.secondary,
.secondary:hover,
.outline.secondary:hover {
  background: var(--secondary-color);
  color: var(--on-primary);
}

.outline {
  background: var(--background);
  color: var(--on-background);
}

.outline:hover {
  background: var(--primary-color);
  color: var(--on-primary);
}

.text-box {
  width: 40%;
  text-align: justify;
  background: rgb(0 0 0 / 80%);
  color: var(--on-primary);
  border-radius: 1rem;
  padding: 3rem;
}

p {
  margin: 0;
  line-height: 25px;
}

/* Contact Section */
.fab {
  font-size: 10rem;
  margin-right: 5rem;
  cursor: pointer;
  color: var(--secondary-color);
  transition: all 0.2s linear;
}

.fab:hover {
  color: var(--on-background);
  transform: scale(1.12);
}

/* Dark Mode Toggle */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  z-index: 100;
  position: fixed;
  right: 2.5rem;
  top: 3rem;
}

.theme-switch-wrapper span {
  margin-right: 1rem;
  font-size: 1.9rem;
}

.toggle-text {
  position: relative;
  top: -0.4rem;
  right: 0.5rem;
  color: var(--on-background);
}

.theme-switch {
  display: inline-block;
  height: 3.4rem;
  position: relative;
  width: 6rem;
}

.theme-switch input {
  display: none;
}

.slider {
  background: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.4s;
}

.slider::before {
  background: #fff;
  bottom: 0.4rem;
  content: '';
  height: 2.6rem;
  left: 0.4rem;
  position: absolute;
  transition: 0.4s;
  width: 2.6rem;
}

input:checked + .slider {
  background: var(--primary-color);
}

input:checked + .slider::before {
  transform: translateX(2.6rem);
}

.slider.round {
  border-radius: 3.4rem;
}

.slider.round::before {
  border-radius: 50%;
}

.fas {
  font-size: 3rem;
  margin-right: 0.5rem;
}
