/* ===== ASHISHTORQ.COM — MKBHD-INSPIRED DESIGN SYSTEM ===== */

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

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

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Design Tokens (MKBHD-inspired deep blacks + neon accents) --- */
:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #111111;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(245, 136, 42, 0.4);
  --accent-orange: #d4702a;
  --accent-warm: #e07a30;
  --accent-gold: #e8a44a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(245, 136, 42, 0.25);
  --shadow-glow-strong: 0 0 60px rgba(245, 136, 42, 0.35);
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-width: 1200px;
}

/* --- Typography (MKBHD-style oversized, bold) --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 55ch;
  line-height: 1.8;
}

a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--accent-warm); }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.accent-text { color: var(--accent-orange); }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
}

.section { padding: 8rem 0; }
.section-darker { background-color: var(--bg-secondary); }

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-center { text-align: center; }

/* --- Navbar (minimal, floating, MKBHD-style) --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: all var(--transition-fast);
}

.navbar.scrolled {
  padding: 1rem 0;
  background-color: rgba(0, 0, 0, 0.9);
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-logo span { color: var(--accent-orange); }

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
}

/* --- Buttons (glowing hover, MKBHD pop) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  border-radius: 0;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: #000;
}

.btn-primary:hover {
  background-color: var(--accent-warm);
  color: #000;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-strong);
}

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

.btn-outline:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-book-white {
  border: 2px solid var(--text-primary);
  color: var(--text-primary);
  background: transparent;
  padding: 0.65rem 1.6rem;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.btn-book-white:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  transform: translateY(-3px);
}

/* --- Cards (dark glass, glow on hover) --- */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  transition: all 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0.5rem;
  max-width: 100%;
}

/* --- Footer --- */
.footer {
  background-color: var(--bg-primary);
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom p {
  max-width: none;
  margin: 0 auto;
  text-align: center;
}

/* --- Scroll-triggered Animations (MKBHD slide-in) --- */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Staggered children animation */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-card);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transition: right var(--transition-smooth);
    border-left: 1px solid var(--border-subtle);
  }
  .nav-links.active { right: 0; }
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 5rem 0; }
  h1 { font-size: 2.8rem; }
  h2 { font-size: 1.8rem; }

  /* Book section: scale down on mobile */
  .book-img { transform: scale(1) !important; max-width: 250px; margin: 0 auto; }

  /* Allow title to wrap on mobile */
  .nowrap-desktop { white-space: normal !important; }
}

/* --- Form Styles --- */
.form-group { margin-bottom: 1.5rem; text-align: left; }

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 15px rgba(245, 136, 42, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

/* --- Book Page (theboywhodidnotsign.html) --- */
.book-hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.book-hero-img {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 20px 60px rgba(212, 112, 42, 0.3));
  transition: transform 0.6s ease;
}

.book-hero-img:hover {
  transform: scale(1.05) rotate(-1deg);
}

.book-story p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 2;
  margin-bottom: 1.5rem;
  max-width: 100%;
  text-align: justify;
}

.book-story-signature {
  font-style: italic;
  color: var(--accent-orange);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2rem;
}

.buy-category-label {
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

.buy-list {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
  position: relative;
}

.buy-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-orange), var(--accent-gold));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}

.buy-row:last-child {
  border-bottom: none;
}

.buy-row:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.buy-row:hover::before {
  transform: scaleY(1);
}

.buy-row:hover .buy-arrow {
  transform: translateX(4px);
  color: var(--accent-orange);
}

.buy-store {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.buy-row-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
}

.buy-arrow {
  color: var(--text-muted);
  font-size: 1rem;
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-block;
}

/* --- About Page Avatar --- */
.about-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--accent-orange);
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(212, 112, 42, 0.5), 0 0 50px rgba(212, 112, 42, 0.2);
}

/* --- Social Icons --- */
.social-icon {
  color: var(--text-secondary);
  transition: color 0.3s ease, transform 0.3s ease, filter 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.social-icon:hover {
  color: var(--accent-orange);
  transform: scale(1.2) translateY(-2px);
  filter: drop-shadow(0 0 8px rgba(212, 112, 42, 0.4));
}

/* --- Hero Image Link (clickable with lift effect) --- */
.hero-img-link {
  display: block;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero-img-link:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(212, 112, 42, 0.3);
}

/* --- Journey Grid (flex-based for hover expansion) --- */
.journey-grid {
  display: flex;
  gap: 1.5rem;
  position: relative;
  padding-top: 4.5rem;
}

/* Horizontal connecting line */
.journey-grid::before {
  content: '';
  position: absolute;
  top: 2.8rem;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-gold), var(--accent-orange));
  opacity: 0.4;
  z-index: 1;
}

/* Year label above each card */
.journey-grid .journey-card::before {
  content: attr(data-year);
  position: absolute;
  top: -4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-orange);
  z-index: 2;
}

