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

:root {
  --primary-color: rgb(255, 92, 92);
  --primary-variant: #ff2d2d;
  --secondary-color: #1b9999;
  --on-primary: rgb(250, 250, 250);
  --on-background: rgb(66, 66, 66);
  --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);
}

[data-theme="dark"] {
  --primary-color: rgb(150, 65, 255);
  --primary-variant: #6c63ff;
  --secondary-color: #03dac5;
  --on-primary: #000;
  --on-background: rgba(255, 255, 255, 0.9);
  --on-background-alt: rgba(255, 255, 255, 0.7);
  --background: #121212;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Comfortaa, sans-serif;
  color: var(--on-background);
  background-color: var(--background);
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2354c3c9' fill-opacity='0.4'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

h1 {
  font-family: Kaushan Script, sans-serif;
  font-size: 100px;
  margin-bottom: 0;
  text-align: center;
}

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

/* Navigation */
nav {
  z-index: 10;
  position: fixed;
  /* font-size: 24px; */
  letter-spacing: 3px;
  padding: 5px;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  margin: 0;
}

.nav-links {
  margin: 0;
  display: flex;
  justify-content: space-between;
  width: 60%;
  align-items: center;
}

.nav-links li {
  list-style: none;  
}

.nav-links li:last-child {
  margin-right: 20px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

a:hover,
a:focus {
  color: var(--on-background);
  border-bottom: 3px solid;
}
.burger {
  display: none;
  margin-right: 35px;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color:var(--primary-variant);
  margin: 5px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

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

/* About Section */
.about-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.image-container {
  border: 1px solid var(--secondary-color);
  border-radius: 10px;
  padding: 10px 20px;
  margin-right: 25px;
  margin-top: 50px;
  width: auto;
  background: var(--background);
  box-shadow: var(--box-shadow);
}

img {
  height: 300px;
  width: 300px;
}

/* Projects Section */
.buttons {
  margin-top: 15px;
  margin-bottom: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

button {
  min-width: 100px;
  height: 40px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 10px;
  margin-right: 10px;
  border: 2px solid var(--primary-color);
  font-size: 15px;
  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: 2px 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 / 50%);
  color: var(--on-primary);
  border-radius: 10px;
  padding: 30px;
}

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

/* Contact Section */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.fab {
  font-size: 75px;
  margin-top: 25px;
  padding: 20px;
  cursor: pointer;
  color: var(--primary-color);
}

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

/* Dark Mode Toggle */
.toggle-text {
  
  color: var(--on-background);
}

.theme-switch {
  display: inline-block;
  height: 30px;
  position: relative;
  width: 60px;
  margin-right: 20px;
}

.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: 2px;
  content: "";
  height: 26px;
  left: 2px;
  position: absolute;
  transition: 0.4s;
  width: 26px;
}

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

input:checked + .slider::before {
  transform: translateX(30px);
}

.slider.round {
  border-radius: 30px;
}

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

.fas {
  font-size: 30px;
  margin: 0;
  color: var(--on-background);
}

/* Media Queries */
@media only screen and (max-width: 1200px) {
  .nav-links {
    width: 70%
  }
}
@media only screen and (max-width: 1100px) {
  body {
    overflow-x: hidden;
  }
  
  .nav-links{
    position: absolute;
    right: 0;
    height: 95vh;
    top: 100%;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    font-weight: bold;
    background: rgb(255 255 255 / 90%);
    color: var(--on-primary);
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
  } 
  .nav-links li {
    opacity: 0;
  }
  .nav-links li:last-child {
    margin-bottom: 70px;
  }
  .burger {
    display: block;
    cursor: pointer; 
  }
}
/* Activate Menu */
.nav-active {
  transform: translateX(0%);
}

@media only screen and (max-width: 600px) {
  h1 {
    font-size: 3rem;
    margin: 5vh 0;
  }
  h2 {
    font-size: 2.5rem;
  }
  .image-container {
    margin: 10px;
  }
  img {
    width: 100%;
  }
  .text-box {
    margin: 0 auto;
    width: 80%;
  }
  .fab {
    font-size: 50px;
    margin-top: 0px;
    padding: 15px;
  }
  .nav-links {
    width: 100%;
    height: 95vh;
    top: 100%;
  }
  .nav-links li:last-child {
    margin-bottom: 70px;
  }
  
}

/* Animate nav links */
@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  } to {
    opacity: 1;
    transform: translateX(0px)
  }
}
/* Toggle Burger */
.toggle .line1 {
  transform: rotate(-45deg) translate(-5px,6px);

}
.toggle .line2 {
  opacity: 0;
}
.toggle .line3 {
  transform: rotate(45deg) translate(-5px,-6px);
}