/* style.css */

/* Root variables for theme colors */
:root {
    --primary-color: #00509e; /* Dark blue */
    --secondary-color: #d97400; 
    --text-color: #333;
    --light-color: #f4f4f4;
    --white: #fff;
}

/* Global Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: auto;
    padding: 20px 0;
}

/* Header and Navigation */
header {
    background: var(--primary-color);
    color: var(--white);
    padding: 2px 2px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo img {
    width: 70px;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-right: 20px;
}

.nav-links li:last-child {
    margin-right: 0;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    transition: background 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--secondary-color);
    border-radius: 20px;
}

/* Hamburger (mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 4px;
    transition: all 0.3s;
}
/* ensure header row layout */
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
}

/* make logo area a horizontal block with image + text */
.logo .brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

/* logo image size */
.logo img {
  width: 70px;            /* adjust as needed */
  height: auto;
  display: block;
  border-radius: 10px;     /* optional */
}

/* brand text styles */
.brand-text .brand-name {
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--white);
}

.brand-text .brand-sub {
  font-weight: 600;
  font-size: 0.99rem;
  line-height: 1;
  color: rgba(255,255,255,0.9);
  margin-top: 2px;
  white-space: nowrap;    /* keep short text on one line - remove if long */
}

/* keep nav in the same row and vertically centered */
header nav {
  display: flex;
  align-items: center; /* ensures nav-links and hamburger line up with logo */
  gap: 16px;
}

/* small tweak: nav-links vertical alignment */
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* keep hamburger hidden on desktop, visible on mobile via media query */
.hamburger {
  display: none; /* shown on mobile later */
}



/* MOBILE: stack nav & show hamburger */
@media (max-width: 992px){
   
  /* shrink brand text on small screens to avoid overflow */
  .brand-text .brand-name { font-size: 1.1rem; }
  .brand-text .brand-sub  { font-size: 0.9rem; white-space: normal; }
  /* Default nav links (desktop) */
.nav-links {
  display: flex;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}
}



/* Mobile nav hidden by default */
@media (max-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    background: var(--primary-color);
    position: absolute;
    top: 95px; /* adjust depending on header height */
    right: 1px;
    width: 90px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);

    /* start hidden */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
  }

  /* Show when active */
  .nav-links.active {
    max-height: 400px; /* enough for all links */
    opacity: 1;
  }

  /* Links inside mobile menu */
  .nav-links li {
    margin: 10px 0;
  }

  .nav-links a {
    display: block;
    padding: 10px;
    border-radius: 6px;
    font-size: 16px;
    text-align: left;
    color: var(--white);
    transition: background 0.3s, transform 0.2s;
  }

  .nav-links a:hover {
    background: var(--secondary-color);
    transform: translateX(5px);
  }
}

/* ============================
   HERO: merged (layout + effects + arrows)
   ============================ */

/* HERO container */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;             /* working height you used */
  overflow: hidden;
  margin-bottom: 20px;
  /* if header is fixed, keep margin-top equal to header height in your main CSS */
}

/* subtle dark overlay to improve text contrast */
.hero::before {
  content: "";
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  background: rgba(0, 30, 80, 0.30);
  z-index: 1; /* above images but under text and controls */
  pointer-events: none;
}

/* carousel container behind overlay */
.carousel {
  position: absolute;
  inset: 0;
  z-index: 0; /* images under overlay (z-index:1) and text (z-index:2) */
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel .slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* images: absolute, cover, use opacity + transform for smooth transitions */
.carousel .slides img {
  position: absolute;
  inset: 0;                /* fill parent */
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  opacity: 0;
  transform: scale(1.06);  /* slightly zoomed-out starting point */
  transition: opacity 1s ease-in-out, transform 8s ease; /* long transform for Ken Burns */
  z-index: 0;
  will-change: opacity, transform;
  pointer-events: none;
}

/* active slide visible, smoothly scales in */
.carousel .slides img.active {
  opacity: 1;
  transform: scale(1);
}

/* fallback if JS fails: show first image */
.carousel .slides img:first-child {
  opacity: 1;
}

/* Hero text (title + subtitle) sits above everything */
.hero-text {
  position: absolute;
  z-index: 2;              /* above overlay */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);     /* assumes you defined --white */
  font-weight: 800;
  text-align: center;
  text-shadow: 3px 3px 10px rgba(0,0,0,0.6);
  padding: 0 20px;
  max-width: 1100px;
  pointer-events: none;    /* clicks pass through to arrows/buttons if needed */
}

/* inner title & subtitle styles (support both generic h1/p and .hero-title/.hero-subtitle) */
.hero-text .hero-title,
.hero-text h1 {
  margin: 0 0 10px;
  font-size: 2.6rem;
  line-height: 1.1;
}

