/*=============================================
= HOME PAGE SPECIFIC STYLES 
=============================================*/

.hero-section {
    min-height: 100vh;
    padding-top: var(--unitH_2);
    padding-bottom: var(--unitH_2);
    display: flex;
    align-items: center;
    background-color: #fff;
  }
  
  .hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
  }
  
  .hero-title {
    font-size: clamp(40px, 8vw, 120px);
    margin-bottom: 2rem;
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: clamp(18px, 4vw, 24px);
    margin-bottom: 3rem;
    font-weight: 300;
    color: var(--grey);
  }
  
  
  
  /* Blend text with difference blend mode */
  .blend-text-container {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    text-align: center;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
    /* Create a new stacking context for proper blend mode */
    isolation: isolate;
  }
  
  /* CSS blend mode approach */
  .blend-text {
    font-family: 'Nohemi', Helvetica, Arial, sans-serif;
    font-size: clamp(60px, 15vw, 200px);
    font-weight: 700;
    line-height: 1;
    color: white;
    text-transform: uppercase;
    display: inline-block;
    padding: 0.5em 0;
    margin: 0;
    mix-blend-mode: difference;
    position: relative;
    background-color: transparent;
    /* Hardware acceleration */
    transform: translateZ(0);
    will-change: transform;
  }
  
  /* Text outline with exclusion blend mode */
  .canvas-invert-text {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    font-family: 'Nohemi', Helvetica, Arial, sans-serif;
    font-size: clamp(60px, 15vw, 200px);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px white;
    z-index: 10;
    mix-blend-mode: exclusion;
    opacity: 0.9;
  }
  
  /* Image in middle of section with proper rendering */
  #home_services_image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--unitW_2);
    height: calc(var(--unitW_2) * 16 / 9); /* 9:16 proportion */
    background-image: url("../images/ai1.png");
    background-size: cover;
    background-position: center;
    z-index: 10; /* Higher than panel but below text */
    opacity: 1 !important;
    will-change: transform;
    border-radius: 12px;
    display:none !important;
    visibility: hidden;
  }
  
  /* Container that applies blend mode */
  .blend-text-overlay {
    position: relative; /* Normal positioning */
    width: 100%;
    z-index: 20; /* Above the image */
    mix-blend-mode: difference;
    color: white; /* Essential for difference blend mode */
    height: auto;
    min-height: 100vh; /* Ensure minimum height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }
  
  
  /* Consistent panel styling across all templates */
  .section .panel, .panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 10px;
    background-color:rgba(0, 0, 0, 0);
    border-radius: 10px;
    overflow: hidden;
    width: auto;
    z-index: 1;
    box-sizing: border-box;
  }
  
  /* Section 1 styling */
  
  #section1 {
  z-index:11;
  }
  
  #section1 .inner {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px;
    box-sizing: border-box;
    z-index: 2;
    height: 100%;
  }
  
  #section1 .top-gradient {
  
    height: 100vh;
  }
  
  .section1-row {
    display: flex;
    width: 100%;
  }
  
  /* Row 1: Header */
  .header-row {
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Push towards bottom */
    margin-bottom: 20vh; /* Position 25% from bottom */
    z-index:99;
  }
  
  .header-row .left-column, 
  .header-row .right-column {
    flex: 1;
  }
  .header-row .left-column {
    text-align: left;
  }
  
  .header-row .middle-column {
    flex: 3;
    text-align: center;
    flex-basis: 100%;
  }
  
  .location, .proven-text {
    font-family: 'InterphasesMono', monospace;
    font-size: 0.6rem;
    color: white;
    text-transform: uppercase;
  }
  
  .brand-title {
      font-family: 'Nohemi', sans-serif;
      font-size: .75rem;
      letter-spacing: 5px; 
      text-transform: uppercase;
      margin: 0 0 0 5px; /* Original margin */
      text-align:center;
      color: white;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-rendering: optimizeLegibility;
      transform: scale(1); 
      transform-origin: center;
      will-change: opacity, letter-spacing; 
      transition: letter-spacing 1.5s cubic-bezier(0.645, 0.045, 0.355, 1.000); 
      opacity: 0; /* Start hidden */
      position: relative; 
      pointer-events: auto;
      padding: 20px;
  }
  
  
  
  /* Row 2: Logo */
  .logo-row {
    justify-content: center;
    align-items: center;
    padding: 5% 0 7% 0;
  }
  
  #main-logo {
    width: 90%;
    height: auto;
    max-width: 100%;
  }
  
  /* Restore original fixed styles */
  #logo_fixed {
      position: fixed;
      top: 50%; /* Center vertically */
      left: 50%;
      transform: translate(-50%, -50%); /* Adjust for element height/width */
      width: 90%;
      max-width: 100%;
      text-align: center;
      pointer-events: auto;
      z-index: 999;
      opacity: 1; /* Ensure starts visible for fade out */
      pointer-events: none;
      margin-top:-2vw;
  }
  
  #logo_static {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%;
    transform: translate(-50%, -50%); /* Adjust for element height/width */
    width: 60%;
    max-width: 100%;
    text-align: center;
    pointer-events: auto;
    z-index: 999;
    opacity: 1; /* Ensure starts visible for fade out */
    pointer-events: none;
    margin-top:-2vw;
}


  #logo_fixed img, #logo_static img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  
  /* Row 3: Content */
  .content-row {
    flex: 1;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
  }
  
  .content-row .left-column,
  .content-row .right-column {
    flex: 1;
    display: flex;
  }
  .content-row .left-column {
    justify-content: flex-end;
  }
  
  .content-row .middle-column {
    flex: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }
  
  /* #section1 .header-row, #section1 .logo-row, #section1 .content-row, #section1 .footer-row {
  display:none;
  } */
  
  .content-row .left-column .proven-text {
    text-align: right;
    align-self: flex-start;
    margin-top: 0;
  }
  
  .content-row .right-column .proven-text {
    text-align: left;
    align-self: flex-start;
    margin-top: 0;
  }
  
  .tag-line {
    margin-bottom: 4vh;
    height: 1em;
    overflow: hidden;
    position: relative;
    opacity: 1 !important; /* Override GSAP opacity for container */
  }
  
  .tag-line::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 2;
  }
  
  .tag-line > div {
    /* Inner content that will be animated */
    transform: translateY(100%);
    opacity: 0;
  }
  
  .tag-line, .future-text {
    font-family: 'Nohemi', sans-serif;
    font-size: .85rem;
    font-weight: 300;
    text-align: center;
    line-height: 1;
    color: white;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: 1px;
  }
  
  .future-text {
    letter-spacing: 1vw;
    margin-left:.5vw; /* offset letter spacing */
    transform: scale(1);
    transform-origin: center;
    will-change: opacity, letter-spacing;
    opacity: 0; /* Ensure it's hidden before JS loads */
  }
  /* Row 4: Footer */
  .footer-row {
    justify-content: center;
    align-items: flex-end;
    margin-top: auto;
    padding-bottom: 20px;
  }
  

  .services_label {
    margin-top: 10vh;
    margin-bottom:80px;
  }
  
  /* Home services main text */
  #home_services {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* padding: var(--unitH_1) 0; */
    /* margin-top: 2vh; Add space at top to prevent text cut-off */
  }
  
  .home_service {
    font-family: 'Nohemi', helvetica, sans-serif;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
  
    font-size: 3vw;

    color: white;
    display: block;
    padding: 0;
    margin: 0;
    /* height: 1em; */
    /* overflow: hidden; */
    position: relative;

    margin: 0 auto;
    padding:  0;
    max-width:800px;


  }

  .home_service h3 {

    line-height:1;
  }

