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

:root {
  --bg: #0d0d0d;
  --surface: #141414;
  --surface2: #1c1c1c;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --text: #f0ede6;
  --text-muted: rgba(240,237,230,0.45);
  --text-subtle: rgba(240,237,230,0.25);
  --accent: #33ff33;
  --accent-dim: rgba(51,255,51,0.08);
  --accent-dim2: rgba(51,255,51,0.15);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

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

/* ─── SCROLL PROGRESS BAR ─── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 9999;
  transition: width 0.05s linear;
  box-shadow: 0 0 8px rgba(51,255,51,0.5);
}

/* ─── LANG FADE ─── */
body.lang-switching { opacity: 0; transition: opacity 0.18s ease; }
body.lang-ready     { opacity: 1; transition: opacity 0.22s ease; }

/* ─── NAV ─── */
nav {
  position: absolute;
  top: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1.2rem 2.5rem;
  background: transparent;
  pointer-events: none;
}
.nav-lang { pointer-events: all; }

/* ─── LANG SWITCHER ─── */
.nav-lang {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-lang button {
  background: transparent;
  border: none;
  color: var(--text);
  padding: 0.45rem 1rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: all 0.2s;
  line-height: 1;
  min-width: 44px;
  min-height: 36px;
}
.nav-lang button:first-child { border-right: 1px solid rgba(255,255,255,0.28); }
.nav-lang button.active { background: var(--accent); color: #0d0d0d; }
.nav-lang button:hover:not(.active) { color: var(--accent); background: var(--surface2); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2.5rem 4rem;
  position: relative;
}
.hero-content {
  display: flex;
  flex-direction: column;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.hero-bg-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 20rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.04);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}
.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-label::before {
  content: '';
  display: block;
  width: 2rem; height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 7.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  max-width: 14ch;
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  position: relative;
  z-index: 1;
  margin-bottom: 3rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 1; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--accent); color: #0d0d0d; border-color: var(--accent); }
.btn-primary:hover { background: #5fff5f; border-color: #5fff5f; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-hover); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* ─── TICKER ─── */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2.5rem;
  background: var(--surface);
  max-width: 1100px;
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
}
.ticker-track { display: flex; animation: ticker 28s linear infinite; white-space: nowrap; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0 2rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ticker-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── SECTIONS ─── */
section { padding: 7rem 2.5rem; }
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before { content: ''; display: block; width: 1.5rem; height: 1px; background: var(--accent); }
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

/* ─── ABOUT ─── */
#info { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-wrap::after { content: ''; position: absolute; inset: -12px; border: 1px solid var(--border); border-radius: 12px; pointer-events: none; }
.about-img-wrap img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 8px; display: block; filter: grayscale(20%); }
.about-text p { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 1.05rem; line-height: 1.8; }

/* ─── SKILLS ─── */
#skills { background: var(--bg); }
.skills-inner { max-width: 1100px; margin: 0 auto; }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 3rem;
}
.skill-card { background: var(--surface); padding: 2.4rem 2rem; transition: background 0.2s; cursor: default; }
.skill-card:hover { background: var(--surface2); }
.skill-card:hover .skill-icon { color: var(--text); }
.skill-icon { font-size: 1.6rem; font-family: var(--font-display); color: var(--accent); margin-bottom: 1rem; transition: color 0.2s; display: block; }
.skill-name { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.04em; margin-bottom: 0.6rem; color: var(--text); }
.skill-desc { font-size: 0.92rem; color: var(--text-muted); line-height: 1.75; letter-spacing: 0.015em; }

/* ─── SERVICES ─── */
#services { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.services-inner { max-width: 1100px; margin: 0 auto; }
.services-list { margin-top: 3rem; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 2rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  cursor: default;
  gap: 2rem;
}
.service-row:last-child { border-bottom: none; }
.service-row:hover { background: var(--bg); }
.service-row:hover .service-arrow { opacity: 1; transform: translateX(0); color: var(--accent); }
.service-name { font-family: var(--font-display); font-size: 1.1rem; color: var(--text); flex: 1; }
.service-tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--accent-dim2);
  white-space: nowrap;
}
.service-arrow { font-size: 1.2rem; color: var(--text-subtle); opacity: 0; transform: translateX(-6px); transition: all 0.2s; flex-shrink: 0; }

/* ─── CONTACT ─── */
#contact { background: var(--bg); }
.contact-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.contact-inner .section-label { justify-content: center; }
.contact-inner .section-label::before { display: none; }
.contact-email {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.2rem;
  transition: color 0.2s;
  margin: 2.5rem 0 2.5rem;
  letter-spacing: -0.01em;
  word-break: break-all;
}
.contact-email:hover { color: var(--accent); }
.social-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.social-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: var(--surface);
}
.foot-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.2rem; width: 100%; flex-wrap: wrap; gap: 1rem; }
footer .foot-left { font-size: 0.8rem; color: var(--text-subtle); }
footer .foot-social { display: flex; gap: 1.2rem; flex-wrap: wrap; }
footer .foot-social a { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
footer .foot-social a:hover { color: var(--text); }
footer .foot-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: flex-end; }
footer .foot-legal a { font-size: 0.75rem; color: var(--text-subtle); text-decoration: none; transition: color 0.2s; }
footer .foot-legal a:hover { color: var(--text-muted); }

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 0.9rem 1.2rem; }
  .hero, section { padding-left: 1.4rem; padding-right: 1.4rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-img-wrap { max-width: 360px; }
  footer { padding: 1.4rem; }
  .service-row { flex-wrap: wrap; }
}
