/* ══════════════════════════════════════
   JESSICA HORSKI — PORTFOLIO
   css/style.css
══════════════════════════════════════ */

/* ── RESET & CUSTOM PROPERTIES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:             #0e0e0e;
  --surface:        #1a1a1a;
  --border:         #252525;
  --accent:         #c8f060;
  --text-primary:   #FDFFD1;
  --text-secondary: #888888;
  --text-muted:     #444444;
  --text-body:      #c8c4be;
  --max-w: 1100px;
  --px: 48px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  cursor: none;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body * { cursor: none; }

@media (pointer: coarse) {
  body, body * { cursor: auto; }
  #cursor { display: none; }
}

/* ── CURSOR ── */
#cursor {
  width: 10px; height: 10px;
  border: 1px solid var(--text-primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s, border-color 0.2s;
  top: 0; left: 0;
}
#cursor.hover {
  transform: translate(-50%, -50%) scale(3.6);
  background: rgba(200, 240, 96, 0.12);
  border-color: var(--accent);
}

/* ── ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms;   opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 500ms; opacity: 1; transform: none; }

.card-flip {
  opacity: 0;
  transform: perspective(1000px) rotateX(18deg) translateY(40px);
  transform-origin: top center;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-flip.visible {
  opacity: 1;
  transform: perspective(1000px) rotateX(0deg) translateY(0);
}

@keyframes wordIn    { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeSlide { to { opacity: 1; } }

/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 20px var(--px);
  display: flex; justify-content: center; align-items: center; gap: 40px;
  transition: backdrop-filter 0.3s;
}
nav.scrolled { backdrop-filter: blur(12px); }
nav a {
  font-family: 'Inter', sans-serif;
  font-weight: 400; font-size: 12px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-secondary); text-decoration: none;
  transition: color 0.2s;
}
nav a:hover  { color: var(--text-primary); }
nav a.active { color: var(--text-primary); }

/* ── LAYOUT UTILITIES ── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

.section-title {
  font-family: 'Lora', serif;
  font-weight: 400; font-size: 56px;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 64px;
}

section { position: relative; }
#hero, #about, #contact { overflow: hidden; isolation: isolate; }
.parallax-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

/* ── HERO ── */
#hero {
  min-height: 730px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 160px var(--px) 140px;
  gap: 24px;
}

.hero-label {
  font-family: 'Inter', sans-serif;
  font-weight: 400; font-size: 12px;
  letter-spacing: 0.15em; color: var(--text-secondary);
  opacity: 0;
  animation: fadeSlide 0.6s ease-out 600ms forwards;
}

#hero h1 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.08;
  color: var(--text-primary);
  max-width: 900px;
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 0.28em;
}
#hero h1 .word {
  display: inline-block;
  opacity: 0; transform: translateY(20px);
  animation: wordIn 0.6s ease-out forwards;
}

.hero-status {
  display: flex; align-items: center;
  justify-content: space-between;
  max-width: 500px; width: 100%;
  margin-top: 56px;
  opacity: 0;
  animation: fadeSlide 0.6s ease-out 600ms forwards;
}
.hero-status .col       { display: flex; flex-direction: column; gap: 4px; }
.hero-status .col-label {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 11px; color: var(--text-secondary);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-status .col-value {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: 14px; color: var(--text-primary);
}
.hero-status .col-value.accent { color: var(--accent); }
.hero-status .divider   { width: 1px; height: 72px; background: var(--border); }

.hero-cta {
  font-family: 'Inter', sans-serif;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-secondary); text-decoration: none;
  margin-top: 8px; transition: color 0.2s;
  opacity: 0;
  animation: fadeSlide 0.6s ease-out 1400ms forwards;
}
.hero-cta:hover { color: var(--accent); }

/* ── PROJECTS ── */
#projects { padding: 160px var(--px); }
#projects .wrap { max-width: var(--max-w); margin: 0 auto; }

.project-row {
  border-top: 1px solid var(--border);
  padding: 64px 0;
  transition: border-color 0.3s ease;
}
.project-row:hover { border-color: #333; }
.project-row-head {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 24px;
}
.project-company {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 12px; color: var(--accent); letter-spacing: 0.05em;
}
.project-tags {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: 11px; color: var(--text-secondary); margin-left: 12px;
}
.project-num {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: 12px; color: var(--text-muted);
}
.project-body {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 56px; align-items: start;
}
.project-thumb {
  display: block;
  width: 220px; height: 160px;
  background: var(--surface); border: 1px solid var(--border);
  flex-shrink: 0; overflow: hidden;
}
.project-thumb-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}
.project-row:hover .project-thumb-img { filter: grayscale(0%); }
.project-title-col { display: flex; flex-direction: column; justify-content: flex-start; }
.project-desc-col  { display: flex; flex-direction: column; gap: 16px; }
.project-title {
  font-family: 'Lora', serif; font-weight: 400;
  font-size: 22px; color: var(--text-primary); line-height: 1.25;
}
.project-desc {
  font-family: 'Inter', sans-serif; font-weight: 300;
  font-size: 14px; color: var(--text-body); line-height: 1.7;
}
.project-btn {
  display: inline-block; margin-top: 8px;
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 11px; letter-spacing: 0.15em;
  border: 1px solid var(--border);
  padding: 6px 14px; color: var(--text-primary);
  background: transparent; text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease, letter-spacing 0.25s ease;
}
.project-btn:hover { border-color: var(--accent); color: var(--accent); letter-spacing: 0.2em; }