/*   
  .home_service > div {
    transform: translateY(100%);
    opacity: 0;
    will-change: transform, opacity;
  } */
  

.service_spacer {

  height:20px;
}

h3.service_title {

font-size:60px;
}
  .service-body-content h4 {


    margin-bottom:30px;
  }
  h4.service_intro, h4.service_outro {
    font-family: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-transform: none;
    font-weight: 600;
    font-size:1.1rem;
    line-height: 1.5;
    margin-top:20px;
  }
  h4.service_intro {

    margin-top:10px; 
  }

  
  .service_body {
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    max-width:820px;
    margin: 0 auto;
    margin-top:10px;
  }
.service_body p {

  font-size:.9rem;
}
.service-bullets-container {

  margin: 50px auto;
  opacity: .8;
}
  .service-bullet-item {

    font-size: .85rem;
    font-weight: 500;
    text-align: center; 
    text-transform: uppercase;
     margin: 5px auto;
  }


h4.service_outro {

  max-width:450px;
  margin:0 auto 60px auto;
}
  /* Services sub-section */
  #home_services_sub {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: var(--unitH_1) 0 var(--unitH_2);
  }
  
  /* Centered content box with plus signs */
  .services-content-box {
    position: relative;
    width: var(--unitW_6);
    height: auto;
    min-height: 100px;
    padding: 0 var(--unitW_1);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .services-content-box p {
    max-width: 100%;
    color: white;
    position: relative;
  }
  
  





  #gradient_wrapper {

    position:relative;
    z-index:2;
  }


  .split-background-top {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 90%;
      z-index: -1; /* Behind content */
  }
  
  .split-background-bottom {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 10%;
      background-color: var(--matte);
      z-index: -1; /* Behind content */
  }

  .service-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0) 4%, rgba(17, 17, 17, 1) 100%);
}











  /* Section 2 styling */
  
  #section2 {
  
  
  }
  
  #section2 .inner {
      display: flex;
      flex-direction: column;
      /* justify-content: space-between; */
      min-height:100vh;
      padding-bottom: 0;
  }
  
  #section2 .section2-paragraph {
      /* font-family: 'EB Garamond', serif;
      font-style: italic;
      font-weight: 400;
      color: #fff;
      width: var(--unitW_6);
      margin: auto auto 30px auto;
      text-align: center;
      line-height: 1.5;
      align-self: center;
      font-size:1.5rem */
  }
  #section2 p.smallintro {
  
  
 margin-top:0;
    max-width: 850px;

}
  #section2 p.bigintro,  #section2 p.bigintro_mobile {
  
  
      font-size: 1.1rem;
      font-weight: 500;
      text-transform: uppercase;
      line-height: 1.75;
      max-width: 900px;
  margin: 0 auto;
  
  }
  
  #section2 p.bigintro_mobile { 
