/* ==================== PREMIUM DARK GLASSMORPHISM PORTFOLIO ==================== */

/* Root Variables & Theme System */
:root,
html:not([data-theme]),
html[data-theme="dark"] {
  /* Dark Theme Colors */
  --bg-primary: #0a0f1c;
  --bg-secondary: #0f1419;
  --bg-tertiary: #1a1f2e;
  
  /* Glass Effects */
  --glass-primary: rgba(255, 255, 255, 0.05);
  --glass-secondary: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.06);
  
  /* Color Palette */
  --text-primary: #e6eef8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Accent Colors */
  --accent-primary: #7c3aed;
  --accent-secondary: #06b6d4;
  --accent-tertiary: #f97316;
  --accent-quaternary: #06d6a0;
  --accent-pink: #ec4899;
  --accent-yellow: #eab308;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --gradient-secondary: linear-gradient(135deg, var(--accent-tertiary), var(--accent-quaternary));
  --gradient-rainbow: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary), var(--accent-quaternary), var(--accent-pink), var(--accent-yellow));
  
  /* Shadows */
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.37);
  --shadow-strong: 0 25px 50px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.2);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Animations */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-back: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Light Theme (Toggle) */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --glass-primary: rgba(255, 255, 255, 0.7);
  --glass-secondary: rgba(255, 255, 255, 0.85);
  --glass-strong: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(0, 0, 0, 0.08);
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 25px 50px rgba(0, 0, 0, 0.08);
}

/* Enhanced Theme Styles */
[data-theme="light"] .glow-border::before {
  opacity: 0.4;
  filter: blur(2px);
}

[data-theme="light"] .shimmer::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(138, 43, 226, 0.1),
    rgba(74, 144, 226, 0.1),
    rgba(138, 43, 226, 0.1),
    transparent
  );
}

[data-theme="light"] .hero {
  background: linear-gradient(135deg, 
    rgba(138, 43, 226, 0.05),
    rgba(74, 144, 226, 0.05),
    rgba(80, 227, 194, 0.05)
  );
}

[data-theme="light"] .code-preview {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  color: #2d3748;
}

[data-theme="light"] .floating-element {
  background: linear-gradient(135deg, 
    rgba(138, 43, 226, 0.8),
    rgba(74, 144, 226, 0.8)
  );
  box-shadow: 0 8px 20px rgba(138, 43, 226, 0.25);
}

/* Auto-apply glow borders to common elements */
.card, .card-3d, .glass, .nav, .btn-primary, .stat-item, .skill-item, .project-card, .certification-card, .contact-method, .social-link {
  position: relative;
}

.card:not(.no-glow), .card-3d:not(.no-glow), .glass:not(.no-glow), .nav, .btn-primary:not(.no-glow), .stat-item, .project-card:not(.no-glow) {
  border: 1px solid transparent;
  overflow: hidden;
}

.card:not(.no-glow):hover, .card-3d:not(.no-glow):hover, .glass:not(.no-glow):hover, .btn-primary:not(.no-glow):hover, .stat-item:hover, .project-card:not(.no-glow):hover {
  animation: hoverGlow 0.5s ease-in-out;
}

@keyframes hoverGlow {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.1); }
  100% { filter: brightness(1); }
}

/* Theme Transition Effects */
.theme-transitioning * {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: 
    radial-gradient(ellipse 800px 600px at 20% 0%, rgba(124, 58, 237, 0.04), transparent),
    radial-gradient(ellipse 600px 400px at 80% 100%, rgba(6, 182, 212, 0.03), transparent),
    radial-gradient(ellipse 1000px 800px at 50% 50%, rgba(249, 115, 22, 0.02), transparent),
    var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: all 0.3s var(--ease-out-expo);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--glass-secondary);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--glass-strong);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1em;
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s var(--ease-out-expo);
}

/* Container System */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-fluid {
  max-width: 100%;
  padding: 0 1.5rem;
}

/* Grid System */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Flex Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.gap-3 {
  gap: 1.5rem;
}

.gap-4 {
  gap: 2rem;
}

