/* =============================================
   SYDNEY ADLER WEB SOLUTIONS — PORTFOLIO CSS
   ============================================= */

/* --- Custom Properties --- */
:root {
  --bg-primary:    #05050f;
  --bg-secondary:  #080818;
  --bg-card:       rgba(8, 10, 28, 0.75);
  --bg-card-hover: rgba(10, 13, 35, 0.92);

  --neon-cyan:    #00d4ff;
  --neon-purple:  #7c3aed;
  --neon-pink:    #ff006e;
  --neon-green:   #00ff88;

  --text-primary:   #e8e8f5;
  --text-secondary: #8888aa;
  --text-muted:     #55556a;

  --border:       rgba(80, 100, 220, 0.12);
  --border-hover: rgba(0, 212, 255, 0.35);

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(0,212,255,0.12);
  --shadow-glow-strong: 0 0 60px rgba(0,212,255,0.25), 0 0 120px rgba(124,58,237,0.1);

  --navbar-height: 70px;
}

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

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

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }

.gradient-text {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 16px;
}
.section__label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}
.section__header .section__label { display: flex; justify-content: center; }
.section__header .section__label::before { display: none; }
.section__header .section__subtitle { margin: 0 auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  color: #fff;
  box-shadow: 0 0 30px rgba(0,212,255,0.25), 0 4px 15px rgba(0,0,0,0.3);
}
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
  opacity: 0;
  transition: opacity var(--transition);
}
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover {
  box-shadow: 0 0 50px rgba(0,212,255,0.4), 0 0 100px rgba(124,58,237,0.2), 0 8px 25px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}
.btn--primary span, .btn--primary svg { position: relative; z-index: 1; }

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}
.btn--secondary:hover {
  background: rgba(0,212,255,0.07);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0,212,255,0.1);
  transform: translateY(-2px);
}

.btn--full { width: 100%; justify-content: center; border-radius: var(--radius-md); }

/* --- Scroll Reveal Animations --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(5, 5, 15, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,0.3);
}

.navbar__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  transition: color var(--transition);
}
.navbar__logo:hover { color: var(--neon-cyan); }

.navbar__logo-bracket {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0,212,255,0.6);
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar__link {
  padding: 8px 16px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.navbar__link:hover, .navbar__link.active { color: var(--text-primary); }

.navbar__link--cta {
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.25);
  color: var(--neon-cyan);
  margin-left: 8px;
}
.navbar__link--cta:hover {
  background: rgba(0,212,255,0.2);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0,212,255,0.2);
  color: var(--neon-cyan);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 4px 0;
}
.navbar__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(5, 5, 15, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-overlay.open { opacity: 1; pointer-events: all; }

.mobile-overlay__close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.5rem;
  color: var(--text-secondary);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.mobile-overlay__close:hover { color: var(--neon-cyan); border-color: var(--neon-cyan); }

.mobile-overlay__menu { text-align: center; }
.mobile-overlay__menu li { margin: 4px 0; }

.mobile-overlay__link {
  display: block;
  padding: 14px 40px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: var(--transition);
  letter-spacing: -0.02em;
}
.mobile-overlay__link:hover { color: var(--text-primary); }
.mobile-overlay__link--cta {
  color: var(--neon-cyan);
  margin-top: 8px;
}

.mobile-overlay__brand {
  position: absolute;
  bottom: 32px;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--navbar-height) + 40px);
  padding-bottom: 80px;
  max-width: 760px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(0,212,255,0.2);
  background: rgba(0,212,255,0.06);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--neon-cyan);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px var(--neon-green); }
  50%       { box-shadow: 0 0 16px var(--neon-green), 0 0 30px rgba(0,255,136,0.3); }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 60px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero__stat { text-align: left; }
.hero__stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero__stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--neon-cyan), transparent);
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
  0%   { opacity: 1; transform: scaleY(1) translateY(0); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1) translateY(40px); transform-origin: top; }
}

/* =============================================
   ABOUT
   ============================================= */
.about { background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.about__visual { position: relative; }

.about__image-frame {
  position: relative;
  width: 300px;
  margin: 0 auto;
}

.about__image-placeholder {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(124,58,237,0.12));
  border: 2px solid rgba(0,212,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
}

.about__initials {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about__image-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,212,255,0.08), transparent 70%);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

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

