@import url("https://fonts.googleapis.com/css2?family=poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "poppins", sans-serif;
}
:root {
  --bg-color: #081b29;
  --second-bg-color: #112e42;
  --text-color: #ededed;
  --main-color: #00abf0;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  cursor: none;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  box-shadow: 0 0 20px var(--main-color), 0 0 40px rgba(0, 171, 240, 0.4);
  transform: translate(-50%, -50%);
  left: 0;
  top: 0;
  transition: width 0.2s, height 0.2s, box-shadow 0.2s;
  animation: cursorPulse 1.5s ease-in-out infinite;
  background: transparent;
}

/* Cursor inner dot */
.cursor::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--main-color);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--main-color);
  z-index: 1;
}

/* Pulse animation */
@keyframes cursorPulse {
  0%, 100% {
    box-shadow: 0 0 20px var(--main-color), 0 0 40px rgba(0, 171, 240, 0.4);
  }
  50% {
    box-shadow: 0 0 25px var(--main-color), 0 0 50px rgba(0, 171, 240, 0.5);
  }
}

/* Cursor on hover */
.cursor.active {
  width: 50px;
  height: 50px;
  box-shadow: 0 0 30px var(--main-color), 0 0 60px rgba(0, 171, 240, 0.6);
}

/* Wave container */
#cursor-wave-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}

.cursor-wave {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: waveExpand 0.6s ease-out forwards;
  box-shadow: 0 0 10px var(--main-color);
}

@keyframes waveExpand {
  0% {
    width: 20px;
    height: 20px;
    opacity: 1;
    box-shadow: 0 0 10px var(--main-color), 0 0 20px rgba(0, 171, 240, 0.6);
  }
  100% {
    width: 80px;
    height: 80px;
    opacity: 0;
    box-shadow: 0 0 30px var(--main-color), 0 0 60px rgba(0, 171, 240, 0.3);
  }
}

/* Burst container */
#cursor-burst-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.cursor-particle {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--main-color);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--main-color);
  pointer-events: none;
  animation: particleBurst 0.6s ease-out forwards;
}

@keyframes particleBurst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--vx) * 60px), calc(var(--vy) * 60px)) scale(0);
  }
}

.container1 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.heading {
  text-align: center;
  font-size: 60px;
  padding-bottom: 30px;
}

.heading span {
  color: var(--main-color);
}

.animate {
  opacity: 1;
}

.animate.scroll {
  transition: 1s ease;
  transition-delay: calc(0.3s / var(--i));
}

.animate.home-img {
  width: 50%;
}

.logo .animate,
.navbar .animate,
#menu-icon .animate,
.home.show-animate .animate {
  animation: showRight 1s ease forwards;
  animation-delay: calc(0.3s * var(--i));
}

@keyframes showRight {
  100% {
    width: 0;
  }
}

@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}

@media (max-width: 991px) {
  .header {
    padding: 2rem 4%;
  }
  section {
    padding: 10rem 4% 2rem;
  }
  .home {
    padding: 0 4%;
  }
  .footer {
    padding: 2rem 4%;
  }
}

@media (max-width: 768px) {
  .header {
    background-color: var(--bg-color);
  }

  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: -100%;
    width: 100%;
    padding: 1rem 4%;
    background-color: var(--main-color);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: 0.25s ease;
    transition-delay: 0.25s;
  }
  .navbar.active {
    left: 0;
    transition-delay: 0s;
  }
  .navbar .active-nav {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
    z-index: -1;
    transition: 0.25s ease;
    transition-delay: 0s;
  }
  .navbar.active .active-nav {
    left: 0;
    transition-delay: 0.25s;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
    transform: translateX(-20rem);
    transition: 0.25s ease;
    transition-delay: 0s;
  }
  .navbar.active a {
    transform: translateX(0);
    transition-delay: 0.25s;
  }

  .home-imghover {
    pointer-events: none;
    background-color: var(--bg-color);
    opacity: 0.6;
  }
}

@media (max-width: 520px) {
  html {
    font-size: 50%;
  }
  .home-content h1 {
    display: flex;
    flex-direction: column;
  }

  .home-sci {
    width: 160px;
  }
  .home-sci a {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 462px) {
  .home-content h1 {
    font-size: 5.2rem;
  }
  .education {
    padding: 10rem 4% 5rem 5%;
  }
  .footer {
    flex-direction: column-reverse;
  }
  .footer p {
    margin-top: 2rem;
    text-align: center;
  }
}

@media (max-width: 371px) {
  .home {
    justify-content: center;
  }

  .home-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
  .home-content h1 {
    font-size: 5rem;
  }
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: 70px;
}

section {
  padding-top: 80px;
}

@media (max-width: 768px) {
  section {
    padding-top: 50px;
  }
}
