/* DesignFolio — Designer Resume Theme */

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

:root {
  --color-bg: #0a0a0a;
  --color-surface: #141414;
  --color-surface-alt: #1a1a1a;
  --color-border: #2a2a2a;
  --color-text: #e8e8e8;
  --color-text-muted: #888;
  --color-text-dim: #555;
  --color-accent: #c084fc;
  --color-accent-soft: rgba(192, 132, 252, 0.12);
  --color-accent-glow: rgba(192, 132, 252, 0.25);
  --color-white: #fff;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

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

/* ── Gradient Canvas ───────────────────────── */
#gradientCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ── Custom Cursor ─────────────────────────── */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(192, 132, 252, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-dot.hovering {
  width: 48px;
  height: 48px;
  background: rgba(192, 132, 252, 0.15);
  mix-blend-mode: difference;
}

.cursor-ring.hovering {
  width: 64px;
  height: 64px;
  border-color: var(--color-accent);
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: var(--transition); }
a:hover { opacity: 0.85; }

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 24px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.section-header { margin-bottom: 48px; }

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  padding: 4px 14px;
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-radius: 999px;
  margin-bottom: 16px;
  background: var(--color-accent-soft);
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 48px;
  max-width: 600px;
}

/* ── Header ────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--wb-dark-surface, rgba(10, 10, 10, 0.85));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.logo:hover { color: var(--color-accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition);
}

.nav-link:hover { color: var(--color-white); }
.nav-link:hover::after { width: 100%; }

/* ── Hero / Resume ─────────────────────────── */
.hero-section {
  position: relative;
  padding-top: 72px;
  /* `clip`, not `hidden`: `overflow: hidden` makes this section a SCROLL
     CONTAINER, and a scroll container between the viewport and a
     `view()`-timeline element silently kills the timeline — the background
     and image parallax below would simply never run. `clip` clips
     identically without creating one. */
  overflow: clip;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--color-border) 1px, transparent 0);
  background-size: 40px 40px;
  opacity: 0.3;
}

.cover-watermark {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
}

.cover-watermark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-container {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--color-accent-soft);
  border: 1px solid rgba(192, 132, 252, 0.2);
  border-radius: 999px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.badge-text {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 500;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 500;
}

.hero-title {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-summary {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 560px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.meta-item svg { color: var(--color-accent); flex-shrink: 0; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: #d4a5ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--color-accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Hero Image */
.hero-image { position: relative; }

.image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--color-surface);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-decoration {
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-accent);
  opacity: 0.3;
  pointer-events: none;
}

.image-glow {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60px;
  background: var(--color-accent);
  filter: blur(60px);
  opacity: 0.2;
  pointer-events: none;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  z-index: 2;
}

.fb-1 { top: 20%; right: -20px; }
.fb-2 { bottom: 25%; left: -30px; }

.fb-icon {
  font-size: 1.2rem;
  color: var(--color-accent);
}

.fb-text {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
}

/* ── Skills ─────────────────────────────────── */
.skills-section { padding: 60px 0; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.skill-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}

.skill-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.skill-group {
  font-size: 0.75rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.skill-percent {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  font-family: var(--font-heading);
}

.skill-percent::after { content: '%'; }

.skill-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.skill-bar {
  height: 4px;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), #818cf8);
  border-radius: 999px;
  transition: width 1s ease;
}

/* ── Experience Timeline ────────────────────── */
.experience-section { padding: 60px 0 40px; }

.timeline { position: relative; padding-left: 32px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -32px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 3px solid var(--color-accent);
}

.timeline-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}

.timeline-content:hover { border-color: var(--color-accent); }

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.timeline-role {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.timeline-dates {
  font-size: 0.85rem;
  color: var(--color-accent);
  white-space: nowrap;
  font-weight: 500;
}

.date-sep { margin: 0 4px; }

.timeline-company {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── Education ──────────────────────────────── */
.education-section { padding: 0 0 40px; }

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.education-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}

.education-card:hover { border-color: var(--color-accent); }

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.education-degree {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
}

.education-dates {
  font-size: 0.85rem;
  color: var(--color-accent);
  white-space: nowrap;
  font-weight: 500;
}

.education-school {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.education-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ── Design Tools ───────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.tool-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.tool-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-accent);
}

.tool-icon-wrap .tool-initial {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tool-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.tool-category {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 16px;
}

.tool-proficiency {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-bar {
  flex: 1;
  height: 4px;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}

.tool-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), #818cf8);
  border-radius: 999px;
  transition: width 1s ease;
}

.tool-percent {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  font-family: var(--font-heading);
  min-width: 28px;
  text-align: right;
}

.tool-percent::after { content: '%'; }

/* ── Portfolio ──────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.portfolio-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img { transform: scale(1.05); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-cat {
  font-size: 0.75rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.portfolio-link {
  padding: 10px 24px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.portfolio-link:hover { background: var(--color-accent); color: var(--color-bg); }

.portfolio-info { padding: 20px 24px; }

.portfolio-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.portfolio-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ── Case Studies ───────────────────────────── */
.cases-list { display: flex; flex-direction: column; gap: 32px; }