/* Glass Morphism Effects */
.glass {
  background: var(--glass-primary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  transition: all 0.3s var(--ease-out-expo);
}

.glass-strong {
  background: var(--glass-strong);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.glass:hover {
  background: var(--glass-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

/* Glow Border Animation */
.glow-border {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(45deg, 
    #8a2be2, #ff6b6b, #4ecdc4, #45b7d1, 
    #96ceb4, #fcea2b, #ff9ff3, #9b59b6,
    #e74c3c, #3498db, #2ecc71, #f39c12,
    #8a2be2);
  background-size: 400% 400%;
  border-radius: inherit;
  z-index: -1;
  opacity: 0.8;
  animation: infiniteGlow 8s linear infinite, glowPulse 3s ease-in-out infinite alternate;
  filter: blur(4px);
}

.glow-border::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-primary);
  border-radius: inherit;
  z-index: -1;
}

@keyframes infiniteGlow {
  0% { 
    background-position: 0% 50%;
    filter: blur(4px) hue-rotate(0deg);
  }
  25% {
    background-position: 100% 0%;
    filter: blur(6px) hue-rotate(90deg);
  }
  50% { 
    background-position: 100% 100%;
    filter: blur(4px) hue-rotate(180deg);
  }
  75% {
    background-position: 0% 100%;
    filter: blur(6px) hue-rotate(270deg);
  }
  100% {
    background-position: 0% 50%;
    filter: blur(4px) hue-rotate(360deg);
  }
}

@keyframes glowPulse {
  0% { 
    opacity: 0.6;
    transform: scale(1);
  }
  100% { 
    opacity: 1;
    transform: scale(1.02);
  }
}

/* Navigation */
.nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 2rem);
  max-width: 800px;
  padding: 0.75rem 1.5rem;
  background: var(--glass-primary);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-glass);
  transition: all 0.3s var(--ease-out-expo);
}

/* Page Header Styles - Fix Navigation Overlap */
.page-header {
  padding: 8rem 0 4rem 0;
  text-align: center;
  background: 
    radial-gradient(ellipse 600px 400px at 50% 0%, rgba(124, 58, 237, 0.08), transparent),
    radial-gradient(ellipse 800px 500px at 50% 100%, rgba(6, 182, 212, 0.06), transparent);
}

.page-header-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.nav:hover {
  background: var(--glass-secondary);
  box-shadow: var(--shadow-strong);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.125rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 600;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--glass-secondary);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--text-primary);
  background: var(--gradient-primary);
  box-shadow: var(--shadow-glow);
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out-expo);
}

.nav-link:hover::before {
  opacity: 0.1;
}

/* Theme Toggle */
.theme-toggle {
  padding: 0.5rem;
  background: var(--glass-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
}

.theme-toggle:hover {
  background: var(--glass-secondary);
  color: var(--text-primary);
  transform: rotate(180deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.btn::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.6s ease;
}

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

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-glow);
  border: 2px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 0 50px rgba(124, 58, 237, 0.4),
    0 15px 35px rgba(124, 58, 237, 0.3),
    0 0 0 1px rgba(124, 58, 237, 0.2);
  background: linear-gradient(135deg, #8b5cf6, #06b6d4, #10b981);
  background-size: 300% 300%;
  animation: gradientShift 2s ease infinite;
}

.btn-secondary {
  background: var(--glass-primary);
  color: var(--text-primary);
  border: 2px solid var(--glass-border);
  backdrop-filter: blur(20px);
}

.btn-secondary:hover {
  background: var(--glass-secondary);
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent-color);
  color: var(--accent-color);
  box-shadow: 
    0 10px 30px rgba(var(--accent-rgb), 0.3),
    0 0 0 1px rgba(var(--accent-rgb), 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--glass-border);
}