.about__badge-card {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 8px;
}
.about__badge-card--1 { top: 10px; right: -10px; animation: float 5s ease-in-out infinite; }
.about__badge-card--2 { bottom: 20px; left: -10px; animation: float 5s ease-in-out 1.5s infinite; }
.about__badge-icon { color: var(--neon-cyan); }

.about__content { }

.about__text {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1rem;
}

.about__highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}

.about__highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.about__highlight-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  flex-shrink: 0;
}

/* =============================================
   SERVICES
   ============================================= */
.services { background: var(--bg-secondary); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  border-color: rgba(0,212,255,0.25);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), 0 0 30px rgba(0,212,255,0.07);
}
.service-card:hover::before { opacity: 1; }


.service-card__icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-card__icon-wrap {
  background: rgba(0,212,255,0.15);
  box-shadow: 0 0 20px rgba(0,212,255,0.15);
}

.service-card__icon {
  font-size: 1.2rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0,212,255,0.6);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-card__text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-card__tags span {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  color: #a78bfa;
}

/* =============================================
   SKILLS
   ============================================= */
.skills { background: var(--bg-primary); }

.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skill-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  transition: var(--transition);
}
.skill-card:hover {
  border-color: rgba(0,212,255,0.2);
  background: var(--bg-card-hover);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.skill-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.skill-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.skill-card__name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.skill-card__level {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.skill-card__bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}

.skill-card__fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(0,212,255,0.4);
}

/* =============================================
   PROJECTS
   ============================================= */
