/* GENERAL STYLES */
body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #111;
  scroll-behavior: smooth;
  
}

@font-face {
    font-family: QuickSand;
    src: url('Assets/Fonts/Quicksand-Variable.ttf');
}

@font-face {
    font-family: Clash;
    src: url('Assets/Fonts/ClashDisplay-Variable.ttf');
}

/* SECTION 1: VIDEO HERO */
.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  color: white;
  overflow: hidden;
}
.video-background {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
}
#myVideo {
  width: 100%; height: 100%; object-fit: cover;
}
.overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: -1;
}
header {
  display: flex; justify-content: space-between; align-items: center; padding: 40px 80px; position: absolute; width: 100%; box-sizing: border-box; z-index: 1;
}
header .logo a {
  text-decoration: none; color: white; font-size: 2.5rem; font-weight: bold;
}
header nav ul {
  list-style: none; margin: 0; padding: 0; display: flex;
}
header nav ul li {
  margin-left: 30px;
}
header nav ul li a {
  text-decoration: none; color: white; font-size: 1.2rem; font-weight: 300;
}
.hero-main {
  display: flex; flex-direction: column; justify-content: center; align-items: center; flex-grow: 1; text-align: center; padding: 0 5%;
}
.intro h1 {
  text-align: center;
  font-family: "Helvetica Neue";
  font-size: 3.5rem; font-weight: 300; max-width: 800px;
}

/* SECTION 2: SCROLLING TEXT */
.scroll-animation {
  padding: 20vh 0; background-color: #fff; width: 100%;
}
.text-layout {
  display: flex; justify-content: center; align-items: flex-start; width: 80%; max-width: 1100px; margin: 0 auto;
}
.animated-text {
  width: 30%; position: relative;
}
#we-text {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 5rem;
  font-weight: 700;
  color: #111;
  position: absolute;
  top: -75px;
  left: 200px;
  /* ADD THIS LINE to boost performance */
  will-change: transform;
}
.static-phrases {
  width: 70%; padding-left: 50px;
}
.phrase {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 4rem; font-weight: 200; color: #111; line-height: 1.1; margin: 0 0 1.5rem 0; padding: 0;
}
.sub-text {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: #666;
  line-height: 1.6;
  max-width: 80%; /* Don't let it be too wide */
  margin-top: 3rem; /* Space from the phrases above */
}

/* SECTION 3: FULL-WIDTH IMAGE */
.full-image {
  height: 100vh; width: 100%;
}
.full-image img {
  width: 100%; height: 100%; object-fit: cover;
}

/* in services.css */

/* SECTION 4: SERVICES TIMELINE */
.services-section {
  background-color: #fff;
  padding: 15vh 5%;
  border-top: 1px solid #e0e0e0;
}
.services-container {
  max-width: 1200px;
  margin: 0 auto;
}
.service-item {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  padding: 36px 0;
}
.service-item:last-child {
  border-bottom: none;
}
.service-title {
  width: 25%;
  padding-right: 40px;
  box-sizing: border-box;
  position: sticky;
  top: 20vh;
  align-self: flex-start;
}
.service-title h3 {
  font-size: 2.5rem;
  font-weight: 500;
  color: #111;
  margin: 0;
}
.service-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: #555;
  margin-top: 15px;
  transform: translateY(0);
}
.service-details {
  /* CORRECTED: Consolidated into one rule with the correct width */
  width: 75%;
  overflow: hidden;
}
.service-details p {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.7;
  color: #333;
  max-width: 700px;
  margin-top: 30px;
  margin-bottom: 0;
}
.image-wrapper {
  overflow: hidden;
  max-height: 450px;
  border-radius: 8px;
}
.service-details img {
  width: 100%;
  transform: scale(1.2);
  object-fit: cover;
}

/* in services.css */

/* --- SECTION 5: FEATURED PROJECTS --- */

.featured-section {
  /* CHANGED: Removed the 5% horizontal padding */
  padding: 15vh 0;
  background-color: #fff;
}