.case-card {
  display: grid;
  grid-template-columns: 420px 1fr;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.case-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}

.case-image { aspect-ratio: 4 / 3; overflow: hidden; }

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-card:hover .case-image img { transform: scale(1.03); }

.case-content { padding: 32px; }

.case-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.case-meta strong { color: var(--color-text); font-weight: 600; }

.case-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.case-outcome {
  padding: 12px 16px;
  background: var(--color-accent-soft);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: var(--color-text);
}

.case-outcome strong { color: var(--color-accent); }

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
}

.case-link::after { content: '\2192'; transition: var(--transition); }
.case-link:hover::after { transform: translateX(4px); }

/* ── Services ───────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: var(--transition);
  overflow: hidden;
}

.service-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-border);
  line-height: 1;
  pointer-events: none;
  transition: var(--transition);
}

.service-card:hover .service-number { color: var(--color-accent-soft); }

.service-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-accent-soft);
}

.service-icon img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

.service-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.service-detail {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  margin-bottom: 16px;
  line-height: 1.7;
}

.service-price {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
}

/* ── Testimonials ───────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.testimonial-card:hover { border-color: var(--color-accent); }

.testimonial-stars {
  color: #facc15;
  font-size: 1rem;
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.quote-icon {
  color: var(--color-accent);
  opacity: 0.3;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
}

.testimonial-name { font-size: 0.95rem; }

.testimonial-role {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ── Social ─────────────────────────────────── */
.social-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.social-label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-muted);
}

.social-links { display: flex; gap: 12px; flex-wrap: wrap; }

