/* --- RESET --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; 
}

/* --- TYPOGRAPHY & HEADERS --- */
.title {
  color: rgba(255, 255, 255, 0.8);
  font-family: "the-seasons", sans-serif; 
  font-size: 1.7rem; 
  font-weight: 800; 
  text-align: center; 
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  letter-spacing: 1px;
}

.sub-header {
  color: rgba(255, 255, 255, 0.7);
  font-family: "the-seasons", sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  text-align: center;
  margin-top: 10px;
  letter-spacing: 1px;
  max-width: 800px;
  line-height: 1.5;
}

/* --- NAVIGATION STYLES --- */
.top-nav { 
  position: fixed; 
  top: 30px; 
  left: 0; 
  width: 100%; 
  padding: 0 5%; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  z-index: 9999; 
  box-sizing: border-box; 
  pointer-events: none; 
}

.nav-left { pointer-events: auto; }
.nav-right { display: flex; gap: 30px; pointer-events: auto; }

.nav-brand { 
  color: white; 
  font-family: "the-seasons", sans-serif; 
  font-size: 2.5rem; 
  font-weight: 700; 
  text-decoration: none; 
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); 
  transition: opacity 0.3s ease; 
}

.nav-item { 
  color: white; 
  font-family: "the-seasons", sans-serif; 
  font-size: 1.2rem; 
  font-weight: 400; 
  text-decoration: none; 
  justify-content: space-between;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); 
  cursor: pointer; 
  transition: opacity 0.3s ease; 
}

.nav-item:hover { opacity: 0.7; }

.nav-bg-gradient { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 120px; 
  background: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 100%); 
  z-index: 9998; 
  pointer-events: none; 
}

/* --- UNIVERSAL MASONRY GALLERY (For Home, Games, Photography) --- */
#photo-container-01 {
  height: auto;
  padding: 150px 20px 50px 20px; 
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: black;
  gap: 10px;
}

#photo-container-02 {
  min-height: 100vh;
  width: 100%;
  background-color: black;
  padding: 50px 20px;
  display: flex;
  justify-content: center;
}

.photo-masonry {
  column-count: 5; 
  column-gap: 10px; 
  width: 100%;
  max-width: 1600px;
  padding-bottom: 50px;
}

.photo-item {
  break-inside: avoid; 
  margin-bottom: 10px; 
  position: relative;
  overflow: hidden;
  border: 4px solid transparent; 
  box-sizing: border-box; 
  cursor: pointer;
}

.photo-item img {
  width: 100%;
  height: auto; 
  display: block;
  transition: transform 0.5s ease;
}

.photo-overlay {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 20px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
}

.overlay-text { text-align: center; width: 100%; }
.overlay-text h3 {
  color: white; font-family: "the-seasons", sans-serif;
  font-size: 1.2rem; margin-bottom: 5px; text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.overlay-text p {
  color: rgba(255, 255, 255, 0.9); font-family: sans-serif;
  font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase;
}

.photo-item:hover .photo-overlay { opacity: 1; transform: translateY(0); }
.photo-item:hover img { transform: scale(1.03); }

@media (max-width: 1200px) { .photo-masonry { column-count: 3; } }
@media (max-width: 768px) { .photo-masonry { column-count: 2; } }
@media (max-width: 480px) { .photo-masonry { column-count: 1; } }

/* --- ARCHITECTURAL SPLIT LAYOUT --- */
.arch-project {
  display: flex; 
  width: 100%;
  min-height: 100vh;
  position: relative;
  background-color: black;
  border-top: 1px solid rgba(255, 255, 255, 0.1); 
  box-sizing: border-box;
}

.arch-info {
  width: 35%; 
  height: 100vh; 
  position: sticky; 
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
  padding: 100px 40px; 
  box-sizing: border-box;
  z-index: 5;
}

.arch-info h3 {
  color: white;
  font-family: "the-seasons", sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.1;
  text-transform: uppercase;
}

.arch-info p {
  color: rgba(255, 255, 255, 0.7);
  font-family: sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
  margin-bottom: 20px;
}

.arch-gallery {
  width: 75%; 
  padding: 40px 20px 40px 0; 
}

.arch-gallery .photo-masonry {
  width: 100%;
  column-count: 2; 
}

@media (max-width: 768px) {
  .arch-project { flex-direction: column; }
  .arch-info {
    width: 100%;
    height: auto;
    position: relative; 
    padding: 50px 20px 20px 20px;
  }
  .arch-gallery { width: 100%; padding: 10px; }
  .arch-gallery .photo-masonry { column-count: 1; }
}

.gallery-hero {
  width: 100%;
  margin-bottom: 10px; 
  position: relative;
  overflow: hidden;
  cursor: default;
}

.gallery-hero img { width: 100%; height: auto; display: block; }
.gallery-hero .photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  display: flex;
  justify-content: center;
}
.gallery-hero:hover .photo-overlay { opacity: 1; transform: translateY(0); }

