/* ============================================
   Homepage (index.html) Styles
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Roboto', 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-ink, #333333);
  background-color: #ffffff;
  line-height: 1.6;
}

/* ============================================
   Page Wrapper & Layout
   ============================================ */

.page-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem;
}

.page-content {
  flex: 1;
  min-width: 0;
}

.content-column {
  max-width: 900px;
  margin: 0 auto;
}

.content-column h2,
.content-column h3,
.content-column p {
  text-align: left;
}

/* ============================================
   Section Blocks
   ============================================ */

.section-block {
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.section-heading {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-accent, #478ac9);
  display: inline-block;
}

.page-title {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.section-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 2rem;
}

.focus-title,
.weather-title,
.timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 1rem;
}

.hobbies-section {
  margin-bottom: 2rem;
}

/* ============================================
   Focus Areas List
   ============================================ */

.focus-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.focus-list li {
  padding: 0.75rem 0 0.75rem 2.5rem;
  color: var(--color-ink, #333333);
  position: relative;
  font-size: 1.05rem;
}

.focus-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent, #478ac9);
  font-weight: bold;
  font-size: 1.3rem;
}

/* ============================================
   Hobbies & Text Blocks
   ============================================ */

.hobbies-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.5rem;
}

.weather-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.5rem;
}

/* ============================================
   Photo Card & Section
   ============================================ */

.photo-section {
  padding: 0 1rem;
  margin-bottom: 3rem;
}

.photo-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.photo-card {
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.photo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
}

.photo-link-text {
  position: absolute;
  right: 2rem;
  top: 10%;
  font-size: 1.2rem;
  z-index: 10;
}

.photo-link {
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid #0f172a;
  padding: 1rem 2rem;
  display: inline-block;
  transition: all 200ms ease;
}

.photo-link:hover {
  color: #478ac9;
  border-color: #478ac9;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: 200ms ease;
  font-weight: 500;
  text-align: center;
  margin-top: 1rem;
}

.btn-primary {
  background: #ffffff;
  color: var(--color-accent, #478ac9);
  border: 2px solid var(--color-accent, #478ac9);
}

.btn-primary:hover {
  background: #f8fbff;
  color: var(--color-accent, #478ac9);
  border-color: var(--color-accent, #478ac9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.btn-icon {
  padding: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(71, 138, 201, 0.08);
}

/* ============================================
   Timeline Section
   ============================================ */

.timeline-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border, #dcdcdc);
}

.timeline-wrapper {
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  /* Cap the timeline at one viewport; scroll within if it grows taller */
  max-height: 80vh;
  overflow-y: auto;
  /* Room so the left bar/dots and card shadows aren't clipped by the scrollbar */
  padding: 0.25rem 0.75rem 0.25rem 0.25rem;
}

/* Slim, themed scrollbar for the timeline */
.timeline-wrapper::-webkit-scrollbar {
  width: 8px;
}

.timeline-wrapper::-webkit-scrollbar-thumb {
  background: rgba(71, 138, 201, 0.35);
  border-radius: 4px;
}

.timeline-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(71, 138, 201, 0.6);
}

/* ============================================
   Footer
   ============================================ */

.footer-main {
  background: var(--color-ink, #333333);
  color: white;
  padding: 2rem;
  text-align: center;
  margin-top: 4rem;
}

.footer-content p {
  margin: 0;
  opacity: 0.8;
  /* Override the global `p { color: #333 }` rule so the copyright text stays
     legible on the dark footer background. */
  color: #ffffff;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
  .page-wrapper {
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .content-column {
    max-width: 100%;
  }
}

@media (max-width: 899px) {
  .page-wrapper {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .profile-sidebar {
    width: 100%;
    position: static;
    max-height: none;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .focus-title,
  .weather-title,
  .timeline-title {
    font-size: 1.2rem;
  }

  .section-intro,
  .hobbies-text,
  .weather-intro {
    font-size: 0.95rem;
  }

  .photo-link-text {
    right: 1.5rem;
  }

  .photo-link {
    padding: 0.8rem;
    font-size: 1rem;
  }

  .focus-list li {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .page-wrapper {
    padding: 0.5rem;
  }

  .section-block {
    padding: 0;
    margin-bottom: 2rem;
  }

  .content-column {
    max-width: 100%;
  }

  .section-heading {
    font-size: 1.3rem;
  }

  .section-heading::after {
    width: 40px;
  }

  .focus-title,
  .weather-title,
  .timeline-title {
    font-size: 1.1rem;
  }

  .section-intro,
  .hobbies-text,
  .weather-intro {
    font-size: 0.9rem;
  }

  .focus-list li {
    font-size: 0.95rem;
    padding-left: 2rem;
  }

  .photo-link-text {
    right: 1rem;
  }

  .photo-link {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    border: 1.5px solid #0f172a;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .photo-card {
    border-radius: 12px;
  }
}

/* ============================================
   Animation
   ============================================ */

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

.section-block {
  animation: fadeIn 0.6s ease-out;
}
