/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;                           /* initial tall padding */
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);          /* semi-translucent white */
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: 
    background 0.5s ease, 
    border-bottom-color 0.5s ease, 
    padding 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
}

/* push nav links to the right */
.navbar nav {
  margin-left: auto;
}

/* scrolled state */
.navbar.scrolled {
  background: #2c3e50;                           /* solid navy */
  border-bottom: 3px solid #e67e22;              /* bright orange */
  padding: 0.75rem 2rem;                         /* narrower vertically */
}

/* logo */
.navbar .logo {
  font-weight: 700;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.logo img {
  height: 30px;
  width: auto;
}

/* nav list */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

/* links */
.navbar a {
  position: relative;
  text-decoration: none;
  color: #333;                                   /* dark on light bg */
  font-weight: 500;
  transition: color 0.3s ease;
}

/* hover underline & color */
.navbar a:hover {
  color: #2c3e50;
}
.navbar a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2c3e50;
  transition: width 0.3s ease;
}
.navbar a:hover::after {
  width: 100%;
}

/* override text colors when scrolled */
.navbar.scrolled .logo,
.navbar.scrolled a {
  color: #fff;
}

.navbar.scrolled .logo img {
  filter: brightness(0) invert(1);
}

.navbar.scrolled a:hover {
  color: #e67e22;                                /* orange on hover */
}


/* Hero Section */
.hero {
  margin-top: 140px;
  position: relative;
  text-align: center;
}

