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

body {
  font-family: 'Poppins', sans-serif;
  background: #0f0f0f;
  color: #fff;
  line-height: 1.5;
  overflow-x: hidden;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 20px 10vw;
  z-index: 100;
  background: rgba(15,15,15,0.85);
  backdrop-filter: blur(6px);
}

.logo {
  font-weight: 800;
  font-size: 24px;
}

nav a {
  margin-left: 30px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ff2a2a;
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding: 0 10vw;
}

.hero-left, .hero-right {
  flex: 1;
}

.hero-left img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  transition: transform 0.2s ease-out;
}

.hero-right h1 {
  font-size: 72px;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-right p {
  font-size: 20px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}


/* SECTIONS */
.section {
  min-height: 80vh;
  padding: 120px 10vw;
  opacity: 0;
  transform: translateY(40px);
}

/* PROJECT CARDS */
.project {
  margin-top: 20px;
  padding: 30px;
  align-items: center;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.project:hover {
  box-shadow: 0 20px 40px rgba(255,0,0,0.35);
}

/* EXTRA INFO FOR PROJECTS / TIMELINE */
.extra-info {
  max-height: 0;
  overflow: hidden;
  align-items: center;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  margin-top: 15px;
}

.project.expanded .extra-info,
.milestone.expanded .extra-info {
  max-height: 300px; /* adjust for content */
  opacity: 1;
}

/* TIMELINE */
.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.timeline-track {
  display: flex;
  flex-direction: column; /* vertical now */
  gap: 30px;
}

/* TIMELINE CARDS */
.milestone {
  min-width: 280px;
  padding: 30px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.milestone img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 15px;
}

.milestone h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.milestone p {
  font-size: 14px;
  opacity: 0.8;
}

.milestone:hover {
  box-shadow: 0 20px 40px rgba(255,0,0,0.4);
}

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

.cinematic-contact {
  text-align: center;
  padding: 160px 10vw;
  max-width: 1000px;
  margin: 0 auto;
}

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

.contact-media {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Video */

.promo-video {
  width: 100%;
  max-width: 750px;
  border-radius: 25px;
  box-shadow: 0 30px 70px rgba(255,0,0,0.25);
  transition: 0.4s ease;
}

.promo-video:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 50px rgba(255,44,44,0.5);
}

/* Button */

.contact-btn {
  display: inline-block;
  padding: 18px 50px;
  background: #ff2c2c;
  color: #fff;
  font-weight: 600;
  letter-spacing: 2px;
  text-decoration: none;
  border-radius: 50px;
  transition: 0.4s ease;
  box-shadow: 0 0 25px rgba(255,44,44,0.3);
}

.contact-btn:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 0 45px rgba(255,44,44,0.7);
}

/* ============================= */
/* CINEMATIC ABOUT SECTION */
/* ============================= */

.cinematic {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.chapter-label {
  font-size: 12px;
  letter-spacing: 4px;
  color: #ff2c2c;
  margin-bottom: 20px;
}

.cinematic-title {
  font-size: 72px;
  font-weight: 300;
  margin-bottom: 20px;
}

.cinematic-sub {
  max-width: 750px;
  margin: 0 auto 60px;
  font-size: 18px;
  color: rgba(255,255,255,0.7);
}

/* Cards Layout */

.cinematic-cards {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: -40px;
  margin-bottom: 60px;
  perspective: 1000px;
}

.cine-card {
  width: 200px;
  height: 320px;
  overflow: hidden;
  border-radius: 20px;
  transform: rotate(-5deg);
  transition: 0.4s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.cine-card:nth-child(2) { transform: rotate(-2deg); }
.cine-card:nth-child(3) { transform: rotate(0deg); }
.cine-card:nth-child(4) { transform: rotate(2deg); }
.cine-card:nth-child(5) { transform: rotate(5deg); }

.cine-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hover Effect */
.cine-card:hover {
  transform: rotate(0deg) scale(1.05);
  z-index: 10;
}

/* Cinematic About Section */

.cinematic-about {
  text-align: center;
  padding: 140px 10vw;
}

.chapter-label {
  font-size: 12px;
  letter-spacing: 6px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.cinematic-title {
  font-size: 70px;
  font-weight: 600;
  margin-bottom: 25px;
}

.cinematic-subtext {
  max-width: 700px;
  margin: 0 auto 80px auto;
  font-size: 18px;
  color: rgba(255,255,255,0.7);
}

/* Vertical Stats */

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

.stat {
  text-align: center;
  width: 250px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.stat:last-child {
  border-bottom: none;
}

.stat h3 {
  font-size: 50px;
  font-weight: 600;
  margin-bottom: 8px;
}

.stat span {
  font-size: 12px;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.6);
}

/* ============================= */
/* CINEMATIC VIDEOS SECTION */
/* ============================= */

.cinematic-videos {
  text-align: center;
  padding: 140px 10vw;
  max-width: 1200px;
  margin: 0 auto;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 60px;
  margin-top: 60px;
}

/* Video Card */
.video-card {
  transition: 0.4s ease;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Video Info */
.video-info {
  margin-top: 20px;
}

.video-info h3 {
  font-size: 22px;
  margin-bottom: 10px;
  transition: 0.3s ease;
}

.video-info p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
}

/* Hover Effects */
.video-card:hover {
  transform: translateY(-8px);
}

.video-card:hover h3 {
  color: #ff2c2c;
  text-shadow: 0 0 15px rgba(255,44,44,0.5);
}

/* ============================= */
/* CINEMATIC PROJECTS SECTION */
/* ============================= */

.cinematic-projects {
  text-align: center;
  padding: 140px 10vw;
  max-width: 1200px;
  margin: 0 auto;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 60px;
  margin-top: 60px;
}

/* Project Card */
.project-card {
  transition: 0.4s ease;
  cursor: pointer;
}

.project-image {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.project-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: 0.4s ease;
}

.project-info {
  margin-top: 20px;
}

.project-info h3 {
  font-size: 22px;
  margin-bottom: 10px;
  transition: 0.3s ease;
}

.project-info p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
}

/* Hover Effects */
.project-card:hover {
  transform: translateY(-8px);
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card:hover h3 {
  color: #ff2c2c;
  text-shadow: 0 0 15px rgba(255,44,44,0.5);
}

/* ============================= */
/* CINEMATIC TIMELINE SECTION */
/* ============================= */

.cinematic-timeline {
  text-align: center;
  padding: 140px 10vw;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-vertical {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  position: relative;
}

/* Vertical Line */
.timeline-vertical::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,0.1);
}

.timeline-item {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Year */
.timeline-year {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -25px;
  font-size: 14px;
  letter-spacing: 3px;
  color: #ff2c2c;
}

/* Card */
.timeline-card {
  width: 400px;
  padding: 30px;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  transition: 0.4s ease;
  cursor: pointer;
}

.timeline-card h3 {
  margin-bottom: 10px;
}

.timeline-card p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

/* Hover Glow */
.timeline-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(255,44,44,0.4);
}

/* Hide Extra Info */
.extra-info {
  max-height: 0;
  overflow: hidden;
  transition: 0.4s ease;
}

.timeline-card.active .extra-info {
  max-height: 200px;
  margin-top: 15px;
}

.extra-info {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.timeline-card.active .extra-info {
  max-height: 400px;
  opacity: 1;
  margin-top: 15px;
}

.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.editor-section {
  min-height: 100vh;
  display: flex;
  justify-content: center;   /* horizontal center */
  align-items: center;       /* vertical center */
  padding: 120px 20px;
  text-align: center;
}


.editor-container {
  width: 100%;
  max-width: 700px;
}


.editor-title {
  font-size: 42px;
  margin-bottom: 10px;
  text-transform: lowercase;
}

.editor-subtext {
  opacity: 0.7;
  margin-bottom: 40px;
}

.editor-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left; /* keeps form readable */
}


.editor-form label {
  font-weight: 600;
}

.editor-form input,
.editor-form select,
.editor-form textarea {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: white;
  font-size: 14px;
}

/* Improve select dropdown appearance */
.editor-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;

  /* Custom arrow */
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

/* Dark dropdown options */
.editor-form select option {
  background: #111;
  color: white;
}


.editor-form input:focus,
.editor-form select:focus,
.editor-form textarea:focus {
  outline: none;
  border-color: #ff2a2a;
}

.editor-submit {
  margin-top: 20px;
  padding: 15px;
  border-radius: 40px;
  border: none;
  background: #ff2a2a;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
  align-self: center;
  width: 220px;
}

.editor-submit:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255,42,42,0.4);
}

/* MOBILE HERO FIX — PHONES ONLY */
@media screen and (max-width: 600px) {

  .hero {
    display: flex;
    flex-direction: column !important; /* force vertical */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
  }

  .hero-left,
  .hero-right {
    flex: none !important;
    width: 100%;
  }

  .hero-left {
    order: 1;              /* image first */
    margin-bottom: 30px;
  }

  .hero-right {
    order: 2;              /* text second */
    align-items: center;
  }

  .hero-left img {
    width: 90%;
    max-width: 420px;
  }

  .hero-right h1 {
    font-size: 48px;
  }

  .hero-right p {
    font-size: 18px;
  }

}