.featured-container {
  max-width: 100vw ;
  margin: 0 auto;
  /* ADDED: Add the horizontal padding here instead */
  padding: 0 1vw;
  box-sizing: border-box; /* Ensures padding is included in the element's total width */
}

.featured-header {
  margin-bottom: 60px;
}

.featured-header h2 {
  font-size: 2.5rem;
  font-weight: 500;
  margin: 0;
}

.featured-grid {
  display: grid;
  /* CHANGED: We now use a 10-column grid to create the asymmetrical layout */
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
}

/* --- New Grid Layout Rules --- */
.project-card:nth-child(1) {
  grid-column: 1 / 7; /* First item in row 1 takes 6 of 10 columns (60%) */
}
.project-card:nth-child(2) {
  grid-column: 7 / 11; /* Second item in row 1 takes 4 of 10 columns (40%) */
}
.project-card:nth-child(3) {
  grid-column: 1 / 6; /* First item in row 2 takes 5 of 10 columns (50%) */
}
.project-card:nth-child(4) {
  grid-column: 6 / 11; /* Second item in row 2 takes 5 of 10 columns (50%) */
}


/* --- Revised Hover Effect --- */
.project-card {
  text-decoration: none;
  color: #111;
  display: block;
  position: relative; 
  overflow: hidden;
  /* ADD THIS LINE to make the content fill the card's full height */
  display: flex;
}
.project-card img {
  width: 100%;
  height: 100%; /* Make image fill the card's grid area */
  object-fit: cover;
  display: block;
}

.project-details {
  /* ADDED: Positioned absolutely to sit on top of the image */
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  padding: 25px 30px;
  box-sizing: border-box;
  /* MOVED: The transform and transition are now on the details overlay */
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* This is the new hover trigger */
.project-card:hover .project-details {
  /* The overlay slides up into view, the image does not move */
  transform: translateY(0%);
}

.project-details h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 5px 0;
}

.project-details p {
  font-size: 1rem;
  font-weight: 300;
  color: #666;
  margin: 0;
}


/* --- SECTION 6: CTA --- */

.cta-section {
  padding: 20vh 5%;
  background-color: #f4f4f4; /* A light grey background to stand out */
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-box {
  width: 60vw;
  min-height: 40vh; /* Use min-height to prevent content overflow on smaller screens */
  max-width: 1100px; /* Prevents the box from becoming too wide on large screens */
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.07);
  padding: 60px 80px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scale: 0.4
}

.cta-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
}

.cta-heading {
  flex-basis: 40%;
}

.cta-heading h2 {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.cta-paragraph {
  flex-basis: 55%;
}

.cta-paragraph p {
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 300;
  color: #333;
  margin: 0;
}

.cta-buttons {
  margin-top: 40px;
  display: flex;
  gap: 20px;
}

.cta-btn {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  font-weight: 500;
  border-radius: 5px;
  transition: all 0.3s ease;
  border: 2px solid #111;
}

.cta-btn.primary {
  background-color: #111;
  color: #fff;
}

.cta-btn.primary:hover {
  background-color: #333;
  border-color: #333;
}

.cta-btn.secondary {
  background-color: transparent;
  color: #111;
}

.cta-btn.secondary:hover {
  background-color: #111;
  color: #fff;
}


/* FOOTER */

.footer{
  position: relative;
  top: 0vh;
  width: 100vw;
  height: 40vh;
  background-color: #111111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-y: hidden;
}

.footerDown{
  width: 100vw;
  display: flex;
  justify-content: center;
  padding: 0px;
  color: #fff;
  height: 100%;
  font-family: Clash;
  font-size: 30rem;
  position: relative;
  top: 45px;
  
}

.footerUp{
  position: relative;
  top: 75px;
  width: 100vw;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  gap: 25px;
}


.fUU{
  display: flex;
  gap: 20px;
}

.fUD{
  font-family: QuickSand;
  font-size: 0.8rem;
}


.instagram{
  width: 50px;
  height: 50px;
}

.instagram img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: invert(1);
}

.x{
  width: 50px;
  height: 50px;
}

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

.linkedIn{
  width: 50px;
  height: 50px;
}

