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

body {
  font-family: "Manrope", sans-serif;
  min-height: 100vh;
  color: #1e1b4b;
  background: #0f0a1e;
  overflow-x: hidden;
}

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #0f0a1e 0%, #1a1033 40%, #2d1b4e 100%);
}

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

.orb-1 {
  width: 420px;
  height: 420px;
  background: #7c3aed;
  top: -120px;
  left: -80px;
}

.orb-2 {
  width: 360px;
  height: 360px;
  background: #ec4899;
  bottom: -100px;
  right: -60px;
  animation-delay: -4s;
}

.orb-3 {
  width: 280px;
  height: 280px;
  background: #6366f1;
  top: 45%;
  left: 55%;
  animation-delay: -8s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #f8fafc;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  font-size: 1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-nav a {
  color: rgba(248, 250, 252, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: #f8fafc;
}

.profile-page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

.hero {
  padding: 3rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px);
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  max-width: 640px;
}

.hero-photo {
  display: flex;
  justify-content: center;
}

.hero-photo-img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #e9d5ff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: #f8fafc;
  margin-bottom: 1.25rem;
}

.hero-title span {
  background: linear-gradient(135deg, #e9d5ff, #f9a8d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(248, 250, 252, 0.7);
  margin-bottom: 2rem;
}

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

.hero-actions .btn {
  width: auto;
  margin-top: 0;
  padding-inline: 1.75rem;
}

.section {
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 1.25rem;
}

.section-desc {
  color: rgba(248, 250, 252, 0.6);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.glass-panel {
  padding: 1.75rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.glass-panel p {
  color: rgba(248, 250, 252, 0.75);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.glass-panel p:last-child {
  margin-bottom: 0;
}

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

.skill-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s, transform 0.2s;
}

.skill-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
}

.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.skill-card p {
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.6);
  line-height: 1.55;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.project-card--soon {
  opacity: 0.65;
}

.project-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.project-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.75rem;
}

.project-card p {
  flex: 1;
  font-size: 0.95rem;
  color: rgba(248, 250, 252, 0.65);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-bottom: 1.25rem;
}

.project-tags li {
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.2);
  color: #e9d5ff;
  font-size: 0.75rem;
  font-weight: 500;
}

.btn-card {
  width: 100%;
  margin-top: auto;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.soon-label {
  display: inline-block;
  margin-top: auto;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.5);
  font-size: 0.85rem;
}

.contact-panel p {
  margin-bottom: 0.5rem;
}

.contact-panel strong {
  color: #e9d5ff;
}

.glass-panel a {
  color: #f0e6ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 213, 255, 0.45);
  transition: color 0.2s, border-color 0.2s;
}

.glass-panel a:hover {
  color: #fff;
  border-bottom-color: #e9d5ff;
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  color: rgba(248, 250, 252, 0.4);
  font-size: 0.85rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: rgba(248, 250, 252, 0.5);
}

.breadcrumb a {
  color: rgba(248, 250, 252, 0.75);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #f8fafc;
}

.page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem 3rem;
  max-width: 520px;
  margin: 0 auto;
}

.page--lab {
  align-items: stretch;
  justify-content: flex-start;
  max-width: 520px;
}

.lab-intro {
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.25rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.lab-intro__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.lab-intro__text {
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.7);
  line-height: 1.6;
}

.lab-intro__text + .lab-intro__text {
  margin-top: 0.65rem;
}

.page--lab .lab-intro,
.page--lab .card {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 440px;
}

.card {
  width: 100%;
  max-width: 440px;
  padding: 2.5rem 2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
}

.card h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 0.95rem;
  color: rgba(248, 250, 252, 0.65);
  line-height: 1.5;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.85);
}

.field input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder {
  color: rgba(248, 250, 252, 0.35);
}

.field input:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.hint {
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.5);
  line-height: 1.4;
}

.error-message {
  font-size: 0.875rem;
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1.5rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #9333ea, #db2777);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.35);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(147, 51, 234, 0.45);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  width: auto;
  margin-top: 0;
  padding-inline: 2rem;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.success-page .success-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin-bottom: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #10b981);
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  box-shadow: 0 16px 48px rgba(34, 197, 94, 0.35);
  animation: pop 0.6s ease-out;
}

@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

.success-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 720px;
  background: linear-gradient(135deg, #f8fafc 0%, #e9d5ff 50%, #f9a8d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.8s ease-out 0.2s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.articles-page-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.75rem;
}

.article-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.75rem;
}

.article {
  max-width: 760px;
}

.article-header {
  margin-bottom: 2rem;
}

.article-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: #f8fafc;
  margin-bottom: 0.75rem;
}

.article-meta {
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.5);
}

.article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 2rem 0 1rem;
  line-height: 1.35;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  color: rgba(248, 250, 252, 0.78);
  line-height: 1.75;
  margin-bottom: 1.15rem;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-back {
  margin-top: 2rem;
}

.article-back a {
  color: rgba(248, 250, 252, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.article-back a:hover {
  color: #f8fafc;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content {
    max-width: none;
  }

  .hero-photo {
    order: -1;
  }

  .hero-photo-img {
    max-width: 220px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 2rem;
  }

  .card {
    padding: 2rem 1.25rem;
  }

  .card h1 {
    font-size: 1.5rem;
  }
}
