/* Custom Styles for Yuvraj Digital Marketing Portfolio */

:root {
  --primary-mint: #00E599;
  --primary-mint-hover: #05F196;
  --primary-mint-glow: rgba(0, 229, 153, 0.35);
  --dark-bg: #080C14;
  --dark-surface: #0E1424;
  --dark-card: #121A2D;
  --dark-border: rgba(255, 255, 255, 0.08);
  --dark-border-hover: rgba(0, 229, 153, 0.3);
  --light-bg: #F8FAFC;
  --light-surface: #FFFFFF;
  --light-border: #E2E8F0;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-hand: 'Caveat', cursive;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
}

body {
  background-color: var(--dark-bg);
  color: #F8FAFC;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Handwritten Doodle Typography */
.font-hand {
  font-family: var(--font-hand);
}

/* Glassmorphism Styles */
.glass-nav {
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-dark {
  background: rgba(18, 26, 45, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--dark-border);
}

.glass-card-dark:hover {
  border-color: var(--dark-border-hover);
}

/* Glowing Neon Elements */
.glow-mint {
  box-shadow: 0 0 25px var(--primary-mint-glow);
}

.glow-mint-sm {
  box-shadow: 0 0 12px var(--primary-mint-glow);
}

.text-glow {
  text-shadow: 0 0 16px rgba(0, 229, 153, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #080C14;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-mint);
}

/* Button & Pill Animations */
.btn-mint {
  background: var(--primary-mint);
  color: #080C14;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-mint:hover {
  background: var(--primary-mint-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-mint-glow);
}
.btn-mint:active {
  transform: translateY(0);
}

.btn-outline-dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* Section Rhythm Themes */
.theme-dark {
  background-color: var(--dark-bg);
  color: #F8FAFC;
}

.theme-light {
  background-color: #FFFFFF;
  color: #0F172A;
}

.theme-light-alt {
  background-color: #F8FAFC;
  color: #0F172A;
}

/* Service Card Transitions */
.service-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 153, 0.35);
  box-shadow: 0 14px 32px -10px rgba(0, 229, 153, 0.18);
}
.service-card:hover .service-arrow {
  transform: translate(3px, -3px);
  color: var(--primary-mint);
}

/* Tool & Tech Badges */
.tool-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: #94A3B8;
}

/* Project Card Hover Animation */
.project-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 153, 0.4);
  box-shadow: 0 18px 38px -12px rgba(0, 229, 153, 0.2);
}
.project-card:hover .project-img {
  transform: scale(1.04);
}

/* Filter Tab Pills */
.filter-btn {
  transition: all 0.25s ease;
}
.filter-btn.active {
  background-color: var(--primary-mint);
  color: #080C14;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 229, 153, 0.3);
}
.filter-btn:not(.active) {
  background-color: rgba(255, 255, 255, 0.06);
  color: #94A3B8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.filter-btn:not(.active):hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

/* Floating Animations */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.floating-element {
  animation: floatSlow 4s ease-in-out infinite;
}

/* Status Pulsing Indicator */
@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 229, 153, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(0, 229, 153, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 229, 153, 0);
  }
}
.pulse-dot {
  animation: pulseDot 2s infinite;
}

/* ===================================================
   FOOTER ANIMATIONS & HOVER EFFECTS (User Request)
   =================================================== */

/* Animated glowing gradient border on footer container */
@keyframes borderShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.footer-glow-border {
  position: relative;
}
.footer-glow-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 153, 0.6), rgba(59, 130, 246, 0.6), transparent);
  background-size: 200% 200%;
  animation: borderShift 6s ease infinite;
}

/* Footer Link with animated sliding underline */
.footer-nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.footer-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-mint);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}
.footer-nav-link:hover {
  color: #FFFFFF;
}
.footer-nav-link:hover::after {
  width: 100%;
}

/* Footer Social Cards with 3D lift & neon glow on hover */
.footer-social-card {
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-social-card:hover {
  transform: translateY(-5px) scale(1.05);
  background: rgba(0, 229, 153, 0.12);
  border-color: var(--primary-mint);
  box-shadow: 0 8px 24px var(--primary-mint-glow);
  color: var(--primary-mint);
}
.footer-social-card svg {
  transition: transform 0.3s ease;
}
.footer-social-card:hover svg {
  transform: scale(1.15) rotate(3deg);
}

/* Floating Back to Top Button */
.back-to-top-btn {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.back-to-top-btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 229, 153, 0.35);
  background-color: var(--primary-mint-hover);
  color: #080C14;
}
.back-to-top-btn:hover svg {
  animation: bounceUp 1.2s infinite;
}

@keyframes bounceUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Footer Live Status Badge */
.footer-status-pill {
  transition: all 0.3s ease;
}
.footer-status-pill:hover {
  border-color: rgba(0, 229, 153, 0.5);
  box-shadow: 0 0 16px rgba(0, 229, 153, 0.25);
  transform: translateY(-1px);
}

/* Quick Copy Email Tooltip Badge */
.copy-email-btn {
  position: relative;
  transition: all 0.25s ease;
}
.copy-email-btn:hover {
  border-color: rgba(0, 229, 153, 0.4);
  color: #FFFFFF;
}

/* Modal Styling */
.modal-overlay {
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
