:root {
    --primary-red: #b71c1c;
    --primary-yellow: #fdd835;
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f4f4f4;
    --max-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.top-bar {
    background-color: #cc0000;
    /* Red from image */
    color: #fff;
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
}

.social-icons a {
    color: #fff;
    margin-left: 15px;
    font-size: 1rem;
}

.main-header {
    background: #fff;
    padding: 10px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.header-extras {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-certs {
    height: 50px;
    /* Adjust height to match logo */
    width: auto;
}

.menu-toggle {
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    margin: 0 15px;
}

.btn-update {
    background-color: #cc0000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 0;
    /* Square corners as per image */
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-update:hover {
    background-color: #a00000;
    color: #fff;
}

.mobile-menu {
    display: none;
    /* Hidden by default, toggle with JS if needed */
    background: #fff;
    border-top: 1px solid #eee;
}

.mobile-menu .nav-links {
    flex-direction: column;
    padding: 20px;
}

.mobile-menu .nav-links li {
    margin-bottom: 10px;
}

.mobile-menu .nav-links li a {
    color: #333;
}

/* Hero Section Adjustment */
.hero-carousel {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 50px;
    /* Reduced from 130px */
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Slightly darker for better text visibility */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-yellow);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-scroll-down {
    margin-top: 50px;
    font-size: 2rem;
    color: var(--primary-yellow);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-carousel {
        margin-top: 140px;
        /* Adjust based on mobile header height */
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }
}

/* Sections Common */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--text-dark);
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-yellow);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

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

.service-img {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    color: #0056b3;
    /* Blueish tone from screenshot */
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.service-content p {
    font-size: 0.9rem;
    color: #666;
}

/* About Us */
.about-section {
    background: #f4f4f4;
    /* Light blue/grey bg */
    padding: 0;
}

.about-banner {
    height: 200px;
    background: url('../images/about-banner.png') center/cover;
    background-color: var(--primary-red);
    margin-top: 130px;
    /* Push down below fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
}

.responsive-banner {
    margin-top: 130px;
    line-height: 0;
}

.about-container {
    max-width: 1000px;
    margin: -50px auto 0;
    background: #fff;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.about-container h2 {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary-yellow);
    display: inline-block;
}

/* Stats */
.stats-section {
    background: var(--primary-yellow);
    padding: 40px 0;
    color: var(--text-dark);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 0 20px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    flex: 1;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

.stat-item p {
    font-size: 1rem;
    font-weight: 500;
    color: #555;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.gallery-item {
    background-color: #fff;
    transition: 0.3s;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    height: auto;
    /* Allow height to adjust */
    aspect-ratio: 4/3;
    /* Maintain a nice aspect ratio */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img {
    transform: scale(1.05);
}



.video-item {
    aspect-ratio: 16/9 !important;
    padding-bottom: 10px !important;
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #000;
}

.video-item iframe {
    position: relative !important;
    width: 100%;
    height: 100%;
}

/* Key Clients */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.client-logo {
    width: 100%;
    height: 140px;
    background-color: #fff;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.client-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.client-logo i {
    font-size: 2rem;
    color: #ccc;
}

/* Contact */
.contact-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/contact-bg.png') center/cover;
    background-color: #2c3e50;
    color: #fff;
    padding: 60px 0;
}

.contact-map-container {
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 40px;
}

.contact-map {
    width: 100%;
    height: 300px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-col h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-yellow);
}

.contact-col p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #ccc;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 3px;
}

.contact-form button {
    background: var(--primary-yellow);
    color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
}

/* Footer */
footer {
    background: #111;
    color: #777;
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
}

/* Responsive */
/* Responsive */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 140px;
        /* Increased for top bar + header + button */
    }

    .top-bar {
        display: block;
        background-color: #cc0000;
        padding: 10px 0;
    }

    .top-bar-content {
        justify-content: space-between;
        padding: 0 15px;
        /* Add padding for edge spacing */
    }

    .contact-info {
        display: none;
    }

    .social-icons {
        display: flex;
        gap: 15px;
        align-items: center;
    }

    .social-icons a {
        color: #fff;
        font-size: 1.2rem;
        margin: 0;
    }

    .main-header {
        padding: 10px 0;
    }

    .navbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        flex: 1;
        /* Take up available space */
        max-width: 70%;
    }

    .logo img {
        height: 35px;
        max-width: 100%;
        width: auto;
        object-fit: contain;
    }

    .menu-toggle {
        display: block;
        font-size: 2rem;
        color: #000;
        margin-left: 15px;
        cursor: pointer;
    }

    .header-extras {
        width: 100%;
        margin-top: 15px;
        display: flex;
        justify-content: center;
        order: 3;
        /* Force to bottom */
    }

    .header-certs {
        display: none;
    }

    .btn-update {
        width: 100%;
        background-color: #cc0000;
        color: #fff;
        padding: 12px 20px;
        font-size: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 3px;
    }

    .btn-update i {
        display: block;
    }

    .hero {
        margin-top: 180px;
        /* Adjusted for taller header */
        padding: 60px 0;
    }

    .about-banner {
        margin-top: 180px;
    }

    .stats-grid {
        flex-direction: column;
        gap: 20px;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding-bottom: 20px;
        width: 100%;
    }

    .contact-details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .client-logo {
        height: 100px;
    }

    .updates-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .header-extras {
        gap: 10px;
    }

    .btn-update {
        font-size: 0.7rem;
        padding: 6px 10px;
    }

    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    }
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid #4285F4;
}

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

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reviewer-info h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 5px;
}

