/* ===== Aurora Studio Portfolio — Design System ===== */

:root {
  /* Colors */
  --color-bg: #0f172a;
  --color-bg-alt: #1e293b;
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-accent-cyan: #22d3ee;
  --color-accent-blue: #3b82f6;
  --color-border: #334155;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #22d3ee, #3b82f6);

  /* Spacing */
  --space-section: 6rem;
}

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* Header state on scroll */
#site-header.scrolled {
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Navigation links */
.nav-link {
  color: #cbd5e1;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  color: #cbd5e1;
  transition: color 0.2s, background-color 0.2s;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

.mobile-nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

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

/* Project filter buttons */
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.filter-btn:hover {
  border-color: var(--color-accent-cyan);
  color: var(--color-accent-cyan);
}

.filter-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.5);
}

.filter-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
}

/* Project cards */
.project-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(34, 211, 238, 0.1);
}

.project-card img {
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

/* Service cards */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Form inputs */
input, textarea {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  :root {
    --space-section: 4rem;
  }
}

/* Animations */
@keyframes pulse-slow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.animate-pulse-slow {
  animation: pulse-slow 4s ease-in-out infinite;
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .animate-pulse-slow {
    animation: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}