/* ============================================================
   gmz.hu — Synthwave Personal Website
   Design System & Styles
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Outfit:wght@300;400;600;700&family=Inter:wght@300;400;500&display=swap");

/* ============================================================
   CSS Custom Properties — Color Palette from Wallpaper
   ============================================================ */

:root {
  /* Base Colors */
  --deep-space: #0d0221;
  --dark-purple: #1a0533;

  /* Neon Accents */
  --neon-magenta: #ff2975;
  --vivid-purple: #8b5cf6;
  --electric-cyan: #00f0ff;

  /* Warm Highlights */
  --sunset-orange: #ff8c00;
  --sunset-pink: #ff6eb4;

  /* Text */
  --star-white: #e8e0f0;
  --text-muted: #b8a8cc;

  /* Grid & Glow */
  --grid-magenta: rgba(255, 41, 117, 0.4);
  --glow-magenta: rgba(255, 41, 117, 0.6);
  --glow-cyan: rgba(0, 240, 255, 0.5);

  /* Typography */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Effects */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================================
   Reset & Base Styles
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background: var(--deep-space);
  color: var(--star-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================================
   Typography
   ============================================================ */

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em; /* Increased spacing for neon feel */
}

h1 {
  font-family: "Orbitron", sans-serif; /* Synthwave font */
  font-size: clamp(2.5rem, 6vw, 4.5rem); /* Slightly smaller max to fit wide font */
  text-transform: uppercase;
  background: linear-gradient(
    135deg,
    var(--neon-magenta),
    var(--electric-cyan)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 20px var(--glow-magenta),
    0 0 40px var(--glow-magenta),
    0 0 60px var(--glow-magenta);
  animation: neonPulse 3s ease-in-out infinite;
  letter-spacing: 0.1em; /* Wide spacing for Orbitron */
}

@keyframes neonPulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3);
  }
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--sunset-pink);
  text-shadow: 0 0 20px var(--glow-magenta);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--electric-cyan);
}

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--star-white);
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--neon-magenta);
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
}

a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--electric-cyan);
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

a:hover {
  color: var(--electric-cyan);
  text-shadow: 0 0 10px var(--glow-cyan);
}

/* ============================================================
   Layout Containers
   ============================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) 0;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

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

/* ============================================================
   Hero Section — Synthwave Grid Floor
   ============================================================ */

#hero {
  position: relative;
  background: linear-gradient(
    180deg,
    var(--deep-space) 0%,
    var(--dark-purple) 100%
  );
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-tagline {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--text-muted);
  margin-top: var(--spacing-sm);
  font-weight: 300;
}

/* Animated Grid Floor - Fixed to bottom with horizontal parallax */
/* Animated Grid Floor - Fixed to bottom with horizontal parallax */
.grid-floor {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50vh;
  background:
    linear-gradient(90deg, var(--grid-magenta) 1px, transparent 1px),
    linear-gradient(0deg, var(--grid-magenta) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: bottom;
  animation: gridScrollHorizontal 10s linear infinite; /* 2x faster (was 20s) */
  opacity: 0.5;
  pointer-events: none;
  z-index: 0; /* Changed to 0 to be behind everything else, but we need it fixed */
}

/* Ensure grid is behind content but visible */
/* We moved grid to body child, so z-index 0 puts it behind cards (z-index auto/stacking context) */
/* But cards need to cover it. Cards have background. */

@keyframes gridScrollHorizontal {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -50px 0; /* Moves Left */
  }
}

/* Starfield Canvas */
#starfield {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   Cards — Glassmorphism with Neon Glow
   ============================================================ */

.card {
  background: rgba(13, 2, 33, 0.9); /* High opacity to cover grid */
  backdrop-filter: blur(15px);
  border: 2px solid var(--vivid-purple);
  border-radius: 20px;
  padding: var(--spacing-lg);
  position: relative;
  transition: var(--transition-smooth);
  z-index: 10; /* Ensure active card is above grid */
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--neon-magenta);
  box-shadow:
    0 0 30px var(--glow-magenta),
    0 0 60px var(--glow-magenta),
    0 0 90px rgba(255, 41, 117, 0.3),
    0 20px 50px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   Content Sections
   ============================================================ */

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  width: 100%;
}

/* Dogs Section */
#dogs {
  position: relative;
  /* Background removed to show grid */
}

#paw-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* AI Section — Terminal Style */


