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

:root {
  --primary-color: #13101e;
  --secondary-color: #53ee95;
  --text-color: #e9e9e9;
  --dark-accent: #201c35;
  --light-bg: #f5f5f7;
  --light-text: #13101e;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  transition: background-color 0.5s ease, color 0.5s ease;
}

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

.light {
  background-color: var(--light-bg);
  color: var(--light-text);
}

.hover-underline {
  position: relative;
  text-decoration: none;
}

.hover-underline::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--secondary-color);
  transition: width 0.3s ease-in-out;
}

.hover-underline:hover::after {
  width: 100%;
}

@media (max-width: 767px) {
  .custom-nav {
    height: 50px;
  }
}

@media (max-width: 770px) {
  .down-arrow-sec {
    bottom: -58px !important;
    left: 46%;
  }
}

.nav-item {
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
  transition: left 0.3s ease;
}

.nav-item:hover::before {
  left: 0;
}

.gradient-text {
  background: linear-gradient(90deg, #53ee95, #00c2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile-card {
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.animated-bg .shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    rgba(83, 238, 149, 0.3),
    rgba(0, 194, 255, 0.3)
  );
  animation: float 15s infinite ease-in-out;
}

.animated-bg .shape:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.animated-bg .shape:nth-child(2) {
  width: 200px;
  height: 200px;
  top: 50%;
  right: -50px;
  animation-delay: 2s;
}

.animated-bg .shape:nth-child(3) {
  width: 150px;
  height: 150px;
  bottom: -50px;
  left: 30%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

.scroll-arrow {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.theme-switch {
  position: relative;
  width: 60px;
  height: 30px;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.theme-switch-dark {
  background: #332954;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-switch-light {
  background: #e2e2e2;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.switch-handle {
  position: absolute;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.dark .switch-handle {
  left: 33px;
  background: #53ee95;
  box-shadow: 0 0 10px rgba(83, 238, 149, 0.5);
}

.light .switch-handle {
  left: 3px;
  background: #13101e;
}

/* Mobile menu animation */
.menu-transition {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.menu-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* For creating the blur effect on cards */
.dark .glass {
  background: rgba(32, 28, 53, 0.7);
}

.light .glass {
  background: rgba(255, 255, 255, 0.7);
}

.glass {
  backdrop-filter: blur(15px);
  border-radius: 16px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

.dark ::-webkit-scrollbar-track {
  background: var(--dark-accent);
}

.light ::-webkit-scrollbar-track {
  background: #ddd;
}

.dark ::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 4px;
}

.light ::-webkit-scrollbar-thumb {
  background: #13101e;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  opacity: 0.8;
}