:root {
  --bg: #0b0b0f;
  --panel: #121218;
  --text: #f5f5f5;
  --muted: #b7b7c0;
  --accent: #3ff0c5;
  --border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 15, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  font-size: 24px;
  font-weight: 700;
}

.logo span {
  color: var(--accent);
}

.menu {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.menu a:hover,
.menu a.active {
  color: var(--accent);
}

.menu a {
  position: relative;
  transition: color 0.25s;
}

.menu a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.hero {
  padding: 80px 0 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  margin: 0 0 20px;
}

.hero h1 span {
  color: var(--accent);
  border-bottom: 4px solid var(--accent);
  padding-bottom: 4px;
}

.hero p {
  max-width: 620px;
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 18px;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border: 1px solid var(--accent);
  color: var(--text);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: 0.25s;
}

.btn:hover {
  background: var(--accent);
  color: #08110f;
}

.hero-card {
  background: linear-gradient(180deg, #1a1a22, #111117);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: end;
  justify-content: center;
}

.hero-card .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  background: radial-gradient(circle at top, rgba(63, 240, 197, 0.15), transparent 40%);
  font-size: 18px;
}

.hero-card .placeholder svg {
  color: var(--accent);
}

.hero-card .placeholder p {
  margin: 0;
}

section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: clamp(30px, 4vw, 54px);
  margin: 0 0 32px;
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.skill {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
}

.skill h3 {
  margin: 0 0 10px;
  font-size: 28px;
}

.skill p {
  margin: 0;
  color: var(--muted);
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project:hover {
  transform: translateY(-6px);
  border-color: rgba(63, 240, 197, 0.45);
}

.project-cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #202030, #15151d);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 18px;
  position: relative;
  overflow: hidden;
}

.project-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.project:hover .project-placeholder {
  opacity: 1;
}

.project-body {
  padding: 20px;
}

.project-body h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.project-desc {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px;
}

.project-links {
  margin-top: 12px;
}

.project-link {
  color: var(--accent);
  font-size: 14px;
  transition: opacity 0.25s;
}

.project-link:hover {
  opacity: 0.7;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.contact-text {
  color: var(--muted);
  max-width: 480px;
}

form {
  display: grid;
  gap: 14px;
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  background: #111117;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-status {
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  display: none;
  font-size: 14px;
}

.form-status.success {
  display: block;
  background: rgba(63, 240, 197, 0.1);
  color: var(--accent);
  border: 1px solid rgba(63, 240, 197, 0.3);
}

.form-status.error {
  display: block;
  background: rgba(255, 100, 100, 0.1);
  color: #ff6464;
  border: 1px solid rgba(255, 100, 100, 0.3);
}

footer {
  padding: 48px 0 24px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.footer-left p {
  margin: 8px 0 0;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.25s;
}

.footer-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-bottom {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 900px) {
  .hero,
  .contact-wrap,
  .projects,
  .skills {
    grid-template-columns: 1fr;
  }

  .menu {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--panel);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
  }

  .menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding-top: 48px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}