.projects-end { display: flex; align-items: center; gap: 24px; margin-top: 88px; }
.projects-end-line { flex: 1; height: 1px; background: var(--border); }
.projects-end-text {
  font-family: 'Inter', sans-serif; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); white-space: nowrap;
}

/* ── TOOLS ── */
#tools { padding: 160px var(--px); text-align: center; }
.tools-icons {
  display: flex; justify-content: center;
  align-items: center; gap: 36px; flex-wrap: wrap;
}
.tool-item {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
}
.tool-item > svg {
  color: var(--text-primary);
  fill: var(--text-body); stroke: none;
  width: 28px; height: 28px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.tool-item:hover > svg { opacity: 0.45; transform: scale(1.5); }
.tool-tooltip {
  position: absolute;
  bottom: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--surface); border: 1px solid var(--border);
  padding: 16px 24px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  display: flex; flex-direction: column; gap: 6px;
  z-index: 10;
}
.tool-item:hover .tool-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }
.tool-tooltip-name {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 13px; color: var(--text-primary); letter-spacing: 0.05em;
}
.tool-tooltip-desc {
  font-family: 'Inter', sans-serif; font-weight: 300;
  font-size: 13px; color: var(--text-secondary);
}

/* ── MARQUEE ── */
#marquee { overflow: hidden; width: 100%; padding: 22px 0; background: #1C1C1C; }
.marquee-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee-track span {
  font-family: 'Lora', serif; font-weight: 600;
  font-size: clamp(24px, 3.5vw, 40px);
  color: #313131; letter-spacing: 0.001em; white-space: nowrap;
}

/* ── ORBITAL ── */
#orbital { padding: 160px var(--px); display: flex; flex-direction: column; align-items: center; }
#orbital-wrap { width: 100%; max-width: 860px; }
#orbital-wrap svg { width: 100%; height: auto; display: block; }

/* ── APPROACH ── */
#approach { padding: 0 var(--px) 120px; }
#approach .wrap { max-width: var(--max-w); margin: 0 auto; }
.approach-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border: 1px solid var(--border);
}
.approach-step {
  padding: 40px 36px; border-right: 1px solid var(--border);
  transition: background 0.25s ease;
}
.approach-step:last-child { border-right: none; }
.approach-step:hover { background: var(--surface); }
.approach-num {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; color: var(--accent);
  display: block; margin-bottom: 16px;
}
.approach-title {
  font-family: 'Lora', serif; font-size: 18px; font-weight: 400;
  color: var(--text-primary); margin-bottom: 12px;
}
.approach-desc {
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 300;
  color: var(--text-body); line-height: 1.7;
}

/* ── ABOUT ── */
#about { padding: 160px var(--px); text-align: center; }
.about-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 2px; padding: 64px;
  max-width: var(--max-w); margin: 0 auto;
}
.about-top {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 64px; align-items: start; margin-bottom: 40px;
}
.about-photo { width: 200px; height: 240px; object-fit: cover; display: block; background: var(--border); }
.about-rows  { display: flex; flex-direction: column; }
.about-row {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.about-row:first-child { border-top: 1px solid var(--border); }
.about-row-icon  { flex-shrink: 0; }
.about-row-label {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 11px; color: var(--text-secondary);
  letter-spacing: 0.1em; min-width: 80px;
}
.about-row-div   { width: 1px; height: 24px; background: var(--border); }
.about-row-value {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: 14px; color: var(--text-primary);
}
.about-bio {
  font-family: 'Inter', sans-serif; font-weight: 300;
  font-size: 15px; color: var(--text-body);
  line-height: 1.8; width: 100%; margin: 0; text-align: left;
}

/* ── CONTACT ── */
#contact { padding: 160px var(--px); text-align: center; }
.contact-sub {
  font-family: 'Inter', sans-serif; font-weight: 300;
  font-size: 15px; color: var(--text-body);
  line-height: 1.8; margin-bottom: 48px;
}
.contact-icons { display: flex; justify-content: center; align-items: center; gap: 24px; }
.contact-icons a { color: var(--text-primary); transition: color 0.2s, opacity 0.2s; }
.contact-icons a:hover { color: var(--accent); }
.contact-icons a svg { fill: currentColor; stroke: none; width: 24px; height: 24px; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border); padding: 32px var(--px);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 12px;
}
.footer-row   { display: flex; align-items: center; gap: 14px; }
.footer-built {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: 11px; color: var(--text-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  :root { --px: 24px; }

  .approach-steps { grid-template-columns: 1fr 1fr; }
  .approach-step  { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .approach-step:nth-child(2n) { border-right: none; }
  .approach-step:nth-child(3),
  .approach-step:nth-child(4)  { border-bottom: none; }

  .project-body   { grid-template-columns: 1fr; }
  .project-thumb  { width: 100%; height: 180px; }

  .about-top      { grid-template-columns: 1fr; }
  .about-photo    { width: 100%; height: 200px; }

  .hero-status            { flex-direction: column; gap: 16px; }
  .hero-status .divider   { width: 40px; height: 1px; }
}
