/* ===== Color Palette ===== */
:root {
    /* Primary Teal Colors */
    --primary-teal: #3B6784;
    --dark-teal: #3B6784;
    --light-teal: #4CB7A5;
    --bright-teal: #00CCCC;
    
    /* Neutral Colors */
    --off-white: #F5F5F5;
    --light-gray: #E0E0E0;
    --medium-gray: #888888;
    --dark-gray: #333333;
    --near-black: #1A1A1A;
    
    /* Semantic Colors */
    --primary-color: var(--primary-teal);
    --secondary-color: var(--light-teal);
    --accent-color: var(--bright-teal);
    --dark-color: var(--near-black);
    --light-color: var(--off-white);
    --text-color: var(--dark-gray);
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-color);
    padding-bottom: 60px; /* For contact ribbon */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75em;
}

p {
    margin-bottom: 1em;
}

.lead {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: var(--dark-teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    margin-left: 15px;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* ===== Header ===== */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0px; /* Added gap between header elements */
}

/* ===== Header Logo Styles ===== */
.logo {
    display: flex;
    align-items: center;
    min-width: 200px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0px; /* Reduced from 15px to 10px */
}

.logo-img {
    height: 150px; /* Slightly reduced height */
    width: 300px;
    transition: all 0.3s ease;
}

.logo-text {
    display: flex;
    flex-direction: column;
    margin-left: 5px; /* Added small margin instead of gap */
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0;
    line-height: 1.2;
}

.tagline {
    font-size: 0.75rem; /* Slightly smaller */
    color: var(--medium-gray);
    margin-top: 2px;
    font-weight: 500;
}

/* Navigation */
nav {
    flex: 1; /* Allow nav to grow and take available space */
    margin: 0 20px; /* Added margin */
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center; /* Center nav items */
}

nav ul li {
    margin: 0 12px; /* Adjusted spacing */
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap; /* Prevent line breaks */
}



/* Hero Section Styles */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 60px;
    padding: 60px 0;
    overflow: hidden;
}


.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-foreground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-foreground iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/hero-image.jpg') no-repeat center center;
    background-size: cover;
    display: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* ===== Services Section ===== */
.services {
    padding: 60px 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--light-color);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--accent-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 102, 102, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
    font-size: 1.3rem;
}

.service-card p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    text-align: left;
    margin-top: 15px;
    font-size: 0.9rem;
}

.service-features li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-features li::before {
    content: "▹";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* ===== About Section ===== */
.about {
    padding: 60px 0;
    background: var(--light-color);
}

.about .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.stat-card {
    background: white;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

.differentiators-title {
    margin: 25px 0 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.differentiators-list {
    list-style: none;
    column-count: 2;
    column-gap: 30px;
}

.differentiators-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
    font-size: 0.95rem;
    break-inside: avoid;
}

.differentiators-list i {
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 3px;
}

/* ===== Projects Section ===== */
.projects {
    padding: 60px 0;
    background: white;
}

.projects-subtitle {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--medium-gray);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--light-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-teal);
    font-size: 1.3rem;
}

.project-card ul {
    list-style: none;
}

.project-card li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
}

.project-card li::before {
    content: "▹";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.references {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    color: var(--medium-gray);
}

/* ===== Contact Section ===== */
.contact {
    padding: 60px 0;
    background: var(--light-color);
}

.contact-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-family: inherit;
    transition: border 0.3s ease;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.map-placeholder {
    background: var(--light-teal);
    color: white;
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    margin-top: 15px;
}

.map-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}



.contact-person {
    margin-bottom: 20px;
}

.contact-person h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-person p {
    margin-bottom: 5px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.contact-person i {
    color: var(--accent-color);
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--dark-teal);
    transform: translateY(-3px);
}

/* ===== Footer ===== */
footer {
    background: var(--dark-teal);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.footer-logo h3 span {
    color: var(--accent-color);
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

.footer-certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cert-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.footer-links ul,
.footer-services ul,
.footer-contact p {
    list-style: none;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links li,
.footer-services li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--accent-color);
}

.footer-contact i {
    margin-right: 8px;
    color: var(--accent-color);
    width: 18px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-legal {
    margin-top: 10px;
}

.footer-legal a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.footer-legal a:hover {
    text-decoration: underline;
}

/* ===== Contact Ribbon ===== */
.contact-ribbon {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 12px 0;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.contact-ribbon .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-ribbon span {
    font-weight: 600;
}









/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    .about .container {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .contact-columns {
        grid-template-columns: 1fr;
    }
    
    .differentiators-list {
        column-count: 1;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 8px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        padding: 20px;
    }
}

/* ===== Video Background Styles ===== */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Add overlay for better text readability */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 80, 80, 0.6); /* Adjust opacity as needed */
    z-index: -1;
}

/* ===== Slideshow Styles ===== */
.slideshow-container {
    flex: 1;
    position: relative;
    max-width: 500px;
    margin-left: 40px;
}

.slideshow {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

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

.slideshow-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.slideshow-prev,
.slideshow-next {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-prev:hover,
.slideshow-next:hover {
    background: var(--dark-teal);
    transform: scale(1.1);
}

.slideshow-dots {
    display: flex;
    margin: 0 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-gray);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Update the about section layout */
.about .container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.about-content {
    flex: 1;
}









/* Mobile Menu Base Styles */
.mobile-menu-toggle {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    padding: 80px 20px 20px;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-menu li {
    margin: 15px 0;
}

.mobile-menu a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
}

/* Grid Fallbacks */
.services-grid, .projects-grid, .stats-grid {
    display: grid;
    gap: 20px;
}

/* Hide navigation menu on screens 768px wide or less */
@media (max-width: 768px) {
  nav ul {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .header-phone {
    white-space: nowrap;
    font-size: 0.75rem; /* Optional: adjust as needed */
  }
}