padding: 0 10px;
    display:none;
    line-height:1.2;
  }


  /* Marquee Styles */
  .marquee-container {
      width: 100%;
      overflow: hidden;
      position: fixed;
      height: 20vh; /* Match font size */
      display: flex;
      z-index:5;
      align-items: center; /* Vertical centering */
      margin: auto 0; /* Center vertically in flex column */
      opacity: 0; /* Start hidden */
      top:50%;
      transform: translateY(-50%);
      display:none;
  }
  
  .marquee-track {
      display: flex;
      position: absolute;
      white-space: nowrap;
      will-change: transform;
      animation: marquee 20s linear infinite; /* Ensure animation is active */
  }
  
  .marquee-image {
      height: 30vh; /* Make image fill container height */
      width: auto; /* Maintain aspect ratio */
      display: inline-block; /* Correct display type */
      opacity:.9;
      vertical-align: middle; /* Align images nicely */
      /* Add margin-right here if spacing is needed between images */
  }
  
  @keyframes marquee {
      from { transform: translateX(0); }
      to { transform: translateX(-50%); } /* Scroll one full copy */
  }
  
  
  
  
  /* Section 3 special panel styling with unique blending structure */
  .panel-section3 {
    position: relative !important; /* Override absolute positioning */
    height: auto !important; /* Allow it to expand with content */
    min-height: calc(100vh - 20px); /* Ensure minimum full height */
  }
  
  .inner-section3 {
    position: relative !important; /* Not absolute like other inners */
    height: auto !important; /* Adapt to content height */
    min-height: 100vh; /* Ensure it's at least full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: visible; /* Allow content to be fully visible */
    padding: 5vh 0; /* Add vertical padding */
  }
  
  #section2 .bottom-gradient {
      height: 100vh;
      opacity: 1;
      position: absolute;
      background: linear-gradient(to bottom, rgba(17, 17, 17, 0) 0%, rgba(17, 17, 17, 1) 100%);
  }
  
  
  #section3 {
    position: relative; /* Ensure it's a positioning context for background divs */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  


  /* Client Logo Styles (Copied from page_alpine.php) */
  .client_logos {
      width:100%;
      display:flex;
      text-align: center;
      align-items: center;
      justify-content: center;
      margin: 5vh auto 0 auto;
      transform: scale(.85);
  }
  
  .client_logo {
      height:50px; 
      width:auto; 
      margin:0 3vw;
      opacity:.5;
  }
  
  .client_logo img {
      height:100%;
      width:auto;
  }
  
  .client_aircompany {
      height:13px;
  }
  
  .client_beyondthestreets {
      height:36px;
  }
  .client_ccs {
      height:40px;
  }
  /* End Client Logo Styles */
  
