/* Import Font */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;700&display=swap');


/* Global Styles */
/* Hide default cursor everywhere */

body, 
button, 
a, 
input, 
textarea, 
select {
  cursor: none !important;
}

body {
  font-family: 'Sora', sans-serif;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-x: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.15), transparent 35%),
              radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.18), transparent 30%),
              radial-gradient(circle at 70% 70%, rgba(34, 197, 94, 0.12), transparent 35%),
              #02040a;
}
html, body {
  height: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

#lenis-root {
  height: auto;
  min-height: 100vh;
}
#cursor-trail-canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9990;
}

body.scrolled {
  background-color: #f8fafc;
}
.dark body.scrolled {
  background-color: #0f172a;
}

/* Hover Animations */
button:focus, a:focus, input:focus, textarea:focus {
  outline: 2px solid #2563eb; /* Tailwind’s blue-600 */
  outline-offset: 2px;
}

a:hover, button:hover {
  transform: scale(1.03);
  transition: transform 0.2s ease-in-out;
}
.skill-tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Custom Cursor */
#cursor-dot, #cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

#cursor-dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease-out, background-color 0.2s ease-out;
  box-shadow: 0 0 5px white;
}
[data-parallax] {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

#cursor-ring {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: transform 0.25s ease-out, border-color 0.25s ease-out;
  mix-blend-mode: difference;
}
.dark #cursor-dot {
  background: #f0f0f0;
  box-shadow: 0 0 8px #f0f0f0;
}


/* Ring hover scale */
button:hover ~ #cursor-ring,
a:hover ~ #cursor-ring,
input:hover ~ #cursor-ring,
textarea:hover ~ #cursor-ring {
  transform: scale(1.5);
  border-color: white;
}

.cursor-hover {
  transform: translate(-50%, -50%) scale(1.5) !important;
  border-color: white;
}
.cursor-trail {
  position: fixed;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.5;
  box-shadow: 0 0 5px white;
  transform: translate(-50%, -50%);
  animation: fadeTrail 0.4s ease-out forwards;
}
.cursor-trail {
  position: fixed;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.5;
  transform: translate(-50%, -50%);
  animation: fadeTrail 0.5s ease-out forwards;
  box-shadow: 0 0 6px white;
}

@keyframes fadeTrail {
  to {
    opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  }
}

/* Mobile/Touch-friendly adjustments */
.is-touch body,
.is-touch button,
.is-touch a,
.is-touch input,
.is-touch textarea,
.is-touch select {
  cursor: auto !important;
}

.is-touch #cursor-dot,
.is-touch #cursor-ring,
.is-touch #cursor-trail-canvas {
  display: none !important;
}

@media (max-width: 768px) {
  body, button, a, input, textarea, select {
    cursor: auto !important;
  }
  #cursor-dot,
  #cursor-ring,
  #cursor-trail-canvas {
    display: none !important;
  }
  .glass-card:hover {
    transform: translateY(-4px);
  }
}


/* Glassmorphism Card */
.glass-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.glass-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 25px 45px -20px rgba(0, 0, 0, 0.6), 0 15px 35px rgba(15, 23, 42, 0.4);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 0.9rem;
  background: linear-gradient(120deg, #a78bfa, #60a5fa 40%, #34d399);
  color: #050505;
  font-weight: 600;
  box-shadow: 0 15px 40px rgba(96, 165, 250, 0.25), 0 10px 30px rgba(52, 211, 153, 0.15);
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.btn-gradient:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.05);
  box-shadow: 0 20px 50px rgba(96, 165, 250, 0.3), 0 15px 35px rgba(52, 211, 153, 0.2);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border-color 0.25s ease, background 0.25s ease;
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
}


/* Video Background */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
  object-fit: cover;
}

/* Fade In Animation */
.fade-in {
  animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity, filter;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Scroll Animation */
.scroll-section {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.scroll-section.from-left {
  transform: translateX(-100px) rotate(-5deg);
}
.scroll-section.from-right {
  transform: translateX(100px) rotate(5deg);
}
.scroll-section.from-bottom {
  transform: translateY(100px) scale(0.95);
}
.scroll-section.from-top {
  transform: translateY(-100px) scale(0.95);
}
.scroll-section.visible {
  opacity: 1;
  transform: translate(0) rotate(0) scale(1);
  filter: blur(0);
}

/* Typing Cursor */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background-color: currentColor;
  margin-left: 2px;
  vertical-align: middle;
}

/* Float Animation */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* Hamburger Menu */
.hamburger {
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Alert Styles */
.alert-success {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}
.alert-error {
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}
.dark .alert-success {
  background-color: #166534;
  color: #bbf7d0;
  border-color: #22c55e;
}
.dark .alert-error {
  background-color: #7f1d1d;
  color: #fecaca;
  border-color: #ef4444;
}

/* Blink Animation (optional if needed) */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
