@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --primary: #3b82f6; 
  --primary-hover: #2563eb;
  --secondary: #6366f1;
  --bg-light: #f8fafc; 
  --bg-dark: #09090b;  
  --card-light: #ffffff;
  --card-dark: #09090b;
  --border-light: #e2e8f0;
  --border-dark: #27272a;
}

body {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

h1, h2, h3, .nav-link {
  font-family: 'Outfit', sans-serif;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(30px, -50px);
  }
  66% {
    transform: translate(-20px, 20px);
  }
}

.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.15) 0%,
    rgba(147, 51, 234, 0.15) 100%
  );
  filter: blur(80px);
  border-radius: 50%;
  z-index: -1;
  animation: float 20s infinite alternate;
}

.blob-1 {
  top: -100px;
  left: -100px;
}
.blob-2 {
  bottom: -100px;
  right: -100px;
  animation-delay: -5s;
}
.blob-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 25s;
}

.typing-cursor::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  background-color: #2563eb;
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

.animate-slide-in-up {
  animation: slideInUp 0.6s ease-out;
}

.animate-slide-in-down {
  animation: slideInDown 0.6s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark .glass-effect {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-card {
  animation: scaleIn 0.4s ease-out;
}

.skill-card.hidden {
  display: none;
}

.project-card {
  transition: all 0.3s ease-out;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card .rounded-2xl {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-color: var(--border-light);
}

.dark .project-card .rounded-2xl {
  border-color: var(--border-dark);
}

.project-card:hover .rounded-2xl {
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.1);
  border-color: var(--primary);
}

.project-card img {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

.skill-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.skill-card:hover {
  transform: translateY(-8px);
  background: white;
  box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.2);
}

.dark .skill-card:hover {
  background: #1e293b;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
  border-color: rgba(59, 130, 246, 0.3);
}

.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.dark ::-webkit-scrollbar-track {
  background: #0f172a;
}

.dark ::-webkit-scrollbar-thumb {
  background: #1e293b;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

#profileImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: transparent;
}

#profileImage.placeholder {
  display: none;
}

button {
  position: relative;
  overflow: hidden;
}

button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

button:hover::before {
  left: 100%;
}

.filter-btn {
  background: white;
  color: #64748b;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.dark .filter-btn {
  background: #0f172a;
  color: #94a3b8;
  border: 1px solid #1e293b;
}

.filter-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.dark .filter-btn:hover {
  background: #1e293b;
}

.filter-btn.active {
  background: #2563eb !important;
  color: white !important;
  border-color: #2563eb !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25) !important;
}

input,
textarea {
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dark input:focus,
.dark textarea:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.loading {
  animation: spin 1s linear infinite;
}

.nav-link {
  position: relative;
}

.nav-link.active {
  color: #2563eb;
  background-color: rgba(191, 219, 254, 0.5);
}

#projectsCarousel {
  scroll-behavior: smooth;
}

.project-card {
  min-width: 100%;
}

@media (min-width: 768px) {
  .project-card {
    min-width: calc(50% - 12px);
  }
}

@media (min-width: 1024px) {
  .project-card {
    min-width: calc(33.333% - 16px);
  }
}

#prevBtn:disabled,
#nextBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#carouselDots button:hover {
  transform: scale(1.2);
}

#carouselDots button:focus {
  outline: none;
}