#about_tagline {
margin: 8vh auto 4vh auto;

}


  /* Animated Text Styles (Copied/Adapted from page_alpine.php) */
  h2.ignite {
      /* font-size: 7vw;  */
margin:0 auto;
      opacity: 1; /* Start visible again */
      transition: opacity 0.5s ease-in;
      color: white; /* Ensure text is visible */
      position: relative; /* Position over marquee */
  
      z-index: 10; /* Ensure it's above the marquee track */
      pointer-events: none; /* Allow clicks to pass through */
      text-align: center; /* Center text if it wraps */
      width: 100%; /* Allow centering */

      /* font-size: clamp(32px, 20vw, 160px); */
line-height:1;
      font-size:7vw;
  }


  
  #section4 {
  
  background:var(--matte);
  
  }
  
#contact {
  min-height:70vh;
}

  #contact .inner {

    margin-bottom:30vh;
  }
  #contact .gradient-overlay {
      position: absolute;
  
  }
  
  /* Section 4 Email Style */
  #email {
      font-size: 2rem;
      color: white; /* Or another desired color */
  }
  
  #email a {
  
  color:#fff;
  }
  
  #section4 .gsap-slider-container {
    width: 100%;
    height: 70vh; /* Set container height */
    margin: 20px auto;
    overflow: hidden; /* Keep vertical overflow hidden */
    overflow-x: scroll; /* Allow horizontal scrolling */
    position: relative; /* Needed for absolute positioning inside if any */
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
  }
  
  /* Hide scrollbar for Chrome, Safari and Opera */
  #section4 .gsap-slider-container::-webkit-scrollbar {
      display: none;
  }
  
  #section4 .gsap-slider-wrapper {
    display: flex; /* Arrange slides horizontally */
    width: fit-content; /* Allow wrapper to expand to fit all slides */
    height: 100%;
    /* remove will-change: transform; */
  }
  
  #section4 .gsap-slide {
    /* Set width equal to height for square proportion */
    width: 70vh;
    height: 100%; /* Fill container height (which is 70vh) */
    background-image: none !important; /* Remove the direct background image */
    flex-shrink: 0; /* Prevent slides from shrinking */
    margin-right: 30px; /* Space between slides, adjust as needed */
    position: relative; /* For absolute positioning of content */
    box-sizing: border-box;
    border-radius: 8px; /* Add border radius */
    overflow: hidden; /* Ensure content respects border radius */
    cursor: pointer; /* Indicate it's clickable */
  }
  
  /* Background image wrapper */
  #section4 .gsap-slide {
    --slide-bg-image: none; /* Default value, will be set via JavaScript */
  }
  
  #section4 .gsap-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--slide-bg-image); /* Use custom property */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    transition: transform 0.5s ease;
    z-index: 1;
  }
  
  /* Apply background image to the ::before element and handle transform */
  #section4 .gsap-slide:hover::before {
    transform: scale(1.25) rotate(15deg); /* Zoom and rotate on hover */
  }
  
  /* Adjust last slide margin if needed */
  #section4 .gsap-slide:last-child {
      margin-right: 0;
  }
  
  #section4 .gsap-slide .slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4); /* Optional overlay */
    color: white;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    z-index: 2; /* Ensure it's above the pseudo-element */
    transition: background-color 0.5s ease; /* Smooth transition for overlay */
  }
  
  /* Improve the hover effect for the overlay */
  #section4 .gsap-slide:hover .slide-content {
    background-color: rgba(0, 0, 0, 0.6); /* Slightly darker overlay on hover */
  }
  
  /* Link styling for case study slides */
  #section4 a.gsap-slide {
    text-decoration: none;
    color: white;
    display: block; /* Ensure link takes full dimensions of the slide */
  }
  
  #section4 .gsap-slide .slide-content h2 {
      margin: 0;
      font-size: 2rem; /* Adjust title size */
      line-height: 1.2;
  }
  
  /* Remove Swiper-specific styles */
  /* #section4 .swiper-slide img ... */
  /* #section4 .swiper { ... transition-timing-function ... } */
  
  #contact .gradient-overlay {
      position: absolute;
      background: linear-gradient(to bottom, 
      rgba(17, 17, 17,1) 0%,
      rgba(17, 17, 17,0) 100%);
      z-index: 1;
  }