/* --- ABOUT PAGE TIMELINE --- */
#about-container-01 {
  height: 100vh; 
  width: 100%;
  position: relative; 
  display: flex;
  flex-direction: column;
  justify-content:center;
  align-items: center;
  z-index: -3;
  background-color: black;
  gap: 10px;
}

#about-container-02 {
  min-height: 100vh; 
  height: auto;      
  width: 100%;
  position: relative; 
  display: flex;
  justify-content: center;
  align-items: flex-start; 
  z-index: -2;
  background-color: black;
  padding-bottom: 100px; 
}

.timeline-section {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  gap: 80px; 
}

.timeline-section::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: rgb(255, 255, 255);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  position: relative;
  width: 100%;
  opacity: 0; 
  transform: translateY(50px);
}

.timeline-content {
  width: 45%; 
  color: white;
  padding: 20px;
  background: rgba(20, 20, 20, 0.8); 
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-content img { width: 100%; margin-top: 15px; display: block; }

div.timeline-item:nth-of-type(odd) { justify-content: flex-start; }
div.timeline-item:nth-of-type(odd)::after {
  content: ''; position: absolute; right: 50%; top: 50px; width: 30px; height: 2px; background: white;
}

div.timeline-item:nth-of-type(even) { justify-content: flex-end; }
div.timeline-item:nth-of-type(even)::after {
  content: ''; position: absolute; left: 50%; top: 50px; width: 30px; height: 2px; background: white;
}

.timeline-year-divider {
  width: 100%; display: flex; justify-content: center; position: relative; z-index: 2; margin: -20px 0; 
}
.timeline-year-divider span {
  background-color: black; color: white; padding: 20px 0; font-family: "the-seasons", sans-serif; font-size: 1.5rem; letter-spacing: 2px;
}

/* --- CONTACT PAGE --- */
#contact-container-01 {
  height: 100vh; 
  width: 100%;
  position: relative; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1; 
  background-color: black;
  gap: 10px;
}

.social-links { display: flex; gap: 20px; margin-top: 30px; z-index: 10; }
.social-btn {
  display: flex; justify-content: center; align-items: center; width: 60px; height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 6px; color: white; font-size: 1.2rem;
  text-decoration: none; transition: all 0.3s ease;
}
.social-btn:hover { background-color: white; color: black; transform: translateY(-3px); border-color: white; }



/* --- VIDEO GRID (Games & Films - Grid Layout) --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 40px 30px; 
  width: 100%;
  max-width: 1600px;
  padding-bottom: 50px;
}

.video-item {
  display: flex;
  flex-direction: column;
  gap: 15px; 
}

/* Native HTML5 Video Styling */
.video-item video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* Forces the box to be 16:9 even before the video fully loads */
  object-fit: cover; /* Ensures the video fills the box perfectly without stretching */
  display: block;
  background-color: #111; /* Dark placeholder while loading */
}

/* Text placed directly under individual videos */
.video-info {
  text-align: left;
}

