/* ============================================
   Ferne Kotlyar – Personal Website Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #faf9f6;
  --color-text: #2d2d2d;
  --color-text-light: #6b6b6b;
  --color-accent: #4a7c59;
  --color-accent-dark: #3a6347;
  --color-accent-light: #e8f0eb;
  --color-white: #ffffff;
  --color-border: #e5e1da;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --max-width: 1100px;
  --nav-height: 70px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent-dark); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 760px; }

.section { padding: 5rem 0; }
.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-text);
}

/* --- Button --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background 0.25s, transform 0.2s;
}
.btn:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* ============ Navigation ============ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
}
.nav-logo:hover { color: var(--color-accent); }

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

.nav-links a {
  color: var(--color-text-light);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: 0.3s;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  height: 75vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('/ferne-in-nature-masthead.jpg') center/cover no-repeat;
  margin-top: var(--nav-height);
}

.page-hero {
  position: relative;
  height: 45vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  margin-top: var(--nav-height);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.40) 0%,
    rgba(0,0,0,0.60) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  padding: 2rem;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  max-width: 550px;
  margin: 0 auto 2rem;
  opacity: 0.92;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* ============ About ============ */
.about { background: var(--color-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
  font-size: 1.02rem;
}

.about-text p:last-child { margin-bottom: 0; }

/* ============ Timeline ============ */
.timeline-section { background: var(--color-bg); }

.timeline {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-accent);
  transform: translateX(-6px);
}

.timeline-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.timeline-content p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ============ Research ============ */
.research-intro { margin-bottom: 3rem; }

.lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--color-text-light);
  border-left: 3px solid var(--color-accent);
  padding-left: 1.5rem;
}

.research-block {
  margin-bottom: 2.5rem;
}

.research-block h2 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.research-block p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
  font-size: 1.02rem;
}

/* ============ Page Content (from Markdown) ============ */
.page-content p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
  font-size: 1.02rem;
}

.page-content h2 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--color-text);
}

.page-content h2:first-child { margin-top: 0; }

.page-content > p:first-child {
  font-size: 1.2rem;
  line-height: 1.8;
  border-left: 3px solid var(--color-accent);
  padding-left: 1.5rem;
}

/* ============ Video Embed ============ */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-top: 1rem;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ============ CV ============ */
.cv-section { background: var(--color-white); }

.cv-embed {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.cv-embed iframe {
  width: 100%;
  height: 85vh;
  border: none;
}

.cv-download {
  text-align: center;
  margin-top: 2rem;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-social {
  display: flex;
  gap: 1.2rem;
}

.footer-social a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s, transform 0.2s;
}
.footer-social a:hover {
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-copy {
  font-size: 0.85rem;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0.7rem 0; }

  .hero-content h1 { font-size: 2.6rem; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .about-image { order: -1; max-width: 320px; margin: 0 auto; }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .section-title { font-size: 1.8rem; }
}

/* ============ Hero Tagline ============ */
.hero-tagline {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* ============ Heliconia Interactive / Venture ============ */
.venture-section { background: var(--color-white); }

.venture-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-bg);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid var(--color-border);
}

.venture-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.venture-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}

.venture-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.venture-tagline {
  font-size: 0.95rem;
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0.2rem 0 0;
}

.venture-desc {
  color: var(--color-text-light);
  font-size: 1.02rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.venture-products {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.venture-product {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.venture-product:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.venture-product-img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.venture-product strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: var(--color-text);
}

.venture-product p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ============ In the News ============ */
.news-section { background: var(--color-bg); }

.news-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.news-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.6rem;
  background: var(--color-white);
  border-radius: 14px;
  border: 1px solid var(--color-border);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  border-color: var(--color-accent);
  color: inherit;
}

.news-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.news-body {
  flex: 1;
  min-width: 0;
}

.news-source {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0.3rem 0 0;
  line-height: 1.4;
}

.news-arrow {
  font-size: 1.3rem;
  color: var(--color-accent);
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s, transform 0.25s;
}

.news-card:hover .news-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============ Scroll Reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Responsive Additions ============ */
@media (max-width: 768px) {
  .venture-card { padding: 2rem 1.5rem; }
  .venture-header { flex-direction: column; text-align: center; }
  .venture-name { font-size: 1.5rem; }
  .news-card { flex-direction: column; text-align: center; gap: 0.8rem; padding: 1.2rem; }
  .news-arrow { display: none; }
}

@media (max-width: 480px) {
  .venture-product { flex-direction: column; text-align: center; }
  .news-title { font-size: 1.05rem; }
}
