@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Montserrat:wght@400;500;600;700;800&display=swap');
/* =========================================
   1. GLOBAL VARIABLES & RESET
========================================= */
:root {
  --primary-blue: #081524;
  --accent-orange: #ff7a00;
  --light-gray: #f5f5f5;
  --text-light: #ffffff;
  --text-dark: #333333;
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --font-main: 'Montserrat', sans-serif;
  --nav-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration-line: none !important;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
  overflow-x: hidden; /* disables continuous horizontal scrolling */
  overflow-y: auto;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: #fff;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.highlight { 
  color: var(--accent-orange); 
}

/* =========================================
   2. HEADER & NAVIGATION
========================================= */
header {
  background: var(--primary-blue);
  color: var(--text-light);
  padding: 1rem 0;
  position: fixed; /* Changed from sticky */
  top: 0;
  left: 0;
  width: 100%; /* Required for fixed elements */
  z-index: 1000;
}

.navbar {
    background-color: var(--primary-blue);
    padding: 2px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 80px;
}

.logo {
  margin-left: 0 !important;
  width: clamp(2rem, 5vw, 3rem);
}

.logo-text {
  margin-right: clamp(10px, 5vw, 90px);
  width: clamp(120px, 20vw, 180px);
}

.logo-link {
    text-decoration: none !important; /* Kills the underline */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
    margin-right: auto;
}

/* 1. Force the text to be white */
.nav-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff !important; /* Forces text to white */
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

/* 2. Ensure the icon stays orange */
.nav-icon-link::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--accent-orange); /* Keeps the icon orange */
    display: inline-block;
    transition: transform 0.3s ease;
}

/* 3. Hover state: Text turns orange OR stays white */
.nav-links a:hover {
    color: var(--accent-orange) !important; /* Text turns orange on hover */
}

.nav-links a:hover::before {
    transform: scale(1.2);
}

/* Assigning Icons via Unicode */
.about::before { content: "\f05a"; }    /* info-circle */
.services::before { content: "\f0ad"; } /* wrench */
.projects::before { content: "\f64f"; } /* th-large */

/* Navigation CTA */
.nav-text-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff !important;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    margin-right: 90px;
}

/* Hover state: Text turns orange */
.nav-text-link:hover {
    color: var(--accent-orange) !important;
}

/* Base styling for the icon */
.nav-text-link::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--accent-orange);
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Icon grow effect on hover */
.nav-text-link:hover::before {
    transform: scale(1.2);
}

/* Specific icon (Envelope) */
.contact-icon::before {
    content: "\f0e0"; 
}

/* Hide the mobile clone on large screens */
.mobile-cta {
    display: none; 
}

/* =========================================
   HAMBURGER BUTTON (Hidden on Desktop)
========================================= */
.hamburger {
    display: none;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    z-index: 1001; /* Keeps it above the sliding menu */
    margin-left: auto; /* Pushes it to the far right */
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: all 0.3s ease-in-out;
}

/* =========================================
   LANGUAGE SWITCHER STYLES
========================================= */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
}

