:root {
  --bg: #0b1020;
  --bg-soft: #11182d;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --text: #edf2ff;
  --muted: #b9c1d9;
  --accent: #6ea8fe;
  --accent-2: #8b5cf6;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

body.light-mode {
  --bg: #f5f7ff;
  --bg-soft: #ffffff;
  --surface: rgba(20, 24, 40, 0.05);
  --surface-strong: rgba(20, 24, 40, 0.08);
  --text: #111827;
  --muted: #4b5563;
  --accent: #2563eb;
  --accent-2: #7c3aed;
  --border: rgba(17, 24, 39, 0.08);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(110, 168, 254, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.14), transparent 25%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

.section-title {
  margin-bottom: 40px;
}

.section-title p {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
  max-width: 700px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 16, 32, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

body.light-mode .header {
  background: rgba(245, 247, 255, 0.8);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.nav-menu {
  display: flex;
  gap: 24px;
}

.nav-menu a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle,
.menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  min-height: calc(100vh - 76px);
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: 20px;
}

.accent {
  color: var(--accent);
}

.hero-description {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}

.btn-secondary {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.social-links a {
  color: var(--muted);
  font-weight: 600;
}

.social-links a:hover {
  color: var(--text);
}

.hero-card {
  display: flex;
  justify-content: center;
}

.profile-card {
  width: 100%;
  max-width: 360px;
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 20px;
}

.profile-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.profile-card p {
  color: var(--muted);
  margin-bottom: 20px;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.mini-tags span,
.project-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.about-text {
  padding: 28px;
}

.about-text p + p {
  margin-top: 16px;
}

.about-stats {
  display: grid;
  gap: 20px;
}

.stat-card {
  padding: 28px;
}

.stat-card h3 {
  font-size: 2rem;
  margin-bottom: 6px;
  color: var(--accent);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.skill-card {
  padding: 22px;
  text-align: center;
  font-weight: 700;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  overflow: hidden;
}

.project-image {
  height: 200px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(110, 168, 254, 0.3), rgba(139, 92, 246, 0.3));
  border-bottom: 1px solid var(--border);
}

.project-content {
  padding: 24px;
}

.project-content h3 {
  margin-bottom: 12px;
}

.project-content p {
  color: var(--muted);
  margin-bottom: 18px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.project-links {
  display: flex;
  gap: 18px;
}

.project-links a {
  color: var(--accent);
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.contact-info,
.contact-form {
  padding: 28px;
}

.contact-info h3 {
  margin-bottom: 14px;
}

.contact-info p + p {
  margin-top: 10px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}

body.light-mode .contact-form input,
body.light-mode .contact-form textarea {
  background: white;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.form-message {
  min-height: 24px;
  color: var(--accent);
  font-weight: 600;
}

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--accent);
  font-weight: 700;
}

.cursor-glow {
  position: fixed;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 168, 254, 0.12), transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: -1;
}

@media (max-width: 950px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 40px;
  }

  .projects-grid {
    gap: 20px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-menu {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px;
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .profile-card,
  .about-text,
  .stat-card,
  .contact-info,
  .contact-form,
  .project-content {
    padding: 22px;
  }
}
