:root {
  color-scheme: light;
  font-family: 'Inter', sans-serif;
  background: #F6F3F8;
  color: #1E1B26;
  --surface: #FFFFFF;
  --text-primary: #1E1B26;
  --text-secondary: #6F7080;
  --border: #D7C9E6;
  --accent: #7E5B9F;
  --accent-hover: #A27BC4;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: radial-gradient(circle at top left, rgba(159, 123, 183, 0.17), transparent 28%), radial-gradient(circle at bottom right, rgba(182, 154, 205, 0.1), transparent 30%), #F6F3F8;
}

* {
  box-sizing: border-box;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

#header {
  z-index: 60;
}

.nav-link,
.mobile-link {
  position: relative;
}

.nav-link::after,
.mobile-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background 0.25s ease;
}

.nav-link:hover::after,
.mobile-link:hover::after {
  background: var(--accent);
}

.nav-link.active,
.mobile-link.active {
  color: var(--accent);
  font-weight: 600;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 1rem 1.75rem;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  box-shadow: 0 22px 60px rgba(109, 40, 217, 0.18);
}

.button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 80px rgba(109, 40, 217, 0.22);
}

.button-secondary {
  color: var(--accent);
  background: white;
  border: 1px solid rgba(109, 40, 217, 0.12);
}

.button-secondary:hover {
  transform: translateY(-3px);
  background: #F5F3FF;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  border: 1px solid rgba(109, 40, 217, 0.12);
  color: var(--text-primary);
  background: white;
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent-hover);
}

.reveal-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-section.show {
  opacity: 1;
  transform: translateY(0);
}

.profile-ring {
  width: fit-content;
  border-radius: 9999px;
}

.animate-spin-slow {
  animation: spin 12s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.info-card,
.timeline-card,
.experience-panel,
.achievement-card,
.skill-card,
.contact-info-card {
  border-radius: 24px;
  border: 1px solid rgba(233, 213, 255, 0.9);
  background: white;
  box-shadow: 0 22px 60px rgba(109, 40, 217, 0.08);
}

.info-card,
.timeline-card,
.contact-info-card {
  padding: 1.75rem;
}

.timeline-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.timeline-card + .timeline-card {
  margin-top: 1rem;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  margin-top: 0.8rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  box-shadow: 0 0 0 8px rgba(109, 40, 217, 0.12);
}

.experience-panel {
  overflow: hidden;
}

.experience-panel .group {
  max-height: 280px;
}

.experience-panel img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.achievement-card {
  padding: 2rem;
  display: grid;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 90px rgba(109, 40, 217, 0.16);
}

.achievement-symbol {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(109, 40, 217, 0.12);
  font-size: 1.5rem;
}

.skill-card {
  padding: 1.75rem;
  text-align: center;
  font-weight: 700;
  color: var(--text-primary);
  transition: transform 0.25s ease, background 0.25s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  background: #F5F3FF;
}

.input-field {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(109, 40, 217, 0.12);
  background: #FFFFFF;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.08);
}

@media (max-width: 1023px) {
  .timeline-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .profile-ring {
    margin: 0 auto;
  }

  .experience-panel {
    flex-direction: column;
  }
}
