@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --bg:       #fff8f8;
  --bg2:      #fdf0f0;
  --surface:  #ffffff;
  --border:   #f0dede;
  --border2:  #e0c4c4;
  --accent:   #c2637a;
  --accent-l: #fdf0f3;
  --accent-m: #f5c6d0;
  --text:     #1f1517;
  --text2:    #6b4f52;
  --text3:    #b08a8e;
  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.4rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, padding 0.3s;
}
nav.scrolled { border-bottom-color: var(--border); padding: 1rem 4rem; }
.nav-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--text2); text-decoration: none;
  font-size: 0.85rem; font-weight: 400; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 0.82rem; font-weight: 500;
  color: var(--surface); background: var(--text);
  padding: 0.5rem 1.3rem; border-radius: 100px;
  text-decoration: none; transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.75; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 20px; height: 1px; background: var(--text); transition: all 0.3s; }

/* MOBILE NAV */
.mobile-nav {
  display: none; flex-direction: column;
  position: fixed; top: 0; right: 0; bottom: 0; width: 240px;
  background: var(--surface); z-index: 200;
  padding: 5rem 2rem 2rem;
  border-left: 1px solid var(--border);
  transform: translateX(100%); transition: transform 0.3s ease;
}
.mobile-nav.open { transform: translateX(0); display: flex; }
.mobile-nav a {
  color: var(--text2); text-decoration: none;
  font-size: 1rem; padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--text); }

/* HERO */
#home {
  min-height: 100vh;
  display: flex; align-items: center; flex-direction: column; justify-content: center;
  padding: 8rem 4rem 5rem;
  max-width: 1200px; margin: 0 auto; position: relative;
}
.hero-layout {
  display: flex; align-items: center; justify-content: space-between;
  gap: 4rem; width: 100%;
}
.hero-inner { max-width: 580px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; color: var(--text3); letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 1.8rem;
  opacity: 0; animation: fadeUp 0.7s ease 0.1s forwards;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 400; line-height: 1.06;
  color: var(--text); margin-bottom: 1.2rem;
  opacity: 0; animation: fadeUp 0.7s ease 0.25s forwards;
}
.hero-name em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 1.05rem; color: var(--text2); max-width: 520px;
  line-height: 1.75; margin-bottom: 2.8rem;
  opacity: 0; animation: fadeUp 0.7s ease 0.4s forwards;
}
.hero-sub .typed-text { color: var(--accent); font-weight: 500; }
.hero-ctas {
  display: flex; gap: 0.8rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.7s ease 0.55s forwards;
}
.btn-primary {
  font-size: 0.85rem; font-weight: 500;
  background: var(--text); color: var(--surface);
  padding: 0.7rem 1.6rem; border-radius: 100px;
  text-decoration: none; border: none; cursor: pointer;
  transition: opacity 0.2s; display: inline-block;
}
.btn-primary:hover { opacity: 0.75; }
.btn-outline {
  font-size: 0.85rem; font-weight: 400;
  color: var(--text); border: 1px solid var(--border2);
  padding: 0.7rem 1.6rem; border-radius: 100px;
  text-decoration: none; background: transparent; cursor: pointer;
  transition: border-color 0.2s; display: inline-block;
}
.btn-outline:hover { border-color: var(--text); }
.hero-socials {
  display: flex; gap: 1rem; margin-top: 3rem;
  opacity: 0; animation: fadeUp 0.7s ease 0.7s forwards;
}
.hero-socials a {
  color: var(--text3); text-decoration: none; font-size: 1rem;
  transition: color 0.2s;
}
.hero-socials a:hover { color: var(--text); }
.hero-scroll-hint {
  position: fixed; bottom: 2.2rem; right: 4rem;
  font-size: 0.7rem; color: var(--text3); letter-spacing: 0.08em;
  text-transform: uppercase; writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 0.5rem;
  opacity: 0; animation: fadeUp 0.7s ease 0.9s forwards;
}
.hero-scroll-hint::after {
  content: ''; width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--border2), transparent);
}