.stars {
    color: #fbbc05;
    font-size: 0.9rem;
}

.google-icon {
    color: #4285F4;
    font-size: 1.5rem;
}

.review-text {
    color: #666;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn-google-review {
    background: #4285F4;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    transition: 0.3s;
}

.btn-google-review:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

/* Sticky Social Media Sidebar */
.sticky-social-sidebar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sticky-social-sidebar .social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: 1px;
}

.sticky-social-sidebar .social-icon:hover {
    width: 65px;
    /* Slide out effect */
    padding-right: 0px;
}

/* Brand Colors */
.sticky-social-sidebar .facebook {
    background-color: #3b5998;
}

.sticky-social-sidebar .whatsapp {
    background-color: #25d366;
}

.sticky-social-sidebar .instagram {
    background: #f09433;
    background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.sticky-social-sidebar .x-twitter {
    background-color: #000;
}

.sticky-social-sidebar .social-icon:hover {
    filter: brightness(1.1);
}

/* Hide or Adjust on Mobile */
@media (max-width: 768px) {
    .sticky-social-sidebar {
        /* Optional: move to bottom or keep on side but smaller? 
           Keeping on side is standard fab behavior usually. */
        display: flex;
        /* Keep it visible */
    }
}

@media (max-width: 480px) {
    .sticky-social-sidebar {
        bottom: 0;
        top: auto;
        right: 0;
        left: 0;
        flex-direction: row;
        transform: none;
        width: 100%;
        justify-content: space-around;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
        z-index: 2000;
    }

    .sticky-social-sidebar .social-icon {
        width: 100%;
        height: 50px;
        margin-bottom: 0;
        flex: 1;
    }

    .sticky-social-sidebar .social-icon:hover {
        width: 100%;
    }
}
/* Org Chart Styles */
.org-chart-container {
    overflow-x: auto; /* Allow horizontal scroll for large trees */
    padding: 40px 0;
    text-align: center;
}

.org-chart ul {
    padding-top: 20px;
    position: relative;
    transition: all 0.5s;
    display: flex;
    justify-content: center;
}

.org-chart li {
    float: left;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 5px 0 5px;
    transition: all 0.5s;
}

/* Connectors */
.org-chart li::before, .org-chart li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 1px solid #ccc;
    width: 50%;
    height: 20px;
}

.org-chart li::after {
    right: auto;
    left: 50%;
    border-left: 1px solid #ccc;
}

.org-chart li:only-child::after, .org-chart li:only-child::before {
    display: none;
}

.org-chart li:only-child {
    padding-top: 0;
}

.org-chart li:first-child::before, .org-chart li:last-child::after {
    border: 0 none;
}

.org-chart li:last-child::before {
    border-right: 1px solid #ccc;
    border-radius: 0 5px 0 0;
}

.org-chart li:first-child::after {
    border-radius: 5px 0 0 0;
}

/* Down connectors */
.org-chart ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 1px solid #ccc;
    width: 0;
    height: 20px;
}

.org-chart .node {
    border: 1px solid #ccc;
    padding: 10px 20px;
    text-decoration: none;
    color: #666;
    font-family: arial, verdana, tahoma;
    font-size: 0.9rem;
    display: inline-block;
    border-radius: 5px;
    transition: all 0.5s;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    min-width: 120px;
}

.org-chart .node:hover {
    background: #f0f0f0;
    border: 1px solid #999;
}

.org-chart .node.head {
    background: var(--primary-red);
    color: #fff;
    font-weight: bold;
}

.org-chart .node.support {
    border-color: var(--primary-yellow);
    border-bottom-width: 3px;
}

/* Roles Grid */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.role-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-red);
    transition: transform 0.3s;
}

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

.role-card h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.role-card ul {
    list-style: none;
    padding-left: 10px;
}

.role-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 5px;
    color: #555;
    font-size: 0.9rem;
}

.role-card ul li::before {
    content: "•";
    color: var(--primary-yellow);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
}
