/* =========================
   LANDING / OPENING SCREEN
========================= */

#section-landing {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  overflow: hidden;
}

.landing-image {
  width: 100vw;
  height: 100vh;
  display: block;
  overflow: hidden;
  position: relative;
}

.landing-image img {
  width: 100vw;
  height: 100vh;
  display: block;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 1s ease, filter 1s ease;
}

/* Image scales ONLY when center is hovered */
.landing-image.center-hover img {
  transform: scale(1.05);
  filter: blur(4px);
  transition: transform 0.6s ease, filter 0.6s ease;
  cursor: pointer;
}

/* Your hover text (same spirit as before) */
.hover-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Big Calson';
  font-size: 80px;
  color: rgb(0, 0, 0);
  text-align: center;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* CENTER HOVER ZONE (invisible) */
.hover-zone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 600px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* TEXT BUTTON */
#enter-site {
  font-family: 'Big Calson';
  font-size: 80px;
  color: white;
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ONLY WHEN HOVERING CENTER */
.hover-zone:hover #enter-site {
  opacity: 1;
}

/* CLICK TO OPEN */
body.landing-open #enter-site {
  opacity: 0 !important;
  transition: none;
  pointer-events: none;
}

body.landing-open {
  overflow: auto;
}

/* =========================
   PAGE OPEN STATE
========================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.main-content {
  opacity: O;
  pointer-events: none;
  transition: opacity 1s ease;
}

body.landing-open {
  overflow: auto;
  background-attachment: fixed;
}

body.landing-open #section-landing {
  pointer-events: none;
}

body.landing-open .landing-image img {
  opacity: 0;
}

body.landing-open .hover-text {
  opacity: 0;
}

body.landing-open .main-content {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   RESET & BASE STYLES
========================= */

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

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: transparent;
  color: white;
}

h1 { font-size: 24px; }
h2 { font-size: 18px; }
h3 { font-size: 14px; }
p  { font-size: 16px; }

li { list-style: none; }

a {
  text-decoration: none;
  position: relative;
  z-index: 10;
}

.btn {
  background-color: #ddd;
  border: none;
  color: black;
  padding: 16px 32px;
  border-radius: 5px;
  font-size: 16px;
  margin: 5px 2px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background-color: rgb(80, 80, 80);
  color: white;
}

header {
  background-color: black;
  color: rgb(200,200,200);
  text-align: center;
  padding: 10px 20px;
  margin: 0;
}

footer {
  background-color: black;
  color: rgb(206, 206, 206);
  text-align: left;
  padding: 10px 20px;
  margin: 0;
}

/* =========================
   GENERAL SECTION SPACING
========================= */

section {
  padding-bottom: 10px;
  margin: 0;
}

/* =========================
   GRID SECTION
========================= */

#section-profile {
  padding: 40px 15%;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 250px);
  row-gap: 80px;
  column-gap: 100px;
  justify-content: center;
}

.journal-card {
  position: relative;
  height: 180px;
  overflow: hidden;
  transition: transform 0.3s ease, border 0.3s ease;
}

.card-front {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0);
  color: white;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 0.3s ease;
  text-align: center;
}

.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: black;
  color: white;
  text-align: center;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-front { opacity: 1; }
.card-back { opacity: 0; color: white; }

.journal-card:hover {
  background: black;
  border-color: white;
}

.journal-card:hover .card-front { opacity: 0; }
.journal-card:hover .card-back { opacity: 1; }

.journal-card h1 {
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.6;
}

.journal-card h2 {
  font-size: 16px;
  margin: 5px 0;
}

.journal-card h3 {
  font-size: 13px;
  opacity: 0.7;
}

.journal-card .year {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.5;
}

/* =========================
   PORTFOLIO SECTION
========================= */

.image-gallery {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px;
}

.image-gallery img {
  flex: 1 1 280px;
  max-width: 32%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}

/* =========================
   VIDEO SECTION
========================= */

.video-list {
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
}

.video-item {
  width: 100%;
  max-width: 800px;
  text-align: center;
}

.video-item video {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.video-item h3 {
  margin-top: 20px;        /* more space from video */
  margin-bottom: 10px;     /* breathing space below */
  font-size: 20px;         /* bigger = more presence */
  font-weight: 500;        /* slightly stronger */
  letter-spacing: 1.5px;   /* more refined spacing */
  text-transform: uppercase;
  color: white;
}

.video-item h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: white;
  margin: 10px auto 0;
  opacity: 0.5;
}

/* =========================
   CONTACT SECTION
========================= */

.contact-footer {
  position: relative;
  width: 100%;
  height: 55vh;
  overflow: hidden;
}

.contact-footer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 20%;
  transform: scale(1.2);
  position: absolute;
  top: 0;
  left: 0;
}

