/* Basic Reset and Font */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
  background-color: #f5f3ed;
  color: #333;
  scroll-behavior: smooth;
}

/* Snap Scrolling for Sections */
html {
  scroll-snap-type: y mandatory;
}
section {
  scroll-snap-align: start;
}

/* Transparent Sticky Header */
.header {
  display: none !important;
}

#header-2 {
  background-color: rgb(214, 214, 209);
  position: relative;
  padding: 2vh;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

#header-2 .video-overlay {
  position: absolute;
  right: 13%;
  left: auto;
  top: 50%;
  transform: translateY(-150px) translateY(-50%);
  opacity: 0;
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
  color: white !important;
  text-align: right;
}

.header.hidden {
  opacity: 0;
  pointer-events: none;
}

.header .logo {
  font-size: 2rem;
  text-decoration: none;
  color: inherit;
}

.header .nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;  /* Reduced from 15px margin */
  margin: 0 15px;
}

.header .nav-menu a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  transition: color 0.3s ease;
}
/* Section 1: Full-Screen Video */
.header-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  margin-top: 0;
  padding-top: 0;
}

.header-section video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 115%;
  min-height: 115%;
  width: auto;
  height: auto;
  object-fit: cover;
  transition: opacity 0.3s ease-out;
}

.header-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.video-overlay {
  position: absolute;
  top: 50%;
  left: 13%;
  transform: translateY(-50%);
  z-index: 2;
  color: white;
  max-width: 530px;
}

.video-overlay.visible {
  opacity: 1;
  transform: translateY(-50%);
}

#header-2 .video-overlay {
  position: absolute;
  right: 13%;
  left: auto;
  top: 50%;
  transform: translateY(-150px) translateY(-50%);
  opacity: 0;
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
  color: white !important;
  text-align: right;
}

#header-2 .video-overlay.visible {
  opacity: 1;
  transform: translateY(-50%);
}

.video-overlay h1,
.video-overlay h2,
.video-overlay p {
  margin: 0;
  padding: 0;
}

.video-overlay h1 {
  font-size: 5rem;
  font-weight: 700;
}

.video-overlay h2 {
  font-size: 2rem;
  font-weight: bold;
}

.video-overlay p {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 10px 0 0;
}

/* CTA Button Styles */
.cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  z-index: 10;
}

.cta-button {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
  z-index: 10;
}

.cta-button-primary {
  background-color: #FF6B00;
  color: white;
}

.cta-button-primary:hover {
  background-color: #E65000;
}

/* Section 3: Video Grid */
#work {
  height: 100vh;
  background-color: rgb(214, 214, 209);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2vh;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  margin-top: 0;
  padding-top: 0;
}

.work-title {
  font-size: min(calc((100vw - 4vh) / 6), calc((100vh - 150px) / 4));
  font-weight: bold;
  color: rgb(0, 0, 0);
  font-family: 'Inter', sans-serif;
  line-height: 0.8;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
  user-select: none;
  transform: translateX(-10px);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-title.visible {
  transform: translateX(0);
}

#videoGrid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0.3vh;
  padding: 0.3vh;
}

#videoGridMobile {
  display: none;
}

.video-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(30%) saturate(50%);
  transition: filter 0.3s, transform 0.3s;
  border-radius: 10px;
}

.video-card:hover img {
  filter: grayscale(0%) saturate(100%);
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  transition: transform 0.2s ease;
  z-index: 2;
}

.play-btn svg {
  width: 40px;
  height: 40px;
  fill: white;
}

.video-card:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.2);
}

/* Customize scrollbar */
#videoGrid::-webkit-scrollbar {
  width: 5px;
}

#videoGrid::-webkit-scrollbar-track {
  background: transparent;
}

#videoGrid::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

