/* ============================================
   CRISTIAN UVA - CYBERPUNK THEME
   ============================================ */

/* === VARIABLES === */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #14141f;
  --bg-input: #1a1a2e;

  --neon-purple: #8b5cf6;
  --neon-cyan: #06b6d4;
  --neon-magenta: #ec4899;
  --neon-green: #22c55e;

  --text-primary: #e4e4e7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --border-color: rgba(139, 92, 246, 0.2);
  --border-glow: rgba(139, 92, 246, 0.5);

  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;

  --radius: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--neon-purple);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === SCANLINES === */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* === PARTICLE CANVAS === */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--text-primary) !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-icon {
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.4));
  transition: filter var(--transition);
}

.nav-logo:hover .logo-icon {
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.6));
}

.logo-bracket {
  color: var(--neon-purple);
}

.logo-text {
  color: var(--neon-cyan);
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-purple);
  transition: width var(--transition);
  box-shadow: 0 0 8px var(--neon-purple);
}

.nav-link:hover {
  color: var(--text-primary) !important;
}

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

.nav-fiverr {
  color: var(--neon-green) !important;
  border: 1px solid var(--neon-green);
  padding: 6px 16px !important;
  border-radius: var(--radius);
}

.nav-fiverr:hover {
  background: rgba(34, 197, 94, 0.1);
  color: var(--neon-green) !important;
}

.nav-fiverr::after {
  display: none;
}

/* Google Login */
.nav-auth {
  display: flex;
  align-items: center;
}

.btn-google-login {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: all var(--transition);
}

.btn-google-login:hover {
  border-color: var(--neon-purple);
  color: var(--text-primary);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--neon-purple);
}

.user-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.btn-logout {
  background: none;
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.75rem;
  transition: all var(--transition);
}

.btn-logout:hover {
  border-color: var(--neon-magenta);
  color: var(--neon-magenta);
}

.hidden {
  display: none !important;
}

/* Language Switcher */
.lang-switcher {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 6px 10px;
  line-height: 1;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.lang-switcher:hover {
  border-color: var(--neon-purple);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
  transform: scale(1.1);
}

.lang-switcher .flag-icon {
  display: flex;
  align-items: center;
}

.lang-switcher .flag-icon svg {
  width: 24px;
  height: 18px;
  border-radius: 2px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
  z-index: 1;
}

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

.hero-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 32px);
}

.hero-terminal-logo {
  width: clamp(60px, 10vw, 100px);
  height: auto;
  filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.4));
  flex-shrink: 0;
}

.terminal-cursor {
  animation: blink 1s step-end infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  color: var(--neon-cyan);
  margin-bottom: 40px;
  min-height: 2em;
}

.cursor {
  animation: blink 0.8s infinite;
}

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

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--neon-purple);
  border-bottom: 2px solid var(--neon-purple);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
  opacity: 0.5;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
  50% { transform: rotate(45deg) translate(5px, 5px); opacity: 1; }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-magenta));
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn-secondary:hover {
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
  color: var(--neon-cyan);
}

.neon-glow {
  box-shadow:
    0 0 5px rgba(139, 92, 246, 0.3),
    0 0 20px rgba(139, 92, 246, 0.15);
}

/* === SECTIONS === */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 60px;
  text-align: center;
}

.title-decorator {
  color: var(--neon-purple);
  margin-right: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: -40px;
  margin-bottom: 50px;
}

.neon-text {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: center;
}

.image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.1);
  transition: filter var(--transition);
}

.image-frame:hover .profile-img {
  filter: saturate(1) contrast(1);
}

.image-glow {
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
  z-index: -1;
  opacity: 0.6;
  filter: blur(12px);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

.image-border {
  position: absolute;
  inset: 0;
  border: 2px solid var(--neon-purple);
  border-radius: 12px;
  pointer-events: none;
}

.about-headline {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag {
  padding: 6px 14px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--neon-purple);
  letter-spacing: 1px;
}

/* === SERVICES === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  transform-style: preserve-3d;
}

.service-card:hover {
  border-color: var(--neon-purple);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.15);
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.service-card:hover .card-glow {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--neon-cyan);
  margin-bottom: 20px;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.card-pricing {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.price-tier {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius);
}

.tier-name {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.tier-price {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

.card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tech span {
  font-size: 0.72rem;
  padding: 3px 10px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 12px;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
}

/* Card Video */
.card-video {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: relative;
}

.card-video::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.card-video video {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

.service-card:hover .card-video {
  border-color: var(--neon-purple);
}

/* === FORM === */
.order-form,
.booking-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b5cf6' d='M6 8.825L.35 3.175l.7-.7L6 7.425l4.95-4.95.7.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.price-display {
  font-family: var(--font-display) !important;
  font-size: 1.1rem !important;
  color: var(--neon-cyan) !important;
  font-weight: 700;
}

/* File Upload */
.file-upload {
  position: relative;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.file-upload:hover,
.file-upload.dragover {
  border-color: var(--neon-purple);
  background: rgba(139, 92, 246, 0.05);
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  pointer-events: none;
}

.file-upload-label svg {
  color: var(--neon-purple);
}

.file-name {
  font-size: 0.85rem;
  color: var(--neon-cyan);
  margin-top: 8px;
}

.btn-submit {
  display: flex;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.btn-loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.form-status {
  text-align: center;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.form-status.success {
  color: var(--neon-green);
}

.form-status.error {
  color: var(--neon-magenta);
}

/* === BOOKING === */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.selected-slot {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-align: center;
}

.selected-slot .slot-value {
  color: var(--neon-cyan);
  font-weight: 600;
}

.slot-placeholder {
  color: var(--text-muted);
}

/* === FOOTER === */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-text {
  font-size: 1.2rem;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--neon-purple);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--neon-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .about-image {
    max-width: 250px;
    margin: 0 auto;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transition: right 0.4s ease;
    border-left: 1px solid var(--border-color);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-auth {
    display: none;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero-title {
    letter-spacing: 2px;
  }

  .section {
    padding: 70px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

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

  .btn {
    padding: 12px 24px;
    font-size: 0.8rem;
  }
}

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

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .card-pricing {
    flex-direction: column;
    gap: 8px;
  }

  .price-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
  }

  .tier-name {
    margin-bottom: 0;
  }
}