.contact-content {
  position: absolute;
  top: 50%;
  left: 20%;
  transform: translateY(-50%);
  color: white;
  text-align: left;
  z-index: 2;
}

.contact-content h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.contact-content p {
  font-size: 16px;
  margin: 3px 0;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.contact-link {
  color: white;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  opacity: 0.85;
  transition: 0.3s;
}

.contact-link:hover {
  opacity: 1;
  text-decoration: underline;
}

#section-contact {
  margin: 0;
  padding: 0;
}

/* =========================
   BACKGROUNG
========================= */

/* BACKGROUND IMAGE */
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: url("photos/DSC_7950bn.jpg") no-repeat;
  background-size: 120%;
  background-position: 27% center;
  background-attachment: scroll;
}

@media screen and (max-width: 768px) {

  /* =========================
     LANDING BYPASS (MOBILE)
  ========================= */

  #section-landing {
    display: none !important;
  }

  html, body {
    height: 100% !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  body {
    overflow: auto !important;
    min-height: 100dvh;

    background-image: url("photos/DSC_7950bn.jpg");
    background-repeat: no-repeat;
    background-size: 300% auto;
    background-position: 44% center;
    background-attachment: fixed;
  }

  .main-content {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.landing-open #section-landing,
  body.landing-open .landing-image img,
  body.landing-open .hover-text {
    display: none !important;
    opacity: 0 !important;
  }

  /* =========================
     GLOBAL MOBILE SPACING
  ========================= */

  section {
    padding-bottom: 20px !important;
  }

  body::before {
    display: none !important;
    content: none;
  }

  /* =========================
     PROFILE / JOURNAL GRID
  ========================= */

  #section-profile {
    padding: 40px 10% !important;
  }

  .journal-grid {
    gap: 40px !important;
  }

  .journal-card {
    background: none !important;
    border: none !important;
    height: auto;
    min-height: unset;
    overflow: visible;
    text-align: center;
    padding: 10px 0;
  }

  /* Disable hover card system → make content visible */
  .card-front,
  .card-back {
    position: static !important;
    padding: 0;
    background: none;
  }

  .card-back {
    opacity: 1 !important;
    display: block !important;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .journal-card h1,
  .journal-card h2,
  .journal-card h3,
  .journal-card p,
  .journal-card .year {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
    text-align: center;
  }

  /* Clean hierarchy */
  .journal-card h2 {
    margin-bottom: 4px;
  }

  /* Ensure paragraph is visible under h2 */
  .journal-card p {
    display: block !important;
    margin-top: 0px;
    background: none;
    box-shadow: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.8;
  }


  /* =========================
     PORTFOLIO
  ========================= */

  .image-gallery {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    gap: 10px;
    overflow-x: auto;
    padding-left: 30px;
    margin: 40px 40px 10px 40px;
  }

  .image-gallery img {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: center;
    height: auto;
  }


  /* =========================
     VIDEO SECTION
  ========================= */

  .video-list {
      gap: 30px;
      padding: 0 15px;
  }
  
  .video-item {
      max-width: 100%;
  }
  
  .video-item h3 {
      font-size: 16px;
      margin-top: 15px;
      letter-spacing: 1px;
  }
  
  .video-item h3::after {
      width: 30px;
      margin: 8px auto 0;
  }
  
  .video-item video {
      border-radius: 8px;
  }

  /* =========================
     CONTACT SECTION
  ========================= */

  .contact-footer img {
    display: none !important;
  }

  .contact-footer {
    height: 250px;
  }

  .contact-content {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 20px;
  }

  .contact-content h1 {
    font-size: 22px;
  }

  .contact-content p {
    font-size: 14px;
  }

  .contact-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-buttons .btn {
    background: none;
    border: none;
    margin: 8px 0;
    padding: 0px;
    color: white;
    text-decoration: underline;
    font-size: 14px;
    display: inline-block;
  }

  .contact-link {
    font-size: 14px;
  }

  /* =========================
     LANDING BUTTON SAFETY
  ========================= */

  #enter-site {
    opacity: 1;
    font-size: 48px;
  }

  /* =========================
     LAYOUT STACKING
  ========================= */

  .container-about,
  .container-contact {
    flex-direction: column;
    height: auto;
  }

  .container-about .image-container,
  .container-about .content-about,
  .container-contact .image-container,
  .container-contact .content-contact {
    width: 100%;
  }

  .content-about,
  .content-contact {
    text-align: center;
    padding: 20px;
  }

  .timeline-event {
    width: 100%;
    left: 0 !important;
    padding-left: 70px;
    margin: 30px 0;
  }

  .left-event .timeline-dot,
  .right-event .timeline-dot {
    left: 30px;
    right: auto;
    transform: translateY(-50%);
  }
}

/* =========================
   SMALLER BREAKPOINTS
========================= */

@media (max-width: 900px) {
  .journal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .journal-grid {
    grid-template-columns: 1fr;
  }
}