:root {
    --bg: #0b0b0c;
    --surface: #141416;
    --surface-alt: #1b1b1e;
    --border: #28282c;
    --text: #f1f0ec;
    --muted: #96959a;
    --accent: #e7b34a;
    --accent-soft: rgba(231, 179, 74, 0.12);
    --radius: 14px;
    --maxw: 1080px;
  }

  * {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  h1,
  h2,
  h3,
  .logo,
  .tag {
    font-family: "Space Grotesk", sans-serif;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  img {
    display: block;
    max-width: 100%;
  }

  section {
    padding-top: 80px;
  }

  .container {
    max-width: var(--maxw);
    margin: 0 auto;
  }

  ::selection {
    background: var(--accent);
    color: #0b0b0c;
  }

  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }

  /* ---------- Nav ---------- */

  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(11, 11, 12, 0.72);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }

  nav.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
  }

  .logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

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

  .nav-links {
    display: flex;
    gap: 36px;
  }

  .nav-links a {
    position: relative;
    padding: 4px 0;
    color: var(--muted);
    font-size: 15px;
    transition: color 0.2s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--text);
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.25s ease;
  }

  .nav-links a:hover::after {
    width: 100%;
  }

  .nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
  }

  /* ---------- Hero ---------- */

  .hero {
    position: relative;
    padding-top: 80px;
    overflow: hidden;
  }

  .hero::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -160px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(
      circle at center,
      var(--accent-soft),
      transparent 70%
    );
    pointer-events: none;
  }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0;
    color: var(--muted);
    font-size: 15px;
  }

  .eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
  }

  .hero h1 {
    max-width: 14ch;
    margin: 0 0 26px;
    font-size: clamp(40px, 7vw, 76px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.01em;
  }

  .hero p {
    max-width: 52ch;
    margin: 0 0 40px;
    color: var(--muted);
    font-size: 22px;
  }

  .hero-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
   
  .frontend {
    color: #e7b34a;
  }

  .social-row {
    display: flex;
    gap: 14px;
    margin-bottom: 30px;
  }

  .icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    transition: 0.2s ease;
  }

  .icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
  }

  .icon-btn svg {
    width: 18px;
    height: 18px;
  }

  /* ---------- Marquee ---------- */

  .marquee-wrap {
    padding: 26px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    mask-image: linear-gradient(
      90deg,
      transparent,
      #000 8%,
      #000 92%,
      transparent
    );
  }

  .marquee-track {
    display: flex;
    gap: 52px;
    width: max-content;
    animation: scroll 34s linear infinite;
  }

  .marquee-track.reverse {
    animation-direction: reverse;
    animation-duration: 40s;
  }

  @keyframes scroll {
    from {
      transform: translateX(0);
    }

    to {
      transform: translateX(-50%);
    }
  }

  .tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 15px;
    white-space: nowrap;
  }

  .tech-item i {
    color: var(--text);
    font-size: 22px;
  }

  @media (prefers-reduced-motion: reduce) {
    .marquee-track {
      animation: none;
    }
  }

  /* ---------- Experience ---------- */

.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 1px solid var(--border);
}

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

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

.timeline-dot {
  position: absolute;
  left: -37.5px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.timeline-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.timeline-top h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}

.timeline-date {
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
}

.timeline-company {
  margin: 4px 0 14px;
  color: var(--accent);
  font-size: 14.5px;
}

.timeline-content ul {
  padding-left: 0;
}

.timeline-content ul li {
  padding: 8px 0;
  color: var(--muted);
  font-size: 14.5px;
  border-top: 1px solid var(--border);
  list-style: none;
}

.timeline-content ul li:first-child {
  border-top: none;
}


  /* ---------- What I Do ---------- */

  .section-head {
    max-width: 60ch;
    margin-bottom: 56px;
  }

  .kicker {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 20px;
  }

  .section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 600;
  }

  .services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .service-card {
    padding: 34px 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition:
      border-color 0.25s ease,
      transform 0.25s ease;
  }

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

  .service-card h3 {
    margin: 0 0 18px;
    font-size: 19px;
    font-weight: 600;
  }

  .service-card ul li {
    padding: 8px 0;
    color: var(--muted);
    font-size: 14.5px;
    border-top: 1px solid var(--border);
  }

  .service-card ul li:first-child {
    border-top: none;
  }

  /* ---------- Projects ---------- */

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

  .project-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition:
      border-color 0.25s ease,
      transform 0.25s ease;
  }

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

  .project-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .project-top h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
  }

  .status {
    padding: 5px 11px;
    background: var(--accent-soft);
    border-radius: 999px;
    color: var(--accent);
    font-size: 12px;
    white-space: nowrap;
  }

  .project-card p {
    flex: 1;
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
  }

  .project-links {
    display: flex;
    gap: 16px;
  }

  .project-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
    transition: color 0.2s ease;
  }

  .project-links a:hover {
    color: var(--accent);
  }

  .project-links svg {
    width: 16px;
    height: 16px;
  }

  .more-projects {
    margin-top: 40px;
    text-align: center;
  }

  .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 14.5px;
    transition: 0.2s ease;
  }

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

  /* ---------- Contact ---------- */

  .contact-wrap {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
  }

  #contact h2{
    font-size: 34px;
    margin: 10px 0 16px;
    font-weight: 600;
  }

  .contact-info p {
    max-width: 38ch;
    color: var(--muted);
    font-size: 15.5px;
  }

  .info-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 26px 0 34px;
    color: var(--muted);
    font-size: 14.5px;
  }

  .info-line strong {
    color: var(--text);
    font-weight: 500;
  }

  .field {
    margin-bottom: 18px;
  }

  .field label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13.5px;
  }

  .field input,
  .field textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 14.5px;
    transition: border-color 0.2s ease;
  }

  .field input:focus,
  .field textarea:focus {
    outline: none;
    border-color: var(--accent);
  }

  .field textarea {
    min-height: 120px;
    resize: vertical;
  }

  .btn-solid {
    padding: 13px 28px;
    background: var(--accent);
    border: none;
    border-radius: 999px;
    color: #0b0b0c;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition:
      filter 0.2s ease,
      transform 0.2s ease;
  }

  .btn-solid:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
  }

  .form-note {
    height: 0;
    margin-top: 14px;
    overflow: hidden;
    color: var(--accent);
    font-size: 14px;
    opacity: 0;
    transition:
      opacity 0.3s ease,
      height 0.3s ease;
  }

  .form-note.show {
    height: auto;
    opacity: 1;
  }

  /* ---------- Footer ---------- */

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

  .footer-bottom {
    color: var(--muted);
    font-size: 13.5px;
    text-align: center;
  }

  /* ---------- Responsive ---------- */

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

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

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

    .container {
        padding: 0 35px;
    }

    .hero-wrapper {
        flex-direction: column;
        align-items: normal;
    }
  }

  @media (max-width: 720px) {
    .nav-links {
      position: absolute;
      top: 76px;
      left: 0;
      right: 0;
      display: flex;
      flex-direction: column;
      gap: 0;
      max-height: 0;
      overflow: hidden;
      background: var(--bg);
      border-bottom: 1px solid var(--border);
      transition: max-height 0.3s ease;
    }

    .nav-links.open {
      max-height: 260px;
    }

    .nav-links a {
      display: block;
      width: 100%;
      padding: 16px 32px;
    }

    .nav-toggle {
      display: block;
    }

    .hero {
      padding-top: 150px;
    }

    .hero-wrapper {
        flex-direction: column;
        align-items: normal;
    }

    section {
      padding: 80px 0;
    }
}