.lang-btn {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lang-btn:hover {
    color: var(--accent-orange);
}

.lang-btn.active {
    color: var(--accent-orange);
    pointer-events: none; /* Prevents clicking the language you're already on */
}

.lang-divider {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

/* Desktop positioning */
.desktop-lang {
    margin-right: 25px; /* Spaces it out from the Contact button */
}

/* Hide mobile switcher by default on desktop */
.mobile-lang {
    display: none;
}

/* =========================================
   4. HERO SECTION
========================================= */
.hero {
    position: relative; 
    height: 100vh; 
    margin-top: 0; 
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 38, 52, 0.6); 
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;    /* Center horizontally */
    justify-content: flex-start; 
    min-height: 100dvh;
    padding-top: calc(var(--nav-height) + 30vh); /* Optical centering */
    text-align: center;
}

.hero-content {
    max-width: 100%;
    border-left: none; /* Removed for a clean centered look */
    background: transparent !important;
    opacity: 1 !important;
}

.hero-title {
    font-family: var(--font-main);
    font-weight: 700; 
    font-size: clamp(2rem, 8vh, 4rem);
    color: var(--text-light) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2vh;
    font-style: italic;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); 
    opacity: 0;
    animation: fadeUpReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.hero-title-2 {
    font-family: var(--font-main);
    font-weight: 700; 
    color: var(--accent-orange) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2vh;
    font-style: normal;
    opacity: 0;
    animation: fadeUpReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.hero-description {
    font-family: var(--font-main);
    font-weight: 300; 
    font-size: clamp(0.5rem, 2.2vh, 1.2rem);
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0;
    animation: fadeUpReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s both;
}

.hero-divider {
    width: 80px;               
    height: 4px;               
    background-color: var(--accent-orange);
    margin: 2vh auto 3vh;      
    opacity: 0;
    transform: scaleX(0);      
    animation: dividerReveal 1s ease-out 0.3s both;
}

@keyframes dividerReveal {
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* The Bottom-to-Top Animation */
@keyframes fadeUpReveal {
    0% {
        opacity: 0;
        transform: translateY(40px); /* Starts lower */
    }
    100% {
        opacity: 1;
        transform: translateY(0);    /* Moves to final position */
    }
}

/*.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-orange);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}*/

/* =========================================
   SCROLL INDICATOR
========================================= */
.scroll-indicator {
    position: absolute;
    bottom: 5vh; 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
    opacity: 0;
    animation: fadeInSimple 1s ease-out 2.5s forwards;
}

.scroll-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-main);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 25px;
    background-color: var(--accent-orange);
    animation: scroll-slide-down 2.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* Animations */
@keyframes scroll-slide-down {
    0% { transform: translateY(-30px); }
    100% { transform: translateY(65px); }
}

@keyframes fadeInSimple {
    to { opacity: 1; }
}

/* =========================================
   5. ABOUT US SECTION
========================================= */
.about-centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    padding: calc(var(--nav-height) + 5vh) 5vw 5vh; 
    background-color: #ffffff;
    text-align: center;
}

.about-header {
    flex-basis: 20vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4vh;
    text-transform: uppercase;
}

.section-subtitle {
    color: var(--accent-orange);
    font-family: var(--font-main);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: clamp(0.75rem, 1.2vh, 0.85rem);
    margin-bottom: 1vh;
}

.section-title {
    font-size: clamp(1.5rem, 4vh, 2rem);
    color: var(--primary-blue);
    margin-bottom: 2vh;
    font-weight: 800;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--accent-orange);
}

.about-content-narrow {
    min-height: 15vh; 
    max-width: 1000px;
    margin: 0 auto 4vh;
    font-family: var(--font-main);
    font-size: clamp(0.95rem, 2.2vh, 1.15rem);
    line-height: 1.8;
    color: var(--text-dark);
    text-align: justify; 
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Stats Grid */
.about-stats-grid {
    flex-basis: 30vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 5vw, 80px);
    flex-wrap: wrap;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 150px;
}

.stat-number {
    font-family: var(--font-main);
    font-size: clamp(1.8rem, 6vh, 2.5rem);
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 0.5vh; 
}

