:root {
  color-scheme: light;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, #eef4ff 0%, #f7f8fb 48%, #eef3f8 100%);
  color: #0f172a;
  line-height: 1.6;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeInUp 0.9s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 28%), radial-gradient(circle at left, rgba(16, 185, 129, 0.12), transparent 28%), #f8fafc;
}

button,
a {
  font: inherit;
}

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

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 18px 48px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  margin-bottom: 24px;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: white;
  font-weight: 800;
  font-size: 1.05rem;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.top-nav a {
  color: #475569;
  padding: 10px 12px;
  border-radius: 14px;
  transition: background 0.25s ease, color 0.25s ease;
}

.top-nav a:hover,
.top-nav a.active {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.12);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: start;
  padding: 32px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,250,252,0.9) 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.08);
}

.hero-copy {
  max-width: 680px;
}

.hero-copy h2 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.hero-copy p {
  margin: 0;
  color: #475569;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.hero-typing {
  margin-top: 18px;
  font-size: 1rem;
  color: #334155;
  min-height: 28px;
}

.cursor {
  font-weight: 700;
  color: #2563eb;
  animation: blink 0.8s ease-in-out infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.button.secondary {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.12);
}

.hero-stats {
  display: grid;
  gap: 18px;
}

.profile-card {
  display: grid;
  gap: 18px;
  text-align: center;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.profile-card img {
  width: 100%;
  max-width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 26px;
  margin: 0 auto;
}

.profile-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.profile-card p {
  margin: 0;
  color: #475569;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.profile-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  font-size: 0.95rem;
}

.stat-card {
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.stat-card span {
  display: block;
  color: #64748b;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.stat-card strong {
  display: block;
  font-size: 1.05rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  margin-top: 28px;
}

.profile-panel {
  display: grid;
  gap: 20px;
}

.panel-card {
  padding: 26px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

.panel-card h3 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.1rem;
}

.panel-card p,
.panel-card li {
  color: #475569;
  margin: 0;
  line-height: 1.75;
}

.panel-card ul {
  margin: 0;
  padding-left: 18px;
}

.panel-card.highlights {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(14, 165, 233, 0.06));
}

.section-card {
  margin-bottom: 28px;
  padding: 32px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.07);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.section-header h2 {
  margin: 0.4rem 0 0;
  font-size: 1.85rem;
}

.section-caption {
  color: #64748b;
  font-size: 0.98rem;
  align-self: center;
}

.accordion-card {
  overflow: hidden;
  border-radius: 22px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.accordion {
  width: 100%;
  border: none;
  background: transparent;
  padding: 22px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.accordion:after {
  content: '+';
  font-size: 1.45rem;
  color: #1d4ed8;
}

.accordion.active:after {
  content: '−';
}

.accordion span {
  color: #475569;
  font-size: 0.95rem;
  white-space: nowrap;
}

.panel {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.panel.show {
  padding: 18px 22px 24px;
  max-height: 420px;
}

.panel p {
  margin: 0 0 16px;
  color: #334155;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
  color: #475569;
}

.panel li {
  margin-bottom: 12px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.chip:hover,
.chip.active {
  background: #eff6ff;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.project-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.project-card p {
  margin: 0;
  color: #475569;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  padding: 20px 22px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.13);
}

.timeline-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.timeline-item span {
  color: #475569;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.skill-pill {
  padding: 16px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #334155;
  font-weight: 600;
}

.contact-card {
  display: grid;
  gap: 18px;
  padding: 26px;
  border-radius: 24px;
  background: #eff6ff;
  border: 1px solid rgba(59, 130, 246, 0.18);
}

.contact-card p {
  color: #334155;
}

.footer {
  margin-top: 32px;
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
}

@media (max-width: 1100px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 700px) {
  .hero-stats,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .top-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .page {
    padding: 20px 16px 36px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero-actions,
  .section-header {
    gap: 12px;
  }

  .hero-copy h2 {
    font-size: 2rem;
  }

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