/* Risha Alexis Portfolio - Dark navy and gold, matching Lexis Sapphire Studio */
:root {
  --navy: #0f1f38;
  --sapphire: #1e5aa8;
  --blue: #2997ff;
  --blue-hover: #0071e3;
  --gold: #c9a227;
  --gold-light: #d4af37;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --bg: #000000;
  --bg-alt: #1d1d1f;
  --border: #424245;
  --card: #1d1d1f;
  --card-hover: #2d2d2f;
  --radius: 18px;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
}

.container { max-width: 1024px; margin: 0 auto; padding: 0 22px; }

/* ---------- Seasonal banner ---------- */
.seasonal-banner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 10px 22px;
  background: linear-gradient(90deg, #5c2e0e 0%, #8b4513 25%, #b5651d 50%, #8b4513 75%, #5c2e0e 100%);
  color: #fff7e6; text-align: center;
  position: relative; z-index: 101;
}
.seasonal-banner p {
  font-size: 14px; line-height: 1.4; margin: 0;
  font-weight: 500; letter-spacing: 0.01em;
}
.seasonal-leaf { font-size: 18px; flex-shrink: 0; animation: leaf-sway 3s ease-in-out infinite; }
.seasonal-leaf:last-child { animation-delay: 1.5s; }
@keyframes leaf-sway {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-2px); }
}
.seasonal-footer {
  text-align: center; font-size: 14px; color: var(--gold-light);
  margin-top: 16px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: 44px;
  background: rgba(22, 22, 23, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-inner {
  max-width: 1024px; height: 44px; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--text);
  text-decoration: none; letter-spacing: -0.01em;
}
.logo-mark { flex-shrink: 0; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text); text-decoration: none; font-size: 12px;
  opacity: 0.8; transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 22px 60px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201, 162, 39, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(181, 101, 29, 0.15) 0%, transparent 70%),
    var(--bg);
}
.hero-content { max-width: 720px; margin: 0 auto; }
.hero-photo {
  width: 140px; height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 8px 32px rgba(201, 162, 39, 0.3);
  margin-bottom: 24px;
}
.hero-eyebrow {
  font-size: 17px; font-weight: 600; color: var(--gold-light);
  margin-bottom: 12px; letter-spacing: -0.01em;
}
.hero h1 {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(22px, 4vw, 28px); font-weight: 600;
  color: var(--gold-light); margin: 0 0 20px;
}
.hero-bio {
  font-size: 21px; line-height: 1.4; color: var(--muted);
  max-width: 600px; margin: 0 auto 32px;
  letter-spacing: -0.01em;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-tagline { margin-top: 28px; font-size: 16px; font-style: italic; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 999px;
  font-size: 17px; font-weight: 400; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: -0.01em;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #53a8ff; }
.btn-secondary { background: var(--blue); color: #fff; }
.btn-secondary:hover { background: #53a8ff; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(30px, 5vw, 42px); font-weight: 600;
  letter-spacing: -0.02em; text-align: center; color: var(--text);
}
.section-subtitle {
  text-align: center; color: var(--muted);
  font-size: 21px; line-height: 1.4; margin: 12px 0 48px;
  letter-spacing: -0.01em;
}

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  background: var(--card-hover);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}
.card-badge {
  align-self: flex-start;
  background: rgba(201, 162, 39, 0.15); color: var(--gold-light);
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.card h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.card-oneline { font-size: 17px; line-height: 1.45; color: var(--muted); }
.card-meta { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--muted); line-height: 1.5; }
.card-meta strong { color: var(--text); font-weight: 600; }
.card-links { display: flex; gap: 16px; margin-top: auto; padding-top: 8px; }
.card-links a { color: var(--blue); font-weight: 600; font-size: 15px; text-decoration: none; }
.card-links a:hover { text-decoration: underline; }

/* ---------- Screenshot gallery inside a card ---------- */
.screenshots {
  display: flex; gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.screenshots figure { flex: 0 0 auto; width: 180px; scroll-snap-align: start; }
.screenshots img {
  width: 100%; height: auto; display: block;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.screenshots figcaption {
  font-size: 12px; color: var(--muted);
  text-align: center; margin-top: 6px;
}

/* ---------- Lightbox: tap a screenshot to see it full size ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: none; align-items: center; justify-content: center;
  cursor: zoom-out; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 90vh; width: auto; height: auto;
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  object-fit: contain;
}
.lightbox-close {
  position: fixed; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 24px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 201;
}
.lightbox-hint {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-size: 0.85rem;
  z-index: 201; pointer-events: none;
}

/* ---------- Process ---------- */
.process-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.step {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 20px; text-align: center;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  box-shadow: var(--shadow);
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.step-name { font-weight: 600; font-size: 15px; color: var(--text); }
.process-note { text-align: center; color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto; }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.skill-group {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.skill-group h3 { font-size: 18px; margin-bottom: 8px; color: var(--gold-light); }
.skill-group p { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ---------- Contact ---------- */
.contact-container { text-align: center; }

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0; text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted); font-size: 14px;
}

/* ---------- Falling seasonal pieces ---------- */
/* Emoji leaves/snow/etc. falling across the whole page.
   Transform-only animation (GPU-accelerated), pointer-events none
   so they never block clicks. Below the nav (z-index 100). */
.falling-layer {
  position: fixed; inset: 0; z-index: 90;
  pointer-events: none; overflow: hidden;
}
.falling-piece {
  position: absolute; top: -8%;
  display: inline-block;
  animation-name: seasonal-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
@keyframes seasonal-fall {
  0%   { transform: translateY(-5vh) translateX(0) rotate(0deg); }
  25%  { transform: translateY(30vh) translateX(22px) rotate(100deg); }
  50%  { transform: translateY(60vh) translateX(-18px) rotate(200deg); }
  75%  { transform: translateY(90vh) translateX(14px) rotate(300deg); }
  100% { transform: translateY(115vh) translateX(0) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .falling-layer { display: none; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav-inner { flex-wrap: wrap; }
  .nav-links { flex-wrap: wrap; gap: 10px 16px; justify-content: flex-end; }
  .nav-links a { font-size: 14px; }
  .hero { padding: 64px 20px 56px; }
  .hero-photo { width: 120px; height: 120px; }
  .section { padding: 56px 0; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { min-width: 0; }
  .screenshots { overflow-x: auto; }
  .screenshots figure { width: 160px; }
}