.hero-text .hero-subtitle,
.hero-text p {
  margin: 0;
  font-size: 1.17rem;
  max-width: 900px;
}

/* ===== Text animation =====
   We provide two mechanisms:
   - Initial animation (when page first loads) via direct animation rules on h1/p.
   - Replay animation when JS toggles .hero-text.animate (useful on slide change).
*/

/* initial entry animation on load (runs once automatically) */
.hero-text h1 {
  opacity: 0;
  transform: translateY(18px);
  animation: textIn 900ms ease 500ms forwards;
}

.hero-text p {
  opacity: 0;
  transform: translateY(18px);
  animation: textIn 900ms ease 900ms forwards;
}

/* helper class used by JS to replay animations when slides change */
.hero-text.animate .hero-title,
.hero-text.animate h1 {
  opacity: 0;
  transform: translateY(18px);
  animation: textIn 900ms ease 150ms forwards;
}

.hero-text.animate .hero-subtitle,
.hero-text.animate p {
  opacity: 0;
  transform: translateY(18px);
  animation: textIn 900ms ease 450ms forwards;
}

/* keyframes (shared) */
@keyframes textIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Arrow buttons (prev/next) ===== */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10; /* above overlay and images */
  background: var(--secondary-color);
  color: #fff;
  border: none;
  width: 40px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5em;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);


}

/* left and right placement */
.carousel-nav.prev { left: 18px; }
.carousel-nav.next { right: 18px; }

.carousel-nav:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.05);
}

.carousel-nav:focus {
  outline: 2px solid rgba(255,255,255,0.9);
}

/* small screen adjustments */
/* Mobile: keep arrows separate and non-overlapping */
@media (max-width: 600px) {
  .carousel-nav {
    width: 36px;
    height: 36px;
    font-size: 18px;
    /* remove generic left/right here */
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
  }

  /* place prev on the left edge, next on the right edge */
  .carousel-nav.prev {
    left: 10px;
    right: auto;
  }
  .carousel-nav.next {
    right: 10px;
    left: auto;
  }

  /* optional: slightly smaller shadow and blur on mobile */
  .carousel-nav {
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
  }
}

/* responsive tweaks for text */
@media (max-width: 768px) {
  .hero { height: 48vh; }
  .hero-text .hero-title,
  .hero-text h1 { font-size: 1.8rem; }
  .hero-text .hero-subtitle,
  .hero-text p { font-size: 1.1rem; }
}



/* Company Overview */
.overview {
    background: var(--white);
    padding: 40px 0;
    text-align: center;
}

.overview h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.overview p {
    max-width: 800px;
    margin: 0 auto;
}


/* Company Overview Section */
.about-us {
    padding: 80px 0;
    text-align: center;
    background-color: var(--light-color); /* assuming you have a light color variable */
}

.about-us h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--text-color);
}

/* Trust Metrics Section */
.trust-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.trust-item {
    text-align: center;
    padding: 0 20px;
}

.trust-item h3 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--secondary-color); /* Use a bold accent color for numbers/text */
}

.trust-item p {
    font-size: 1em;
    margin: 0;
}

/* Responsive Styles for smaller screens */
@media (max-width: 768px) {
    .trust-container {
        flex-direction: column;
        gap: 20px;
    }
}



/* Services Section */
/* Services Section */
/* Color Palette */
:root {
    --primary-blue: #0D47A1;
    --secondary-color: #d97400; /* New Orange Accent Color */
    --neutral-gray: #424242;
    --light-bg: #F5F5F5;
    --white: #FFFFFF;
}

/* Services Section */
.services-section {
    padding: 50px 0;
    text-align: center;
}

.services-section h2 {
    margin-bottom: 40px;
    font-size: 2.5em;
    color: var(--primary-blue);
}

