:root {
  --accent: #7c4fa0;
  --accent-dark: #5b3a87;
  --accent-light: #f1e9f7;
  --accent-pale: #f6effa;
  --bg: #faf7fc;
  --white: #ffffff;
  --text: #3a3145;
  --text-secondary: #746a86;
  --border: #e7dfee;
  --accent-green: #4c9a72;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 0 0 1px rgba(91, 58, 135, 0.08), 0 2px 3px rgba(91, 58, 135, 0.08);
  --shadow-hover: 0 0 0 1px rgba(91, 58, 135, 0.08), 0 4px 12px rgba(91, 58, 135, 0.14);
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  animation: pageFadeIn 0.5s ease;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
}

/* Decorative flowers scattered in the page margins */
.page-florals {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.p-flower {
  position: absolute;
  animation-name: flowerSway;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.p-flower ellipse {
  fill: #ffffff;
  stroke: var(--accent-dark);
  stroke-width: 1.4;
  opacity: 0.85;
}

.p-flower circle {
  fill: var(--accent-dark);
  opacity: 0.9;
}

@keyframes flowerSway {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translateY(-10px) rotate(calc(var(--r, 0deg) + 6deg));
  }
}

@media (max-width: 1180px) {
  .page-florals {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-flower {
    animation: none;
  }
}

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

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

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

.nav-brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

/* Hero */
.hero-full {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #e7cdef 0%, #d7b8ea 45%, #c6a3e0 100%);
  padding-top: 56px;
}

.hero-florals {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.hero-text {
  flex: 1 1 420px;
  padding-bottom: 56px;
}

.hero-kicker {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-kicker .diamond {
  color: var(--accent);
  font-size: 0.6rem;
}

.hero-name {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--accent-dark);
}

.hero-role {
  margin: 8px 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.hero-statement {
  margin: 20px 0;
  font-size: 1.15rem;
  color: var(--text);
  max-width: 460px;
}

.hero-statement .accent {
  color: var(--accent-dark);
  font-weight: 700;
}

.profile-meta {
  color: #5a4d6d;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  display: inline-block;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-photo {
  position: relative;
  flex: 0 0 340px;
  max-width: 340px;
  align-self: flex-end;
}

.hero-photo-backdrop {
  position: absolute;
  inset: 24px -16px -40px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 28px 28px 0 0;
  transform: rotate(-2deg);
  z-index: 0;
}

.hero-photo-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 24px 44px rgba(91, 58, 135, 0.28);
  object-fit: cover;
}

@media (max-width: 860px) {
  .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-text {
    padding-bottom: 24px;
  }
  .hero-statement {
    max-width: none;
  }
  .profile-meta,
  .profile-actions {
    justify-content: center;
  }
  .hero-photo {
    flex-basis: auto;
    max-width: 260px;
  }
  .hero-photo-backdrop {
    inset: 16px -10px -24px 16px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-outline {
  background: var(--white);
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent-pale);
}

/* Sections */
section {
  padding: 48px 0;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.section-lead {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: -8px 0 20px;
}

/* oversized outline section marker, in the spirit of a bold portfolio wordmark */
.kicker {
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 6px;
  padding-left: 4px;
  color: var(--accent-light);
  -webkit-text-stroke: 1.1px var(--accent);
  opacity: 0.85;
  user-select: none;
}

.about-text .accent {
  color: var(--accent-dark);
  font-weight: 700;
}

.about-text p {
  margin: 0 0 12px;
  color: var(--text);
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.skill-group h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin: 0 0 10px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: var(--accent-pale);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Projects */
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.project-card:hover {
  box-shadow: var(--shadow-hover);
}

.project-head {
  padding: 26px 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.project-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.project-tag.secondary {
  background: var(--text-secondary);
}

.project-tag.floating {
  position: absolute;
  top: 12px;
  left: 12px;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(91, 58, 135, 0.25);
  z-index: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.project-sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 6px 16px;
  border-radius: 24px;
  white-space: nowrap;
}

.project-link:hover {
  background: var(--accent-pale);
}

.project-body {
  padding: 20px 32px 28px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: start;
}

.project-diagram {
  position: relative;
  background: var(--accent-light);
  border-radius: var(--radius);
  padding: 16px;
}

.project-diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

.project-bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 0.92rem;
}

.project-bullets li {
  margin-bottom: 8px;
}

.project-callout {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--text);
  margin-top: 16px;
  font-style: italic;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 32px 24px;
  margin-top: -6px;
}

.tech-pill {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
}

.project-footer {
  padding: 4px 32px 26px;
  display: flex;
  justify-content: flex-end;
}

.see-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.see-more:hover {
  color: var(--accent);
}

.see-more span {
  font-size: 1rem;
}

@media (max-width: 720px) {
  .project-body {
    grid-template-columns: 1fr;
  }
}

/* Experience */
.timeline-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-marker .node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 4px;
}

.timeline-marker .line {
  flex: 1;
  width: 2px;
  background: var(--border);
  margin-top: 4px;
}

.timeline-content {
  padding-bottom: 24px;
}

.timeline-role {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 2px;
}

.timeline-org {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 10px;
}

.timeline-content ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.92rem;
}

.timeline-content li {
  margin-bottom: 6px;
}

/* Education / certs */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 720px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.info-block h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.info-block p.meta {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0 0 10px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge .ico {
  color: var(--accent);
}

/* Recommendation */
.testimonial-card {
  text-align: center;
  padding: 44px 40px;
  position: relative;
}

.quote-mark {
  display: block;
  font-size: 4rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--accent-light);
  margin-bottom: -8px;
}

.testimonial-text {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-name {
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: left;
}

.testimonial-role {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: left;
}

/* Contact / footer */
.contact-card {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
}

.contact-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  margin: 0 auto 20px;
  display: block;
}

.contact-card h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  color: rgba(255, 255, 255, 0.85);
}

.contact-card h2 .accent {
  color: var(--white);
}

.contact-card p {
  margin: 0 0 24px;
  color: #dce8fb;
}

.contact-textlink {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-textlink:hover {
  color: var(--white);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-card .btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.contact-card .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.contact-card .btn-primary {
  background: var(--white);
  color: var(--accent-dark);
}

.contact-card .btn-primary:hover {
  background: #e9e9e9;
}

footer.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
    display: none;
    gap: 14px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .card {
    padding: 22px 20px;
  }

  .project-head,
  .project-body,
  .tech-pills {
    padding-left: 20px;
    padding-right: 20px;
  }
}