.video-info h3 {
  color: white;
  font-family: "the-seasons", sans-serif;
  font-size: 1.3rem;
  margin-top: 2px;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.video-info p {
  color: rgba(255, 255, 255, 0.6);
  font-family: sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* Responsive adjustments */
@media (max-width: 1024px) { 
  .video-grid { grid-template-columns: repeat(2, 1fr); } 
}
@media (max-width: 768px) { 
  .video-grid { grid-template-columns: 1fr; } 
}

/* --- FOOTER & UTILS --- */
.end-page {
  width: 100%; 
  min-height: 15vh; 
  background-color: black; 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: space-between; 
  align-items: center; 
  /* The 4 numbers represent: top right bottom left */
  padding: 40px 5% 80px 5%; 
  z-index: 10; 
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05); 
}

/* 1. Force Center to the Top Row */
.footer-center { 
  width: 100%; /* Makes it span the entire width */
  display: flex; 
  justify-content: center; 
  order: 1; /* Tells the browser to render this first */
  margin-bottom: 30px; /* Space between the button and the bottom row */
}

/* 2. Push Left and Right to the Bottom Row */
.footer-left { 
  display: flex;
  justify-content: flex-start; 
  order: 2; /* Renders second (bottom left) */
}

.footer-right { 
  display: flex;
  justify-content: flex-end; 
  order: 3; /* Renders third (bottom right) */
}

/* Footer Elements */
.footer-social-links { display: flex; gap: 15px; }

.footer-social-links .social-btn { margin-top: 0; width: 45px; height: 40px; } 

.back-to-top-btn {
  color: white; font-family: "the-seasons", sans-serif; font-size: 1rem; font-weight: 400; text-decoration: none; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: opacity 0.3s ease;
}

.back-to-top-btn:hover { opacity: 0.5; }

.footer-email {
  color: white;
  font-family: sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 1px;
  transition: opacity 0.3s ease;
}

.footer-email:hover { opacity: 0.7; }

/* Responsive Mobile Layout: Stacks everything straight down the center */
@media (max-width: 768px) {
  .end-page {
    flex-direction: column;
    padding: 40px 20px;
    gap: 25px;
  }
  .footer-center {
    margin-bottom: 0; 
  }
}

.scroll-arrow {
  color: white; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); font-family: "the-seasons", sans-serif; font-size: 2vw; font-weight: 400; text-align: center; text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}


/* =========================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================= */

/* --- IPAD / TABLET (Max Width: 1024px) --- */
@media (max-width: 1024px) {
  .nav-brand { font-size: 2rem; }
  .nav-item { font-size: 1rem; }
  .nav-right { gap: 20px; }
  
  .arch-info { padding: 80px 30px; }
  .arch-info h3 { font-size: 2rem; }
}

/* --- IPHONE / MOBILE (Max Width: 768px) --- */
@media (max-width: 768px) {
  /* Navigation Stacking */
  .top-nav {
    flex-direction: column;
    top: 20px;
    gap: 15px;
  }
  .nav-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  .nav-brand { font-size: 1.8rem; }
  .nav-item { font-size: 0.85rem; }

  /* Push content down to account for the taller stacked nav */
  #photo-container-01, #about-container-01, #contact-container-01 {
    padding-top: 180px; 
  }

  /* Typography Scaling */
  .title { font-size: 1.4rem; }
  .sub-header { font-size: 0.95rem; padding: 0 10px; }
  
  /* Scroll Arrow */
  .scroll-arrow { font-size: 1.5rem; }

  /* Architecture Page Tweaks */
  .arch-info { padding: 20px 20px 0 20px; }
  .arch-info h3 { font-size: 1.8rem; }
  
  /* Timeline Fix: Move the center line to the left edge */
  .timeline-section::before { left: 20px; }
  .timeline-content { width: calc(100% - 60px); margin-left: auto; }
  div.timeline-item:nth-of-type(odd), div.timeline-item:nth-of-type(even) { justify-content: flex-end; }
  div.timeline-item:nth-of-type(odd)::after, div.timeline-item:nth-of-type(even)::after {
    left: 20px; right: auto; width: 20px;
  }
  .timeline-year-divider { justify-content: flex-start; padding-left: 10px; }
}

/* --- SMALL MOBILE (Max Width: 480px) --- */
@media (max-width: 480px) {
  .nav-right { gap: 10px; }
  .nav-item { font-size: 0.75rem; }
}