:root {
  --bg: #f7f3ef;
  --ink: #1d1b17;
  --muted: #6d655d;
  --accent: #ff6b3d;
  --accent-soft: #ffd2c4;
  --surface: #ffffff;
  --stroke: rgba(29, 27, 23, 0.12);
  --shadow: 0 24px 60px rgba(29, 27, 23, 0.12);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --transition: 0.4s ease;
}

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

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #ffefe6 0%, transparent 55%),
    radial-gradient(circle at 80% 20%, #fff4d8 0%, transparent 50%), var(--bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

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

main {
  padding: 0 8vw 6rem;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.7;
  animation: float 4s ease-in-out infinite;
  background: radial-gradient(circle at 30% 30%, rgba(255, 107, 61, 0.32), rgba(255, 210, 196, 0.18));
}

.orb--one {
  width: 320px;
  height: 320px;
  top: -80px;
  left: -60px;
  animation-delay: 0s;
}

.orb--two {
  width: 240px;
  height: 240px;
  right: 5vw;
  top: 15vh;
  animation-delay: 1s;
  background: radial-gradient(circle at 40% 40%, rgba(29, 27, 23, 0.12), rgba(255, 210, 196, 0.08));
}

.orb--three {
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: -120px;
  animation-delay: 2s;
  background: radial-gradient(circle at 35% 35%, rgba(255, 208, 138, 0.4), rgba(255, 107, 61, 0.16));
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(24px);
  }
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 8vw 1.3rem;
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(247, 243, 239, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(29, 27, 23, 0.06);
}

.logo {
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: rgba(29, 27, 23, 0.04);
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  width: fit-content;
  max-width: 580px;
}

.site-nav a {
  font-size: 0.87rem;
  color: var(--muted);
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
  flex-shrink: 1;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(255, 107, 61, 0.1);
  transform: translateY(-2px);
}

.muted {
  color: var(--muted);
}

.mobile-toggle {
  display: none;
  border: 1px solid var(--stroke);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 12px 30px rgba(29, 27, 23, 0.2);
}

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

.button.button-small {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--stroke);
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
  padding: 2rem 0 4rem;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  margin-bottom: 0.6rem;
}

.hero-identity {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
}

.profile-photo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  padding: 6px;
  background: conic-gradient(from 120deg, #ff6b3d, #ffd2c4, #fff4d8, #ff6b3d);
  box-shadow: 0 16px 40px rgba(29, 27, 23, 0.18);
  animation: pulse-ring 6s ease-in-out infinite;
  position: relative;
  flex-shrink: 0;
}

.profile-photo::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 107, 61, 0.4);
  opacity: 0.6;
  animation: orbit 8s linear infinite;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface);
  display: block;
  animation: float-soft 5s ease-in-out infinite;
  background: var(--surface);
}

.role {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes orbit {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.tagline {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.summary {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

.meta {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

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

.source {
  display: inline-flex;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.source.linkedin {
  background: rgba(0, 119, 181, 0.12);
  color: #0077b5;
}

.hero-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--stroke);
}

.hero-card h3 {
  font-family: "Syne", sans-serif;
  margin-bottom: 0.8rem;
}

.stats {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat span {
  font-size: 1.6rem;
  font-weight: 700;
}

.section {
  margin: 4rem 0 1.5rem 0;
  position: relative;
  z-index: 1;
}

.section.split {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(260px, 2fr);
  gap: 2rem;
  align-items: start;
}

.section-title h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 0.8rem;
}

.section-title p {
  color: var(--muted);
  line-height: 1.6;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 32px rgba(29, 27, 23, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

@media (hover: hover) {
  :is(.card, .timeline-item, .service-card, .education-card, .highlight-list li, .hero-card, .contact) {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  }

  :is(.card, .timeline-item, .service-card, .education-card, .highlight-list li, .hero-card, .contact):hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(255, 107, 61, 0.2);
    border-color: rgba(255, 107, 61, 0.35);
    background: rgba(255, 107, 61, 0.04) !important;
  }
}

.card a {
  color: var(--accent);
  font-weight: 600;
}

.highlight-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.highlight-panel {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.highlight-list li {
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--stroke);
  padding: 1rem 1.2rem;
  box-shadow: 0 12px 30px rgba(29, 27, 23, 0.08);
}

.highlight-more {
  align-self: flex-start;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.timeline {
  display: grid;
  gap: 1.4rem;
}

.timeline-item {
  padding: 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--stroke);
}

.timeline-item h3 {
  font-family: "Syne", sans-serif;
  margin-bottom: 0.3rem;
}

.timeline-item span {
  color: var(--muted);
  font-size: 0.95rem;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.91);
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: default;
  opacity: 0.92;
}

.pill:hover {
  opacity: 1;
  background: rgba(255, 107, 61, 0.08);
  border-color: rgba(255, 107, 61, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 61, 0.12);
}

.service-grid {
  display: grid;
  gap: 1rem;
}

.service-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.92);
}

.education-list {
  display: grid;
  gap: 1rem;
}

.education-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.92);
}

