/* ═══════════════════════════════════════════════════════════════════════════
   jobi — Aero Theme
   Windows Vista Aurora - dark base with luminous flowing light ribbons
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;600;700&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Vista Aurora dark teal-blue base (not pure black) */
  --void: #0a1a24;
  --deep: #122a38;
  --dark: #1d5f7a;
  --night: #1a4860;

  --aurora-yellow: #ffff00;
  --aurora-gold: #ffd700;
  --aurora-green: #7fff7f;
  --aurora-cyan: #00ffff;
  --aurora-blue: #4080ff;
  --aurora-purple: #8040ff;

  --glow-yellow: rgba(255, 255, 0, 0.6);
  --glow-green: rgba(127, 255, 127, 0.6);
  --glow-cyan: rgba(0, 255, 255, 0.5);
  --glow-blue: rgba(64, 128, 255, 0.4);

  --glass-bg: rgba(10, 26, 36, 0.65);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-shine: rgba(255, 255, 255, 0.1);
  --glass-frost: rgba(10, 26, 36, 0.75);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.9);
  --text-dim: rgba(255, 255, 255, 0.6);

  --font-display: 'Segoe UI', -apple-system, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 100px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Body & Background - Deep dark void
   ═══════════════════════════════════════════════════════════════════════════ */

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: linear-gradient(
    180deg,
    var(--void) 0%,
    var(--deep) 30%,
    var(--dark) 60%,
    var(--night) 100%
  );
  background-attachment: fixed;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Vista Aurora SVG - Flowing light ribbons
   ═══════════════════════════════════════════════════════════════════════════ */

.theme-bg {
  background: radial-gradient(ellipse 150% 80% at 20% 120%, rgba(29, 95, 122, 0.5) 0%, transparent 60%);
}

/* Aurora SVG container - override base display:none */
.aurora-svg {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: auroraFadeIn 2s ease-out 0.5s forwards;
}

/* Aurora ribbon paths */
.aurora-ribbon {
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Primary ribbon animation - gentle undulating flow */
.ribbon-1 {
  animation: ribbonFlow1 25s ease-in-out infinite;
  transform-origin: 0% 100%;
}

.ribbon-2 {
  animation: ribbonFlow2 30s ease-in-out infinite;
  transform-origin: 0% 100%;
}

.ribbon-3 {
  animation: ribbonFlow3 20s ease-in-out infinite;
  transform-origin: 0% 100%;
}

/* Horizontal wave animation */
.aurora-wave {
  animation: waveShimmer 8s ease-in-out infinite;
}

@keyframes ribbonFlow1 {
  0%, 100% {
    transform: translateY(0) scaleY(1);
    opacity: 1;
  }
  25% {
    transform: translateY(-15px) scaleY(1.02);
  }
  50% {
    transform: translateY(-8px) scaleY(0.98);
    opacity: 0.9;
  }
  75% {
    transform: translateY(-20px) scaleY(1.01);
  }
}

@keyframes ribbonFlow2 {
  0%, 100% {
    transform: translateY(0) scaleY(1);
    opacity: 0.85;
  }
  33% {
    transform: translateY(-12px) scaleY(1.01);
    opacity: 0.95;
  }
  66% {
    transform: translateY(-18px) scaleY(0.99);
    opacity: 0.8;
  }
}

@keyframes ribbonFlow3 {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-10px);
    opacity: 0.85;
  }
}

@keyframes waveShimmer {
  0%, 100% {
    opacity: 0.8;
    stroke-width: 3;
  }
  50% {
    opacity: 1;
    stroke-width: 4;
  }
}

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

