/* =========================
   FONTS
========================= */
@font-face {
  font-family: 'Bright Marching';
  src: url('../fonts/BrightMarching.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Vailery';
  src: url('../fonts/Vailery.otf') format('opentype');
  font-display: swap;
}

/* =========================
   VARIABLES
========================= */
:root {
  --black: #000;
  --white: #fff;
  --light-gray: #f2f2f2;
}

/* =========================
   GLOBAL RESET
========================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Vailery', serif;
  background: var(--white);
  color: var(--black);
}

/* =========================
   HEADER / NAV
========================= */
header {
  background: var(--black);
  border-bottom: 1px solid var(--white);
  padding: 1.5rem 2rem;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.monogram img {
  height: 48px;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
}

nav a:hover {
  text-decoration: underline;
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  padding: 6rem 2rem 4rem;
  text-align: center;
  background: url('../images/eng_1.jpg') center/cover no-repeat;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: 'Bright Marching', serif;
  font-size: 3.2rem;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.9;
}

/* =========================
   CAROUSEL
========================= */
.carousel {
  overflow: hidden;
  margin: 4rem 0;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: scroll 55s linear infinite;
}

.carousel img {
  height: 280px;
  flex-shrink: 0;
  border-radius: 4px;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================
   LOVE STORY
========================= */
main {
  position: relative;
  padding: 6rem 2rem;
  text-align: center;
  background: url('../images/eng1.jpg') center/cover no-repeat;
  color: var(--white);
}

main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

main * {
  position: relative;
  z-index: 1;
}

main h2 {
  font-family: 'Bright Marching', serif;
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
}

main p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.9;
}

/* =========================
   TIMELINE
========================= */
.timeline {
  background: var(--white);
  padding: 5rem 2rem;
}

.timeline-item {
  max-width: 1100px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

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

.timeline-text h3 {
  font-family: 'Bright Marching', serif;
  font-size: 3rem;
  letter-spacing: 0.12em;
}

.timeline-text p {
  font-size: 1.1rem;
}

.timeline-image img {
  width: 100%;
  display: block;
}

/* =========================
   BACK TO TOP
========================= */
.back-to-top {
  display: flex;
  justify-content: center;
  padding: 4rem 2rem 3rem;
}

.back-to-top a {
  text-align: center;
  text-decoration: none;
  color: var(--black);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.back-to-top .arrow {
  font-size: 1.8rem;
}

/* =========================
   FOOTER
========================= */
footer {
  background: var(--black);
  color: var(--white);
  padding: 2rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =========================
   MODAL
========================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal {
  background: var(--black);
  color: var(--white);
  padding: 3rem 2.5rem;
  max-width: 420px;
  text-align: center;
  position: relative;
}

.modal h3 {
  font-family: 'Bright Marching', serif;
  font-size: 2rem;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