/* =============================================
= HOME PAGE MOBILE OPTIMIZATIONS
============================================= */

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

.desktop_spacer {

  display:none;
}
.service_spacer {

  height:0;
}

    /* Adjust fixed logo size */
    #logo_fixed {
        width: 85%; /* Reduce width for smaller screens */
        margin-top: -5vw; /* Adjust vertical centering slightly if needed */
        cursor:pointer;
    }

    #logo_fixed img {
      width: 100%; /* Ensure image scales within the reduced container */
    }

    /* Adjust large title font sizes */
    .blend-text {
        /* Original: clamp(60px, 15vw, 200px) */
        font-size: clamp(40px, 12vw, 90px);
    }

    .canvas-invert-text {
        /* Original: clamp(60px, 15vw, 200px) */
        font-size: clamp(40px, 12vw, 90px);
        -webkit-text-stroke: 1px white; /* Reduce stroke width slightly */
    }

  

    /* Simplify header row layout */
    .header-row {
        flex-direction: column; /* Stack columns */
        align-items: center; /* Center items */
        text-align: center;
        margin-bottom: 5vh; /* Adjust spacing */
    }

    .header-row .left-column,
    .header-row .middle-column,
    .header-row .right-column {
        flex-basis: auto; /* Reset flex-basis */
        max-width: 100%;
        text-align: center;
        margin-bottom: 1rem; /* Add space between stacked items */
    }

    .brand-title {
        letter-spacing: 3px; /* Reduce letter spacing */
        font-size: 0.7rem;
        line-height: 1.8;
    }

    .content-row {
      flex-direction: column;
      align-items: center;
    }

    .content-row .left-column,
    .content-row .middle-column,
    .content-row .right-column {
        flex-basis: auto; /* Reset flex-basis */
        max-width: 90%; /* Allow some padding */
        margin-bottom: 1rem;
        text-align: center;
        align-items: center; /* Center content within columns */
    }

    .content-row .left-column .proven-text,
    .content-row .right-column .proven-text {
      text-align: center;
      align-self: center;
    }

    .tag-line, .future-text {
      font-size: .75rem;
    }

    .future-text {
      letter-spacing: 0.5vw;
    }




  #section2 p.bigintro { 

    display:none;
  }


  #section2 p.bigintro_mobile { 

    display:block;
  }


    .services_label {
      margin-top: 0;
    }
    

}

/* Added from page_home.php inline styles */
.page-template-page_home #contact .social_icons .social_icon img {
  height: 20px; /* Adjust as needed */
  width: auto;
  opacity: 0.7; /* Match alpine style */
  transition: opacity 0.3s;
}
.page-template-page_home #contact .social_icons .social_icon:hover img {
  opacity: 1;
}

.control-dashboard {
  visibility: hidden !important; 
}

.page-template-page_home #animated-text {
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
    text-align: center; /* Ensure text is centered if it wraps */
    line-height: 1; /* Adjust line height */
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.intro-logo-container {
    text-align: center; /* Center the image */
    margin-bottom: 4vh; /* Margin below the container */
}

.intro-logo-image {
    height: 30px;
    width: auto;
}

@media screen and (max-height: 790px) {


  #about_tagline {
    margin: 5vh auto 2vh auto;
    
    }



    .intro-logo-image {
      height: 20px;
      width: auto;
  }

    .intro-logo-container {
      text-align: center; /* Center the image */
      margin-bottom: 2vh; /* Margin below the container */
  }
  h2.ignite {
    /* font-size: 7vw;  */

    font-size:5vw;
}
}