.stat-label {
    font-size: clamp(0.75rem, 1.5vh, 0.9rem);
    color: var(--accent-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

/* =========================================
   6. SERVICES SECTION
========================================= */
.services-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    padding: calc(var(--nav-height) + 5vh) 5vw 5vh; 
    background-color: var(--light-gray);
}

.services-header-center {
    text-align: center;
    margin-bottom: 6vh; 
}

.services-header-center .subtitle {
    color: var(--accent-orange);
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    font-size: clamp(0.75rem, 1.2vh, 0.85rem);
    margin-bottom: 1vh;
}

.services-header-center .title {
    font-size: clamp(1.5rem, 4vh, 2rem);
    color: var(--primary-blue);
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 1vh;
    margin-bottom: 2vh;
}

.orange-divider {
    width: 80px;
    height: 4px;
    background-color: var(--accent-orange);
    margin: 0 auto;
}

.services-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6vh 2vw; 
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.service-item {
    flex: 1 1 calc(25% - 40px); 
    max-width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
}

.service-icon {
    font-size: clamp(1.5rem, 5vh, 2.2rem);
    color: var(--accent-orange);
    margin-bottom: 2vh;
}

.service-title {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: clamp(1rem, 2.5vh, 1.2rem);
    text-transform: uppercase;
    margin-bottom: 1.5vh;
    letter-spacing: 0.5px;
}

.service-desc {
    font-size: clamp(0.85rem, 1.8vh, 0.95rem);
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    max-width: 280px;
}

/* =========================================
   7. PROJECT CAROUSEL
========================================= */
.project-carousel {
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.carousel-viewport {
    height: 100%;
    width: 100%;
}

.carousel-track {
    display: flex;
    height: 100%;
    width: 300vw;
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

.carousel-item {
    position: relative;
    width: 100vw; /* Locks the width strictly to the screen size */
    flex: 0 0 100vw; /* Prevents flexbox from resizing the slide */
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 7%;
    overflow: hidden; /* The magic bullet: acts like a pair of scissors to cut off the video bleed */
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 38, 52, 0.8), rgba(26, 38, 52, 0.3));
    z-index: -1;
}

.project-info {
    max-width: 600px;
    color: white;
    z-index: 1;
}

.project-name {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--accent-orange);
}

.project-meta {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.carousel-nav {
    position: absolute;
    bottom: 50px;
    right: 50px;
    display: flex;
    gap: 15px;
    z-index: 10;
}

/* Specialized styling for Carousel Nav Buttons specifically */
.carousel-nav .nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: 0.3s;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav .nav-btn:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

.btn-outline-white {
    display: inline-block;
    padding: 15px 35px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-outline-white:hover {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
}

/* =========================================
   8. CONTACT & FOOTER
========================================= */
.contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh; /* Slightly shorter now that the big header is gone */
    background: linear-gradient(180deg, var(--primary-blue) 0%, #040a12 100%);
    color: var(--text-light);
    text-align: center;
    padding: 8vh 5vw;
}

/* The new, larger lead text acting as the header */
.contact-lead {
    font-size: clamp(1.2rem, 3vh, 1.8rem);
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 5vh;
    line-height: 1.6;
    font-weight: 300;
}

/* Container to hold the buttons side-by-side */
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensures they stack nicely on very small mobile screens */
    margin-bottom: 8vh;
}

/* Premium Button Styling */
.contact .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--accent-orange);
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px 40px;
    border: 2px solid var(--accent-orange);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    min-width: 250px; /* Makes both buttons the exact same width */
}

.contact .btn:hover {
    background: transparent;
    color: var(--accent-orange);
}

/* Secondary "Ghost" style for the Call button */
.contact .btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.contact .btn-outline:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

/* =========================================
   SOCIAL LINKS
========================================= */
.social-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
    font-weight: 600;
}

.contact .social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.contact .social-links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem; 
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact .social-links a:hover {
    color: var(--accent-orange);
    transform: translateY(-5px); 
}

/* =========================================
   FOOTER (Simplified)
========================================= */
footer {
    background: #040a12; 
    color: rgba(255, 255, 255, 0.3); 
    text-align: center;
    padding: 2rem 0;
    font-family: var(--font-main);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5vw;
}

