/* Custom CSS for animations and effects */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

* {
  font-family: "Inter", sans-serif;
}

/* Glow effects */
.glow-cyan {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.glow-purple {
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.5);
}

.glow-green {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

/* Gradient animations */
.gradient-animation {
  background: linear-gradient(-45deg, #06b6d4, #8b5cf6, #10b981, #3b82f6);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Typewriter effect */
.typewriter {
  overflow: hidden;
  border-right: 3px solid #06b6d4;
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #06b6d4;
  }
}

/* Floating animation */
.float {
  animation: float 6s ease-in-out infinite;
}

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

/* Fade in animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom button hover effects */
.btn-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.4);
}

.btn-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-glow:hover::before {
  left: 100%;
}

/* Skill progress bars */
.skill-bar {
  background: linear-gradient(90deg, #06b6d4, #8b5cf6);
  animation: skillLoad 2s ease-in-out;
}

@keyframes skillLoad {
  from {
    width: 0%;
  }
}

/* Project card hover effects */
.project-card {
  transition: all 0.3s ease;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.3);
}

/* Navbar blur effect */
.navbar-blur {
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.9);
}

/* Scroll indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6, #10b981);
  z-index: 9999;
  transition: width 0.3s ease;
}

/* Enhanced Menu Bar Styles */
.navbar-blur {
  backdrop-filter: blur(15px);
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  transition: all 0.3s ease;
}

.navbar-blur.scrolled {
  background: rgba(15, 23, 42, 0.98);
  border-bottom: 1px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Enhanced Navigation Links */
.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 80%;
}

.nav-link:hover {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
  transform: translateY(-2px);
}

.nav-link.active {
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.1);
}

/* Enhanced Mobile Menu */
.mobile-menu-overlay {
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.mobile-nav-link {
  position: relative;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  font-weight: 500;
  margin: 0.5rem 0;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.mobile-nav-link:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.5);
  transform: translateX(10px);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

/* Hamburger Menu Animation */
.hamburger {
  width: 24px;
  height: 24px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #06b6d4;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2) {
  top: 8px;
}

.hamburger span:nth-child(3) {
  top: 16px;
}

.hamburger.active span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger.active span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

/* Logo Enhancement */
.logo-enhanced {
  position: relative;
  overflow: hidden;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.logo-enhanced::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.1), transparent);
  transition: left 0.5s;
}

.logo-enhanced:hover::before {
  left: 100%;
}

.logo-enhanced:hover {
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

/* Menu Item Indicators */
.menu-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-link:hover .menu-indicator {
  opacity: 1;
}

/* Notification Badge */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 12px;
  height: 12px;
  background: linear-gradient(45deg, #ef4444, #f97316);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