.banner {
  width: 100%;
  height: 20vh;
  background: linear-gradient(to right, #2c3e50, #34495e);
}

.hero-content {
  position: relative;
  top: -50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.photo-container {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.name {
  margin-top: 1rem;
  font-size: 2rem;
  font-weight: 700;
}

.subtitle {
  font-family: 'Cormorant+Garamond', serif;
  font-size: 1.1rem;
  color: #555;
  margin-top: 0.5rem;
}

/* Quote Block */
.quote {
  font-family: 'Cormorant+Garamond', serif;
  font-style: italic;
  color: #777;
  margin-top: 1rem;
  font-size: 1rem;
}

/* About Me Section */
.about {
  max-width: 700px;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: left;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about p {
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* ——— SUMMARY TIMELINE ——— */
.timeline-summary {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.timeline-summary h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.timeline-summary-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.timeline-summary .event {
  flex: 1 1 180px;
  text-align: center;
}

.timeline-summary .event-year {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.4rem;
}

.timeline-summary .event-details {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

/* ——— DETAILED TIMELINE ——— */
.timeline-detailed {
  position: relative;
  padding: 4rem 1rem;
  background: #fff;
}

.timeline-detailed h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

/* spine */
.timeline-detailed .timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.timeline-detailed .timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #e67e22;
  transform: translateX(-50%);
}

/* events */
.timeline-detailed .timeline-event {
  position: relative;
  width: 50%;
  padding: 1rem 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.timeline-detailed .timeline-event.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-detailed .timeline-event:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-detailed .timeline-event:nth-child(even) {
  left: 50%;
  text-align: left;
}

/* marker */
.timeline-detailed .marker {
  position: absolute;
  top: 1.5rem;
  right: -10px;
  width: 20px;
  height: 20px;
  background: #2c3e50;
  border: 4px solid #e67e22;
  border-radius: 50%;
}

.timeline-detailed .timeline-event:nth-child(even) .marker {
  left: -10px;
  right: auto;
}

/* content box */
.timeline-detailed .content {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 6px;
  display: inline-block;
  max-width: 300px;
}

.timeline-detailed .event-year {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.timeline-detailed .event-details {
  color: #555;
  line-height: 1.5;
}

/* responsive */
@media (max-width: 768px) {
  .timeline-detailed .timeline-container::before {
    left: 8px;
  }
  .timeline-detailed .timeline-event {
    width: 100%;
    padding-left: 3rem;
    padding-right: 1rem;
    left: 0 !important;
    text-align: left !important;
  }
  .timeline-detailed .marker {
    left: 0;
    right: auto;
  }
}

/* Portfolio Section */
.portfolio {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.portfolio h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* Filter Buttons */
.portfolio-filters {
  text-align: center;
  margin-bottom: 2rem;
}

.portfolio-filters button {
  background: none;
  border: 2px solid #2c3e50;
  color: #2c3e50;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.portfolio-filters button.active,
.portfolio-filters button:hover {
  background: #2c3e50;
  color: #fff;
}

/* Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Items */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.portfolio-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

/* Caption Overlay */
.portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(44,62,80,0.85);
  color: #fff;
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-info {
  transform: translateY(0);
}

.portfolio-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.portfolio-info p {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ==========================
   KEY FIGURES SECTION
========================== */

.stats-section {
  padding: 80px 10%;
  background: #f7f7f7;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.stat-card {
  background: white;
  padding: 35px 25px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #1d3557;
  line-height: 1;
  margin-bottom: 15px;
}

.stat-label {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #444;
}


/* Responsive */

@media (max-width: 900px) {

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

}


@media (max-width: 600px) {

  .stats-container {
    grid-template-columns: 1fr;
  }

  .stats-section {
    padding: 50px 5%;
  }

}

/* ——— HORIZONTAL TIMELINE (RESTORED + NO VERTICAL SCROLL) ——— */
.timeline-horizontal {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.timeline-horizontal h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.timeline-horizontal-container {
  position: relative;
  display: flex;
  align-items: center;           /* center events on the spine */
  overflow-x: auto;              /* only horizontal scroll */
  overflow-y: hidden;            /* prevent any vertical scroll */
  padding: 6rem 1rem;               /* extra space for offsets + pop-ups */
  scrollbar-width: none;         /* hide scrollbar in Firefox */
  -ms-overflow-style: none;      /* hide scrollbar in IE10+ */
}
.timeline-horizontal-container::-webkit-scrollbar {
  display: none;                 /* hide scrollbar in Chrome/Safari */
}

/* orange spine */
.timeline-horizontal-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  background: #e67e22;
  transform: translateY(-50%);
  z-index: 1;
}
.timeline-horizontal-container::before {
  width: var(--timeline-width);
}

/* each event slot */
.timeline-horizontal-event {
  position: relative;
  flex: 0 0 auto;
  width: 100px;
  margin: 0 1rem;
  text-align: center;
  z-index: 2;
  overflow: visible;             /* don’t clip the pop-ups */
}

/* stagger with pixel-perfect offsets */
.timeline-horizontal-event:nth-of-type(odd) {
  transform: translateY(-50px);
}
.timeline-horizontal-event:nth-of-type(even) {
  transform: translateY(50px);
}

/* dot marker */
.timeline-horizontal-event .dot {
  width: 20px;
  height: 20px;
  background: #2c3e50;
  border: 4px solid #e67e22;
  border-radius: 50%;
  margin: 0 auto;
}

/* year label */
.timeline-horizontal-event .year {
  margin-top: 0.5rem;
  font-weight: 700;
  color: #2c3e50;
}

/* hidden description */
.timeline-horizontal-event .desc {
  position: absolute;
  left: 50%;
  white-space: nowrap;
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3;
}

/* position pop-up just outside the dot */
.timeline-horizontal-event:nth-of-type(odd) .desc {
  bottom: 100%;
  transform: translate(-50%, -10px);
}
.timeline-horizontal-event:nth-of-type(even) .desc {
  top: 100%;
  transform: translate(-50%, 10px);
}

/* reveal on hover */
.timeline-horizontal-event:hover .desc {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
/* keep first popup inside the left edge */
.timeline-horizontal-event:first-child .desc {
  left: 0;
  transform: translate(0, -10px);
}

/* keep last popup inside the right edge */
.timeline-horizontal-event:last-child .desc {
  left: auto;
  right: 0;
  transform: translate(0, -10px);
}

/* preserve hover movement */
.timeline-horizontal-event:first-child:hover .desc,
.timeline-horizontal-event:last-child:hover .desc {
  transform: translate(0, 0);
}
/* mobile fallback: stack & always show desc */
@media (max-width: 600px) {
  .timeline-horizontal-event {
    width: 120px;
    margin: 0 1rem;
    transform: translateY(0) !important;
  }
  .timeline-horizontal-event .desc {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-top: 0.5rem;
    background: none;
    box-shadow: none;
    white-space: normal;
  }
}

.about-collage {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ——— COLLAGE ——— */
.about-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  text-align: center;
}

.cutout {
  position: absolute;
  width: 500px;
  height: auto;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,.15));
}

.cutout-1 {
  left: 5%;
  top: 300px;
  transform: rotate(-8deg);
}

.cutout-2 {
  right: 8%;
  top: 30px;
  transform: rotate(7deg);
}

.cutout-3 {
  left: 10%;
  top: 70px;
  transform: rotate(-13deg);
}

.cutout-4 {
  right: 8%;
  top: 250px;
  transform: rotate(-5deg);
}

/* AVAILABLE FOR */


.availability {
    padding: 80px 10%;
    display: flex;
    justify-content: center;
}

.availability-box {
    max-width: 750px;
    width: 100%;
    text-align: center;
}

.availability-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.availability-heading span {
    flex: 1;
    height: 1px;
    background: #cfcfcf;
    max-width: 180px;
}

.availability-heading h2 {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.availability-box ul {
    list-style: none;
    padding: 0;
    margin: 0;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 40px;
}

.availability-box li {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
  max-width: 600px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.contact h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

#pingForm .form-group {
  margin-bottom: 1.25rem;
}

#pingForm label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #2c3e50;
}

#pingForm input,
#pingForm textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

#pingForm input:focus,
#pingForm textarea:focus {
  outline: none;
  border-color: #e67e22;
}

#pingForm button {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: #2c3e50;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

#pingForm button:hover {
  background: #e67e22;
}

/* Honeypot: hide visually but keep in DOM */
.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

/* Collapse/Expand Wrapper */
.contact {
  border-top: 1px solid #ddd;
  margin: 4rem auto;
  max-width: 600px;
  padding: 0 1rem;
}

/* Toggle Header */
.contact-toggle {
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 2rem;
  font-weight: 500;
  padding: 1rem 0;
  color: #2c3e50;
  border-bottom: 1px solid #ccc;
}

/* Icon flip */
.toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Hidden Form Content by Default */
.contact-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* Expanded State */
.contact.open .contact-content {
  max-height: 1000px;   /* big enough to show full form */
}

/* Rotate Icon when Open */
.contact.open .toggle-icon {
  transform: rotate(180deg);
}

/* ==========================
   MOBILE IMPROVEMENTS
========================== */

@media (max-width: 768px) {

  /* NAVBAR */
  .navbar {
    padding: 0.8rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .navbar nav {
    margin-left: 0;
    width: 100%;
  }

  .navbar ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
  }

  .navbar a {
    font-size: 0.9rem;
  }

  .logo img {
    height: 26px;
  }


  /* HERO */
  .hero {
    margin-top: 120px;
  }

  .banner {
    height: 18vh;
  }

  .photo-container {
    width: 120px;
    height: 120px;
  }

  .subtitle {
    padding: 0 1rem;
    font-size: 1rem;
  }

  .quote {
    padding: 0 1.5rem;
    font-size: 0.95rem;
  }

@media (max-width: 600px) {
  /* HORIZONTAL TIMELINE */
  .timeline-horizontal-container {
    display: block;
    padding: 1rem 0;
    overflow: visible;
  }

  .timeline-horizontal-container::before {
    left: 8px;
    top: 0;
    bottom: 0;
    width: 4px;
    height: auto;
    transform: none;
  }

  .timeline-horizontal-event,
  .timeline-horizontal-event:nth-of-type(odd),
  .timeline-horizontal-event:nth-of-type(even) {
    width: 100%;
    margin: 0;
    padding: 1rem 1rem 1rem 2.5rem;
    transform: none;
    text-align: left;
  }

  .timeline-horizontal-event .dot {
    position: absolute;
    left: 0;
    top: 1.2rem;
  }

  .timeline-horizontal-event .year {
    margin-top: 0;
  }

  .timeline-horizontal-event .desc {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    white-space: normal;
    margin-top: 0.5rem;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }

  .timeline-horizontal-event:nth-of-type(odd) .desc,
  .timeline-horizontal-event:nth-of-type(even) .desc {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    opacity: 1;
    white-space: normal;
    margin-top: 0.5rem;
    background: none;
    box-shadow: none;
    padding: 0;
  }
 
}

/* Touch devices: popup behaves like hover */
@media (hover: none) and (pointer: coarse) {

  .timeline-horizontal-event.show-desc .desc {
    opacity: 1;
    pointer-events: auto;
  }

  .timeline-horizontal-event.show-desc:nth-of-type(odd) .desc {
    transform: translate(-50%, 0);
  }

  .timeline-horizontal-event.show-desc:nth-of-type(even) .desc {
    transform: translate(-50%, 0);
  }

  .timeline-horizontal-event.show-desc:first-child .desc,
  .timeline-horizontal-event.show-desc:last-child .desc {
    transform: translate(0, 0);
  }

}


  /* PORTFOLIO FILTER BUTTONS */
  .portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .portfolio-filters button {
    margin: 0;
    padding: 0.5rem 0.8rem;
  }


  /* COLLAGE */
.about-collage {
  min-height: auto;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
}

  .about-collage a {
    display: block;
    width: 100%;
    text-align: center;
  }
  
.cutout {
  position: relative;
  width: 90%;
  max-width: 350px;
  height: auto;
  margin: 1rem auto;
  left: auto;
  right: auto;
  top: auto;
  transform: none;
}

.cutout-1,
.cutout-2,
.cutout-3,
.cutout-4 {
  left: auto;
  right: auto;
  top: auto;
  transform: none;
}


  /* AVAILABILITY */
  .availability {
    padding: 50px 5%;
  }

  .availability-box ul {
    grid-template-columns: 1fr;
  }


  /* CONTACT */
  .contact {
    margin: 3rem auto;
  }

}