/* ═══════════════════════════════════════════════
   matejsulc.eu — Glassmorphism Portfolio
   ═══════════════════════════════════════════════ */

/* ─── Variables ─────────────────────────────── */
:root {
  --bg:            #07080f;
  --bg-alt:        #0d1020;
  --glass-bg:      rgba(255, 255, 255, 0.04);
  --glass-border:  rgba(255, 255, 255, 0.08);
  --glass-shadow:  0 8px 32px rgba(0, 0, 0, 0.45);
  --glass-hover:   rgba(255, 255, 255, 0.07);

  --text-1:        #f0f4ff;
  --text-2:        #8892a8;
  --text-3:        #4a5568;

  --purple:        #7c3aed;
  --purple-light:  #a78bfa;
  --cyan:          #06b6d4;
  --cyan-light:    #67e8f9;
  --pink:          #ec4899;
  --pink-light:    #f9a8d4;
  --green:         #10b981;

  --grad-main:     linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --grad-pink:     linear-gradient(135deg, #ec4899 0%, #7c3aed 100%);
  --grad-bg:       radial-gradient(ellipse at 20% 50%, rgba(124,58,237,0.12) 0%, transparent 60%),
                   radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.10) 0%, transparent 55%),
                   radial-gradient(ellipse at 60% 80%, rgba(236,72,153,0.08) 0%, transparent 50%);

  --radius:        14px;
  --radius-sm:     8px;
  --radius-full:   9999px;

  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans:     'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --nav-h:         68px;
  --section-gap:   6rem;
}

/* ─── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image: var(--grad-bg);
  background-attachment: fixed;
  color: var(--text-1);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
address { font-style: normal; }

/* ─── Scrollbar ──────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ─── Selection ──────────────────────────────── */
::selection { background: rgba(124,58,237,0.35); color: var(--text-1); }

/* ─── Container ──────────────────────────────── */
.container {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}

/* ─── Accent ─────────────────────────────────── */
.accent { background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ─── Glass Card ─────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.14);
}

/* ─── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(124,58,237,0.5); }

.btn-glass {
  background: var(--glass-bg);
  color: var(--text-1);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}
.btn-glass:hover { background: var(--glass-hover); border-color: rgba(255,255,255,0.18); }

.btn-full { width: 100%; justify-content: center; }

/* ─── Social Links ───────────────────────────── */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-2);
  transition: color var(--transition), background var(--transition), transform var(--transition);
}
.social-link:hover { color: var(--text-1); background: rgba(124,58,237,0.2); transform: translateY(-2px); }

/* ─── Icon Links ─────────────────────────────── */
.icon-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-2);
  transition: color var(--transition), transform var(--transition);
}
.icon-link:hover { color: var(--purple-light); transform: translateY(-2px); }

/* ─── Honeypot ───────────────────────────────── */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ─── Background Blobs ───────────────────────── */
.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  animation: blobFloat 20s ease-in-out infinite alternate;
}
.blob-1 { width: 600px; height: 600px; top: -15%;  left: -10%;  background: var(--purple); animation-duration: 22s; }
.blob-2 { width: 500px; height: 500px; top:  40%;  right: -8%;  background: var(--cyan);   animation-duration: 26s; animation-delay: -8s; }
.blob-3 { width: 400px; height: 400px; bottom: 0;  left:  40%;  background: var(--pink);   animation-duration: 18s; animation-delay: -14s; }

@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, -30px) scale(1.08); }
}

/* ═══════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(7,8,15,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--glass-border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.8; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text-1); }
.nav-link--cta {
  background: var(--grad-main);
  color: #fff !important;
  padding: 0.45rem 1.2rem;
  box-shadow: 0 3px 14px rgba(124,58,237,0.35);
}
.nav-link--cta:hover { box-shadow: 0 6px 20px rgba(124,58,237,0.5); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
}
.hero-container {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 4rem;
  padding-block: 5rem 4rem;
}
.hero-greeting {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}
.hero-name {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--text-2);
  min-height: 2em;
  margin-bottom: 1.5rem;
}
.typewriter { border-right: 2px solid var(--purple); padding-right: 3px; animation: blink 0.9s step-end infinite; }
@keyframes blink { 50% { border-color: transparent; } }

.hero-description {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.hero-description strong { color: var(--text-1); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-bottom: 2rem; }
.hero-social { display: flex; gap: 0.75rem; }

/* Hero avatar */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-avatar {
  position: relative;
  width: 340px; height: 340px;
  display: flex; align-items: center; justify-content: center;
}
.avatar-ring {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--grad-main) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin 12s linear infinite;
}
.avatar-glow {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  filter: blur(20px);
}
.avatar-inner {
  width: 300px; height: 380px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  z-index: 0;
}
.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  display: block;
  filter: drop-shadow(0 8px 32px rgba(124,58,237,0.25));
  -webkit-mask-image: linear-gradient(to bottom, black 48%, transparent 75%);
  mask-image: linear-gradient(to bottom, black 48%, transparent 75%);
}

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

