/* ============================================
   Novaro Futuristic UI - Custom Styles
   ============================================ */

/* === Color Variables === */
:root {
  --deep-space: #0A0E27;
  --electric-indigo: #6366F1;
  --cyber-purple: #A855F7;
  --neon-cyan: #06B6D4;
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-hover: rgba(255, 255, 255, 0.12);

  /* Gradients */
  --gradient-aurora: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-ocean: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-sunset: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-forest: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --gradient-fire: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* === Base Glassmorphism === */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.3s ease;
}

.glass-hover:hover {
  background: var(--glass-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-input {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  color: white;
  transition: all 0.3s ease;
}

.glass-input:focus {
  outline: none;
  border: 1px solid var(--electric-indigo);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Fix for select dropdowns */
.glass-input option {
  background: #1a1f3a;
  color: white;
  padding: 0.5rem;
}

.glass-input select option {
  background: #1a1f3a;
  color: white;
}

/* === Buttons === */
.btn-primary {
  background: var(--gradient-aurora);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.6);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--glass-border);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--glass-hover);
  border-color: var(--electric-indigo);
  transform: translateY(-2px);
}

.btn-icon {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: var(--glass-hover);
  transform: scale(1.1);
}

/* === Badges === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid;
  transition: all 0.2s ease;
}

.badge-success {
  background: rgba(67, 233, 123, 0.15);
  color: #43e97b;
  border-color: rgba(67, 233, 123, 0.3);
}

.badge-danger {
  background: rgba(245, 87, 108, 0.15);
  color: #f5576c;
  border-color: rgba(245, 87, 108, 0.3);
}

.badge-warning {
  background: rgba(254, 225, 64, 0.15);
  color: #fee140;
  border-color: rgba(254, 225, 64, 0.3);
}

.badge-info {
  background: rgba(6, 182, 212, 0.15);
  color: #06B6D4;
  border-color: rgba(6, 182, 212, 0.3);
}

.badge-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* === Tables === */
.table-glass {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}

.table-glass thead th {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  border: none;
  border-bottom: 1px solid var(--glass-border);
}

.table-glass tbody tr {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  border-radius: 0.5rem;
}

.table-glass tbody tr:hover {
  background: var(--glass-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.table-glass tbody td {
  padding: 1rem;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.table-glass tbody td:first-child {
  border-left: 1px solid var(--glass-border);
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}

.table-glass tbody td:last-child {
  border-right: 1px solid var(--glass-border);
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

/* === Modals === */
.modal-backdrop {
  background: rgba(10, 14, 39, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-aurora);
  border-radius: 10px;
  transition: all 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-ocean);
}

/* === Particle Background === */
.particle-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, #0A0E27 0%, #1a1f3a 100%);
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.8) 0%, rgba(99, 102, 241, 0) 70%);
  animation: float 20s infinite ease-in-out;
  opacity: 0.3;
}

.particle:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.particle:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 60%;
  left: 80%;
  animation-delay: 2s;
  animation-duration: 20s;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.8) 0%, rgba(168, 85, 247, 0) 70%);
}

.particle:nth-child(3) {
  width: 100px;
  height: 100px;
  top: 80%;
  left: 20%;
  animation-delay: 4s;
  animation-duration: 30s;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.8) 0%, rgba(6, 182, 212, 0) 70%);
}

.particle:nth-child(4) {
  width: 50px;
  height: 50px;
  top: 30%;
  left: 70%;
  animation-delay: 1s;
  animation-duration: 18s;
}

.particle:nth-child(5) {
  width: 70px;
  height: 70px;
  top: 50%;
  left: 40%;
  animation-delay: 3s;
  animation-duration: 22s;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.8) 0%, rgba(168, 85, 247, 0) 70%);
}

