:root {
  --bg: #050505;
  --surface: #111;
  --card: #161616;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #f97316;
  --hover: #38bdf8;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Inter, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(1200px, 92%);
  margin: auto;
  padding-inline: 10px;
}
section {
  padding: 100px 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
}
h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  max-width: 900px;
  margin: 0 auto 50px;
  color: var(--muted);
  text-align: center;
}
.nav-wrap {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 22px;
  padding: 12px 24px;
  background: rgba(17, 17, 17, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  z-index: 1000;
}
.nav-wrap a,
.socials a,
.talk,
.btn {
  text-decoration: none;
  color: #fff;
}
.nav-wrap a:hover {
  color: var(--accent);
}
.talk {
  position: fixed;
  top: 18px;
  right: 24px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #1d1d1d;
  border: 1px solid var(--border);
}
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
}
.eyebrow {
  margin-bottom: 18px;
  color: #ddd;
}
.span {
  color: var(--accent);
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  margin-bottom: 18px;
}
.hero p {
  color: var(--muted);
  max-width: 600px;
}
.btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.btn {
  padding: 14px 20px;
  border-radius: 12px;
  background: #191919;
  border: 1px solid var(--border);
}
.btn:hover,
.card:hover {
  transform: translateY(-4px);
}
.socials {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.portrait {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: 28px;
  background: linear-gradient(180deg, #1a1a1a, #0f0f0f);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 6rem;
  color: #444;
  margin: auto;
}
.grid-3,
.grid-4,
.contact-grid {
  display: grid;
  gap: 24px;
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  transition: 0.3s;
}
.project-desc {
  margin: 12px 0 18px;
  color: var(--muted);
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: #222;
  border: 1px solid var(--border);
  font-size: 0.8rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: center;
  margin-top: 40px;
}
.stat h3 {
  font-size: 2rem;
}
.timeline {
  max-width: 800px;
  margin: auto;
  border-left: 1px solid var(--border);
}
.timeline-item {
  position: relative;
  padding: 0 0 40px 30px;
}
.timeline-item:before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s;
}
.reveal.show {
  opacity: 1;
  transform: none;
}
footer {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
@media (max-width: 900px) {
  .nav-wrap {
    left: 0;
    right: 0;
    transform: none;
    width: 95%;
    margin: auto;
    overflow: auto;
    white-space: nowrap;
    justify-content: flex-start;
  }
  .nav-wrap::-webkit-scrollbar {
    display: none;
  }
  .talk {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding-top: 120px;
    min-height: auto;
  }
  .hero p {
    margin: auto;
  }
  .btns,
  .socials {
    justify-content: center;
  }
  .portrait {
    order: -1;
    max-width: 320px;
  }
  section {
    padding: 80px 0;
  }
}
