* {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Timeline */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #3b82f6, #8b5cf6, #ec4899);
  transform: translateX(-50%);
}
@media (max-width: 768px) {
  .timeline-line {
    left: 24px;
  }
}

/* Navbar */
.navbar {
  transition: all 0.4s ease;
}
.navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero particles */
.hero-bg {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}
.hero-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      circle at 30% 50%,
      rgba(59, 130, 246, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 50%,
      rgba(139, 92, 246, 0.08) 0%,
      transparent 50%
    );
  animation: heroFloat 20s ease-in-out infinite;
}
@keyframes heroFloat {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(1deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(-1deg);
  }
}

/* Floating shapes */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  animation: float 15s ease-in-out infinite;
}
.floating-shape:nth-child(1) {
  width: 300px;
  height: 300px;
  background: #3b82f6;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}
.floating-shape:nth-child(2) {
  width: 200px;
  height: 200px;
  background: #8b5cf6;
  top: 60%;
  right: 10%;
  animation-delay: -5s;
}
.floating-shape:nth-child(3) {
  width: 150px;
  height: 150px;
  background: #ec4899;
  bottom: 10%;
  left: 30%;
  animation-delay: -10s;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(10deg);
  }
}

/* Card hover */
.exp-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.exp-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Skill bar animation */
.skill-bar-fill {
  width: 0;
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.skill-bar-fill.active {
  width: var(--skill-width);
}

/* Go to top */
.go-top {
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
.go-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Social icons */
.social-icon {
  transition: all 0.3s ease;
}
.social-icon:hover {
  transform: translateY(-4px) scale(1.15);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section divider */
.section-divider {
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    #3b82f6,
    #8b5cf6,
    #ec4899,
    transparent
  );
  border-radius: 2px;
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-menu.open {
  transform: translateX(0);
}

/* Input focus */
.form-input {
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.1);
}
.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  outline: none;
}
.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}
.form-input.success {
  border-color: #22c55e;
}

/* Typing animation */
.typing-text::after {
  content: "|";
  animation: blink 1s infinite;
}
@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Pulse ring */
.pulse-ring {
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  100% {
    box-shadow: 0 0 0 20px rgba(59, 130, 246, 0);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(#3b82f6, #8b5cf6);
  border-radius: 4px;
}

/* Toast notification */
.toast {
  transform: translateX(120%);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.toast.show {
  transform: translateX(0);
}

/* Counter animation */
.counter {
  font-variant-numeric: tabular-nums;
}

/* Tag hover */
.skill-tag {
  transition: all 0.3s ease;
}
.skill-tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Reference card */
.ref-card {
  transition: all 0.4s ease;
}
.ref-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Training card gradient border */
.training-card {
  position: relative;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 16px;
  overflow: hidden;
}
.training-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}
.training-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}
.training-card {
  transition: all 0.4s ease;
}
