/* ===========================================================
   VARIABLES
=========================================================== */
:root{
  --bg: #ffffff;
  --bg-soft: #f6f4f8;
  --text: #211a26;
  --text-muted: #6b6274;
  --accent: #714B67;
  --accent-dark: #5a3b53;
  --teal: #00A09D;
  --gold: #E29B3F;
  --marker-yellow: #FBC55B;
  --marker-blue: #7CC7E8;
  --border: #e7e2eb;
  --radius: 14px;
  --font-hand: 'Caveat', cursive;
  --font-body: 'Inter', sans-serif;
  --shadow: 0 10px 30px rgba(33, 26, 38, 0.06);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }

.section-inner{
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================================================
   TYPOGRAPHY
=========================================================== */
.eyebrow{
  font-weight:600;
  font-size: 0.85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.hand-heading{
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 18px;
}
.hand-heading.small{ font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 20px;}
.hand-heading.center{ text-align:center; margin-bottom: 48px; }

.marker{
  position: relative;
  white-space: normal;
}
.marker::before{
  content:"";
  position:absolute;
  left:-4px; right:-4px; bottom: 0.08em; top: 0.42em;
  background: var(--marker-yellow);
  z-index:-1;
  transform: rotate(-1deg);
  border-radius: 4px 8px 6px 10px;
}
.marker-teal::before{ background: var(--marker-blue); }

.hero-sub{
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 0 32px;
}

.placeholder-note{
  font-size: 0.9rem;
  color: #9a6b3d;
  background: #FFF6E9;
  border: 1px dashed #E8C58F;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 4px 0 24px;
}

/* ===========================================================
   NAV
=========================================================== */
.nav{
  position: sticky;
  top:0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner{
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display:flex;
  align-items:center;
  gap: 32px;
}
.brand{
  font-weight: 800;
  font-size: 1.15rem;
  margin-right: auto;
}
.brand-dot{ color: var(--accent); }
.nav-links{
  display:flex;
  gap: 28px;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover{ color: var(--accent); }
.nav-links a.active{ color: var(--accent); font-weight: 600; }
.nav-toggle{
  display:none;
  flex-direction: column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding: 6px;
}
.nav-toggle span{
  width: 22px; height: 2px; background: var(--text);
}

/* ===========================================================
   BUTTONS
=========================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover{ box-shadow: 0 8px 18px rgba(113,75,103,0.35); }
.btn-outline{
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover{ border-color: var(--accent); color: var(--accent); }
.btn-small{ padding: 10px 20px; font-size: 0.88rem; }

/* ===========================================================
   HERO
=========================================================== */
.hero{ padding: 80px 0 60px; }
.hero-inner{
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items:center;
}
.hero-actions{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom: 40px;
}
.sticky-note{
  display:flex;
  align-items:center;
  gap:8px;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--accent);
  max-width: 320px;
}
.sticky-arrow{ flex-shrink:0; transform: scaleX(-1); }

.hero-visual{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 340px;
}
.blob{
  position:absolute;
  width: 320px; height: 320px;
  background: linear-gradient(135deg, var(--bg-soft), #efe7f0);
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
  z-index:0;
}
.photo-frame{
  position: relative;
  z-index:1;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 3px dashed #cdb9c8;
  display:flex;
  align-items:center;
  justify-content:center;
  background: #fff;
}
.photo-frame img{
  width:100%; height:100%; object-fit:cover; border-radius:50%;
}
.photo-frame-small{ width: 170px; height:170px; }
.photo-placeholder{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  color:#B9A8B5;
  font-size: 0.85rem;
  font-weight:500;
}

.tag-float{
  position:absolute;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  font-weight:700;
  background:#fff;
  border:2px solid var(--border);
  padding: 4px 16px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  z-index:2;
}
.tag-float-1{ top: 10%; left: -4%; color: var(--accent); transform: rotate(-6deg); }
.tag-float-2{ bottom: 14%; right: -6%; color: var(--teal); transform: rotate(4deg); }
.tag-float-3{ top: 50%; right: -12%; color: var(--gold); transform: rotate(-3deg); }

/* ===========================================================
   SECTIONS GENERIC
=========================================================== */
.section{ padding: 90px 0; }
.section-soft{ background: var(--bg-soft); }

/* About */
.about-grid{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items:start;
}
.about-facts{
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin-top: 24px;
  font-size: 0.95rem;
}
.about-facts strong{ color: var(--accent); font-weight:600; margin-right:6px;}

/* Skills */
.skills-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.skill-card{
  background:#fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.skill-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.skill-icon{ margin-bottom: 14px; }
.skill-card h3{ margin: 0 0 6px; font-size: 1.05rem; }
.skill-card p{ margin:0; font-size: 0.9rem; color: var(--text-muted); }

/* Projects */
.projects-list{ display:flex; flex-direction:column; gap: 60px; }
.project-card{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items:center;
}
.project-card.reverse .project-preview{ order:2; }
.project-preview{
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.browser-bar{
  background:#efeaf1;
  padding: 10px 14px;
  display:flex;
  gap:6px;
}
.browser-bar span{
  width:9px; height:9px; border-radius:50%; background:#d7cbd4;
}
.browser-body{
  position: relative;
  height: 220px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow: hidden;
}
.browser-body-1{ background: linear-gradient(135deg, #714B67, #9c6d91); }
.browser-body-2{ background: linear-gradient(135deg, #00A09D, #4dc6c3); }
.preview-screenshot{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.preview-label{
  color:#fff;
  font-weight:600;
  font-size: 1rem;
  background: rgba(0,0,0,0.18);
  padding: 8px 18px;
  border-radius: 20px;
  position: relative;
  z-index: 0;
}
.project-info .tag-static{
  position:static;
  display:inline-block;
  box-shadow:none;
  margin-bottom: 14px;
  transform: rotate(-2deg);
}
.project-info h3{ margin: 0 0 12px; font-size: 1.4rem; }
.project-info p{ color: var(--text-muted); margin: 0 0 18px; }
.project-link{
  font-weight:600;
  color: var(--accent);
}
.project-link:hover{ text-decoration: underline; }

/* Contact */
.contact-sub{
  text-align:center;
  color: var(--text-muted);
  margin: -30px 0 44px;
}
.contact-grid{
  display:grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
}
.contact-channels{
  display:flex;
  flex-direction:column;
  gap: 16px;
}
.contact-channel{
  display:flex;
  align-items:center;
  gap:12px;
  background:#fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  font-weight:500;
  transition: border-color .15s ease, transform .15s ease;
}
.contact-channel:hover{ border-color: var(--accent); transform: translateX(4px); }
.contact-icon{ color: var(--accent); flex-shrink:0; }

.contact-form{
  background:#fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display:flex;
  flex-direction:column;
  gap: 16px;
}
.contact-form label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size: 0.9rem;
  font-weight:600;
  color: var(--text-muted);
}
.contact-form input,
.contact-form textarea{
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus{
  outline: none;
  border-color: var(--accent);
}
.hp-field{ position:absolute; left:-9999px; }
.form-status{ font-size: 0.9rem; margin:0; min-height: 1.2em; }
.form-status.success{ color: var(--teal); }
.form-status.error{ color: #c65a3b; }

/* Footer */
.footer{ padding: 30px 0; border-top: 1px solid var(--border); }
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap:wrap;
  gap: 10px;
}
.footer-inner a:hover{ color: var(--accent); }

/* ===========================================================
   REVEAL ON SCROLL
=========================================================== */
.reveal{
  opacity:0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible{ opacity:1; transform:none; }

/* ===========================================================
   RESPONSIVE
=========================================================== */
@media (max-width: 860px){
  .hero-inner{ grid-template-columns:1fr; text-align:center; }
  .hero-sub{ margin-left:auto; margin-right:auto; }
  .hero-actions{ justify-content:center; }
  .sticky-note{ margin: 0 auto; }
  .about-grid{ grid-template-columns:1fr; text-align:center; }
  .about-photo{ display:flex; justify-content:center; }
  .about-facts{ align-items:center; }
  .skills-grid{ grid-template-columns: repeat(2,1fr); }
  .project-card, .project-card.reverse{ grid-template-columns:1fr; }
  .project-card.reverse .project-preview{ order:0; }
  .contact-grid{ grid-template-columns:1fr; }
}

@media (max-width: 620px){
  .nav-links{
    position:absolute;
    top:100%; left:0; right:0;
    background:#fff;
    flex-direction:column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display:none;
    gap: 16px;
  }
  .nav-links.open{ display:flex; }
  .nav-toggle{ display:flex; }
  .nav .btn-small{ display:none; }
  .skills-grid{ grid-template-columns: 1fr; }
  .tag-float{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; }
  html{ scroll-behavior:auto; }
}