/* Floating badges */
.hero-badge {
  position: absolute;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  animation: float 3s ease-in-out infinite alternate;
}
.hero-badge--php { top:  15%; right: 0;   animation-delay: 0s;    color: var(--purple-light); }
.hero-badge--js  { top:  55%; left: -12%; animation-delay: -1s;   color: var(--cyan-light);   }
.hero-badge--sec { bottom: 8%; right: 5%; animation-delay: -0.5s; color: var(--pink-light);   }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--purple), transparent);
  animation: scrollDrop 1.8s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ═══════════════════════════════════════════════
   SECTIONS — General
   ═══════════════════════════════════════════════ */
.section { padding-block: var(--section-gap); }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--cyan);
  flex-shrink: 0;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  height: 3px;
  width: 60px;
  margin-top: 0.5rem;
  background: var(--grad-main);
  border-radius: 2px;
}

/* ─── Fade-in animation ──────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}
.about-text {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.about-text p { color: var(--text-2); }
.about-text strong { color: var(--text-1); font-weight: 600; }

.about-highlights {
  display: flex;
  gap: 1.5rem;
  margin-block: 0.5rem;
  flex-wrap: wrap;
}
.highlight-item { display: flex; flex-direction: column; gap: 0.2rem; }
.highlight-number { font-size: 2rem; font-weight: 800; background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.highlight-label { font-size: 0.8rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }

.photo-frame {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  min-height: 280px;
  overflow: hidden;
}
.photo-hint { font-size: 0.8rem; color: var(--text-3); font-family: var(--font-mono); }
.about-photo-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

/* ═══════════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-main);
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover::before { opacity: 1; }
.project-card[data-color="cyan"]::before   { background: linear-gradient(90deg, var(--cyan), var(--purple)); }
.project-card[data-color="pink"]::before   { background: var(--grad-pink); }

.project-top { display: flex; align-items: center; justify-content: space-between; }
.project-icon { color: var(--purple-light); }
.project-card[data-color="cyan"] .project-icon { color: var(--cyan-light); }
.project-card[data-color="pink"] .project-icon { color: var(--pink-light); }
.project-links { display: flex; gap: 0.75rem; }

.project-title { font-size: 1.1rem; font-weight: 700; color: var(--text-1); }
.project-desc  { font-size: 0.88rem; color: var(--text-2); line-height: 1.65; flex: 1; }

.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.tag {
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(124,58,237,0.15);
  color: var(--purple-light);
  border: 1px solid rgba(124,58,237,0.25);
}

/* ═══════════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.skill-card {
  padding: 1.75rem;
  transition-delay: calc(var(--i, 0) * 80ms);
}
.skill-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.skill-icon { color: var(--purple-light); flex-shrink: 0; }
.skill-category { font-size: 1rem; font-weight: 700; }

.skill-list { display: flex; flex-direction: column; gap: 0.65rem; }
.skill-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-2);
}
.skill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-main);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.contact-info > p { color: var(--text-2); margin-bottom: 2rem; }

.contact-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact-item { display: flex; align-items: center; gap: 0.875rem; }
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(124,58,237,0.15);
  color: var(--purple-light);
  border: 1px solid rgba(124,58,237,0.2);
}
.contact-item a { color: var(--text-2); transition: color var(--transition); }
.contact-item a:hover { color: var(--purple-light); }
.contact-item span { color: var(--text-2); }
.contact-social { display: flex; gap: 0.75rem; }

/* Form */
.contact-form-wrap { padding: 2.5rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label { font-size: 0.85rem; font-weight: 500; color: var(--text-2); }
.required { color: var(--pink); }

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}
.form-input::placeholder { color: var(--text-3); }
.form-input:focus {
  border-color: rgba(124,58,237,0.6);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
  background: rgba(255,255,255,0.06);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-input.input-error {
  border-color: rgba(239,68,68,0.6);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}

.alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.alert-success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.alert-error   { background: rgba(239,68,68,0.12);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(7,8,15,0.6);
  backdrop-filter: blur(12px);
  padding-block: 3rem 2rem;
}
.footer-container { display: flex; flex-direction: column; gap: 2rem; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.footer-brand p { font-size: 0.85rem; color: var(--text-3); margin-top: 0.3rem; }
.footer-nav {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-nav a {
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-2);
  border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition);
}
.footer-nav a:hover { color: var(--text-1); background: var(--glass-bg); }
.footer-social { display: flex; gap: 0.75rem; justify-content: flex-end; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.8rem;
  color: var(--text-3);
}
.footer-tech { font-family: var(--font-mono); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--text-3); font-size: 0.8rem; transition: color var(--transition); }
.footer-legal a:hover { color: var(--purple-light); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-description { margin-inline: auto; }
  .hero-cta, .hero-social { justify-content: center; }
  .hero-visual { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo { display: none; }

  .contact-wrapper { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .footer-social { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 768px) {
  :root { --section-gap: 4rem; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: var(--nav-h) 0 0;
    background: rgba(7,8,15,0.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-link { font-size: 1.25rem; padding: 0.75rem 1.5rem; }
  .nav-link--cta { text-align: center; }

  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid   { grid-template-columns: 1fr; }
  .pricing-card-header { flex-direction: column; }
  .pricing-card-prices { text-align: left; }
  .pricing-price-row { justify-content: flex-start; }
  .pricing-card-phases { grid-template-columns: 1fr; gap: 1.75rem; }
  .pricing-features--detail { grid-template-columns: 1fr; }
  .pricing-cta-row { flex-direction: column; align-items: flex-start; }
  .form-row      { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.4rem; }
  .about-highlights { justify-content: center; }
}

/* ═══════════════════════════════════════════════
   SECTION SUBTITLE
   ═══════════════════════════════════════════════ */
.section-subtitle {
  color: var(--text-2);
  font-size: 0.95rem;
  max-width: 600px;
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
}

/* ═══════════════════════════════════════════════
   ABOUT — certifikáty
   ═══════════════════════════════════════════════ */
.about-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cert-tag {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(6,182,212,0.1);
  color: var(--cyan-light);
  border: 1px solid rgba(6,182,212,0.2);
}

/* ═══════════════════════════════════════════════
   PROJECTS — testimonial
   ═══════════════════════════════════════════════ */
.project-testimonial {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.8rem;
  color: var(--text-3);
  font-style: italic;
  line-height: 1.5;
}
.project-testimonial svg { flex-shrink: 0; margin-top: 2px; opacity: 0.5; }
.project-testimonial cite { font-style: normal; color: var(--text-2); white-space: nowrap; }

/* ═══════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════ */
.pricing-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 860px;
  margin-inline: auto;
}

/* ─── Header ─── */
.pricing-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.pricing-card-title {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.pricing-card-sub {
  font-size: 0.9rem;
  color: var(--text-2);
  max-width: 360px;
}

.pricing-card-prices {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-shrink: 0;
  text-align: right;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  justify-content: flex-end;
}

.pricing-price-label {
  font-size: 0.85rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.pricing-price-val {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.pricing-price-row--add { opacity: 0.75; }
.pricing-price-plus {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-3);
}
.pricing-price-val--small { font-size: 1.1rem; }

/* ─── Divider ─── */
.pricing-card-divider { height: 1px; background: var(--glass-border); }

/* ─── Phases ─── */
.pricing-card-phases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.pricing-phase-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.pricing-phase-num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.pricing-phase-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
}

/* ─── Features ─── */
.pricing-features { display: flex; flex-direction: column; gap: 0.7rem; }
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.5;
}
.pricing-feature-icon {
  flex-shrink: 0;
  color: var(--green);
  margin-top: 2px;
}
.pricing-features--detail {
  padding: 1.25rem 0 0.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
}

/* ─── Footer ─── */
.pricing-card-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-detail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cyan-light);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: color var(--transition);
  width: fit-content;
}
.pricing-detail-toggle:hover { color: var(--text-1); }

.pricing-toggle-arrow {
  margin-left: auto;
  transition: transform var(--transition);
}
.pricing-detail-toggle[aria-expanded="true"] .pricing-toggle-arrow { transform: rotate(180deg); }

.pricing-detail {
  overflow: hidden;
}

.pricing-tagline {
  font-size: 0.875rem;
  color: var(--text-3);
  font-style: italic;
  font-family: var(--font-mono);
}

/* ─── CTA row ─── */
.pricing-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  max-width: 860px;
  margin-inline: auto;
}
.pricing-cta-row p { color: var(--text-2); font-size: 0.95rem; }
.pricing-cta-row strong { color: var(--text-1); }

/* ═══════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  max-width: 800px;
  margin-inline: auto;
}

.faq-item { padding: 0; overflow: hidden; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-1);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.faq-question:hover { color: var(--purple-light); }

.faq-icon {
  flex-shrink: 0;
  color: var(--purple-light);
  transition: transform var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  padding: 0 1.5rem;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.75;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

/* ─── Reduced motion ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
