/* File: css/style.css - Final Definitive Version */
/* --- Base & Smooth Scrolling --- */
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', sans-serif;
  cursor: auto; /* Default cursor for all devices */
}

/* --- Cursor Firefly Style --- */
#cursor-firefly {
    position: fixed;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 0 8px #fff, 0 0 16px #fff, 0 0 24px #fef08a;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease-out;
}
#cursor-firefly.hovered {
    transform: scale(1.8);
}

/* --- Background Glow --- */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1; 
    pointer-events: none;
    background: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%),
        rgba(255, 255, 180, 0.15),
        transparent 5%
    );
    transition: background 0.4s ease-out;
}

/* --- Follower & Wanderer Firefly Styles --- */
#firefly-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 60; 
}

.firefly {
    position: absolute;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #f0e68c;
    animation: flicker 2.5s infinite alternate;
    will-change: transform;
}

@keyframes flicker {
    from { opacity: 0.4; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1.1); }
}

/* --- Animated Gradient --- */
.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- Typewriter --- */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1.5rem;
  background-color: white;
  animation: blink 1s infinite;
  vertical-align: bottom;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- Scroll-Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Floating Orbs for Hero --- */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    animation: float 15s infinite ease-in-out;
}
.orb-1 { width: 300px; height: 300px; background: rgba(168, 85, 247, 0.4); top: 10%; left: 15%; animation-duration: 12s; }
.orb-2 { width: 250px; height: 250px; background: rgba(34, 211, 238, 0.4); bottom: 15%; right: 20%; animation-duration: 18s; animation-delay: 2s; }
@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-40px) translateX(30px); }
}

/* --- Hiding Navbar on Scroll --- */
.nav-hidden {
  transform: translateY(-100%);
}

/* --- Project Card Shine Effect --- */
.card-shine {
    position: relative;
    overflow: hidden;
}
.card-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.2) 50%, transparent 80%);
    transform: skewX(-25deg);
    transition: left 0.7s ease-in-out;
}
.card-shine:hover::before {
    left: 150%;
}
.card-shine:hover img {
    transform: scale(1.05);
}
.card-shine img {
    transition: transform 0.4s ease;
}

/* --- SEAMLESS Section Glow Effect --- */
#section-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(200px circle at var(--mouse-x) var(--mouse-y), rgba(148, 163, 184, 0.08), transparent 80%);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* --- Custom Cursor for Mouse Devices Only --- */
@media (pointer: fine) {
  body {
    cursor: none;
  }
  a, button, [onclick], .card-shine, [class*="hover:"] {
      cursor: none !important;
  }
}

/* --- THE DEFINITIVE FIX: Hide cursor elements on touch devices --- */
@media (pointer: coarse) {
    #cursor-firefly,
    .background-glow,
    #section-glow {
        display: none !important;
    }
}
/* End of File: css/style.css - Final Definitive Version */
