:root {
  --bg: #f9f8ff;
  --text: #1f1b2c;
  --muted: #6f6b7d;
  --primary: #7355ff;
  --primary-dark: #5c3dff;
  --card: #ffffff;
  --border: rgba(115, 85, 255, 0.15);
  --accent: #c8b5ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.5rem, 5vw, 4rem);
  background: rgba(249, 248, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 10;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.05em;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 1.5rem;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

body.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

main {
  padding-top: 5.5rem;
}

.hero {
  min-height: calc(100vh - 5.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 3rem;
  padding: clamp(2rem, 8vw, 5rem) clamp(1.5rem, 5vw, 5rem);
  background: radial-gradient(
      circle at top right,
      rgba(115, 85, 255, 0.4),
      transparent 45%
    ),
    #efeafd;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-text {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 30rem;
}

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

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 15px 35px rgba(115, 85, 255, 0.35);
}

.btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn.ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn.ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-visual {
  position: relative;
  min-height: 320px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.8;
  filter: blur(0);
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  width: 280px;
  height: 280px;
  background: linear-gradient(145deg, #a48bff, #7c5bff);
  top: 0;
  right: 0;
}

.orb-2 {
  width: 180px;
  height: 180px;
  background: linear-gradient(145deg, #ffe0f8, #caa6ff);
  left: 15%;
  bottom: 0;
  animation-delay: -4s;
}

.orb-3 {
  width: 120px;
  height: 120px;
  background: linear-gradient(145deg, #ffffff, #dcd6ff);
  right: 20%;
  bottom: 20%;
  animation-delay: -2s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.section {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 5vw, 5rem);
}

.section-header {
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.about-text ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  color: var(--muted);
}

.about-text li {
  margin-bottom: 0.6rem;
}

.about-media img {
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 25px 40px rgba(10, 10, 14, 0.08);
  width: 100%;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  text-align: center;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 10px 30px rgba(34, 26, 56, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(34, 26, 56, 0.15);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(13, 10, 20, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f0edff;
}

.project-card div {
  padding: 1.5rem;
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 50px rgba(13, 10, 20, 0.15);
}

.contact-form {
  background: var(--card);
  border-radius: 24px;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--border);
  box-shadow: 0 20px 45px rgba(22, 11, 52, 0.08);
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(115, 85, 255, 0.25);
  font: inherit;
  color: var(--text);
  background: #fbfaff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(115, 85, 255, 0.4);
  border-color: transparent;
}

.form-status {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(115, 85, 255, 0.08);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 500;
}

.site-footer {
  padding: 2rem clamp(1.5rem, 5vw, 5rem);
  text-align: center;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.back-to-top {
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    inset: 0 0 0 40%;
    background: rgba(248, 247, 255, 0.98);
    flex-direction: column;
    padding: 6rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  body.nav-open .site-nav {
    transform: translateX(0);
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .site-nav {
    inset: 0 0 0 25%;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}
