@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
  --cream: #FEF9F0;
  --cream-mid: #F3EAD8;
  --cream-border: #E8D9C0;
  --carolina: #5B9BD5;
  --carolina-light: #A8CEE8;
  --carolina-pale: #EBF5FC;
  --carolina-dark: #3A78B0;
  --text: #2A2A2A;
  --text-mid: #666;
  --text-light: #999;
  --shadow-blue: rgba(91, 155, 213, 0.18);
  --shadow-soft: rgba(0, 0, 0, 0.06);
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ── Loading Screen ─────────────────────────── */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.sig-wrap { text-align: center; }

.sig-name {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  color: var(--carolina);
  font-weight: 700;
  display: block;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
  animation: write 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.4s;
}

@keyframes write {
  to { clip-path: inset(0 0% 0 0); }
}

.sig-line {
  height: 2.5px;
  background: linear-gradient(90deg, transparent, var(--carolina), transparent);
  width: 0;
  margin: 10px auto 0;
  border-radius: 2px;
  animation: drawLine 0.6s ease forwards 2.1s;
}

@keyframes drawLine { to { width: 75%; } }

.sig-dot {
  width: 8px;
  height: 8px;
  background: var(--carolina);
  border-radius: 50%;
  margin: 0.6rem auto 0;
  opacity: 0;
  animation: popIn 0.3s ease forwards 2.65s;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Navigation ─────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  background: rgba(254, 249, 240, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cream-border);
}

.nav-logo {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  color: var(--carolina);
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--carolina); }

/* ── Hero ────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content { max-width: 700px; position: relative; z-index: 1; }

/* All hero elements start paused — JS triggers them after loading */
.hero-greeting,
.hero-name,
.hero-tagline,
.hero-sub,
.hero-buttons {
  opacity: 0;
  animation: fadeUp 0.75s ease forwards;
  animation-play-state: paused;
}

.hero-greeting { animation-delay: 0s; }
.hero-name     { animation-delay: 0.15s; }
.hero-tagline  { animation-delay: 0.3s; }
.hero-sub      { animation-delay: 0.45s; }
.hero-buttons  { animation-delay: 0.62s; }

.hero-greeting {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--carolina);
  margin-bottom: 1rem;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.hero-name em {
  font-style: italic;
  color: var(--carolina);
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-mid);
  font-weight: 400;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Decorative blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0;
  animation: blobFadeIn 1.5s ease forwards;
}

@keyframes blobFadeIn { to { opacity: 0.38; } }

.blob-1 {
  width: 450px; height: 450px;
  background: var(--carolina-light);
  top: 5%; right: -8%;
  animation-delay: 0.5s;
}

.blob-2 {
  width: 320px; height: 320px;
  background: var(--cream-mid);
  bottom: 10%; left: -6%;
  animation-delay: 0.8s;
}

.blob-3 {
  width: 200px; height: 200px;
  background: var(--carolina-pale);
  top: 60%; right: 15%;
  animation-delay: 1s;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.2s;
}

.scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
}

.scroll-arrow {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--carolina-light), transparent);
  position: relative;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: var(--carolina);
  border-radius: 50%;
  animation: drip 1.8s ease infinite;
}

@keyframes drip {
  0%   { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(0); }
}

/* ── Buttons ─────────────────────────────────── */
.btn-primary {
  padding: 0.82rem 2rem;
  background: var(--carolina);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s, box-shadow 0.22s;
  box-shadow: 0 4px 18px var(--shadow-blue);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px var(--shadow-blue);
}

.btn-secondary {
  padding: 0.82rem 2rem;
  background: transparent;
  color: var(--carolina);
  border: 1.5px solid var(--carolina-light);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s;
  letter-spacing: 0.02em;
}

.btn-secondary:hover {
  background: var(--carolina-pale);
  border-color: var(--carolina);
  transform: translateY(-3px);
}

/* ── Section base ────────────────────────────── */
section { padding: 5.5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--carolina);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-mid);
  font-size: 1rem;
  max-width: 480px;
  line-height: 1.6;
}

.section-header { margin-bottom: 3.5rem; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Projects ────────────────────────────────── */
#projects { background: var(--cream); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--cream-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--carolina), var(--carolina-light));
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px var(--shadow-blue);
}

.project-number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--carolina-light);
  margin-bottom: 1rem;
}

.project-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: var(--text);
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.tag {
  font-size: 0.72rem;
  padding: 0.28rem 0.8rem;
  background: var(--carolina-pale);
  color: var(--carolina-dark);
  border-radius: 50px;
  font-weight: 600;
}

.project-link {
  font-size: 0.82rem;
  color: var(--carolina);
  text-decoration: none;
  font-weight: 600;
  transition: gap 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.project-link:hover { color: var(--carolina-dark); }

/* ── Skills Globe ────────────────────────────── */
#skills {
  background: linear-gradient(180deg, #F8F2E8 0%, var(--cream) 100%);
}

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Left column */
.skills-list-col { display: flex; flex-direction: column; }
.skills-list-col .section-subtitle { margin-bottom: 1.5rem; }

.skills-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--carolina-light) transparent;
}

.skills-list::-webkit-scrollbar { width: 4px; }
.skills-list::-webkit-scrollbar-track { background: transparent; }
.skills-list::-webkit-scrollbar-thumb { background: var(--carolina-light); border-radius: 2px; }

.skill-list-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  background: white;
  border: 1px solid var(--cream-border);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.skill-list-item:hover {
  border-color: var(--carolina-light);
  box-shadow: 0 2px 12px var(--shadow-blue);
}

.skill-list-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Right column */
.skills-globe-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.globe-hint {
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.75rem;
}

.globe-container {
  width: 100%;
  max-width: 540px;
  height: 520px;
  position: relative;
}

.skill-point {
  position: absolute;
  top: 0; left: 0;
  cursor: default;
  will-change: transform, opacity;
}

.skill-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: white;
  border: 1.5px solid var(--cream-border);
  border-radius: 50px;
  box-shadow: 0 2px 12px var(--shadow-soft);
  white-space: nowrap;
  user-select: none;
}

.skill-badge img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  flex-shrink: 0;
}

.skill-badge .skill-name {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text);
}

.skill-badge .skill-custom-icon {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ── Footer ──────────────────────────────────── */
footer {
  text-align: center;
  padding: 2.5rem;
  border-top: 1px solid var(--cream-border);
  background: var(--cream);
  color: var(--text-light);
  font-size: 0.82rem;
}

footer a { color: var(--carolina); text-decoration: none; font-weight: 500; }
footer a:hover { text-decoration: underline; }

/* ── About Page ──────────────────────────────── */
.about-hero {
  padding: 11rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.about-hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--carolina);
  margin-bottom: 1rem;
}

.about-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.6rem;
  color: var(--text);
}

.about-hero-title em {
  font-style: italic;
  color: var(--carolina);
}

.about-hero-bio {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.85;
  max-width: 600px;
}

.about-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
  display: grid;
  gap: 1.5rem;
}

.about-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--cream-border);
  transition: box-shadow 0.25s ease;
}

.about-card:hover { box-shadow: 0 8px 30px var(--shadow-soft); }

.about-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--carolina);
  margin-bottom: 1.25rem;
}

.work-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.work-company {
  font-size: 0.9rem;
  color: var(--carolina);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.work-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.work-desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}

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

.hobby-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.hobby-icon {
  width: 50px;
  height: 50px;
  background: var(--carolina-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.hobby-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.hobby-desc {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ── Animations ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn { to { opacity: 1; } }