/* === Animations === */
@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, -50px) scale(1.1);
  }
  50% {
    transform: translate(-30px, -100px) scale(0.9);
  }
  75% {
    transform: translate(-80px, -50px) scale(1.05);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.8);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes border-flow {
  0%, 100% {
    border-color: var(--electric-indigo);
  }
  50% {
    border-color: var(--cyber-purple);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* === Animation Classes === */
.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.4s ease-out forwards;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-slideInRight {
  animation: slideInRight 0.5s ease-out forwards;
}

.animate-scaleIn {
  animation: scaleIn 0.4s ease-out forwards;
}

/* Stagger delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* === Gradient Text === */
.gradient-text {
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-ocean {
  background: var(--gradient-ocean);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-forest {
  background: var(--gradient-forest);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Progress Bars === */
.progress-bar {
  width: 100%;
  height: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-aurora);
  border-radius: 9999px;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

/* === Circular Progress === */
.circular-progress {
  position: relative;
  width: 80px;
  height: 80px;
}

.circular-progress svg {
  transform: rotate(-90deg);
}

.circular-progress circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.circular-progress .circle-bg {
  stroke: rgba(255, 255, 255, 0.1);
}

.circular-progress .circle-progress {
  stroke: url(#gradient);
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 0.5s ease;
}

/* === Form Enhancements === */
.floating-label {
  position: relative;
}

.floating-label input,
.floating-label textarea {
  width: 100%;
  padding: 1rem 1rem 0.5rem 1rem;
}

.floating-label label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
  pointer-events: none;
  font-size: 1rem;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label {
  top: 0.25rem;
  font-size: 0.75rem;
  color: var(--electric-indigo);
}

/* === File Upload === */
.upload-zone {
  border: 2px dashed var(--glass-border);
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-zone:hover {
  border-color: var(--electric-indigo);
  background: var(--glass-hover);
  transform: scale(1.02);
}

.upload-zone.dragover {
  border-color: var(--neon-cyan);
  background: rgba(6, 182, 212, 0.1);
  transform: scale(1.05);
}

/* === Stats Cards === */
.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-aurora);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.3);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.stat-number-forest {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-forest);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.stat-number-ocean {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-ocean);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.stat-number-sunset {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* === Alert Messages === */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  backdrop-filter: blur(10px);
  border: 1px solid;
  margin-bottom: 1rem;
  animation: fadeInUp 0.4s ease-out;
}

.alert-success {
  background: rgba(67, 233, 123, 0.1);
  border-color: rgba(67, 233, 123, 0.3);
  color: #43e97b;
}

.alert-danger {
  background: rgba(245, 87, 108, 0.1);
  border-color: rgba(245, 87, 108, 0.3);
  color: #f5576c;
}

.alert-warning {
  background: rgba(254, 225, 64, 0.1);
  border-color: rgba(254, 225, 64, 0.3);
  color: #fee140;
}

.alert-info {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  color: #06B6D4;
}

/* === Loading States === */
.loading-spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--electric-indigo);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: rotate 1s linear infinite;
}

.loading-dots {
  display: flex;
  gap: 0.5rem;
}

.loading-dots span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--electric-indigo);
  animation: pulse 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

/* === PDF Viewer === */
object[type="application/pdf"] {
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pdf-viewer-container {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1rem;
  height: 100%;
}

/* === Navbar === */
.navbar-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* === Avatar === */
.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gradient-aurora);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
  border: 2px solid var(--glass-border);
}

/* === Responsive === */
@media (max-width: 768px) {
  .glass-card {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .particle {
    display: none;
  }
}

/* === Utility Classes === */
.blur-bg {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.text-shadow {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.elevation-1 {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.elevation-2 {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.elevation-3 {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* === Custom fade-in (keeping for backward compatibility) === */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fade-in 0.4s ease-out;
}

/* ============================================
   ENHANCED INTERACTIVE EFFECTS
   ============================================ */

/* === Animated Gradient Background === */
.animated-gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: linear-gradient(45deg, #0A0E27, #1a1f3a, #2a1f4a, #1a1f3a, #0A0E27);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === Mouse Follower === */
.mouse-follower {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}

/* === Floating Geometric Shapes === */
.geometric-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: floatShape 20s infinite ease-in-out;
}

.shape-1 {
  width: 150px;
  height: 150px;
  border: 2px solid var(--electric-indigo);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 10%;
  left: 15%;
  animation-duration: 25s;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  border: 2px solid var(--cyber-purple);
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  top: 60%;
  right: 10%;
  animation-duration: 30s;
  animation-delay: 5s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  border: 2px solid var(--neon-cyan);
  border-radius: 41% 59% 41% 59% / 41% 59% 41% 59%;
  bottom: 20%;
  left: 50%;
  animation-duration: 20s;
  animation-delay: 2s;
}

@keyframes floatShape {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  33% {
    transform: translate(50px, -80px) rotate(120deg) scale(1.1);
  }
  66% {
    transform: translate(-50px, -120px) rotate(240deg) scale(0.9);
  }
}

/* === 3D Tilt Card Effect === */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease-out;
  will-change: transform;
  position: relative;
}

.tilt-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  border-radius: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tilt-card:hover::after {
  opacity: 1;
}

/* === Ripple Effect === */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* === Sparkle Effect === */
.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  animation: sparkleAnim 1s ease-out forwards;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
}

@keyframes sparkleAnim {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1) rotate(180deg);
    opacity: 1;
  }
  100% {
    transform: scale(0) rotate(360deg);
    opacity: 0;
  }
}

/* === Typing Text Animation === */
.typing-text {
  display: inline-block;
  overflow: hidden;
  border-right: 3px solid var(--electric-indigo);
  white-space: nowrap;
  animation: typing 2s steps(7) 0.5s forwards, blink 0.75s step-end infinite;
  max-width: 0;
}

@keyframes typing {
  from { max-width: 0; }
  to { max-width: 200px; }
}

@keyframes blink {
  from, to { border-color: transparent; }
  50% { border-color: var(--electric-indigo); }
}

/* Stop blinking after animation */
.typing-text {
  animation: typing 2s steps(7) 0.5s forwards, blink 0.75s step-end 2s 3;
}

/* === Fade In Text === */
.fade-in-text {
  opacity: 0;
  animation: fadeInText 1s ease-in 2.5s forwards;
}

@keyframes fadeInText {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Enhanced Particle Interaction === */
.particle {
  transition: transform 0.3s ease-out;
  will-change: transform;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
  .mouse-follower {
    width: 200px;
    height: 200px;
  }

  .geometric-shapes {
    display: none;
  }

  .tilt-card {
    transform: none !important;
  }

  .typing-text {
    animation: none;
    max-width: none;
    border-right: none;
  }

  .fade-in-text {
    opacity: 1;
    animation: none;
  }
}

/* === Security Badge Pulse Enhancement === */
.glass.animate-pulse {
  animation: securityPulse 3s ease-in-out infinite;
}

@keyframes securityPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    border-color: rgba(6, 182, 212, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.6);
    border-color: rgba(6, 182, 212, 0.6);
  }
}