.projects { background: var(--bg-secondary); }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: rgba(0,212,255,0.2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.project-card__preview {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.project-card__preview--1 { background: linear-gradient(135deg, #040d20 0%, #0a1a38 50%, #071428 100%); }
.project-card__preview--2 { background: linear-gradient(135deg, #120820 0%, #20083a 50%, #14062a 100%); }
.project-card__preview--3 { background: linear-gradient(135deg, #041414 0%, #082424 50%, #061c1c 100%); }
.project-card__preview--4 { background: linear-gradient(135deg, #141404 0%, #242408 50%, #1c1c06 100%); }

.project-card__preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(0,212,255,0.04) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(0,212,255,0.04) 40px);
}

.project-card__preview-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

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

.project-card__preview-icon {
  font-size: 3rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 30px rgba(0,212,255,0.6), 0 0 60px rgba(0,212,255,0.3);
  line-height: 1;
}

.project-card__preview-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0,212,255,0.6);
}

.project-card__content { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.project-card__tags span {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.18);
  color: var(--neon-cyan);
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.project-card__text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.project-card__footer {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.project-card__link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neon-cyan);
  transition: var(--transition);
}
.project-card__link:hover { text-shadow: 0 0 12px rgba(0,212,255,0.5); }
.project-card__link--ghost { color: var(--text-muted); }
.project-card__link--ghost:hover { color: var(--text-secondary); text-shadow: none; }

/* =============================================
   WHY ME
   ============================================= */
.why-me { background: var(--bg-primary); position: relative; overflow: hidden; }
.why-me::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.why-me__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.why-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
  opacity: 0;
  transition: opacity var(--transition);
}
.why-card:hover {
  border-color: rgba(124,58,237,0.3);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card), 0 0 25px rgba(124,58,237,0.08);
}
.why-card:hover::after { opacity: 1; }

.why-card__icon {
  font-size: 1.8rem;
  color: var(--neon-purple);
  text-shadow: 0 0 15px rgba(124,58,237,0.6);
  margin-bottom: 16px;
  display: block;
}

.why-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.why-card__text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =============================================
   CONTACT
   ============================================= */
.contact { background: var(--bg-secondary); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact__text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact__details { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact__detail-icon {
  font-size: 1.1rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0,212,255,0.4);
  width: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__detail-body { display: flex; flex-direction: column; gap: 2px; }
.contact__detail-label { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.contact__detail-value { font-size: 0.95rem; font-weight: 500; color: var(--text-primary); }

.contact__social { display: flex; gap: 12px; }
.contact__social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  transition: var(--transition);
}
.contact__social-link:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(0,212,255,0.06);
  box-shadow: 0 0 15px rgba(0,212,255,0.15);
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }

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

.form-label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.form-input, .form-textarea {
  background: rgba(5, 5, 20, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--text-primary);
  width: 100%;
  transition: var(--transition);
  outline: none;
  resize: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-textarea:focus {
  border-color: rgba(0,212,255,0.4);
  background: rgba(0,212,255,0.03);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.07);
}
.form-input.error, .form-textarea.error { border-color: var(--neon-pink); }
.form-error { font-size: 0.78rem; color: var(--neon-pink); min-height: 18px; }

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(0,255,136,0.06);
  border: 1px solid rgba(0,255,136,0.25);
  color: var(--neon-green);
  font-size: 0.9rem;
  font-weight: 500;
}
.form-success.visible { display: flex; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-block;
  margin-bottom: 12px;
}
.footer__logo:hover { color: var(--neon-cyan); }

.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer__social { display: flex; gap: 10px; }
.footer__social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer__social-link:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(0,212,255,0.06);
}

.footer__nav-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.footer__nav-list { display: flex; flex-direction: column; gap: 10px; }
.footer__nav-list a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__nav-list a:hover { color: var(--neon-cyan); }

.footer__bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom p { font-size: 0.82rem; color: var(--text-muted); }
.footer__made { color: var(--neon-cyan); }

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

/* Tablet */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .skills__grid   { grid-template-columns: repeat(2, 1fr); }
  .why-me__grid   { grid-template-columns: repeat(2, 1fr); }
  .footer__grid   { grid-template-columns: 1fr 1fr; }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .about__image-frame { margin: 0 auto; }
  .about__highlights  { justify-items: start; text-align: left; max-width: 400px; margin: 32px auto 0; }

  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Mobile large */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .navbar__menu  { display: none; }
  .navbar__toggle { display: flex; }

  .hero__title { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  .hero__buttons { flex-direction: column; align-items: flex-start; }
  .hero__stats { gap: 20px; }

  .services__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .why-me__grid   { grid-template-columns: 1fr; }
  .about__highlights { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* Mobile small */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .skills__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { flex-direction: column; align-items: flex-start; }
  .hero__stat-divider { display: none; }
  .about__image-placeholder { width: 220px; height: 220px; }
}

/* =============================================
   GLOW PULSE — persistent on interactive elements
   ============================================= */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,212,255,0.2); }
  50%       { box-shadow: 0 0 40px rgba(0,212,255,0.4), 0 0 80px rgba(0,212,255,0.1); }
}

/* =============================================
   BUTTON LADEANIMATION — Spinner
   ============================================= */
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}

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

.btn--loading {
  pointer-events: none;
  opacity: 0.85;
}

/* =============================================
   FORMULAR — Globale Fehlermeldung
   ============================================= */
.form-error-global {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 0, 110, 0.06);
  border: 1px solid rgba(255, 0, 110, 0.25);
  color: #ff6b9d;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.6;
}
.form-error-global strong { color: var(--neon-cyan); font-weight: 600; }
.form-error-global.visible { display: flex; }

/* =============================================
   LEGAL PAGES (impressum.html / datenschutz.html)
   ============================================= */
.legal-hero {
  padding: calc(var(--navbar-height) + 60px) 0 60px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.legal-hero__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 12px;
}
.legal-hero__label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--neon-cyan);
}

.legal-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.legal-content {
  padding: 64px 0 100px;
  background: var(--bg-secondary);
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 820px;
}

.legal-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.legal-section__title::before {
  content: '';
  display: block;
  width: 3px;
  height: 18px;
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple));
  border-radius: 3px;
  flex-shrink: 0;
}

.legal-section p,
.legal-section address { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.85; font-style: normal; margin-bottom: 8px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section strong { color: var(--text-primary); }
.legal-section a { color: var(--neon-cyan); transition: opacity 0.2s; }
.legal-section a:hover { opacity: 0.75; }

.legal-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--neon-cyan);
  margin-top: 10px;
}

@media (max-width: 768px) {
  .legal-card { padding: 28px 20px; }
}
