/* This is the required project styling. Will contain essential CSS styles like:
   * Flex property
   * Grid layout
   * Cards and sections
*/

@import url(https://fonts.googleapis.com/css?family=Raleway:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);

/* variables */
:root {
  /* Colors */
  --primary-color: #42ecff;
  --secondary-color: #42ecff;
  --bg-primary: #ffffff;
  --text-color: #000000;
  /*Was #000000;*/
  --text-color-two: #deec19;
  --bg-secondary: #a40ee4;
  --card-background: #42ecff;
  --bg-secondary-two: #111111;

  --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);

  /* Font Weight */
  --weight-small: 400;
  --weight-semibold: 600;
  --weight-bold: 800;

  /* Max width */
  --width-small: 600px;
  --width-medium: 1100px;
  --width-large: 1300px;
}

[data-theme="dark"] {
  --primary-color: #42ecff;
  --secondary-color: #ffd35c;
  --bg-primary: #000000;
  --text-color: #ffffff;
  /*Was ffffff*/
  --text-color-two: #222222;
  --bg-secondary: #ffa631;
  --card-background: #deec19;
  --bg-secondary-two: #f4f4f4;
  --shadow: 0 2px 10px rgba(95, 95, 95, 0.2);
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

/* Reset default styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

/* Main styling */
body {
  background: var(--bg-primary);
  color: var(--text-color);
  font-family: "Raleway", sans-serif;
  line-height: 1.5;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bg-primary);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  height: 80px;
  width: 100%;
}

.navbar .nav-menu {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
}

.navbar .nav-link {
  margin: 0 1rem;
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
}

.navbar #logo img {
  display: block;
  width: 40px;
}

.navbar .btn {
  margin-right: 1.5rem;
}

.fas.fa-arrow-right {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

/* hamburger */
.hamburger {
  margin-bottom: 0.1rem;
  display: none;
}

.bar {
  display: block;
  width: 23px;
  height: 3px;
  margin: 4px auto;
  transition: all 0.3s ease-in-out;
  border-radius: 30px;
  background-color: var(--bg-secondary);
}

/* Hero section */
#hero {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dynamic-gaming-text {
  background: linear-gradient(90deg, var(--primary-color), var(--bg-secondary), var(--text-color-two), var(--primary-color));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: rgb-scroll 4s linear infinite;
  display: inline-block;
}

@keyframes rgb-scroll {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 300% 50%;
  }
}

/* Web-Dev Project Text Effect */
.dynamic-project-text {
  position: relative;
  display: inline-block;
  font-family: monospace;
  font-weight: bold;
}

.dynamic-project-text::before {
  content: "<";
  color: var(--primary-color);
  margin-right: 8px;
  opacity: 0.9;
}

.dynamic-project-text::after {
  content: "/>";
  color: var(--primary-color);
  margin-left: 8px;
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; text-shadow: 0 0 10px var(--primary-color); }
  50% { opacity: 0.2; text-shadow: none; }
}

.avatar-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  animation: dragon-live 4s ease-in-out infinite alternate;
  box-shadow: 0 0 20px var(--primary-color);
  border: 3px solid var(--bg-secondary);
  margin: 0 auto 1.5rem;
  z-index: 10;
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.fire-breath {
  position: absolute;
  top: 30%;
  /* Adjusted closer to the anatomical mouth! */
  left: 40%;
  transform: translateX(-50%);
  width: 1px;
  height: 1px;
  z-index: 10;
  pointer-events: none;
}

.fire-particle {
  position: absolute;
  bottom: 0;
  left: 50%;
  background: radial-gradient(circle, #a40ee4 0%, #ff00ff 50%, transparent 100%);
  border-radius: 50%;
  animation: puff 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  opacity: 0.9;
  mix-blend-mode: screen;
}

@keyframes puff {
  0% {
    transform: translate(-50%, 0) scale(0.3);
    opacity: 1;
  }

  100% {
    transform: translate(calc(-50% + var(--tx)), var(--ty)) scale(1.5);
    opacity: 0;
  }
}

@keyframes dragon-live {
  0% {
    transform: translateY(0px) scale(0.98) rotate(-2deg);
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--bg-secondary);
  }

  50% {
    transform: translateY(-10px) scale(1.02) rotate(2deg);
    box-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--bg-secondary);
  }

  100% {
    transform: translateY(-5px) scale(0.98) rotate(-1deg);
    box-shadow: 0 0 15px var(--primary-color), 0 0 25px var(--bg-secondary);
  }
}

.division {
  width: 100%;
  height: 2px;
  background-color: var(--card-background);
  margin: 5.5rem 0;
}

/* Projects */
#projects {
  display: flex;
  flex-direction: column;
  margin: 2rem auto 5rem;
}

#projects .btn {
  align-self: center;
  margin: 2rem 0;
}

.project {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(250px, auto);
  grid-gap: 0.9rem;
}

.card .project-bio p {
  font-size: 0.83rem;
}

.card .project-bio h3 {
  font-size: 0.9rem;
}



/* Footer */
#footer {
  background: #111111;
}

#footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  min-height: 160px;
  text-align: center;
}

#footer a {
  font-size: 0.8rem;
  color: #fff;
}

#footer a:hover {
  opacity: 0.6;
}

#footer .social {
  margin: 0.9rem 0;
}

#footer .social img {
  width: 20px;
  height: 20px;
}

#footer .social a {
  margin: 0 0.5rem;
}

#footer p {
  font-size: 0.8rem;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsiveness */

@media (max-width: 1000px) {
  .project {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {}

@media (max-width: 670px) {
  .navbar .nav-menu {
    position: fixed;
    right: -100vw;
    top: 4.5rem;
    flex-direction: column;
    width: calc(80% - 10px);
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem;
    border-radius: 5px;
    align-items: flex-start;
  }

  .navbar .btn {
    margin: 0;
    margin-top: 1rem;
  }

  .nav-menu.active {
    right: 20px;
  }

  .nav-menu .nav-link {
    font-size: 0.9rem;
    margin: 0 0.2rem;
  }

  .nav-menu li {
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .nav-menu .btn {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
  }

  .hamburger.active {
    border: 1px dotted gray;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 600px) {
  .project {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-container .btn {
    border-radius: 5px;
    width: 80%;
  }
}