:root {
  --bg: #0f172a;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --primary: #38bdf8;
  --primary-dark: #0284c7;
  --white: #ffffff;
  --border: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92%);
  margin: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.navbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--white);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 700;
}

.logo span,
.hero h1 span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--primary);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
}

.section {
  padding: 90px 0;
}

.alt {
  background: rgba(255, 255, 255, 0.03);
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.hero-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero-text,
.about-text {
  color: var(--muted);
  max-width: 780px;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  border: 1px solid var(--primary);
  font-weight: 700;
  cursor: pointer;
}

.primary {
  background: var(--primary);
  color: #00111f;
}

.primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.secondary {
  color: var(--primary);
}

.secondary:hover {
  background: var(--primary);
  color: #00111f;
}

.profile-card,
.skill-card,
.project-card,
.timeline-item,
.contact-form {
  background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--primary);
  color: #00111f;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.profile-card h2 {
  margin-bottom: 0.6rem;
}

.profile-card p,
.skill-card p,
.project-card p,
.muted,
.contact p {
  color: var(--muted);
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.skills-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.skill-card h3,
.project-card h3 {
  color: var(--white);
  margin-bottom: 0.8rem;
}

.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tags span {
  color: var(--primary);
  border: 1px solid var(--border);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.timeline ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  background: #0b1220;
  color: var(--white);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
}

.form-status {
  color: var(--primary);
  font-weight: 700;
}

footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

@media (max-width: 850px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 4%;
    width: 220px;
    display: none;
    flex-direction: column;
    background: var(--card);
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
  }

  .nav-links.show {
    display: flex;
  }

  .hero-grid,
  .contact-grid,
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }
}
