@import "tailwindcss";
:root {
  --font-mono: "JetBrains Mono", monospace, Arial;
}

body {
  font-family: var(--font-mono);
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.glass-header {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-text {
  background: linear-gradient(135deg, #6366f1 0%, #14b8a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-border {
  position: relative;
  background: linear-gradient(135deg, #6366f1 0%, #14b8a6 100%);
  padding: 2px;
  border-radius: 1rem;
}

.gradient-border-inner {
  /* background: white; */
  background: rgba(255, 255, 255, 0.1);
  border-radius: calc(1rem - 2px);
  padding: 1.5rem;
}

.dark .gradient-border-inner {
  background: #0f172a;
}

/* Card hover effects */
.project-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.25);
}

/* Button hover effects */
.btn-primary {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

/* Input focus effects */
.input-field {
  transition: all 0.3s ease;
}

.input-field:focus {
  transform: scale(1.02);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Social icon hover */
.social-icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.1);
}

/* Section hover effects */
.section-hover {
  transition: all 0.3s ease;
}

.section-hover:hover {
  background: rgba(99, 102, 241, 0.05);
}

/* Badge styling */
.badge {
  transition: all 0.3s ease;
}

.badge:hover {
  transform: scale(1.05);
}

/* Nav link underline animation */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #14b8a6);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu animation */
#mobile-menu {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu:not(.hidden) {
  animation: fadeInUp 0.3s ease-out;
}

/* Custom scrollbar for experience cards */
.max-h-\[500px\].overflow-y-auto::-webkit-scrollbar {
  width: 6px;
}

.max-h-\[500px\].overflow-y-auto::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.max-h-\[500px\].overflow-y-auto::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #6366f1, #14b8a6);
  border-radius: 3px;
}

.dark .max-h-\[500px\].overflow-y-auto::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.dark .max-h-\[500px\].overflow-y-auto::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #818cf8, #2dd4bf);
}

/* Hide arrows on mobile, show on larger screens */
@media (max-width: 768px) {

  #exp-prev-btn,
  #exp-next-btn {
    display: none;
  }
}

/* Touch swipe support */
#experience-carousel {
  touch-action: pan-y pinch-zoom;
}