:root {
  --bg: #050816;
  --surface: rgba(18, 30, 60, 0.95);
  --surface-2: rgba(255, 255, 255, 0.06);
  --primary: #5f7cff;
  --primary-soft: #94a4ff;
  --text: #edf2ff;
  --muted: #a9b9d9;
  --accent: #29d6a3;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  font-family: 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(95, 124, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #070b1a 0%, #02040c 100%);
  color: var(--text);
}

.page-wrap {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 92vh;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 12%;
  right: 12%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(95, 124, 255, 0.16);
  filter: blur(50px);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary-soft);
  font-size: 0.83rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  margin: 0;
  line-height: 0.95;
}

.hero-intro {
  max-width: 680px;
  line-height: 1.8;
  margin: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #05102d;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
}

.contact-chip {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  color: var(--muted);
}

.hero-image {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.floating-card {
  width: min(340px, 100%);
  padding: 2rem;
  background: rgba(15, 24, 56, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: float 6s ease-in-out infinite;
}

.floating-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.7rem;
}

.floating-card p {
  margin: 0;
  line-height: 1.8;
  color: var(--muted);
}

.section {
  padding: 5rem 0 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-header span {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.about-grid,
.skills-grid,
.training-grid,
.projects-grid,
.strengths-grid {
  display: grid;
  gap: 1.75rem;
}

.about-grid {
  grid-template-columns: 1.6fr 1fr;
}

.about-text {
  background: rgba(255, 255, 255, 0.04);
  padding: 2rem;
  border-radius: 24px;
  backdrop-filter: blur(12px);
}

.about-text p,
.about-text ul {
  margin: 0;
  line-height: 1.75;
}

.about-text ul {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.8rem;
  color: var(--muted);
}

.about-stats {
  display: grid;
  gap: 1rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card span {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.stat-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.skills-grid,
.training-grid,
.projects-grid,
.strengths-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-card,
.training-card,
.project-card,
.strength-card {
  padding: 1.75rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.skill-card h3,
.training-card h3,
.project-card h3 {
  margin: 0 0 0.85rem;
}

.skill-card p,
.training-card p,
.project-card p {
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}

.project-tag {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(95, 124, 255, 0.12);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.strengths-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.strength-card {
  text-align: center;
  font-weight: 600;
}

.footer-section {
  margin-top: 3rem;
  padding: 3rem 0 1rem;
  text-align: center;
}

.footer-content {
  max-width: 740px;
  margin: 0 auto;
}

.footer-content h2 {
  margin-bottom: 1rem;
  font-size: 2.3rem;
}

.footer-content p {
  margin: 0 auto 1.7rem;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeInUp 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.16s;
}

.delay-2 {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-image {
    min-height: 320px;
  }
}

@media (max-width: 820px) {
  .page-wrap {
    padding: 1.5rem 0 2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid,
  .training-grid,
  .projects-grid,
  .strengths-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .about-text,
  .stat-card,
  .skill-card,
  .training-card,
  .project-card,
  .strength-card {
    padding: 1.5rem;
  }
}
