@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

/* --- Global & Utilities --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for fixed header */
}

body {
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* --- Animations --- */

/* Floating Animation requiring custom keyframes */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Glow Effect for Buttons */
.glow-effect {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.glow-effect::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease-out;
  opacity: 0;
  pointer-events: none;
}

.glow-effect:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.glow-effect:hover {
  box-shadow: 0 0 20px rgba(19, 127, 236, 0.6);
  transform: translateY(-2px);
}

/* Glassmorphism Card Hover */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dark .glass-card {
  background: rgba(26, 38, 50, 0.7); /* Matching dark theme bg */
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
  border-color: rgba(19, 127, 236, 0.3);
}

.dark .glass-card:hover {
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.5);
  border-color: rgba(19, 127, 236, 0.5);
}

/* --- Section Specifics --- */

/* Hero Background Abstract Shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: 0;
}

.shape-1 {
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #3b82f6 0%, rgba(59, 130, 246, 0) 70%);
  animation: pulse-slow 8s infinite alternate;
}

.shape-2 {
  bottom: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    #8b5cf6 0%,
    rgba(139, 92, 246, 0) 70%
  ); /* Purple accent */
  animation: pulse-slow 10s infinite alternate-reverse;
}

@keyframes pulse-slow {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

/* Portfolio Hover Reveal */
.portfolio-overlay {
  background: linear-gradient(
    to top,
    rgba(16, 25, 34, 0.9) 0%,
    rgba(16, 25, 34, 0.4) 50%,
    rgba(16, 25, 34, 0) 100%
  );
}

/* Contact Input Focus */
.input-focus-anim {
  transition: all 0.3s ease;
}

.input-focus-anim:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(19, 127, 236, 0.15);
}

/* Mobile Menu Transition */
#mobile-menu {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.mobile-menu-hidden {
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
}

.mobile-menu-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
