/* ============================================
   Arjun M Portfolio | Global Stylesheet
   ============================================ */

/* --- Ambient Orbs --- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.orb-tr {
  top: -120px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,45,120,0.25), rgba(190,24,93,0.15), transparent 70%);
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-bl {
  bottom: -120px; left: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(236,72,153,0.2), rgba(157,23,77,0.12), transparent 70%);
  animation: orbFloat 10s ease-in-out infinite reverse;
}
.grid-overlay {
  position: absolute; inset: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(236,72,153,0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236,72,153,0.6) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(20px,-20px) scale(1.05); }
  66% { transform: translate(-10px,15px) scale(0.97); }
}

/* --- Glassmorphism Cards --- */
.glass-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.glass-card-pink {
  background: rgba(236,72,153,0.06);
  border: 1px solid rgba(236,72,153,0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.glass-card-hover {
  transition: all 0.3s ease;
}
.glass-card-hover:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(236,72,153,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(236,72,153,0.1);
}

/* --- Navigation --- */
.nav-inner {
  transition: all 0.3s ease;
}
#mainNav.scrolled .nav-inner {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(236,72,153,0.1);
}
.nav-link { position: relative; }
.nav-active {
  color: #ff2d78;
  background: rgba(255,45,120,0.08);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; right: 50%;
  height: 2px;
  background: linear-gradient(90deg, #ff2d78, #ec4899);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-link:hover::after, .nav-active::after {
  left: 12px; right: 12px;
}

/* --- Logo Mark --- */
.logo-mark {
  background: linear-gradient(135deg, #ff2d78, #ec4899);
}

/* --- Buttons --- */
.btn-pink {
  background: linear-gradient(135deg, #ff2d78, #be185d);
  box-shadow: 0 4px 20px rgba(255,45,120,0.3);
}
.btn-pink:hover {
  box-shadow: 0 8px 30px rgba(255,45,120,0.5);
}
.btn-outline-pink {
  border: 1px solid rgba(255,45,120,0.4);
  color: #ff2d78;
  transition: all 0.3s ease;
}
.btn-outline-pink:hover {
  background: rgba(255,45,120,0.1);
  border-color: #ff2d78;
  box-shadow: 0 0 20px rgba(255,45,120,0.2);
}

/* --- Gradient Text --- */
.gradient-text {
  background: linear-gradient(135deg, #ff2d78, #ec4899, #f9a8d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-animated {
  background: linear-gradient(270deg, #ff2d78, #ec4899, #be185d, #ff2d78);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}
@keyframes gradientShift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- Section Headings --- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,45,120,0.1);
  border: 1px solid rgba(255,45,120,0.2);
  color: #ff2d78;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* --- Skill Tags --- */
.skill-tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  font-weight: 500;
  color: #d1d5db;
  transition: all 0.2s ease;
}
.skill-tag:hover {
  background: rgba(255,45,120,0.1);
  border-color: rgba(255,45,120,0.3);
  color: #ff2d78;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

/* --- Profile Image Ring --- */
.profile-ring {
  position: relative;
  display: inline-block;
}
.profile-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff2d78, #ec4899, #be185d, transparent, transparent, #ff2d78);
  animation: rotateBorder 4s linear infinite;
  z-index: -1;
}
@keyframes rotateBorder {
  to { transform: rotate(360deg); }
}

/* --- Stats Counter --- */
.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff2d78, #f9a8d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Blog / Portfolio Cards --- */
.card-image-wrap {
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}
.card-image-wrap img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  transition: transform 0.5s ease;
}
.glass-card-hover:hover .card-image-wrap img {
  transform: scale(1.05);
}

/* --- Category Badge --- */
.cat-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,45,120,0.15);
  color: #ff2d78;
  border: 1px solid rgba(255,45,120,0.2);
}

/* --- Form Inputs --- */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}
.form-input::placeholder { color: rgba(255,255,255,0.3); }
.form-input:focus {
  border-color: rgba(255,45,120,0.5);
  background: rgba(255,45,120,0.05);
  box-shadow: 0 0 0 3px rgba(255,45,120,0.1);
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #9ca3af;
  margin-bottom: 6px;
}

/* --- Toast Notifications --- */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  padding: 14px 20px;
  border-radius: 14px;
  backdrop-filter: blur(16px);
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 280px;
  transform: translateX(110%);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.toast.show { transform: translateX(0); }
.toast-success {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  color: #6ee7b7;
}
.toast-error {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: linear-gradient(#ff2d78, #be185d); border-radius: 99px; }

/* --- Mobile App Feel --- */
@media (max-width: 768px) {
  .glass-card-hover:hover { transform: none; }
  body { -webkit-tap-highlight-color: transparent; }
}

/* --- Cursor Glow (Desktop) --- */
@media (hover: hover) {
  .cursor-glow {
    position: fixed; top: 0; left: 0;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,45,120,0.06), transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%,-50%);
    transition: transform 0.1s linear;
  }
}

/* --- Loading Spinner --- */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #ff2d78;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
