:root {
    --blue: #0A4D95;
    --gold: #F2C12E;
    --dark: #121212;
    --gray: #f4f4f4;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    color: var(--dark);
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

/* Navbar - Fixed & Transparent to Solid */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--blue);
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: inherit;
    margin-left: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--blue);
}

/* Styling for the Active Page Link */
.nav-links li a.active {
    color: var(--gold); /* Highlights the link in Macra Gold */
    font-weight: 800;
    position: relative;
}

/* Subtle underline for the active link */
.nav-links li a.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gold);
}

.nav-links li a.btn-nav.active::after {
    display: none;
}

.btn-nav {
    background: var(--blue);
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: var(--gray);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text h1 span {
    color: var(--blue);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

.btn-main {
    background: var(--blue);
    color: white;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-right: 15px;
    display: inline-block;
}

.btn-outline {
    border: 2px solid var(--blue);
    color: var(--blue);
    padding: 13px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

/* Visual Hero elements */
.hero-visual {
    position: relative;
    height: 400px;
    background: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=600&q=80');
    border-radius: 20px;
    background-size: cover;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

.floating-card span {
    display: block;
    color: var(--blue);
    font-size: 1.5rem;
}

.card-1 {
    top: 20%;
    left: -50px;
}

.card-2 {
    bottom: 20%;
    right: -20px;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 50px 0;
}

.service-card {
    padding: 40px;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 15px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

/* Mobile Navigation */
.menu-icon {
    font-size: 1.8rem;
    display: none;
    cursor: pointer;
}

@media (max-width: 968px) {
    .menu-icon {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 50px;
        transition: 0.5s;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-visual {
        display: none;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Logo Image Styling */
.logo-img {
    height: 50px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.navbar.scrolled .logo-img {
    height: 40px; 
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }
}

/* Footer */
.main-footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 0;
}

.grid-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    padding-bottom: 50px;
}

.footer-social .social-row a {
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 20px;
}


/* Footer Logo Specific Fix */
.footer-logo-bg {
    background-color: var(--white); 
    display: inline-block;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.footer-logo-bg .logo-img {
    height: 45px;
    width: auto;
    filter: none;
}

.footer-info p {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.8); 
}

.bottom-bar {
    text-align: center;
    border-top: 1px solid #333;
    padding: 20px 0;
    font-size: 0.9rem;
    opacity: 0.7;
}



/* --- Product Page Specifics --- */
.page-header {
    background: var(--blue);
    padding: 150px 0 80px;
    color: var(--white);
    text-align: center;
}

.product-detail {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--gray);
}

.product-grid-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.product-grid-detail.reverse {
    direction: rtl;
}

.product-grid-detail.reverse .product-info {
    direction: ltr;
}

.product-visual {
    background: var(--white);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.main-icon {
    font-size: 8rem;
    color: var(--blue);
}

.badge {
    background: var(--gold);
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.product-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--blue);
}

.feat-list {
    list-style: none;
    margin: 2rem 0;
}

.feat-list li {
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.feat-list i {
    color: var(--gold);
    margin-right: 12px;
}

@media (max-width: 968px) {
    .product-grid-detail {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .product-grid-detail.reverse {
        direction: ltr;
    }

    .product-visual {
        height: 250px;
    }

    .feat-list li {
        justify-content: center;
    }
}



/* --- Modern About Page Styles --- */

.about-hero-modern {
    background: linear-gradient(135deg, #0A4D95 0%, #062e5a 100%);
    padding: 160px 0 100px;
    color: white;
}

.hero-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.eyebrow { color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; }
.hero-content h1 { font-size: 3.5rem; margin: 10px 0; }

.hero-stats-cards { display: flex; gap: 20px; }
.stat-box {
    background: white; color: var(--dark);
    padding: 30px; border-radius: 15px; text-align: center;
    min-width: 160px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.stat-box.accent { background: var(--gold); }
.stat-box h3 { font-size: 2.5rem; color: var(--blue); margin-bottom: 5px; }

/* Team Cards Modern */
.team-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-card-modern {
    text-align: center;
    padding: 20px;
    background: #fff;
    transition: var(--transition);
}

.img-frame {
    width: 180px; height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #eee;
    transition: var(--transition);
}

.img-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.frame-gold { border-color: var(--gold); }
.frame-blue { border-color: var(--blue); }

.team-card-modern:hover .img-frame { transform: scale(1.05); }
.team-card-modern h3 { font-size: 1.4rem; color: var(--blue); }
.team-card-modern .role { font-size: 0.9rem; color: #777; margin-bottom: 15px; }

.team-social-links a {
    color: #ccc; font-size: 1.2rem; margin: 0 8px; transition: 0.3s;
}
.team-social-links a:hover { color: var(--blue); }

/* Client Cards */
.client-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.client-card {
    background: white; padding: 40px 20px;
    text-align: center; border-radius: 10px;
    border: 1px solid #eee;
}

@media (max-width: 768px) {
    .hero-split { flex-direction: column; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
}



/* --- Contact Page Styles --- */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.main-form .form-group {
    margin-bottom: 20px;
}

.main-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--blue);
}

.main-form input, 
.main-form textarea, 
.main-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.info-box-modern {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--gray);
    border-radius: 12px;
}

.info-box-modern i {
    font-size: 1.5rem;
    color: var(--gold);
    background: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-box-modern h4 { margin: 0; color: var(--blue); }
.info-box-modern p { margin: 0; color: #555; }

.map-container {
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 15px;
}

@media (max-width: 968px) {
    .contact-wrapper { grid-template-columns: 1fr; }
}



/* --- Client Logo Gallery Styles (Vibrant Version) --- */
.client-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    align-items: center;
    justify-content: center;
}

.client-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px; /* Increased height to accommodate text */
    transition: all 0.3s ease;
    border: 1px solid #eee;
    text-align: center;
}

.client-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Space between logo and name */
}

.client-logo {
    max-width: 100%;
    max-height: 70px; /* Slightly smaller to fit text */
    object-fit: contain;
    display: block;
}

.client-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue);
    line-height: 1.2;
    max-width: 160px; /* Prevents text from becoming too wide */
}

.client-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold); /* Highlight with gold on hover */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

@media (max-width: 480px) {
    .client-logo-grid {
        grid-template-columns: 1fr 1fr;
    }
}



/* --- Services Page Styles --- */

.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-detail-card {
    padding: 50px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-bottom: 5px solid var(--blue);
    transition: var(--transition);
}

.service-detail-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--gold);
}

.service-detail-card i {
    font-size: 3rem;
    color: var(--blue);
    margin-bottom: 25px;
}

.service-detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--blue);
}

.why-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.why-card h4 {
    color: var(--blue);
    margin-bottom: 10px;
    font-size: 1.2rem;
}


/* --- Background Image Enhancements --- */

/* Services Page Header with a tech/office background */
.page-header {
    position: relative;
    background: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?q=80&w=2070') no-repeat center center/cover;
    padding: 180px 0 120px;
    color: white;
    text-align: center;
    z-index: 1;
}

/* Dark overlay to make the white text "pop" against the image */
.page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 77, 149, 0.9), rgba(6, 46, 90, 0.8));
    z-index: -1;
}

.bg-gray {
    background-color: #f8f9fa;
    background-image: url("https://www.transparenttextures.com/patterns/cubes.png"); /* Subtle geometric pattern */
    position: relative;
}

.section.bg-light {
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072') no-repeat center center/cover;
    color: white;
    position: relative;
}

.section.bg-light::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.95); /* High opacity white to keep the section clean but with a hint of the image behind */
    z-index: 0;
}

/* Ensure content stays above the white overlay */
.section.bg-light .container {
    position: relative;
    z-index: 1;
}