/* =========================
   Base / Reset Styles
========================= */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* =========================
   Typography & Common Elements
========================= */
h1, h2, h3, h4, h5, h6, p {
    margin: 0;
    padding: 0;
}
p {
    margin-bottom: 1rem;
}
a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   Container
========================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================
   Navbar
========================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #000;
    padding: 5px 0;
    z-index: 1000;
    box-shadow: 0 3px 30px #ad9941;
}
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar-logo {
    height: 60px;
    transform: scale(1.4);
    transform-origin: left center;
    padding-top: 10px;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}
.nav-links li a {
    color: #fff;
}
.nav-links li a:hover {
    color: #ad9941;
}
/* Base state: hide the hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
}

/* =========================
   Hero Section
========================= */
.full-width-background {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* NEW: Ensure the local hero video covers the full container */
.jarallax-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

/* Fallback background image for hero video */
#home {
    background: url('images/hero-poster.jpg') center center / cover no-repeat;
}

.hero-content {
    position: absolute;
    top: calc(50% + 200px);
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 30px;
    background: none;
    border-radius: 0;
    text-align: center;
    z-index: 10;
}
.hero-content h1 {
    font-size: clamp(1.8rem, 5vw, 3em);
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-content h2 {
    font-size: clamp(1.2rem, 4vw, 2em);
    min-height: 1.5em;
    color: #010101;
    -webkit-text-stroke: 0;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    display: block;
    height: 50px;
    overflow: hidden;
}
.hero-button,
.contact-button {
    min-width: 200px;
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 10px 35px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
.contact-button {
    background-color: #ad9941;
    color: #fff;
}
.hero-button:hover,
.contact-button:hover {
    background-color: #fff;
    color: #000;
}

/* =========================
   (Removed Scrolling Text Banner Styles)
========================= */

/* =========================
   Sections
========================= */
section {
    padding: 50px 10%;
    width: 100%;
    box-sizing: border-box;
}

/* Who We Are */
#who-we-are {
    background: #000;
    color: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#who-we-are .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 1;
}
#who-we-are h2,
#who-we-are p {
    position: relative;
    z-index: 2;
    text-align: left;
}
#who-we-are h2 {
    color: #ad9941;
}

/* =========================
   Tech Section (Swiper Slider)
========================= */
#tech {
    position: relative;
    color: #000;
}
#tech .tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    z-index: 1;
}
.swiper-container.tech-swiper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 15px;
    border: 3px solid #e4b700ec;
}
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.5s ease;
}
.swiper-slide img:hover {
    transform: none;
}
.swiper-pagination-bullet-active {
    background: #ad9941;
}

/* =========================
   Advanced Capabilities
========================= */
#advanced-capabilities {
    background: #000;
    color: #fff;
    text-align: left;
    position: relative;
    padding: 80px 5%;
}
.capabilities-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1;
}
#advanced-capabilities h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #ad9941;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}
.capabilities-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1em;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    text-align: left;
}
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}
.capability-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.capability-item:hover {
    transform: translateY(-5px);
}
.capability-item h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ad9941;
}
.capability-item p {
    color: #000;
    font-size: 1.1em;
    line-height: 1.5;
}

/* =========================
   Drone & Land Surveying Services
========================= */
/* Consolidated common styles */
.services-section {
    text-align: left;
    padding: 50px 10%;
    position: relative;
}
.services-section h1 {
    font-size: 30px;
    margin-bottom: 30px;
    color: #ad9941;
    position: relative;
    z-index: 2;
}
#drone-services {
    background: #fff;
    color: #000;
}
#land-surveying-services {
    background: #000;
    color: #fff;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}
.service-item {
    background: #000;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #fff;
    transition: background-color 0.3s, color 0.3s;
}
#drone-services .service-item:hover,
#land-surveying-services .service-item:hover {
    background-color: #ad9941;
    color: #000;
}
.service-item img {
    height: 80px;
    margin-bottom: 10px;
}
.service-item p {
    margin: 5px 0;
    color: #fff;
    transition: color 0.3s;
}
.service-item:hover p {
    color: #000;
}
.service-item p strong {
    color: #fff;
    transition: color 0.3s;
}
.service-item:hover p strong {
    color: #000;
}

/* =========================
   Meet Our Team Section
========================= */
#meet-team {
    background: #fff;
    text-align: left;
    padding: 20px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
#meet-team h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #ad9941;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}
.meet-team-content {
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}
#meet-team p {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: #000;
    text-align: left;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* =========================
   Team Section (Owl Carousel)
========================= */
#team {
    position: relative;
    min-height: 10vh;
    overflow: hidden;
    background: #5b5858;
    color: #ad9941;
    margin-top: -20px;
}
.team-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/team_bg.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
}
.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.6));
}
.team-content {
    position: relative;
    z-index: 2;
    padding: 40px 0 10px;
    text-align: center;
}
.team-gallery {
    margin: 0 auto;
}
.team-slide {
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 20px 0;
}
.team-member {
    background: #fff;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    width: 100%;
    max-width: 850px;
    min-height: 400px;
}
.team-photo {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 10px;
}
.team-info {
    width: 100%;
    padding-top: 20px;
    text-align: left;
}
.team-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ad9941;
}
.team-details {
    list-style: none;
    padding: 0;
    margin: 0;
}
.team-details li strong {
    color: #050505;
    margin-right: 10px;
}
.team-member p {
    color: #000000;
}