/* SECTIONS */
section { padding: 6rem 4rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  font-size: 0.75rem; color: var(--text3); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-tag::before { content: ''; width: 20px; height: 1px; background: var(--border2); }
.section-heading {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400; color: var(--text);
  margin-bottom: 3rem; line-height: 1.2;
}
.section-heading em { font-style: italic; color: var(--text2); }

/* ABOUT */
#about { background: var(--bg2); }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 5rem; align-items: start; }
.about-text p { color: var(--text2); margin-bottom: 1rem; line-height: 1.8; font-size: 0.97rem; }
.about-text p strong { color: var(--text); font-weight: 500; }
.about-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.badge {
  font-size: 0.73rem; font-weight: 500;
  padding: 0.3rem 0.85rem; border-radius: 100px;
  background: var(--accent-l); color: var(--accent); border: 1px solid var(--accent-m);
}
.interests-section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.interests-heading {
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 1rem;
}
.interests-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.interest-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.8rem; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.83rem; color: var(--text2); transition: border-color 0.2s, color 0.2s;
}
.interest-item:hover { border-color: var(--border2); color: var(--text); }
.interest-item i { font-size: 0.85rem; color: var(--accent); width: 16px; text-align: center; }
.about-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
}
.edu-school { font-weight: 500; font-size: 0.9rem; color: var(--text); margin-bottom: 0.2rem; }
.edu-degree { font-size: 0.88rem; color: var(--text2); }
.edu-date { font-size: 0.75rem; color: var(--text3); margin-top: 0.15rem; margin-bottom: 0.8rem; }
.edu-courses { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.edu-courses span {
  font-size: 0.72rem; padding: 0.2rem 0.65rem;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 100px; color: var(--text2);
}
.org-label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); margin-bottom: 0.8rem; }
.org-list { display: flex; flex-direction: column; gap: 0.7rem; }
.org-item { display: flex; align-items: center; gap: 0.7rem; font-size: 0.87rem; color: var(--text2); }
.org-item i { font-size: 0.8rem; color: var(--accent); width: 16px; text-align: center; }

/* EXPERIENCE */
#experience { background: var(--bg); }
.timeline { position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 0;
  width: 1px; background: var(--border);
}
.timeline-item {
  position: relative; padding-left: 2.5rem; margin-bottom: 2.5rem;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.timeline-item.visible { opacity: 1; transform: translateY(0); }
.timeline-dot {
  position: absolute; left: -4px; top: 8px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border2);
}
.timeline-dot.active { background: var(--accent); border-color: var(--accent); }
.timeline-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.6rem 1.8rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.timeline-card:hover { border-color: var(--border2); box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.timeline-meta { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.8rem; }
.timeline-role { font-weight: 500; font-size: 1rem; color: var(--text); }
.timeline-company { font-size: 0.85rem; color: var(--accent); margin-top: 0.1rem; }
.timeline-date {
  font-size: 0.73rem; color: var(--text3);
  background: var(--bg2); border: 1px solid var(--border);
  padding: 0.2rem 0.75rem; border-radius: 100px; white-space: nowrap;
}
.timeline-bullets { list-style: none; margin-top: 0.6rem; }
.timeline-bullets li {
  font-size: 0.88rem; color: var(--text2);
  padding: 0.22rem 0 0.22rem 1.1rem; position: relative; line-height: 1.6;
}
.timeline-bullets li::before { content: '–'; position: absolute; left: 0; color: var(--border2); }
.timeline-bullets li strong { color: var(--text); font-weight: 500; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.tag {
  font-size: 0.7rem; padding: 0.2rem 0.65rem; border-radius: 100px;
  background: var(--bg2); border: 1px solid var(--border); color: var(--text2);
}

/* PROJECTS */
#projects { background: var(--bg2); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.project-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.6rem 1.8rem;
  display: flex; flex-direction: column; position: relative;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.project-card:hover { border-color: var(--border2); box-shadow: 0 8px 32px rgba(0,0,0,0.07); transform: translateY(-3px); }
.project-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.project-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-l); border: 1px solid var(--accent-m);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--accent);
}
.project-links { display: flex; gap: 0.4rem; }
.project-links a {
  color: var(--text3); font-size: 0.88rem; text-decoration: none;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 6px; transition: all 0.2s;
}
.project-links a:hover { color: var(--text); border-color: var(--border2); }
.project-featured {
  position: absolute; top: 1.1rem; right: 1.1rem;
  font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-l);
  border: 1px solid var(--accent-m);
  padding: 0.15rem 0.55rem; border-radius: 100px;
}
.project-title { font-weight: 500; font-size: 0.97rem; color: var(--text); margin-bottom: 0.3rem; }
.project-period { font-size: 0.73rem; color: var(--text3); margin-bottom: 0.7rem; }
.project-desc { font-size: 0.86rem; color: var(--text2); line-height: 1.7; flex: 1; }
.project-stack { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1.1rem; }
.stack-tag {
  font-size: 0.68rem; padding: 0.18rem 0.6rem; border-radius: 100px;
  background: var(--bg2); border: 1px solid var(--border); color: var(--text2);
}