/* Glowing dot */
.journey-grid .journey-card::after {
  content: '';
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 12px rgba(212, 112, 42, 0.5);
  z-index: 2;
}

.journey-grid .card {
  padding: 1.5rem;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  position: relative;
  text-align: center;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.card-detail {
  display: none;
}

/* Card glow when hovered/active */
.journey-card.active {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-8px);
}

/* --- Journey Detail Panel (slides down below cards) --- */
.journey-detail-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.4s ease;
}

.journey-detail-panel.active {
  max-height: 300px;
  opacity: 1;
}

.journey-detail-inner {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 2.5rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

.journey-detail-inner h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 0.3rem;
  white-space: nowrap;
}

.journey-detail-list {
  flex: 1;
  border-left: 1px solid var(--border-subtle);
  padding-left: 2.5rem;
}

.journey-detail-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.journey-detail-list li {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  padding-left: 1.2rem;
  position: relative;
}

.journey-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent-orange);
}

/* Links inside journey detail bullets */
.journey-link {
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.journey-link:hover {
  color: var(--accent-warm);
  text-shadow: 0 0 12px rgba(212, 112, 42, 0.5);
}

@media (max-width: 1200px) {
  .journey-grid {
    flex-wrap: wrap;
    row-gap: 4.5rem;
  }
  .journey-grid .card {
    flex: 1 1 calc(33% - 1rem);
  }
  /* Second timeline line for the bottom row */
  .journey-grid::after {
    content: '';
    position: absolute;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-gold), var(--accent-orange));
    opacity: 0.4;
    z-index: 1;
    top: var(--second-line-top, 50%);
  }
}

@media (max-width: 768px) {
  .journey-grid {
    flex-direction: column;
    gap: 0.3rem;
  }
  .journey-grid .card {
    flex: none;
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
  }
  /* Hide second timeline line from 1200px breakpoint */
  .journey-grid::after {
    display: none;
  }

  /* Hide detail panel on mobile — use accordion instead */
  .journey-detail-panel {
    display: none;
  }

  /* Mobile accordion: slide detail down below the card */
  .card-detail {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease 0.1s;
  }

  .card-detail ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-subtle);
  }

  .card-detail li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 1.2rem;
    position: relative;
  }

  .card-detail li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--accent-orange);
  }

  .journey-card.mobile-expanded .card-detail {
    max-height: 200px;
    opacity: 1;
  }

  .journey-card.mobile-expanded {
    border-color: var(--border-glow);
    border-left: 3px solid var(--accent-orange);
  }

  /* --- Vertical Timeline (Mobile) --- */
  .journey-grid {
    padding-top: 0;
    padding-left: 3.5rem;
  }

  /* Vertical connecting line */
  .journey-grid::before {
    top: 0;
    bottom: 0;
    left: 1.8rem;
    right: auto;
    width: 2px;
    height: auto;
  }

  /* Year label — left of the vertical line, rotated to face inward */
  .journey-grid .journey-card::before {
    top: 0.4rem;
    left: -3.5rem;
    transform: rotate(180deg);
    font-size: 0.6rem;
    width: auto;
    visibility: visible;
    letter-spacing: 1px;
    writing-mode: vertical-lr;
    text-orientation: mixed;
  }

  /* Glowing dot — on the vertical line */
  .journey-grid .journey-card::after {
    top: 1.5rem;
    left: -1.9rem;
    transform: none;
    width: 8px;
    height: 8px;
  }
}

/* --- Guidance Page Cards --- */
.guidance-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.guidance-card {
  cursor: pointer;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.guidance-card:hover {
  transform: none;
}

.guidance-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.guidance-card-text {
  flex: 1;
}

.guidance-card-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: box-shadow 0.4s ease;
}

.guidance-card.expanded .guidance-card-img,
.guidance-card:hover .guidance-card-img {
  box-shadow: 0 0 20px rgba(245, 136, 42, 0.25);
}

@media (max-width: 768px) {
  .guidance-card-img {
    width: 80px;
    height: 80px;
  }
}

.guidance-card.expanded {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.guidance-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.guidance-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.4s ease 0.1s;
}

.guidance-card.expanded .guidance-detail {
  max-height: 2000px;
  opacity: 1;
}

.guidance-detail p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-top: 1rem;
  max-width: 100%;
}

.guidance-detail p:first-child {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.guidance-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

/* --- Module Overview (Art of Speaking) --- */
.module-overview {
  margin-top: 2rem;
  padding: 1.2rem 1rem;
  background-color: var(--bg-primary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.module-item {
  display: flex;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.module-item:last-child {
  border-bottom: none;
}

.module-number {
  color: var(--accent-orange);
  font-size: 0.95rem;
  font-weight: 700;
  min-width: 6rem;
}

.module-topic {
  flex: 1;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
}

.module-day {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: right;
  white-space: nowrap;
}

.module-day-num {
  color: var(--accent-orange);
  font-weight: 700;
}
