/* ===========================
   Elaine. — Personal Web
   Inspired by Madison template
   =========================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
:root {
  --bg: #faf7f1;          /* cream */
  --bg-alt: #f3eee5;
  --ink: #111111;
  --ink-soft: #555;
  --line: #e6e0d3;
  --accent: #ff6a3d;      /* warm orange */
  --accent-2: #ffd4a3;
  --radius: 18px;
  --shadow: 0 8px 30px rgba(0,0,0,.06);
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 6vw;
  background: rgba(250,247,241,.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 700; font-style: italic;
  letter-spacing: -1px;
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: #222; transition: color .2s; }
.nav-links a:hover { color: var(--accent); }
.btn-pill {
  background: #111; color: #fff !important;
  padding: 10px 22px; border-radius: 999px;
  transition: transform .2s, background .2s;
}
.btn-pill:hover { background: var(--accent); transform: translateY(-2px); }

/* ===== Hero ===== */
.hero {
  padding: 60px 6vw 80px;
  position: relative;
  text-align: center;
  background: radial-gradient(1200px 600px at 50% 0%, #fff6e3 0%, transparent 60%);
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(72px, 14vw, 200px);
  font-weight: 400;
  line-height: .95;
  margin: 0 0 24px;
  letter-spacing: -2px;
}
.hero-title em { font-style: italic; }


.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  margin: 50px auto 0; max-width: 1100px; align-items: end;
}
.hero-portrait { display: flex; justify-content: center; }
.portrait-frame {
  width: 100%; max-width: 360px; aspect-ratio: 3/4;
  background: linear-gradient(160deg, #4a5568 0%, #2d3748 100%);
  border-radius: 24px; overflow: hidden; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.portrait-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-side { text-align: left; }
.hero-desc { color: #444; font-size: 15px; line-height: 1.7; }

.hero-bottom {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 60px;
}
.big-name {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 8vw, 110px);
  line-height: .9;
  letter-spacing: -2px;
  margin: 0;
  text-transform: uppercase;
}
.big-name.right { text-align: right; }

/* ===== Section base ===== */
.section {
  padding: 100px 6vw;
  border-top: 1px solid var(--line);
}
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 60px; }
.kicker {
  display: inline-block; font-size: 12px; letter-spacing: 4px;
  color: var(--ink-soft); text-transform: uppercase; margin-bottom: 14px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 400; margin: 0; letter-spacing: -1px;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-sub { color: #666; margin-top: 12px; font-size: 14px; }
.block-title {
  font-size: 22px; font-weight: 700; margin: 0 0 24px;
  display: flex; align-items: baseline; gap: 12px;
}
.block-title span {
  font-size: 11px; letter-spacing: 3px; color: var(--ink-soft); font-weight: 500;
}

/* ===== Profile ===== */
.profile-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px;
  max-width: 1000px; margin: 0 auto; align-items: center;
}
.profile-card { text-align: center; }
.avatar {
  width: 220px; height: 220px; margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, #f1d2a4 0 18%, transparent 19%),
    radial-gradient(ellipse at 50% 70%, #fff 0 32%, transparent 33%),
    linear-gradient(160deg, #f7e9c8, #d9a86b);
  box-shadow: var(--shadow);
  border: 6px solid #fff;
}
.profile-name { margin: 20px 0 4px; font-size: 24px; font-weight: 700; }
.profile-codename { color: #555; margin: 0; font-size: 14px; }
.profile-codename strong { color: var(--accent); }
.meta-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.meta-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: #fff;
  border-radius: 12px; border: 1px solid var(--line);
}
.meta-key {
  font-size: 12px; letter-spacing: 2px; color: #888;
  min-width: 60px; text-transform: uppercase;
}
.meta-val { font-weight: 600; }
.tag {
  display: inline-block; background: #111; color: #fff;
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 500;
}
.tag + .tag { margin-left: 6px; }

/* ===== Traits ===== */
.traits-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 1100px; margin: 0 auto;
}
.trait {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: transform .25s, box-shadow .25s;
}
.trait:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.trait h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: 3px; color: var(--accent); text-transform: uppercase; }
.trait p { margin: 0; color: #333; font-size: 15px; }

/* ===== Skills ===== */
.active-skills {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 900px; margin: 0 auto 60px;
}
.skill-card {
  position: relative; background: #111; color: #fff;
  border-radius: var(--radius); padding: 36px 32px;
  transition: transform .25s, background .25s;
  overflow: hidden; display: block;
}
.skill-card::after {
  content: ''; position: absolute; right: -40px; bottom: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  opacity: .25; transition: opacity .3s;
}
.skill-card:hover { transform: translateY(-6px); }
.skill-card:hover::after { opacity: .55; }
.skill-num {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 40px; color: var(--accent); display: block; margin-bottom: 12px;
}
.skill-card h4 { font-size: 28px; margin: 0 0 6px; }
.skill-card p { margin: 0 0 20px; color: #ccc; font-size: 14px; }
.skill-cta { font-size: 13px; letter-spacing: 1px; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

.passive-skills {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 1100px; margin: 0 auto;
}
.passive {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 18px;
  text-align: center; transition: transform .2s, background .2s;
}
.passive:hover { transform: translateY(-3px); background: #111; color: #fff; }
.passive:hover small { color: #aaa; }
.passive .ico { font-size: 30px; display: block; margin-bottom: 8px; }
.passive span:not(.ico) { font-weight: 600; display: block; }
.passive small { color: #888; font-size: 12px; margin-top: 4px; display: block; }

/* ===== Gallery ===== */
.gallery {
  display: flex; flex-wrap: wrap; gap: 12px;
  max-width: 1200px; margin: 0 auto;
  justify-content: center;
}
.photo {
  width: 190px; height: 190px;
  border-radius: 20px; overflow: hidden;
  position: relative; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  border: 4px solid #fff;
  transition: all .3s cubic-bezier(.25,.8,.25,1);
  flex-shrink: 0;
}
.photo:nth-child(1)  { width: 220px; height: 220px; transform: rotate(-3deg); }
.photo:nth-child(2)  { width: 170px; height: 170px; transform: rotate(2deg); }
.photo:nth-child(3)  { width: 200px; height: 200px; transform: rotate(-1deg); }
.photo:nth-child(4)  { width: 180px; height: 180px; transform: rotate(4deg); }
.photo:nth-child(5)  { width: 230px; height: 230px; transform: rotate(-2deg); }
.photo:nth-child(6)  { width: 160px; height: 160px; transform: rotate(3deg); }
.photo:nth-child(7)  { width: 190px; height: 190px; transform: rotate(-4deg); }
.photo:nth-child(8)  { width: 220px; height: 220px; transform: rotate(1deg); }
.photo:nth-child(9)  { width: 180px; height: 180px; transform: rotate(-2deg); }
.photo:hover {
  transform: rotate(0deg) scale(1.08) !important;
  z-index: 20;
  box-shadow: 0 16px 50px rgba(0,0,0,.18);
}
.photo img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ===== Vision ===== */
.vision {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  padding: 100px 6vw;
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--line);
}
.vision p { color: #555; font-size: 16px; line-height: 1.7; }
.stats { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.stat strong {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 48px; font-weight: 700; line-height: 1;
}
.stat span { font-size: 12px; color: #888; letter-spacing: 1px; }
.vision-art {
  aspect-ratio: 4/3; border-radius: 24px;
  background: linear-gradient(160deg, #f7e9c8, #d9a86b);
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.vision-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, #fff 0 8%, transparent 9%),
              radial-gradient(circle at 70% 60%, #ff6a3d 0 14%, transparent 15%);
  opacity: .7;
}

/* ===== Footer ===== */
.footer {
  padding: 100px 6vw 40px; text-align: center;
  background: #111; color: #fff;
}
.footer .big-name { color: #fff; }
.contact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; max-width: 1000px; margin: 40px auto;
}
.contact-card {
  background: #1a1a1a; border: 1px solid #2a2a2a;
  padding: 20px; border-radius: 12px; font-size: 14px;
  transition: background .2s, transform .2s;
}
.contact-card:hover { background: var(--accent); transform: translateY(-3px); }

/* ===== New Contact Styles ===== */
.contact-grid-new {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 40px auto;
  align-items: center;
}

.contact-item {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  padding: 30px 20px;
  border-radius: 16px;
  text-align: center;
  transition: transform .2s, border-color .2s;
}

.contact-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.contact-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
  color: #fff;
}

.secure-contact-grid {
  align-items: stretch;
}

.contact-locked,
.contact-unlocked,
.phone-number-group {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.contact-unlocked[hidden] {
  display: none;
}

.contact-lock-copy {
  max-width: 280px;
  margin: 0;
  color: #d4d4d4;
  font-size: 15px;
  line-height: 1.8;
}

.qr-image {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  margin: 0 auto 15px;
  object-fit: contain;
  display: block;
}

.phone-number {
  display: inline-block;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  padding: 20px 0;
  letter-spacing: 1px;
}

.phone-number.is-link {
  text-decoration: none;
  transition: color .2s;
}

.phone-number.is-link:hover {
  color: #fff;
}

.contact-subtitle {
  font-size: 14px;
  color: #888;
  margin: 0;
}

.copyright { color: #888; font-size: 12px; margin-top: 40px; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center;
  z-index: 100; flex-direction: column;
}
.lightbox.open { display: flex; }
.lb-stage {
  width: min(80vw, 800px); aspect-ratio: 1;
  border-radius: 16px;
}
.lb-stage .photo { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 16px; }
.lb-caption { color: #ccc; margin-top: 16px; font-size: 13px; letter-spacing: 1px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,.1);
  border: none; color: #fff; font-size: 30px;
  width: 50px; height: 50px; border-radius: 50%;
  cursor: pointer; transition: background .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--accent); }
.lb-close { top: 30px; right: 30px; }
.lb-prev { left: 30px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 30px; top: 50%; transform: translateY(-50%); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links a:not(.btn-pill) { display: none; }
  .hero-grid, .hero-bottom, .profile-grid, .traits-grid, .active-skills, .passive-skills, .gallery, .contact-grid, .contact-grid-new, .vision {
    grid-template-columns: 1fr;
  }
  .big-name, .big-name.right { text-align: center; }
  .hero-side { text-align: center; }
  .passive-skills { grid-template-columns: repeat(2, 1fr); }
  .gallery { gap: 8px; }
  .photo { width: 120px; height: 120px; }
  .photo:nth-child(1)  { width: 140px; height: 140px; }
  .photo:nth-child(2)  { width: 110px; height: 110px; }
  .photo:nth-child(3)  { width: 130px; height: 130px; }
  .photo:nth-child(4)  { width: 120px; height: 120px; }
  .photo:nth-child(5)  { width: 150px; height: 150px; }
  .photo:nth-child(6)  { width: 100px; height: 100px; }
  .photo:nth-child(7)  { width: 120px; height: 120px; }
  .photo:nth-child(8)  { width: 140px; height: 140px; }
  .photo:nth-child(9)  { width: 120px; height: 120px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  
  /* Mobile contact styles */
  .contact-grid-new {
    gap: 20px;
  }
  .contact-locked,
  .contact-unlocked,
  .phone-number-group {
    min-height: 200px;
  }
  .qr-image {
    width: 160px;
    height: 160px;
  }
  .phone-number {
    font-size: 24px;
  }
}