/* =========================
   Partner Section
========================= */
#partner-with-captured-reality {
    background: #fff;
    text-align: center;
    padding: 20px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
#partner-with-captured-reality h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #ad9941;
    margin-bottom: 20px;
}
.partner-content {
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}
#partner-with-captured-reality p {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: #000;
    text-align: center;
    line-height: 1.6;
}

/* =========================
   Contact Section
========================= */
#contact-us {
    background: #fff;
    text-align: center;
    padding: 30px 10%;
    width: 100%;
    box-sizing: border-box;
}
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.form-background {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    margin: 0 auto;
    background-color: #000;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid #000;
    border-radius: 20px;
    background-color: #ad9941;
    color: #333;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #333;
}
textarea {
    height: 200px;
    resize: none;
}
button {
    background-color: #ad9941;
    color: #000;
    border: 2px solid #000;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
button:hover {
    background-color: #fff;
    color: #000;
    border-color: #ad9941;
}

/* =========================
   Footer
========================= */
#footer {
    background: #000;
    padding: 50px 10%;
    text-align: center;
    color: #fff;
}
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-logo h2 {
    font-size: 2em;
    margin: 0;
}
.footer-logo span {
    color: #ad9941;
}
.footer-info p {
    margin: 0;
}

/* =========================
   Modal
========================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}
.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    margin: auto;
    display: block;
    border-radius: 10px;
}
#image-modal {
    padding: 20px;
}
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}
.close:hover,
.close:focus {
    color: #bbb;
    cursor: pointer;
}

/* =========================
   Responsive Media Queries
========================= */
@media screen and (max-width: 768px) {
    .navbar-container {
      padding: 0 20px;
    }
    .nav-links {
      display: none;
      flex-direction: column;
      background: #000;
      position: absolute;
      top: 70px;
      left: 0;
      right: 0;
      width: 100%;
      padding: 10px 0;
      text-align: center;
      z-index: 1001;
    }
    .nav-links.active {
      display: flex;
    }
    .nav-links li {
      width: 100%;
      margin: 5px 0;
    }
    .nav-links li a {
      display: block;
      width: 100%;
      text-align: center;
    }
    .hamburger {
      display: block;
    }
    .hero-button,
    .contact-button {
      display: block;
      width: 80%;
      margin: 5px auto 10px;
    }
    section {
      padding: 40px 5%;
    }
    #contact-us h1 {
      font-size: 28px;
      text-align: center;
    }
    .form-background {
      padding: 10px;
      width: 100%;
    }
    .team-member {
      padding: 20px;
      border-radius: 10px;
    }
    .team-photo {
      max-width: 180px;
    }
    #advanced-capabilities { background: #000; }
    #drone-services { background: #fff; }
    #land-surveying-services { background: #000; }
    #partner-with-captured-reality { background: #fff; }
    #who-we-are { background: #000; }
    .swiper-slide {
      height: 300px;
    }
}
@media screen and (max-width: 576px) {
    .swiper-container.tech-swiper {
      max-height: 300px;
    }
    .swiper-slide {
      height: 300px;
    }
}
@media screen and (max-width: 480px) {
    .team-member {
      width: 95%;
      padding: 1rem;
    }
    .team-photo {
      max-width: 150px;
    }
    #contact-us {
      padding: 30px 15px;
    }
    .form-group input,
    .form-group textarea {
      padding: 8px;
    }
    body {
      font-size: 14px;
      line-height: 24px;
    }
    h1 {
      font-size: 28px;
    }
    h2 {
      font-size: 24px;
    }
}
@media screen and (max-width: 768px) {
    .capabilities-grid,
    .services-grid {
      grid-template-columns: 1fr;
    }
    #advanced-capabilities h2,
    #meet-team h2 {
      font-size: clamp(1.8rem, 4vw, 2rem);
    }
    #advanced-capabilities p,
    #meet-team p {
      text-align: left;
    }
    #advanced-capabilities { background: #000; }
    #drone-services { background: #fff; }
    #land-surveying-services { background: #000; }
    #partner-with-captured-reality { background: #fff; }
    #who-we-are { background: #000; }
}
a[href^="mailto:contact@capturedrealitybz.com"] {
    color: #ad9941;
}
/* Team Gallery Carousel Controls */
.team-gallery .owl-nav .owl-prev,
.team-gallery .owl-nav .owl-next {
    transform: scale(1);
    transform: scale(2.0);
    margin: 0 50px;
}
/* Loader styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(153, 130, 37, 0.588); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* High z-index to ensure loader is on top */
  }
  
  .spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #333;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Content styles */
  .content {
    display: none; /* Hide content until the page is ready */
  }
/* Position the Instagram logo in the hero section */
.hero-instagram {
    position: absolute;
    top: 80px;  /* Adjust this value so the logo sits just below your nav bar */
    right: 20px; /* Adjust to control the distance from the right margin */
    z-index: 11; /* Ensure it appears above the video background */
}

.hero-instagram img {
    width: 40px; /* Adjust the size as needed */
    height: auto;
    transition: filter 0.3s ease; /* Smooth transition for the filter */
}

/* Change color on hover */
.hero-instagram img:hover {
    filter: brightness(0) saturate(100%) invert(48%) sepia(95%) saturate(300%) hue-rotate(356deg) brightness(101%) contrast(101%);
}