.btn-outline:hover {
  background: var(--glass-primary);
  color: var(--text-primary);
  border-color: var(--glass-secondary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(var(--glass-rgb), 0.2);
}

/* Special Go Programming Highlight */
.highlight-word:contains("Go"),
.skill-name:contains("Go"),
[data-skill="go"],
.go-highlight {
  background: linear-gradient(135deg, #00ADD8, #5DC9E2, #00758D);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goGradientShift 2s ease-in-out infinite, goPulse 3s ease-in-out infinite;
  font-weight: 800 !important;
  position: relative;
}

.highlight-word:contains("Go")::after,
.skill-name:contains("Go")::after {
  content: '🚀';
  position: absolute;
  top: -5px;
  right: -15px;
  font-size: 0.8em;
  animation: rocket 2s ease-in-out infinite;
}

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

@keyframes goPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.08); filter: brightness(1.3) drop-shadow(0 0 10px #00ADD8); }
}

@keyframes rocket {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(5deg); }
  75% { transform: translateY(-1px) rotate(-3deg); }
}
.counter {
  display: inline-block;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color), #ff6b6b);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease-in-out infinite, counterPulse 2s ease-in-out infinite;
  transition: all 0.3s ease;
}

.counter:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px var(--accent-color));
}

@keyframes counterPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.count-complete {
  animation: completePulse 0.3s ease-out !important;
}

@keyframes completePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); filter: brightness(1.3); }
  100% { transform: scale(1); }
}

/* Enhanced Stats Items */
.stat-item {
  position: relative;
  padding: 1.5rem;
  text-align: center;
  background: rgba(var(--glass-bg), 0.1);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s ease;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(var(--accent-rgb), 0.1), 
    rgba(var(--secondary-rgb), 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-item:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 
    0 20px 40px rgba(var(--accent-rgb), 0.2),
    0 0 0 1px rgba(var(--accent-rgb), 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Ripple Effect */
.btn::after {
  content: '';
  position: absolute;
  left: var(--ripple-x, 50%);
  top: var(--ripple-y, 50%);
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

/* Enhanced Shimmer Effect */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    rgba(138, 43, 226, 0.15),
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shimmerMove 3s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.shimmer:hover::before {
  animation: shimmerMove 1.5s ease-in-out infinite;
}

@keyframes shimmerMove {
  0% {
    left: -100%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* Cards */
.card {
  background: var(--glass-primary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-glass);
  transition: all 0.3s var(--ease-out-expo);
}

.card:hover {
  background: var(--glass-secondary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.3s var(--ease-out-expo);
}

.card-3d:hover {
  transform: translateY(-8px) rotateX(5deg) rotateY(5deg);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: var(--glass-secondary);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease-out-expo);
}

.badge:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-1px);
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

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

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

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

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out-expo);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s var(--ease-out-expo);
}

.reveal-left.show {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s var(--ease-out-expo);
}

.reveal-right.show {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s var(--ease-out-expo);
}

.reveal-scale.show {
  opacity: 1;
  transform: scale(1);
}

/* Typewriter Effect */
.typewriter {
  overflow: hidden;
  border-right: 2px solid var(--accent-primary);
  white-space: nowrap;
  margin: 0 auto;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: var(--accent-primary);
  }
}

/* Progress Bars */
.progress {
  width: 100%;
  height: 8px;
  background: var(--glass-primary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 1s var(--ease-out-expo);
  position: relative;
}

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

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Loading States */
.loading {
  animation: pulse 2s infinite;
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--glass-primary) 25%,
    var(--glass-secondary) 50%,
    var(--glass-primary) 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .nav {
    width: calc(100% - 1rem);
    padding: 0.5rem 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-mobile {
    display: block;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .card {
    padding: 1rem;
  }
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus States */
.focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(45deg, 
    #8a2be2, #ff6b6b, #4ecdc4, #45b7d1, 
    #96ceb4, #fcea2b, #ff9ff3, #8a2be2);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nameGradientShift 4s ease-in-out infinite;
  font-weight: 800;
  position: relative;
}

.text-gradient::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    #8a2be2, #ff6b6b, #4ecdc4, #45b7d1, 
    #96ceb4, #fcea2b, #ff9ff3, #8a2be2);
  background-size: 400% 400%;
  opacity: 0.3;
  filter: blur(10px);
  animation: nameGradientShift 4s ease-in-out infinite;
  z-index: -1;
}

@keyframes nameGradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
}

/* Special animation for name */
.animated-name {
  position: relative;
  display: inline-block;
  animation: nameFloat 3s ease-in-out infinite;
}

.animated-name:hover {
  animation: nameGlow 1s ease-in-out, nameFloat 3s ease-in-out infinite;
}

@keyframes nameFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.02);
  }
}