/* The main scroll wrapper */
.service-scroll-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Styles for the main service card */
.service-card-scroll {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.service-card-scroll h3 {
    color: var(--primary-blue);
    font-size: 1.8em;
    margin-bottom: 10px;
}

.service-description {
    font-size: 1.1em;
    color: var(--neutral-gray);
    max-width: 800px;
    margin: 0 auto 30px;
}

/* The horizontal scroll container for sub-services */
.service-sub-cards {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    gap: 20px;
    padding-bottom: 20px;
    padding-left: 50px; /* Space for the arrows */
    padding-right: 50px;
}

/* Hide the scrollbar for a cleaner look */
.service-sub-cards::-webkit-scrollbar {
    display: none;
}
.service-sub-cards {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 65%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    display: none; /* Hidden by default on mobile */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-arrow:hover {
    background: #c06900; /* Darker orange on hover */
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Styles for each individual sub-service card */
.sub-service-card {
    flex: 0 0 300px;
    position: relative;
    background-color: var(--light-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(70, 69, 68, 0.856);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sub-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.sub-service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Overlay for text content */
.card-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
    color: white;
    padding: 20px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.sub-service-card:hover .card-content-overlay {
    transform: translateY(0);
}

.card-content-overlay h4 {
    color: var(--accent-teal);
    font-size: 1.2em;
    margin-bottom: 5px;
}

.card-content-overlay p {
    font-size: 0.9em;
    color: white;
}

/* See More Button */
.show-more-btn {
    display: none; /* Hide button on desktop */
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 30px;
    margin-top: 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.show-more-btn:hover {
    background-color: #c06900;
}
/* ... (All previous CSS code remains the same) ... */
/* ... (All previous CSS remains the same) ... */

/* === Responsive Design === */
@media (min-width: 769px) {
    .nav-arrow {
        display: block; /* Show arrows on desktop */
    }
    
    .show-more-btn {
        display: none; /* Hide button on desktop */
    }
}

@media (max-width: 768px) {
    .service-sub-cards {
        flex-direction: column; /* Stack cards vertically on mobile */
        overflow-x: hidden; /* Disable horizontal scrolling */
        gap: 25px; /* Adjust vertical spacing */
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Hide all cards after the third one on mobile by default */
    .sub-service-card:nth-child(n+4) {
        display: none;
    }

    /* When the parent container has the 'show-all' class, display all cards */
    .service-sub-cards.show-all .sub-service-card:nth-child(n+4) {
        display: block;
    }

    .service-card-scroll {
        padding: 20px;
    }

    .sub-service-card {
        flex: 1 1 100%; /* Make each card take full width */
        transform: none !important;
        box-shadow: 0 2px 10px rgba(211, 145, 3, 0.945);
    }
    
    .sub-service-card:hover {
        transform: none;
    }

    .card-content-overlay {
        position: static;
        background: none;
        color: var(--neutral-gray);
        padding: 15px;
        transform: none !important;
    }
    
    .card-content-overlay h4, .card-content-overlay p {
        color: var(--neutral-gray);
    }
    
    .sub-service-card:hover .card-content-overlay {
        transform: none;
    }
    
    .show-more-btn {
        display: block;
        margin: 20px auto 0;
    }

    .nav-arrow {
        display: none; /* Hide arrows on mobile */
    }
}





/* Bids & Tenders Section */
/* Bids & Tenders Section */
.bids-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--light-bg);
}

.bids-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.bids-section > p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--neutral-gray);
}

.bids-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.bids-item {
    flex: 1;
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.bids-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.bids-item h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.bids-item p {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--neutral-gray);
}

/* Call to Action Button */
.cta-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-primary:hover {
    background-color: #c06900;
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .bids-content {
        flex-direction: column;
        gap: 20px;
    }

    .bids-item {
        text-align: center;
    }
}

/* About Section (reusing overview styles) */
.about, .vision {
    background: var(--white);
    padding: 40px 0;
}

.about h1, .vision h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

/* Team Section */
.team {
    background: var(--light-color);
    padding: 40px 0;
}

.team h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.team-member {
    text-align: center;
    margin-bottom: 20px;
    width: 200px;
}

.team-member img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
}

.team-member h3 {
    color: var(--primary-color);
    margin: 10px 0 5px 0;
}

.team-member p {
    font-size: 0.9rem;
    color: #555;
}

/* Contact Section */
.contact {
    background: var(--white);
    padding: 40px 0;
}

.contact h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info {
    text-align: center;
    margin-bottom: 20px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-form form input,
.contact-form form textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form form button.btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}


/* CTA Contact Section */
.cta-contact-section {
    background-color: #e49c49;
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.cta-contact-section h2 {
    color: var(--white);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.cta-contact-section p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-contact-section .cta-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-contact-section .cta-primary:hover {
    background-color: #c06900;
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cta-contact-section h2 {
        font-size: 2em;
    }

    .cta-contact-section p {
        font-size: 1em;
    }
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 0 10px;
}

.footer-col {
    width: 30%;
    float: left;
    margin-bottom: 20px;
}

.footer-col h3 {
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin: 5px 0;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #444;
    margin-top: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
    }
    .nav-links li {
        text-align: center;
        margin: 10px 0;
    }
    .hamburger {
        display: flex;
    }
    .nav-links.active {
        display: flex;
    }
    .service-card {
        width: 100%;
    }
    .team-members {
        justify-content: center;
    }
    .footer-col {
        width: 100%;
        float: none;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
}