.social-link {
  padding: 8px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

/* ── Contact ────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.8;
}

.contact-details { display: flex; flex-direction: column; gap: 16px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-wrap svg { color: var(--color-accent); }

.contact-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-value {
  display: block;
  font-size: 0.95rem;
  color: var(--color-text);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

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

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-dim);
}

.btn-full {
  width: 100%;
  gap: 8px;
}

.btn-full svg {
  transition: transform 0.3s ease;
}

.btn-full:hover svg {
  transform: translate(4px, -4px);
}

/* ── Footer ─────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

.footer-social { display: flex; gap: 12px; }

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.footer-social-link svg { width: 16px; height: 16px; }

.footer-social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

/* ============================================================ ANIMATIONS
   Scroll-driven reveal, progressive enhancement only. The resting state is
   FULLY VISIBLE at rule level and lives outside every guard, so a browser
   without ViewTimeline support — or a same-origin preview iframe, where the
   timeline resolves to null — shows the complete page with nothing left to
   reveal. The hidden from-state exists only inside @keyframes. */
.gs-fade-up,
.gs-reveal,
.gs-stagger,
.gs-scale-in,
.gs-hero-text {
  opacity: 1;
}

/* Hero — above the fold, so it runs on a TIME timeline, not a scroll one:
   the hero is already on screen at load and a view() timeline would never
   advance for it. */
@media (prefers-reduced-motion: no-preference) {
  .hero-section .gs-hero-text { animation: wb-folio-hero-in 1.2s cubic-bezier(.19,1,.22,1) .2s both; }
  .hero-section .gs-fade-up { animation: wb-folio-fade-up .8s cubic-bezier(.19,1,.22,1) both; }
  .hero-section .hero-badge.gs-fade-up { animation-delay: .4s; }
  .hero-section .hero-chips.gs-fade-up { animation-delay: .5s; }
  .hero-section .hero-title.gs-fade-up { animation-delay: .6s; }
  .hero-section .hero-summary.gs-fade-up { animation-delay: .7s; }
  .hero-section .hero-meta.gs-fade-up { animation-delay: .8s; }
  .hero-section .hero-actions.gs-fade-up { animation-delay: .9s; }
  .hero-image.gs-scale-in { animation: wb-folio-scale-in 1.2s cubic-bezier(.19,1,.22,1) .6s both; }

  /* Floating badges — always-on ambient float, no entrance tween in the
     original (only a continuous repeat:-1/yoyo:true wall-clock drift). */
  .floating-badge { animation: wb-folio-badge-float 2.8s ease-in-out infinite alternate; }
  .fb-2 { animation-duration: 3.1s; }
}
@keyframes wb-folio-hero-in { from { opacity: 0; transform: translateY(60px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes wb-folio-fade-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; } }
@keyframes wb-folio-scale-in { from { opacity: 0; transform: scale(.8) rotate(-3deg); } to { opacity: 1; transform: rotate(0); } }
@keyframes wb-folio-badge-float { from { translate: 0 -12px; } to { translate: 0 12px; } }

/* Below-fold — CSS scroll-driven replacement for the per-element and
   per-group fade/reveal tweens (`start:'top 85%'` for section titles,
   `start:'top 80%'` for staggered grids/lists). Stagger is an
   animation-RANGE shift, never a delay: a wall-clock delay on a scroll
   timeline finishes long before the visitor arrives. Both ends stay inside
   `entry` so every reveal completes once the element has entered — an end
   anchored to `cover` would leave the last section of the page permanently
   part-transparent.

   `.gs-reveal` keeps the original's clip-path mask-wipe (`inset(0 0 100% 0)`
   to `inset(0 0 0% 0)`) alongside opacity/transform — clip-path is a paint
   property, not a layout one, so it never triggers reflow. The `.gs-fade-up`
   instances outside the hero (social bar, contact column) get the same
   scroll-driven treatment as `.gs-stagger`, correcting the original bug
   where every `.gs-fade-up` — hero or not — animated on a wall clock at
   page load, finishing long before a visitor ever scrolled to it. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .gs-reveal {
      animation: wb-folio-reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    .gs-fade-up:not(.hero-section *),
    .gs-stagger {
      animation: wb-folio-up-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    :is(.skills-grid,.timeline,.education-grid,.tools-grid,.portfolio-grid,.cases-list,.services-grid,.testimonials-grid) > .gs-stagger:nth-child(2) { animation-range: entry 8% entry 48%; }
    :is(.skills-grid,.timeline,.education-grid,.tools-grid,.portfolio-grid,.cases-list,.services-grid,.testimonials-grid) > .gs-stagger:nth-child(3) { animation-range: entry 16% entry 56%; }
    :is(.skills-grid,.timeline,.education-grid,.tools-grid,.portfolio-grid,.cases-list,.services-grid,.testimonials-grid) > .gs-stagger:nth-child(4) { animation-range: entry 24% entry 64%; }
    :is(.skills-grid,.timeline,.education-grid,.tools-grid,.portfolio-grid,.cases-list,.services-grid,.testimonials-grid) > .gs-stagger:nth-child(5) { animation-range: entry 32% entry 72%; }
    :is(.skills-grid,.timeline,.education-grid,.tools-grid,.portfolio-grid,.cases-list,.services-grid,.testimonials-grid) > .gs-stagger:nth-child(n+6) { animation-range: entry 40% entry 80%; }

    @keyframes wb-folio-reveal-in { from { opacity: 0; transform: translateY(50px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0% 0); } }
    @keyframes wb-folio-up-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; } }
  }
}

/* Hero background + image parallax — the CSS scroll-driven replacement for
   this theme's two scroll-scrub tweens, both on the same trigger
   (`start:'top top'` to `end:'bottom top'`), moving the background by
   `y:120` and the image frame by `y:40`. `exit` is the named range meaning
   exactly that: from the moment the hero's top edge reaches the viewport
   top, to the moment its bottom edge does. `translate` rather than
   `transform` so each composes with, instead of clobbers, any hover/preset
   transform on its own element. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-bg-pattern {
      animation: wb-folio-bg-parallax linear both;
      animation-timeline: view();
      animation-range: exit;
    }
    .image-frame {
      animation: wb-folio-image-parallax linear both;
      animation-timeline: view();
      animation-range: exit;
    }
  }
}
@keyframes wb-folio-bg-parallax { from { translate: 0 0; } to { translate: 0 120px; } }
@keyframes wb-folio-image-parallax { from { translate: 0 0; } to { translate: 0 40px; } }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { max-width: 320px; margin: 0 auto; }
  .floating-badge { display: none; }
  .case-card { grid-template-columns: 1fr; }
  .case-image { aspect-ratio: 16 / 9; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section-container { padding: 60px 20px; }

  .nav-toggle { display: flex; }
  .nav-list {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: var(--color-bg);
    padding: 40px 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: var(--transition);
  }
  .nav-list.open { transform: translateX(0); }

  .hero-container { padding: 40px 20px; }
  .hero-name { font-size: 2.2rem; }
  .hero-meta { flex-direction: column; gap: 12px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }

  .skills-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .education-grid { grid-template-columns: 1fr; }

  .social-bar { flex-direction: column; }
}

@media (max-width: 480px) {
  .tools-grid { grid-template-columns: 1fr; }
}

/* Hide wire:loading elements before Livewire mounts (mirrors Livewire's runtime CSS) */
[wire\:loading],
[wire\:loading\.delay],
[wire\:loading\.inline-block],
[wire\:loading\.inline] { display: none; }

/* WoBooks empty-image guard (theme:editor-compliance --fix --scope=img-empty-guard):
   image_url('') renders <img src=""> until the owner uploads a photo — hide it
   instead of leaking the browser's broken-image icon + alt text onto the page. */
img[src=""], img:not([src]) { display: none !important; }

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
:root {
  --color-text-dim: #8c8c8c; /* was #555 */
  --color-border: #6d6d6d; /* was #2a2a2a */
}

/* Hand contrast (Skin & Skeleton S2 dark-theme re-heal): on a light page the section tag's accent sits on its own
   tint, so it reads darker there. */
.section-tag:where([data-wb-scheme="light"] *),
.tool-icon-wrap .tool-initial:where([data-wb-scheme="light"] *),
.case-outcome strong:where([data-wb-scheme="light"] *) { color: oklch(from var(--color-accent) min(l, 0.42) c h / alpha); }
