/* ============================================
   MY JOURNEY — Style Sheet
   Aesthetic: Refined editorial, warm & human
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ---- TOKENS ---- */
:root {
  --green-bright: #50d950;
  --green-dark:   #155f2e;
  --green-mid:    #1f8c42;
  --blue:         #0071db;
  --blue-light:   #3d9aff;
  --white:        #ffffff;
  --off-white:    #f0faf2;
  --shadow:       rgba(0, 113, 219, 0.15);

  --bg:         var(--off-white);
  --surface:    var(--white);
  --text:       var(--green-dark);
  --text-muted: #2e7a50;
  --border:     #c2eacb;
  --accent:     var(--blue);
  --accent-hi:  var(--green-bright);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius: 12px;
  --max-w:  1100px;
  --trans:  0.3s ease;
}

/* Dark mode */
[data-theme="dark"] {
  --bg:         #081f10;
  --surface:    #0d2d18;
  --text:       #e0fae8;
  --text-muted: #7dd898;
  --border:     #1a4a2a;
  --accent:     var(--blue-light);
  --accent-hi:  var(--green-bright);
  --shadow:     rgba(80, 217, 80, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  transition: background var(--trans), color var(--trans);
  overflow-x: hidden;
}

/* ---- THEME TOGGLE ---- */
.theme-toggle {
  position: fixed;
  top: 1.2rem;
  right: 1.4rem;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px var(--shadow);
  transition: all var(--trans);
}
.theme-toggle:hover {
  transform: scale(1.1);
  border-color: var(--accent);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 20% 50%, rgba(80,217,80,0.35) 0%, transparent 65%),
    radial-gradient(ellipse 55% 60% at 80% 40%, rgba(0,113,219,0.25) 0%, transparent 65%),
    linear-gradient(135deg, #e8faea 0%, #d0f0f8 60%, #c8e8ff 100%);
  transition: background var(--trans);
}

[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(ellipse 65% 55% at 20% 50%, rgba(80,217,80,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 55% 60% at 80% 40%, rgba(0,113,219,0.20) 0%, transparent 65%),
    linear-gradient(135deg, #061a0c 0%, #07121e 60%, #081520 100%);
}

/* Subtle grain overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 2rem;
  animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  animation: heroReveal 1.2s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  font-weight: 600;
  line-height: 1.0;
  color: var(--green-dark);
  letter-spacing: -0.02em;
  animation: heroReveal 1.2s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

[data-theme="dark"] .hero-content h1 {
  color: var(--green-bright);
}

.hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  color: var(--text-muted);
  margin-top: 1rem;
  animation: heroReveal 1.2s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: heroReveal 1.2s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: color var(--trans);
}
.scroll-cue svg {
  width: 20px;
  height: 20px;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-cue:hover { color: var(--accent-hi); }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ---- INTRO SECTION ---- */
.intro {
  padding: 6rem 1.5rem 4rem;
}

.intro-inner {
  max-width: 720px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.intro h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  color: var(--text);
}

.intro-body p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.intro-body p:last-child { margin-bottom: 0; }

.intro-body em {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2em;
  color: var(--text);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3.5rem;
}
.divider span:first-child,
.divider span:last-child {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider-diamond {
  flex: none;
  font-size: 0.55rem;
  color: var(--accent-hi);
  opacity: 0.7;
}

/* ---- VIDEOS SECTION ---- */
.videos {
  padding: 3rem 1.5rem 6rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.videos-header {
  text-align: center;
  margin-bottom: 4rem;
}

.videos-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.videos-sub {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  animation: cardReveal 0.6s calc(var(--i, 1) * 60ms) cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px var(--shadow), 0 0 0 2px var(--green-bright);
  border-color: var(--green-bright);
}

.card-number {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--blue);
  padding: 1.2rem 1.4rem 0;
  opacity: 0.85;
}

[data-theme="dark"] .card-number {
  color: var(--blue-light);
}

.video-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
  padding: 0.35rem 1.4rem 1rem;
  line-height: 1.3;
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

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

/* ---- FOOTER ---- */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
  text-align: center;
  transition: background var(--trans);
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
}