.linkedIn img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: invert(1);
}

/* ==========================================================================
 Responsive Styles (for screens smaller than 768px)
 ========================================================================== */

 @media (max-width: 768px) {

  /* --- General Adjustments --- */
  body {
      /* Improves text rendering on mobile */
      -webkit-font-smoothing: antialiased; 
  }

  /* --- Header --- */
  header {
      /* Stacks logo and nav vertically and reduces padding */
      flex-direction: column;
      padding: 20px;
      gap: 20px;
  }
  header nav ul {
      /* Centers the navigation links */
      justify-content: center;
  }
  header nav ul li {
      margin: 0 10px; /* Reduces space between links */
  }

  /* --- Hero Section --- */
  .intro h1 {
      font-size: 2.5rem; /* Reduces heading size */
  }



  /* --- "we" Section --- */
  .scroll-animation {
      padding: 15vh 0;
  }
  .text-layout {
      /* Keep the side-by-side layout, but use more screen width */
      width: 90%; 
  }
  .animated-text {
      width: 30%; /* Keep column widths */
  }
  .static-phrases {
      width: 70%;
      padding-left: 20px; /* Reduce space between columns */
  }
  #we-text {
      /* Restore absolute positioning and adjust for smaller font */
      position: absolute;
      top: 0;
      left:0px;
      font-size: 3rem; 
      margin-bottom: 0;
  }
  .phrase {
      /* Reduce font size for mobile */
      font-size: 2.2rem;
  }
  .sub-text {
      max-width: 100%;
  }

  /* --- Services Section --- */
  .service-item {
      /* Stacks the title and details vertically */
      flex-direction: column;
  }
  .service-title {
      width: 100%;
      /* Disables the sticky effect on mobile */
      position: static; 
      margin-bottom: 30px;
      padding-right: 0;
  }
  .service-details {
      width: 100%;
  }
  .service-title h3 {
      font-size: 2rem;
  }

  /* --- Featured Projects Section --- */
  .featured-grid {
      /* Stacks the grid items into a single column */
      grid-template-columns: 1fr;
  }
  .project-card:nth-child(1),
  .project-card:nth-child(2),
  .project-card:nth-child(3),
  .project-card:nth-child(4) {
      /* Resets the specific grid column spans */
      grid-column: auto;
  }
  .featured-container {
      padding: 0 5%;
  }

  /* --- CTA Section --- */
  .cta-box {
      width: 90vw; /* Makes the box wider on mobile */
      min-height: auto; /* Lets height be determined by content */
      padding: 40px;
  }
  .cta-content {
      /* Stacks heading and paragraph vertically */
      flex-direction: column;
      align-items: flex-start;
      text-align: center;
      gap: 20px;
  }
  .cta-heading h2 {
      font-size: 3rem;
  }
  .cta-buttons {
      /* Stacks the buttons and makes them full-width */
      flex-direction: column;
      width: 100%;
  }
  .cta-btn {
      text-align: center;
  }
  
    /* 7. FOOTER */

    .footer{
      position: relative;
      top: 0vh;
      width: 100vw;
      height: 40vh;
      background-color: #111111;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      overflow-y: hidden;
    }
  
    .footerDown{

      width: 100vw;
      display: flex;
      justify-content: center;
      padding: 0px;
      color: #fff;
      height: 100%;
      font-family: Clash;
      font-size: 10rem;
      position: relative;
      top: 130px;
      
    }
  
    .footerUp{
      position: relative;
      top: 75px;
      width: 100vw;
      color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      position: relative;
      gap: 25px;
    }
  
  
    .fUU{
      display: flex;
      gap: 20px;
    }
  
    .fUD{
      font-family: QuickSand;
      font-size: 1rem;
    }
  
  
    .instagram{
      width: 30px;
      height: 30px;
    }
  
    .instagram img{
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: invert(1);
    }
  
    .x{
      width: 30px;
      height: 30px;
    }
  
    .x img{
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  
    .linkedIn{
      width: 30px;
      height: 30px;
    }
  
    .linkedIn img{
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: invert(1);
    }
}