/* Services Section */
.services-section {
  min-height: 100vh;
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  box-sizing: border-box;
  justify-content: space-between;
  width: 100%;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.service-row {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

.service-block {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.service-block::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-image: inherit;
  transition: transform 0.3s ease;
  z-index: 0;
}

.service-block::before {
  display: none;
}

.service-block:hover::before {
  background-color: rgba(0, 0, 0, 0.1);
}

.service-content {
  position: absolute;
  bottom: 15%;
  left: 70px;
  right: 60px;
  text-align: left;
  color: white;
  opacity: 1;
  z-index: 2;
}

.text-content {
  position: relative;
}

.service-content h3 {
  font-size: 5rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: white;
  font-family: 'Inter', sans-serif;
  line-height: 1;
  text-transform: none;
  letter-spacing: -0.02em;
}

.service-content p {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 10px 0;
  max-width: 80%;
  font-family: 'Inter', sans-serif;
  text-transform: none;
  letter-spacing: normal;
}

.service-block .cta-button {
  position: absolute;
  bottom: 10%;
  left: 70px;
  padding: 12px 24px;
  border: 2px solid white;
  color: white;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: bold;
  background: transparent;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  width: fit-content;
  display: inline-block;
  z-index: 3;
}

.service-block:hover .cta-button {
  background-color: white;
  color: black;
  transform: scale(1.1);
}


/* Contact Section */
.contact-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.contact-buttons .cta-button {
  min-width: 150px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .services-section h2 {
    font-size: 1.5rem;
  }
  .service-options div {
    font-size: 1.2rem;
  }
  .footer-overlay {
    font-size: 1.5rem;
  }
  #videoGrid {
    grid-template-columns: 1fr;
    gap: 0.3vh;
    padding: 0.3vh;
  }
  #videoGridMobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.3vh;
    padding: 0.3vh;
  }
  .video-card {
    height: 33vh;
    width: 100%;
  }
  .work-title {
    font-size: min(calc((100vw - 4vh) / 4), calc((100vh - 150px) / 5));
    line-height: 0.9;
    max-width: 95vw;
  }
  .header .nav-menu {
    gap: 15px;
  }
  .header .logo {
    font-size: 1.5rem;
  }
  #contact .contact-info {
    left: 2vh;
  }
  #contact .contact-message {
    font-size: 1.4rem;
    left: 2vh;
  }
  .contact-title {
    font-size: calc((100vw - 4vh) / 3 * 0.35);
  }
  #videoGrid {
    max-height: 75vh;
  }
  #work {
    padding: 1vh;
  }
  #work-2 .work-title {
    display: none;
  }
  #work-2 {
    padding-top: 0;
  }
}

#header-2 .video-overlay {
  position: absolute;
  right: 13%;
  left: auto;
  top: 50%;
  transform: translateY(-150px) translateY(-50%);
  opacity: 0;
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
  color: white !important;
  text-align: right;
}

#header-2 .video-overlay.visible {
  opacity: 1;
  transform: translateY(-50%);
}

#contact {
  height: 100vh;
  background-color: black;
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 6vh 4vh;
  box-sizing: border-box;
  overflow: hidden;
  margin-top: 0;
}

#contact .noise-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  z-index: 0;
}

#contact .contact-title,
#contact .contact-message,
#contact .contact-info {
  position: relative;
  z-index: 1;
}

.contact-title {
  font-size: calc((100vw - 4vh) / 3 * 0.44);
  font-weight: bold;
  color: #FF6B00;
  font-family: 'Inter', sans-serif;
  line-height: 0.8;
  margin: 0;
  text-align: left;
  user-select: none;
  pointer-events: none;
}

#contact .contact-info {
  position: absolute;
  bottom: 6vh;
  left: 4vh;
  display: flex;
  flex-direction: column;
  gap: 2vh;
}

#contact .contact-info a {
  color: #FF6B00;
  text-decoration: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}

#contact .contact-info a:hover {
  transform: translateX(10px);
}

#contact .social-links {
  position: absolute;
  bottom: 8vh;
  left: 3vh;
}

#contact .social-links a {
  color: #FF6B00;
  text-decoration: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

