/*================GENERAL============================*/
.pop {
  transform: scale(1.02);
}




/* ================= HEADER & NAVIGATION ================= */

/* Container for header */
.site-header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* Flex container for nav items */
.nav-container,
.nav-container-home {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-container { padding: 0.5rem 1rem; }
.nav-container-home { padding: 2rem 2.5rem; }

/* Nav lists */
.nav-list,
.nav-list--left,
.nav-list--right {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

/* Brand text */
.nav-list-title,
.nav-brand,
.nav-logo {
  font-weight: 600;
  color: #333333;
}
.nav-list-title { font-size: 4rem; font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; }
.nav-brand    { font-size: 1.25rem; }
.nav-logo     { font-size: 4rem; font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; }

/* Standard link styling */
.nav-link,
.nav-link--icon svg {
  position: relative;
  text-decoration: none;
  color: #333333;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-weight: 500;
  font-size: 2rem;
  padding: 0.5rem 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

/* Underline hover effect */
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: #0077cc;
  transition: width 0.3s ease;
}
.nav-link:hover {
  color: #0077cc;
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link:active {
  transform: translateY(1px);
}

/* Icon hover fill */
.nav-link--icon svg {
  display: block;
  transition: fill 0.2s ease;
}
.nav-link--icon:hover svg {
  fill: #005fa3;
}

/* Hire Me CTA button */
.hire-cta {
  background-color: #0077cc;
  color: #ffffff !important;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.hire-cta:hover {
  background-color: #005fa3;
  transform: translateY(-2px);
}
.hire-cta:active {
  transform: translateY(0);
}

/* Hire banner */
.hire-banner {
  background-color: #0077cc;
  color: #ffffff;
  text-align: center;
  padding: 0.75rem 1rem;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.hire-banner__link {
  color: #ffffff;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.2s ease;
}
.hire-banner__link:hover {
  color: #e0e0e0;
}


/* ================= INTRO SECTION ================= */
.intro-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1rem;
  background-color: #f7fafc;
  gap: 2rem;
}
@media (min-width: 768px) {
  .intro-section {
    flex-direction: row;
    justify-content: center;
  }
}

.intro-photo {
  width: 250px;
  height: 250px;
  object-fit: fit;
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.intro-box {
  max-width: 500px;
  background-color: #ffffff;
  padding: 2rem;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-16px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.intro-box:hover {
  transform: translateY(-20px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}
.intro-text {
  margin: 0;
  color: #333333;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
}


/* ================= ABOUT PAGE BOXES ================= */
.about-page.container {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1rem;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.page-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #222222;
}

.about-sections {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 3rem;
}
@media (min-width: 768px) {
  .about-sections {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }
  .about-sections .section-box:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: 70%;
  }
}

.section-box {
  background-color: #ffffff;
  padding: 1.75rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-origin: center;
}

.section-box:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}
.section-box h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #005fa3;
}
.section-box ul {
  margin: 0.5rem 0 0 1.25rem;
}
.section-box li { margin-bottom: 0.5rem; }
.section-box p  {
  margin: 0.5rem 0 0;
  line-height: 1.6;
  color: #333333;
}


/* ================= TRAVEL MAP ================= */

/* Wrapper to group heading + map */
.travel-map-section {
  max-width: 800px;
  margin: 2rem auto;       /* center section and add vertical space */
  padding: 0 1rem;
  text-align: center;      /* center everything in it */
}

/* Heading above the map */
.travel-map-head {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;     /* space between title and map */
  color: #005fa3;
}

/* The map iframe container */
.travel-map {
  display: inline-flex;    /* shrink-wrap to iframe size */
  justify-content: center; /* center within its parent */
  width: 100%;
  overflow: hidden;
}

/* Responsive iframe */
.travel-map iframe {
  width: 100%;
  max-width: 100%;
  height: 25rem;
  border: none;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* ================= FOOTER ================= */

.site-footer {
  background-color: #f2f2f2;
  padding: 2rem 1rem;
  margin-top: 4rem;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: #0077cc;
}

@media (min-width: 640px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-left p {
  margin: 0.25rem 0;
  color: #555555;
  font-size: 0.9rem;
}

.footer-left a {
  color: #0077cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-left a:hover {
  color: #005fa3;
}

/* Middle ribbon */
.footer-middle {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-ribbon {
  height: 40px; /* adjust as needed */
  width: auto;
}

.footer-contact-btn {
  display: inline-block;
  background-color: #0077cc;
  color: #ffffff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.footer-contact-btn:hover {
  background-color: #005fa3;
  transform: translateY(-1px);
}


/* app/assets/stylesheets/custom/style.css */

/* ================= RAILFAN GRID ================= */

.railfan-section {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
}

.railfan-section .page-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #222;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* 3x3 grid: boxes around central image */
.railfan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* Center cell holds the logo */
.railfan-center {
  grid-column: 2;
  grid-row: 2;
}
.railfan-logo {
  width: 200px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}
.railfan-logo:hover {
  transform: scale(1.05);
}

/* Feature boxes */
.railfan-box {
  background-color: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-origin: center;
}

/* Remove underline and inherit color for links that are styled as boxes */
.railfan-box a,
a.railfan-box {
  text-decoration: none;
  color: inherit;
  display: block; /* makes the whole box clickable */
  position: relative; /* needed for tooltip positioning */
}

/* Tooltip styling */
a.railfan-box::after {
  content: "Try out the beta";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #005fa3;
  color: #fff;
  padding: 4px 8px;
  font-size: 0.8rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Show tooltip on hover */
a.railfan-box:hover::after {
  opacity: 1;
}

.railfan-box h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #005fa3;
}
.railfan-box p {
  margin: 0.5rem 0 0;
  color: #333;
  line-height: 1.5;
}

/* Hover pop */
.railfan-box:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

/* Responsive: collapse to single column on small screens */
@media (max-width: 768px) {
  .railfan-grid {
    display: flex;
    flex-direction: column;
  }
  .railfan-center {
    order: 5;  /* move logo to middle */
    margin: 2rem 0;
  }
}

/* ================= RAIL AI BETA LAYOUT ================= */

.beta-page {
  max-width: 1200px;
  margin: 3rem auto 4rem auto;
  padding: 0 1rem;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* Header */
.beta-header {
  text-align: center;
  margin-bottom: 2rem;
}
.beta-header .page-title {
  margin: 0;
  font-size: 2.25rem;
  color: #222;
}
.beta-header .page-subtitle {
  margin-top: 0.5rem;
  color: #555;
}

/* Two-column grid: inputs (left) and output (right) */
.beta-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Panels */
.beta-panel {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  padding: 1.25rem;
}
.panel-title {
  margin: 0 0 1rem 0;
  font-size: 1.35rem;
  color: #005fa3;
}

/* Inputs panel: keep visible while scrolling */
.beta-inputs {
  position: sticky;
  top: 96px; /* roughly below your header */
}

/* Form */
.beta-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.beta-form label {
  font-weight: 600;
  color: #333;
}
.beta-form input,
.beta-form select {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: #333;
  background: #fff;
}
.beta-form input:focus,
.beta-form select:focus {
  border-color: #0077cc;
  box-shadow: 0 0 0 3px rgba(0,119,204,0.15);
}
.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.btn-primary {
  background: #0077cc;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.btn-primary:hover { background: #005fa3; transform: translateY(-1px); }
.btn-secondary {
  background: #eef3f8;
  color: #333;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.btn-secondary:hover { background: #e6edf6; transform: translateY(-1px); }
.form-hint { color: #666; font-size: 0.85rem; margin-top: 0.5rem; }

/* Output panel */
.prediction-display {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.75rem 1rem;
  background: linear-gradient(180deg, #f6fbff, #ffffff);
  border: 1px solid #d7e9f8;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.prediction-label {
  font-weight: 700;
  color: #005fa3;
}
.prediction-value {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.75rem;
  letter-spacing: 0.5px;
  color: #222;
}

.output-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.stat {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 0.75rem;
  box-shadow: 0 6px 12px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat:hover { transform: translateY(-2px); box-shadow: 0 10px 18px rgba(0,0,0,0.06); }
.stat-label { color: #555; font-weight: 600; margin-bottom: 0.25rem; }
.stat-value { color: #222; font-weight: 700; }
.stat-value--wrap { white-space: normal; }

/* Visuals (3 cards) */
.beta-visuals {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.visual-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.visual-card h3 { margin: 0 0 0.5rem; color: #005fa3; }
.visual-card p  { margin: 0; color: #333; line-height: 1.5; }
.visual-card:hover      { transform: rotate(0deg) scale(1.02); box-shadow: 0 16px 32px rgba(0,0,0,0.1); }

/* Responsive */
@media (max-width: 960px) {
  .beta-grid { grid-template-columns: 1fr; }
  .beta-inputs { position: static; }
  .output-stats { grid-template-columns: 1fr; }
  .beta-visuals { grid-template-columns: 1fr; }
}

/* ================= CONTACT PAGE ================= */
.contact-page {
  max-width: 900px;
  margin: 3rem auto 4rem;
  padding: 0 1rem;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.contact-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.contact-header h1 {
  margin: 0;
  font-size: 2.25rem;
  color: #222;
}
.contact-header p {
  margin-top: 0.5rem;
  color: #555;
}

/* Email card */
.contact-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.contact-email-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.contact-email-label {
  font-size: 0.85rem;
  color: #666;
}
.contact-email {
  font-size: 1.25rem;
  font-weight: 700;
  color: #005fa3;
  text-decoration: none;
}
.contact-email:hover {
  text-decoration: underline;
}
.contact-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.75rem;
}
.contact-note {
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

/* Reuse your button look */
.btn-primary {
  background: #0077cc;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.btn-primary:hover { background: #005fa3; transform: translateY(-1px); }

.btn-secondary {
  background: #eef3f8;
  color: #333;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease, transform 0.1s ease;
}
.btn-secondary:hover { background: #e6edf6; transform: translateY(-1px); }

/* Tiles to keep the page feeling full */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}
.contact-tile {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 1rem;
  color: #333;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-tile h3 { margin: 0 0 0.4rem; color: #005fa3; }
.contact-tile p  { margin: 0; color: #444; }
.contact-tile.lean-left  { transform: rotate(-1deg); }
.contact-tile.lean-right { transform: rotate( 1deg); }
.contact-tile:hover      { transform: rotate(0deg) scale(1.02); box-shadow: 0 16px 32px rgba(0,0,0,0.1); }