/* SKILLS */
#skills { background: var(--bg); }
.skills-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.skill-col-title {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.skill-col-title i { font-size: 0.8rem; color: var(--accent); }
.skill-item { margin-bottom: 1.1rem; }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 0.4rem; }
.skill-name { font-size: 0.87rem; color: var(--text); }
.skill-pct { font-size: 0.72rem; color: var(--text3); }
.skill-bar { height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.skill-fill {
  height: 100%; border-radius: 2px; background: var(--accent);
  width: 0; transition: width 1.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.skill-pill {
  font-size: 0.75rem; padding: 0.3rem 0.85rem; border-radius: 100px;
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text2); transition: all 0.2s; cursor: default;
}
.skill-pill:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-l); }

/* CONTACT */
#contact { background: var(--bg2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact-info h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; color: var(--text); margin-bottom: 0.7rem; }
.contact-info > p { font-size: 0.9rem; color: var(--text2); margin-bottom: 2rem; line-height: 1.7; }
.contact-items { display: flex; flex-direction: column; gap: 0.8rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem 1rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px;
  text-decoration: none; color: inherit; transition: border-color 0.2s, transform 0.2s;
}
.contact-item:hover { border-color: var(--border2); transform: translateX(3px); }
.contact-item-icon { color: var(--accent); width: 16px; text-align: center; font-size: 0.9rem; flex-shrink: 0; }
.contact-item-label { font-size: 0.7rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-item-val { font-size: 0.87rem; color: var(--text); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.73rem; color: var(--text3); letter-spacing: 0.06em; text-transform: uppercase; }
.form-group input,
.form-group textarea {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.7rem 1rem;
  color: var(--text); font-family: var(--sans); font-size: 0.88rem;
  outline: none; transition: border-color 0.2s; resize: vertical; width: 100%;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { min-height: 110px; }
.form-submit {
  font-size: 0.85rem; font-weight: 500;
  background: var(--text); color: var(--surface);
  padding: 0.75rem 1.8rem; border-radius: 100px;
  border: none; cursor: pointer; transition: opacity 0.2s;
  align-self: flex-start;
}
.form-submit:hover { opacity: 0.75; }

/* FOOTER */
footer {
  padding: 2rem 4rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; background: var(--bg);
}
.footer-logo { font-family: var(--serif); font-size: 1rem; color: var(--text); }
.footer-copy { font-size: 0.75rem; color: var(--text3); }
.footer-links { display: flex; gap: 1.1rem; }
.footer-links a { color: var(--text3); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 960px) {
  section { padding: 4rem 2rem; }
  nav, nav.scrolled { padding: 1rem 2rem; }
  #home { padding: 7rem 2rem 4rem; }
  .hero-layout { flex-direction: column-reverse; gap: 2rem; }
  .hero-photo-wrap { width: 160px; height: 160px; border-radius: 50%; align-self: center; }
  .about-grid, .contact-grid, .skills-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-photo-wrap { max-height: 280px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-scroll-hint { display: none; }
}
@media (max-width: 600px) {
  .hero-name { font-size: 2.6rem; }
  .projects-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
}


/* HERO PHOTO */
.hero-photo-wrap {
  flex-shrink: 0; width: 300px; height: 360px;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
}
.hero-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  display: block;
}

/* CONTACT PHOTO */
.contact-photo-wrap {
  border-radius: 16px; overflow: hidden;
  /* border: 1px solid var(--border); */
  aspect-ratio: 4/5; max-height: 250px;
  margin-left: 10rem;
  align-self: center;

}
.contact-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  display: block;
}