.contact {
  background: rgba(255, 255, 255, 0.93);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.contact-item {
  position: relative;
}

.contact-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.contact-value {
  display: block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.contact-value:hover {
  opacity: 0.8;
}

.social-dropdown {
  position: relative;
}

.dropdown-toggle {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--stroke);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
  text-align: left;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dropdown-toggle:hover {
  background: rgba(255, 107, 61, 0.08);
  border-color: rgba(255, 107, 61, 0.3);
  transform: translateY(-2px);
}

.dropdown-icon {
  font-size: 0.8rem;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.social-dropdown.open .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  margin-top: 0.5rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all var(--transition);
  z-index: 10;
  box-shadow: 0 8px 24px rgba(29, 27, 23, 0.12);
  transform-origin: top;
  transform: scaleY(0.95);
}

.social-dropdown.open .dropdown-menu {
  max-height: 300px;
  opacity: 1;
  transform: scaleY(1);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  color: var(--accent);
  font-weight: 600;
  transition: all var(--transition);
  border-bottom: 1px solid rgba(29, 27, 23, 0.06);
  text-decoration: none;
}

.social-emoji {
  font-size: 1.2rem;
  display: inline-block;
  transition: transform var(--transition);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: rgba(255, 107, 61, 0.12);
  padding-left: 1.4rem;
  transform: translateX(4px);
}

.dropdown-menu a:hover .social-emoji {
  transform: scale(1.3) rotate(10deg);
}

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  background: rgba(255, 255, 255, 0.91);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--stroke);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  -webkit-backdrop-filter: blur(6px);
  background: rgba(20, 16, 12, 0.45);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: relative;
  width: min(90vw, 95%);
  max-width: 1000px;
  height: 90vh;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 107, 61, 0.3);
  box-shadow: 0 30px 80px rgba(29, 27, 23, 0.3), 0 0 60px rgba(255, 107, 61, 0.15);
  overflow: hidden;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  animation: modalGlow 3s ease-in-out infinite;
}

@keyframes modalGlow {
  0%, 100% {
    box-shadow: 0 30px 80px rgba(29, 27, 23, 0.3), 0 0 40px rgba(255, 107, 61, 0.1);
  }
  50% {
    box-shadow: 0 30px 80px rgba(29, 27, 23, 0.3), 0 0 80px rgba(255, 107, 61, 0.2);
  }
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 320px;
  border-radius: 20px 20px 0 0;
  z-index: 0;
}

.modal-content {
  position: relative;
  padding: 3rem 3rem 3rem;
  flex: 1;
  overflow-y: auto;
  z-index: 1;
}

.modal-content h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 3s ease-in-out infinite;
}

@keyframes titleShimmer {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.1);
  }
}

.modal-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.modal-list li {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 107, 61, 0.18);
  box-shadow: 0 10px 28px rgba(29, 27, 23, 0.12);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.modal-list li::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 61, 0.2), transparent);
  transition: left 0.6s ease;
}

.modal-list li:hover {
  background: rgba(255, 107, 61, 0.08);
  border-color: rgba(255, 107, 61, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(255, 107, 61, 0.2);
}

.modal-list li:hover::before {
  left: 100%;
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 2;
  border: 2px solid rgba(255, 107, 61, 0.4);
  background: rgba(255, 255, 255, 0.97);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--accent);
}

.modal-close:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 30px rgba(255, 107, 61, 0.25);
  background: rgba(255, 107, 61, 0.1);
}

.site-footer {
  padding: 0.8rem 8vw 3rem;
  color: var(--muted);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.made-with-love {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0;
  animation: pulse-love 2s ease-in-out infinite;
}

@keyframes pulse-love {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-modal {
  width: min(90vw, 500px);
  max-width: 500px;
  height: auto;
  background: rgba(255, 255, 255, 0.97);
  border: 2px solid rgba(255, 107, 61, 0.3);
  border-radius: 16px;
}

.contact-modal .modal-content {
  padding: 2.5rem 2rem;
}

.contact-modal h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.contact-modal .modal-close {
  top: 1rem;
  right: 1rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.contact-form {
  margin-top: 0;
  display: grid;
  gap: 1.2rem;
  animation: formFadeIn 0.6s ease;
}

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

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

.contact-form input,
.contact-form textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(255, 107, 61, 0.2);
  border-radius: 12px;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  transition: all 0.3s ease;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 3px rgba(255, 107, 61, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  margin-top: 0.5rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-form button:active {
  transform: scale(0.98);
}

.thank-you-chip {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8a5a 100%);
  color: white;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(255, 107, 61, 0.3);
  z-index: 100;
  animation: chipPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

@keyframes chipPop {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.thank-you-chip.exit {
  animation: chipExit 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes chipExit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 8vw;
    top: 92px;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .section.split {
    grid-template-columns: 1fr;
  }

  .hero-identity {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .profile-photo {
    width: 88px;
    height: 88px;
  }

  .contact {
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  main {
    padding: 0 6vw 4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-content {
    padding: 2.5rem 1.6rem 2rem;
    max-height: calc(100vh - 240px - 4rem);
    overflow-y: auto;
  }
}
