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

:root {
  --bg: #ffffff;
  --bg-alt: #f4f3f0;
  --text: #1a1918;
  --muted: #6b6560;
  --subtle: #767070;
  --border: rgba(0, 0, 0, 0.09);
  --gold: #f4a825;
  --font: 'Bricolage Grotesque', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── Nav ───────────────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 58px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-dot { color: var(--gold); }

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

nav ul a {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

nav ul a:hover { color: var(--text); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

nav.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
nav.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────── */

.hero {
  padding: 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-container {
  position: relative;
  z-index: 2;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
}

.hero-content {
  padding: 148px 0 112px;
  max-width: 600px;
}

.hero-portrait {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 60%;
  pointer-events: none;
  z-index: 1;
}

.hero-portrait picture {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 100%;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: multiply;
  display: block;
  transition: opacity 0.4s ease;
}

.hero-portrait .p-hover {
  opacity: 0;
  mix-blend-mode: normal;
}

.hero-portrait.p-active .p-hover {
  opacity: 1;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.badge-available { color: var(--text); }

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.accent { color: var(--gold); }

.tagline {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--subtle);
  margin-bottom: 24px;
}

.bio {
  font-size: 18px;
  color: var(--text);
  max-width: 540px;
  line-height: 1.65;
  font-weight: 400;
  margin-bottom: 8px;
}

.bio-sub {
  font-size: 15px;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 36px;
}

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

/* ── Buttons ───────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s, background 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary { background: var(--gold); color: #111; }
.btn-primary:hover { opacity: 0.88; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.2);
}
.btn-outline:hover { border-color: rgba(0,0,0,0.45); }

/* ── Section heading ───────────────────────────────────────── */

.section-heading {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--text);
}

.section-sub {
  font-size: 0.45em;
  font-weight: 400;
  color: var(--subtle);
  letter-spacing: 0;
}

.section-intro {
  font-size: 16px;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 48px;
  max-width: 560px;
}

/* ── Servicii ──────────────────────────────────────────────── */

.servicii {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

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

.serviciu-span {
  grid-column: 1 / -1;
}

.serviciu-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.serviciu-card:hover {
  border-color: rgba(244, 168, 37, 0.4);
  box-shadow: 0 4px 24px rgba(244, 168, 37, 0.08);
}

.serviciu-icon {
  color: var(--gold);
  margin-bottom: 16px;
}

.serviciu-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.serviciu-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
  font-weight: 300;
}

.serviciu-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.serviciu-lista li {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.serviciu-lista li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── AI featured card ──────────────────────────────────────── */

.serviciu-ai {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 16px;
}

.serviciu-ai:hover {
  background: #2a2926;
  border-color: transparent;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

.serviciu-ai .serviciu-icon {
  color: var(--gold);
  margin-bottom: 16px;
}

.serviciu-ai h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #fff;
}

.serviciu-ai p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 0;
}

.serviciu-ai .serviciu-lista li {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}

.serviciu-ai .serviciu-lista li::before {
  background: var(--gold);
}

/* ── Portofoliu ────────────────────────────────────────────── */

.portofoliu {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

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

.porto-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.porto-card:hover {
  border-color: rgba(244, 168, 37, 0.4);
  box-shadow: 0 4px 24px rgba(244, 168, 37, 0.08);
}

.porto-img {
  background: #eceae6;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.porto-img span {
  font-size: 56px;
  font-weight: 800;
  color: #d0cdc8;
  letter-spacing: -0.04em;
}

.porto-body {
  padding: 20px 22px 24px;
}

.porto-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.porto-title-row h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.porto-link-icon {
  color: var(--subtle);
  flex-shrink: 0;
  margin-top: 2px;
  transition: color 0.15s;
}

.porto-card:hover .porto-link-icon {
  color: var(--gold);
}

.porto-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.porto-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}

.porto-cta {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.porto-cta p {
  font-size: 17px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.01em;
}

/* ── Despre ────────────────────────────────────────────────── */

.despre {
  padding: 96px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

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

.despre-text .section-heading { margin-bottom: 28px; }

.despre-text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
  font-weight: 300;
  max-width: 520px;
}

.highlight {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  margin-top: 8px;
}

.despre-stats {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.stat {
  padding-left: 18px;
  border-left: 3px solid var(--gold);
}

.stat-num {
  display: block;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--subtle);
  letter-spacing: 0.08em;
}

/* ── Experience ────────────────────────────────────────────── */

.experience {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.experience .section-heading { margin-bottom: 40px; }

.exp-list { display: flex; flex-direction: column; }

.exp-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 48px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.exp-item:last-child { border-bottom: 1px solid var(--border); }

.exp-period {
  font-size: 13px;
  color: var(--subtle);
  padding-top: 3px;
  font-weight: 400;
}

.exp-body h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}

.exp-company {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 300;
}

.exp-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
  font-weight: 300;
  max-width: 600px;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.exp-tags span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(0,0,0,0.02);
}

/* ── Contact ───────────────────────────────────────────────── */

.contact { padding: 96px 0 112px; }

.contact .section-heading { margin-bottom: 16px; }

.contact-intro {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 12px;
  font-weight: 300;
}

.contact-highlight {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 32px;
}

.contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Footer ────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

footer span {
  font-size: 13px;
  color: var(--subtle);
  font-weight: 300;
}

/* ── Custom cursor ─────────────────────────────────────────── */

body { cursor: none; }
a, button { cursor: none; }

.cursor-dot {
  position: fixed;
  top: -4px; left: -4px;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.08s ease, width 0.2s ease, height 0.2s ease, top 0.2s ease, left 0.2s ease;
}

.cursor-ring {
  position: fixed;
  top: -18px; left: -18px;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(244, 168, 37, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
}

.cursor-dot.cursor-grow {
  top: -16px; left: -16px;
  width: 32px; height: 32px;
  background: rgba(244, 168, 37, 0.15);
}

.cursor-ring.cursor-grow {
  top: -28px; left: -28px;
  width: 56px; height: 56px;
  border-color: var(--gold);
}

@media (hover: none), (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }
  body, a, button { cursor: auto; }
}

/* ── Reveal ────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 900px) {
  .serviciu-ai {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-container {
    flex-direction: column;
    align-items: stretch;
    min-height: unset;
  }

  .hero-content {
    flex: none;
    padding: 120px 0 32px;
  }

  .hero-portrait {
    flex: none;
    margin-left: 0;
    height: 380px;
    justify-content: center;
  }

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

  .porto-grid { grid-template-columns: repeat(2, 1fr); }

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

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  nav { padding: 0 20px; }

  .nav-hamburger { display: flex; }

  nav ul {
    display: none;
    position: absolute;
    top: 58px;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 8px 20px 16px;
    gap: 0;
  }

  nav.nav-open ul { display: flex; }

  nav ul li a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    color: var(--text);
  }

  nav ul li:last-child a { border-bottom: none; }

  .hero-portrait { display: none; }

  .hero-container { min-height: unset; }

  .hero-content { padding: 96px 0 72px; }

  .servicii, .despre, .experience, .contact {
    padding: 64px 0;
  }

  .contact { padding-bottom: 72px; }

  .exp-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .serviciu-card { padding: 24px; }

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

  .porto-cta { flex-direction: column; align-items: flex-start; }

  .footer-right { display: none; }
}
