:root {
  --bg: #0f172a;
  --surface: rgba(15, 23, 42, 0.92);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #7c3aed;
  --accent-soft: #c7d2fe;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.25);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(124, 58, 237, 0.28), transparent 20%),
              radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 18%),
              linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(2, 13, 34, 0.8);
  border-bottom: 1px solid rgba(227, 232, 240, 0.08);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  margin-bottom: 48px;
  animation: fade-up 0.9s ease both;
}

.hero-inner {
  display: contents;
}

.profile-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(59, 130, 246, 0.18));
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.profile-photo img {
  width: min(100%, 260px);
  height: auto;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.35);
  background: linear-gradient(180deg, #eef2ff 0%, #c7d2fe 100%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 3vw, 4rem);
  line-height: 1.02;
  margin: 0;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: white;
  box-shadow: 0 18px 40px rgba(124, 58, 237, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(124, 58, 237, 0.32);
}

section {
  margin-bottom: 48px;
  animation: fade-up 0.9s ease both;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  position: relative;
}

section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #2563eb);
}

.about,
.projects,
.skills,
.contact {
  padding: 40px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.about p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.project:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.08);
}

.project h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.project p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.project-link {
  color: #c7d2fe;
  font-weight: 600;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.skills-list li {
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-weight: 500;
}

.contact form {
  display: grid;
  gap: 18px;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact input:focus,
.contact textarea:focus {
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.contact textarea {
  min-height: 160px;
  resize: vertical;
}

.contact button {
  width: fit-content;
  padding: 0.95rem 1.9rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: white;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.contact button:hover {
  transform: translateY(-2px);
}

footer {
  text-align: center;
  color: var(--text-muted);
  padding: 28px 24px 18px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero,
  .about,
  .projects,
  .skills,
  .contact {
    padding: 28px;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
 