#contact .contact-message {
  position: absolute;
  left: 4vh;
  bottom: calc(6vh + 120px);
  color: #FF6B00;
  font-size: 1.8rem;
  max-width: 400px;
  padding-top: 4vh;
}

#contact .contact-message p {
  margin: 0;
  line-height: 1.5;
  font-weight: bold;
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 100;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px 0;
  background-color: currentColor;
  transition: all 0.3s ease;
}

@media (max-width: 800px) {
  /* Hide default nav menu */
  .header .nav-menu {
    display: none;
  }

  /* Show hamburger */
  .hamburger {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 20px;
    justify-content: center;
  }

  /* Menu when active */
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 99;
  }

  .nav-menu.active a {
    font-size: 2.5rem;
    color: white !important;
    opacity: 0.9;
    transition: all 0.3s ease;
    pointer-events: auto;
  }

  .nav-menu.active a:hover {
    opacity: 1;
    transform: scale(1.1);
  }
}

@media (max-width: 768px) {
  #contact {
    padding: 2vh;
  }
  
  #contact .contact-message {
    left: 2vh;
    padding-top: 2vh;
    bottom: calc(6vh + 100px);
    font-size: 1.4rem;
  }
  
  #contact .contact-info {
    bottom: 4vh;
    gap: 1.5vh;
    left: 2vh;
  }
  
  #contact .contact-info a {
    font-size: 1rem;
  }
}

/* Hide second work section by default */
#work-2 {
  display: none; /* Hide by default on desktop */
  min-height: 100vh;
  background-color: rgb(214, 214, 209);
  margin-top: -2vh;
  padding-top: 0;
}

@media (max-width: 768px) {
  #work-2 {
    display: block; /* Only show on mobile */
    margin-top: -2vh;
  }
  
  #videoGrid, #videoGridMobile {
    grid-template-columns: 1fr;
    gap: 0.3vh;
    padding: 0.3vh;
  }
  
  .video-card {
    height: 33vh;
  }
}

.video-grid-section {
  min-height: 100vh;
  background-color: rgb(214, 214, 209);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2vh;
  box-sizing: border-box;
  width: 100%;
  scroll-snap-align: start;
}

.work-title {
  display: block; /* Show by default for desktop */
}

#videoGrid, #videoGridMobile {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3vh;
  padding: 0.3vh;
  width: 100%;
  flex: 1;
}

@media (max-width: 768px) {
  .work-title {
    display: none; /* Hide on mobile */
  }
  
  #videoGrid, #videoGridMobile {
    grid-template-columns: 1fr;
  }
  
  .video-card {
    height: 33vh;
  }
}

.hamburger.active span {
  background-color: white !important;
}

@media (max-width: 768px) {
  .video-overlay {
    left: 8%;
    right: 8%;
    max-width: 84%;
  }

  .video-overlay h1 {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 10px;
  }

  .video-overlay h2 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .video-overlay p {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
  }

  #header-2 .video-overlay {
    right: 8%;
    left: 8%;
    text-align: left;
    transform: translateY(-50%);
  }
}

@media (max-width: 480px) {
  .video-overlay h1 {
    font-size: 2.8rem;
  }

  .video-overlay h2 {
    font-size: 1.3rem;
  }

  .video-overlay p {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  #header-2 {
    overflow-x: hidden;
    width: 100vw;
    max-width: 100vw;
  }
}

.nav-menu, .hamburger {
  display: none !important;
}

/* Keep the logo centered */
.header {
  justify-content: center;
}

.section2-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/Section2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  background-color: red;
}

/* Ensure overlay text remains on top */
.video-overlay {
  position: relative;
  z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section2-image {
    background-position: center top; /* Adjust image position for mobile if needed */
  }
}

#header-2 .video-overlay h1,
#header-2 .video-overlay h2,
#header-2 .video-overlay p {
  color: white !important;
}

@media (max-width: 768px) {
  .section2-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 0;
  }
  
  .section2-image {
    background-position: center top;
  }
}