/* Hide pseudo-elements - SVG handles the aurora now */
.theme-bg::before,
.theme-bg::after {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Theme Effects - Ambient glow
   ═══════════════════════════════════════════════════════════════════════════ */

.theme-effects::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: radial-gradient(ellipse 100% 100% at 30% 100%, rgba(0, 255, 200, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.theme-effects::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: radial-gradient(ellipse 80% 100% at 70% 0%, rgba(0, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Hide default bubbles - this theme uses light streams instead */
.theme-effects .bubble {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Subtle glow overlay
   ═══════════════════════════════════════════════════════════════════════════ */

.theme-overlay {
  background: radial-gradient(ellipse 80% 40% at 50% 20%, rgba(0, 255, 200, 0.08) 0%, transparent 60%);
}

.theme-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 255, 0.3) 50%, transparent 100%);
  filter: blur(1px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.theme-overlay::after {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Header - Frosted glass panel
   ═══════════════════════════════════════════════════════════════════════════ */

.site-header {
  background: var(--glass-frost);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 var(--glass-shine);
}

.site-header::before {
  display: none;
}

.logo-mark {
  background: linear-gradient(135deg, var(--aurora-cyan) 0%, var(--aurora-green) 100%);
  border-radius: var(--radius-md);
  color: var(--void);
  box-shadow: 0 0 20px var(--glow-cyan);
}

.logo-mark::before {
  display: none;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

/* Theme Toggle Buttons */
.theme-btn {
  font-family: var(--font-body);
  font-weight: 600;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}

.theme-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
}

.theme-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.theme-btn.active {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, rgba(127, 255, 127, 0.2) 100%);
  border-color: rgba(0, 255, 255, 0.4);
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

/* Shuffle Button */
.shuffle-btn {
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.shuffle-btn.active {
  color: var(--aurora-cyan);
  border-color: rgba(0, 255, 255, 0.3);
}

.shuffle-tooltip {
  background: rgba(10, 38, 56, 0.95);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.shuffle-tooltip::before {
  background: rgba(10, 38, 56, 0.95);
  border-top: 1px solid var(--glass-border);
  border-left: 1px solid var(--glass-border);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Intro
   ═══════════════════════════════════════════════════════════════════════════ */

.intro h1 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: 0 0 40px rgba(0, 255, 255, 0.4);
}

.intro h1 em {
  background: linear-gradient(135deg, var(--aurora-green) 0%, var(--aurora-cyan) 50%, var(--aurora-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
}

.intro-sub {
  color: var(--text-secondary);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Project Cards - Frosted glass panels
   ═══════════════════════════════════════════════════════════════════════════ */

.project {
  background: var(--glass-frost);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.project:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(0, 255, 255, 0.3);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 255, 255, 0.1);
}

.project::before {
  display: none;
}

.project-screenshot-wrapper {
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.project-screenshot {
  border-radius: var(--radius-md);
}

.screenshot-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
  border-radius: var(--radius-md);
}

.zoom-hint {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-primary);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
}

.project-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.project-link {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--void);
  background: linear-gradient(135deg, var(--aurora-cyan) 0%, var(--aurora-green) 100%);
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 20px var(--glow-cyan);
}

.project-link::before {
  display: none;
}

.project-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 30px var(--glow-cyan);
}

.project-link.coming-soon {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
  color: var(--text-secondary);
  box-shadow: none;
}

.project-desc {
  color: var(--text-secondary);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  line-height: 1.7;
}

.tech-tag {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════════════════ */

.site-footer {
  color: var(--text-dim);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.site-footer strong {
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Lightbox
   ═══════════════════════════════════════════════════════════════════════════ */

.lightbox {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.lightbox-close {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.lightbox-close::before {
  display: none;
}

.lightbox-close:hover {
  background: rgba(0, 255, 255, 0.2);
  border-color: rgba(0, 255, 255, 0.4);
}

.lightbox-content {
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-image {
  border-radius: var(--radius-lg);
}

.lightbox-caption {
  font-family: var(--font-display);
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Entry Animations - Ethereal fade with glow
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes aeroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

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

.site-header {
  animation: aeroFadeIn 0.8s ease-out forwards;
}

.intro {
  animation: aeroFadeIn 0.8s ease-out 0.15s forwards;
}

.project:nth-child(1) {
  animation: aeroFadeIn 0.8s ease-out 0.3s forwards;
}

.project:nth-child(2) {
  animation: aeroFadeIn 0.8s ease-out 0.45s forwards;
}

.theme-bg,
.theme-effects {
  animation: aeroGlow 2s ease forwards;
}

.theme-overlay {
  animation: aeroGlow 1.5s ease 0.5s forwards;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Firefox Performance Fix
   backdrop-filter is slow in Firefox - use opaque fallback
   ═══════════════════════════════════════════════════════════════════════════ */

@supports (-moz-appearance: none) {
  .site-header,
  .project {
    background: rgba(10, 26, 36, 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .lightbox {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Responsive Adjustments
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .site-header {
    border-radius: var(--radius-md);
  }

  .project {
    border-radius: var(--radius-md);
  }

  .project-screenshot-wrapper,
  .project-screenshot,
  .screenshot-overlay {
    border-radius: var(--radius-sm);
  }

  .lightbox-content,
  .lightbox-image {
    border-radius: var(--radius-md);
  }
}