.terminal {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--electric-cyan);
  border-radius: 10px;
  padding: var(--spacing-md);
  font-family: "Courier New", monospace;
  position: relative;
}

.terminal::before {
  content: "●●●";
  position: absolute;
  top: 10px;
  left: 15px;
  color: var(--neon-magenta);
  font-size: 1.5rem;
  letter-spacing: 5px;
}

.terminal-content {
  margin-top: var(--spacing-md);
  color: var(--electric-cyan);
  font-size: 1rem;
}

.typing-cursor {
  display: inline-block;
  width: 10px;
  height: 1.2em;
  background: var(--electric-cyan);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Hero Wallpaper Image */
.hero-wallpaper {
  max-width: 600px;
  width: 90%;
  height: auto;
  border-radius: 20px;
  border: 3px solid var(--vivid-purple);
  box-shadow:
    0 0 40px var(--glow-magenta),
    0 10px 50px rgba(0, 0, 0, 0.5);
  margin: var(--spacing-md) 0;
  opacity: 0.9;
  transition: var(--transition-smooth);
}

.hero-wallpaper:hover {
  opacity: 1;
  transform: scale(1.02);
  box-shadow:
    0 0 60px var(--glow-magenta),
    0 15px 70px rgba(255, 41, 117, 0.4);
}

/* Music Section */
#music {
  position: relative;
  /* Background removed */
}

.music-player {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.album-cover {
  width: 250px;
  height: 250px;
  border-radius: 15px;
  border: 3px solid var(--neon-magenta);
  box-shadow: 
    0 0 30px var(--glow-magenta),
    0 10px 40px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.album-cover:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 
    0 0 50px var(--glow-magenta),
    0 15px 60px rgba(255, 41, 117, 0.4);
}

.player-controls {
  flex: 1;
  min-width: 280px;
}

.player-controls h3 {
  margin-bottom: var(--spacing-xs);
}

.player-controls p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-sm);
}

.audio-player {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  outline: none;
  margin-top: var(--spacing-sm);
}

.audio-player::-webkit-media-controls-panel {
  background: linear-gradient(135deg, var(--dark-purple), rgba(139, 92, 246, 0.3));
  border-radius: 50px; /* Pill shape */
  padding-left: 2px; /* Pull button closer to edge */
}

.audio-player::-webkit-media-controls-play-button,
.audio-player::-webkit-media-controls-pause-button {
  background-color: var(--neon-magenta);
  border-radius: 50%;
  transform: scale(1.1) translateX(-2px); /* Slightly larger and moved left */
  margin-right: 10px;
}

.audio-player::-webkit-media-controls-current-time-display,
.audio-player::-webkit-media-controls-time-remaining-display {
  color: var(--electric-cyan);
}

#oscilloscope {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* Laser Section */
#lasers {
  /* Background removed */
  position: relative;
}

#laser-beams {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.laser-line {
  stroke: var(--neon-magenta);
  stroke-width: 3;
  filter: drop-shadow(0 0 10px var(--glow-magenta));
  animation: laserPulse 2s ease-in-out infinite;
}

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

/* ============================================================
   Footer
   ============================================================ */

footer {
  background: var(--deep-space);
  border-top: 2px solid var(--vivid-purple);
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 1rem;
  padding: var(--spacing-xs) var(--spacing-sm);
  border: 1px solid var(--vivid-purple);
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.footer-links a:hover,
.email-protect:hover {
  background: var(--vivid-purple);
  box-shadow: 0 0 20px var(--glow-magenta);
}

.email-protect {
  font-size: 0 !important; /* Hide fallback text */
  padding: var(--spacing-xs) var(--spacing-sm);
  border: 1px solid var(--vivid-purple);
  border-radius: 8px;
  transition: var(--transition-smooth);
  cursor: pointer;
  color: var(--neon-magenta);
  display: inline-block;
}

.email-protect::after {
  content: attr(data-u) "@" attr(data-d);
  font-size: 1rem;
  visibility: visible;
}

/* ============================================================
   Responsive Design
   ============================================================ */

@media (max-width: 768px) {
  :root {
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: var(--spacing-md);
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  section {
    padding: var(--spacing-md) 0;
  }
}

/* ============================================================
   Utility Classes
   ============================================================ */

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

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.glow-effect {
  filter: drop-shadow(0 0 20px var(--glow-magenta));
}
