:root {
  --bg: #0f1221;
  --bg-alt: #171a2b;
  --surface: #1f243a;
  --text: #e8ebff;
  --muted: #b7bfdc;
  --primary: #7b8bff;
  --accent: #3dd9c5;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: radial-gradient(circle at top right, #1d2140, var(--bg));
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 30px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 18, 33, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.25s ease;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 6px;
}

.hero h2 {
  font-weight: 500;
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  color: var(--muted);
  margin-bottom: 16px;
}

.hero p {
  color: #d3daf7;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 11px 20px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #9c69ff);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text);
}

.hero-card {
  background: linear-gradient(170deg, rgba(123, 139, 255, 0.2), rgba(61, 217, 197, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-card-inner {
  padding: 26px;
}

.hero-card h3 {
  margin-bottom: 12px;
}

.about-grid,
.projects-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.project-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
}

.card h3,
.project-card h3 {
  margin-bottom: 10px;
}

.project-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
}

.skills-grid {
  display: grid;
  gap: 14px;
}

.skill-item {
  background: var(--surface);
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.skill-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 500;
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: inherit;
}

.contact-form {
  max-width: 720px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: #121627;
  color: var(--text);
  padding: 11px 12px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(123, 139, 255, 0.2);
}

.form-message {
  margin-top: 12px;
  color: var(--accent);
  min-height: 20px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b0e19;
}

.footer-inner {
  padding: 18px 0;
  text-align: center;
  color: var(--muted);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--primary), #9c69ff);
  color: #fff;
  cursor: pointer;
  display: none;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(11, 14, 25, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    gap: 0;
    display: none;
  }

  .nav-links li a {
    display: block;
    padding: 14px 4%;
  }

  .nav-links.open {
    display: block;
  }

  .section {
    padding: 72px 0;
  }
}
