
:root {
  --red: #ed3434;
  --bg: #090a0d;
  --text: #f6f6f7;
  --muted: #b9bac2;
  --panel: rgba(17, 19, 24, 0.88);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.7;
  position: relative;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("background.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(5, 5, 8, 0.82);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  max-width: 1120px;
  margin: auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 26px;
  font-weight: 800;
}

.logo span,
h1 span,
h2 span {
  color: var(--red);
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  font-size: 14px;
  color: var(--muted);
}

nav a:hover,
nav a.active {
  color: var(--red);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: white;
  font-size: 24px;
}

.hero {
  max-width: 1120px;
  min-height: 75vh;
  padding: 80px 24px;
  margin: auto;
  display: flex;
  align-items: center;
}

.intro {
  max-width: 700px;
}

.eyebrow {
  color: var(--red);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: bold;
}

h1 {
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.15;
  margin: 15px 0;
}

h2 {
  font-size: 30px;
  line-height: 1.3;
}

.intro h2 {
  font-size: 23px;
  font-weight: normal;
}

.description {
  max-width: 570px;
  color: var(--muted);
}

.socials {
  display: flex;
  gap: 13px;
  margin: 25px 0;
}

.socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--red);
  border-radius: 50%;
  color: var(--red);
}

.socials a:hover {
  color: white;
  background: var(--red);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 11px 19px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: bold;
}

.primary {
  background: var(--red);
  border: 1px solid var(--red);
}

.secondary {
  border: 1px solid #888;
}

.contact {
  padding: 65px 24px 80px;
  text-align: center;
  background: rgba(8, 9, 12, 0.55);
  border-top: 1px solid rgba(255,255,255,.12);
}

.contact-grid {
  max-width: 900px;
  margin: 35px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  text-align: left;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
}

.contact-card > i {
  color: var(--red);
  font-size: 23px;
}

.contact-card strong,
.contact-card small {
  display: block;
}

.contact-card small {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.about {
  max-width: 1000px;
  margin: auto;
  padding: 55px 24px 85px;
}

.about-intro {
  max-width: 800px;
}

.about-intro p:not(.eyebrow),
.project p {
  color: var(--muted);
  font-size: 14px;
}

.section {
  margin-top: 65px;
}

.skill {
  max-width: 720px;
  margin: 22px 0;
}

.skill p {
  font-size: 13px;
  margin-bottom: 7px;
}

.bar {
  height: 6px;
  background: #34343b;
  border-radius: 8px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--red);
}

.note {
  color: var(--muted);
  font-size: 11px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  padding: 7px 12px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 4px;
  font-size: 12px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.project {
  padding: 22px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
}

.project small {
  color: var(--red);
  letter-spacing: 2px;
}

.project h3 {
  margin-bottom: 5px;
}

.about-cta {
  text-align: center;
  padding: 40px 20px;
  margin-top: 65px;
  background: var(--panel);
  border-radius: 8px;
}

footer {
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  background: rgba(5, 5, 8, 0.5);
}

footer a {
  color: var(--red);
}

@media (max-width: 700px) {
  header {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0 5px;
  }

  nav.open {
    display: flex;
  }

  .hero {
    min-height: 70vh;
    padding-top: 55px;
  }

  .contact-grid,
  .projects {
    grid-template-columns: 1fr;
  }
}