@keyframes nameGlow {
  0% {
    filter: drop-shadow(0 0 5px rgba(138, 43, 226, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.8)) drop-shadow(0 0 30px rgba(255, 107, 107, 0.6));
  }
  100% {
    filter: drop-shadow(0 0 5px rgba(138, 43, 226, 0.5));
  }
}

/* Dynamic Color-Changing Text Elements */
.color-shift {
  background: linear-gradient(45deg, 
    #8a2be2, #ff6b6b, #4ecdc4, #45b7d1, 
    #96ceb4, #fcea2b, #ff9ff3, #9b59b6,
    #e74c3c, #3498db, #2ecc71, #f39c12,
    #8a2be2);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: colorShift 6s ease-in-out infinite;
  font-weight: 700;
}

.color-shift-slow {
  background: linear-gradient(90deg, 
    #8a2be2, #ff6b6b, #4ecdc4, #45b7d1, 
    #96ceb4, #fcea2b, #ff9ff3, #8a2be2);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: colorShiftSlow 8s linear infinite;
}

.color-shift-fast {
  background: linear-gradient(120deg, 
    #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, 
    #fcea2b, #ff9ff3, #8a2be2, #ff6b6b);
  background-size: 500% 500%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: colorShiftFast 4s ease-in-out infinite;
}

.color-pulse {
  animation: colorPulse 3s ease-in-out infinite;
}

@keyframes colorShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
}

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

@keyframes colorShiftFast {
  0%, 100% {
    background-position: 0% 50%;
    filter: hue-rotate(0deg);
  }
  33% {
    background-position: 50% 100%;
    filter: hue-rotate(120deg);
  }
  66% {
    background-position: 100% 0%;
    filter: hue-rotate(240deg);
  }
}

@keyframes colorPulse {
  0%, 100% {
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
  }
  25% {
    color: #ff6b6b;
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.6);
  }
  50% {
    color: #4ecdc4;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.7);
  }
  75% {
    color: #45b7d1;
    text-shadow: 0 0 15px rgba(69, 183, 209, 0.6);
  }
}

/* Page Title Animations */
.page-title {
  position: relative;
}

.page-title.color-shift::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(138, 43, 226, 0.2), 
    rgba(255, 107, 107, 0.2), 
    rgba(78, 205, 196, 0.2),
    rgba(69, 183, 209, 0.2));
  background-size: 400% 400%;
  opacity: 0.3;
  filter: blur(20px);
  animation: colorShift 6s ease-in-out infinite;
  z-index: -1;
}

/* Special highlight for important words */
.highlight-word {
  background: linear-gradient(45deg, 
    #8a2be2, #ff6b6b, #4ecdc4, #8a2be2);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: highlightShift 3s ease-in-out infinite;
  font-weight: 800;
  position: relative;
}

.highlight-word::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    #8a2be2, #ff6b6b, #4ecdc4, #8a2be2);
  background-size: 200% 200%;
  animation: highlightShift 3s ease-in-out infinite;
}

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.w-full { width: 100%; }

/* CTA Section Styles */
.cta-section {
  padding: 6rem 0;
  background: 
    radial-gradient(ellipse 800px 400px at 50% 50%, rgba(124, 58, 237, 0.08), transparent),
    radial-gradient(ellipse 600px 300px at 20% 100%, rgba(6, 182, 212, 0.06), transparent);
}

.cta-content {
  text-align: center;
  padding: 4rem 3rem;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  position: relative;
  background: var(--glass-primary);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.cta-content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer Styles */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 45px;
  height: 45px;
  background: var(--glass-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s var(--ease-out-expo);
}

.footer-social a:hover {
  background: var(--glass-secondary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-column h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
}
.h-full { height: 100%; }

.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }

/* Print Styles */
@media print {
  .nav,
  .btn,
  .glow-border::before {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .glass {
    background: transparent !important;
    border: 1px solid #ccc !important;
  }
}