/* =========================================
   9. UTILITY & LAYOUT
========================================= */
.full-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   10. MEDIA QUERIES
========================================= */
@media (max-width: 768px) {

  /* Reduce the large side padding on the container */
  .nav-container {
      padding: 0 1.5rem; 
  }

  .full-screen,
  .about-centered,
  .services-section {
      min-height: auto !important;
      height: auto !important;
  }

  /* 2. Tighten up the padding for About and Services */
  .about-centered,
  .services-section {
      /* Uses your new smaller nav-height and adds just 2rem of breathing room */
      padding-top: calc(var(--nav-height) + 2rem); 
      padding-bottom: 4rem;
  }

  /* 3. Tighten up the Contact section */
  .contact {
      min-height: auto;
      padding-top: 4rem;
      padding-bottom: 4rem;
  }

  /* 4. Optional: Shrink the Projects Carousel slightly so it doesn't take up the entire screen */
  .project-carousel {
      height: 80vh; 
  }

  /* 5. Adjust Hero content spacing so it centers better with the new smaller nav */
  .hero .container {
      padding-top: calc(var(--nav-height) + 15vh); 
  }
}

@media (max-width: 1200px) {

    .logo-link {
        order: 1;
    }
  .hero h1 {
    font-size: 2rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .services-section {
    height: auto;
    min-height: auto;
    padding-top: calc(var(--nav-height) + 40px);
  }
    
  .service-item {
    flex: 1 1 100%;
    max-width: 100%;
    margin-bottom: 40px;
  }

  .hamburger {
      display: block;
      position: relative;
      z-index: 999999 !important; /* Forces it above literally everything */
      pointer-events: auto !important; /* Forces it to be clickable */
      background: transparent;
      border: none;
      padding: 10px; /* Makes the "clickable area" larger for fat fingers */
      margin-left: 0;
      order: 3;
  }

  /* Animate the hamburger into an "X" when clicked */
  .hamburger.active .bar:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(2) {
      opacity: 0;
  }
  .hamburger.active .bar:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
  }

  /* Style the slide-out menu */
  .nav-links {
      display: flex !important;
      position: fixed;
      right: 0; 
      top: var(--nav-height);
      transform: translateX(100%);
      flex-direction: column;
      
      align-items: center;     /* Centers horizontally */
      justify-content: center; /* Centers vertically */
      
      background-color: var(--primary-blue);
      width: 100%;
      height: calc(100vh - var(--nav-height));
      text-align: center;
      transition: transform 0.4s ease-in-out;
      
      padding-top: 0; 
      gap: 0;
      z-index: 9998;
  }

  /* The class JS will add to slide it onto the screen */
  .nav-links.active {
      transform: translateX(0);
  }

  /* Space out the links for "fat fingers" */
  .nav-links li {
      margin: 4vh 0;
  }

  /* Hide the visual divider line on mobile */
  .nav-cta::before {
      display: none;
  }

  /* Hide the original desktop button that's floating outside */
  .nav-cta {
      display: none !important;
  }

  /* Show the clone that lives inside the sliding menu */
  .mobile-cta {
      display: block;
      margin-top: 4vh; 
  }

  .desktop-lang {
      display: block !important;
      order: 2;
      margin-left: auto;
      margin-right: 15px;
  }

  /* Show the mobile switcher in the hamburger menu */
  .mobile-lang {
      display: none !important;
  }
  
  /* Center the mobile language switcher */
  .mobile-lang .lang-switcher {
      justify-content: center;
      font-size: 1.2rem; 
  }
}

/* =========================================
   HIDE SCROLLBAR ON DESKTOP/LAPTOP
========================================= */
@media (min-width: 769px) {
    html, body {
        /* Hide scrollbar for Firefox */
        scrollbar-width: none; 
        
        /* Hide scrollbar for IE and Edge */
        -ms-overflow-style: none; 
    }
    
    /* Hide scrollbar for Chrome, Safari and Opera */
    html::-webkit-scrollbar, 
    body::-webkit-scrollbar {
        display: none; 
    }
}

/* Hides the native iOS/Android play button when autoplay is blocked by Low Power Mode */
video::-webkit-media-controls,
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-overlay-play-button {
    display: none !important;
    -webkit-appearance: none;
}