/* --- Global Styles & Variables (V2 - Black & Red Palette) --- */
:root {
    --primary-black: #111111; /* Strong Black */
    --primary-red: #D90429;   /* Bold Accent Red */
    --text-dark: #2B2D42;
    --text-light: #8D99AE;
    --text-subtitle: #9DAFB9;
    --white: #FFFFFF;
    --background-light: #F8F9FA;
    --border-color: #dee2e6;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navigation --- */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px; /* Adjust as needed */
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-black);
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-red);
}

.contact-button {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: #a4031f;
    color: var(--white);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-black);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative; /* This is essential */
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Hides video edges */
    
    /* This is the STATIC IMAGE, shown by default */
    background: linear-gradient(rgba(17, 17, 17, 0.4), rgba(17, 17, 17, 0.4)), url('media/services.png') no-repeat center top/cover;
}


.hero-video {
    display: none; /* HIDDEN BY DEFAULT */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1; /* Sits behind the content */
}

.hero.show-video .hero-video {
    display: block; 
}

/* This is the content wrapper */
.hero-content-overlay {
    position: relative;
    z-index: 2; /* Sits ON TOP of the video */
    width: 100%;
    /* This dark overlay applies if the video IS playing */
    background: linear-gradient(rgba(17, 17, 17, 0.5), rgba(17, 17, 17, 0.5));
}

.hero.show-video {
    background-image: none !important; /* Hides the static image */
}
.hero.show-video .hero-video {
    display: block; 
}

.hero-content {
    max-width: 850px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
	font-weight: bold;
    color: var(--text-subtitle);
    margin-bottom: 2rem;
}

.primary-cta {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.primary-cta:hover {
    background-color: #a4031f;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.3);
}

.primary-cta i {
    margin-left: 10px;
}

/* --- Partners Section --- */
.partners {
    padding: 40px 0;
    background-color: var(--background-light);
}

.partners-title {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.partner-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.partner-logos:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-logos img {
    max-height: 40px;
}

/* --- Section Styles --- */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 1rem;
}
.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* --- Capabilities Section --- */
.capabilities-section {
    padding: 100px 0;
    background: var(--white);
}

.capabilities-grid {
	display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3-column grid on desktop */
    gap: 30px;
}

.capability-card {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative; 
    z-index: 1;       
}

.capability-card:hover {
transform: translateY(-10px) scale(1.03); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    z-index: 10;
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.capability-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
.capability-card p {
    color: var(--text-light);
}

/* --- Differentiator Section (V2) --- */
.differentiator-section {
	padding: 0;
    background-color: transparent;
}

.differentiator-header {
    margin-bottom: 4rem;
}

.value-prop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.value-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
	position: relative; 
    z-index: 1;         
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    z-index: 10;
}

.value-card-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
}

.value-card-text h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.value-card-text p {
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Footer --- */
.main-footer-white {
    background-color: var(--white); /* Changed from --primary-white */
    color: var(--text-light);
    padding: 60px 0 20px 0;
    border-top: 1px solid var(--border-color); /* Added border for white footer */
}
.main-footer-black {
    background-color: var(--primary-black);
    color: var(--text-light);
    padding: 60px 0 20px 0;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
	vertical-align: top;
}

.footer-about {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers logo <a> and <p> tag */
    text-align: center;   /* Centers text inside <p> tag */
	vertical-align: top;
}

.footer-about h3 { /* This rule might not be needed if you removed the h3 */
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-about img {
    max-height: 75px; /* Using your new 75px size */
    margin-bottom: 1rem;	
}

.footer-links-white h4, .footer-contact-white h4 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 1rem;
}
.footer-links-black h4, .footer-contact-black h4 {
    font-size: 1.2rem;
    color: var(--primary-black); /* This is the fix */
    margin-bottom: 1rem;
}
.footer-links h4, .footer-contact h4 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links ul, .footer-links-black ul {
    list-style: none;
    padding: 0;
}

.footer-links a, .footer-links-black a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s ease;
    margin-bottom: 0.5rem;
    display: block;
}
.main-footer-white .footer-links-black a {
    color: var(--text-dark);
}

.footer-links a:hover, .footer-links-black a:hover {
    color: var(--primary-red);
}

.footer-contact p, .footer-contact-black p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}
.main-footer-white .footer-contact-black p {
    color: var(--text-dark);
}

.footer-contact i, .footer-contact-black i {
    margin-right: 10px;
}
.main-footer-white .footer-contact-black i {
    color: var(--primary-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}
.main-footer-white .footer-bottom {
    border-top: 1px solid var(--border-color);
}
.main-footer-white .footer-bottom p {
    color: var(--text-light);
}


/* ---
--- Page Hero (Adaptive Video)
--- */
.page-hero {
    position: relative; /* This is essential */
    min-height: 50vh; /* A shorter hero for subpages */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Hides video edges */
    
    /* This is the STATIC IMAGE, shown by default */
    background: linear-gradient(rgba(17, 17, 17, 0.5), rgba(17, 17, 17, 0.5)), url('media/interconnected.png') no-repeat center center/cover;
}

/* We add .page-hero to all the existing hero video rules 
  This avoids duplicating code.
*/
.page-hero .hero-content-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    background: linear-gradient(rgba(17, 17, 17, 0.5), rgba(17, 17, 17, 0.5));
    padding: 25px 0; /* Keeps the original padding */
}

.page-hero.show-video {
    background-image: none !important;
}
.page-hero.show-video .hero-video {
    display: block;
}

/* Make page hero text match original */
.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}
.page-hero p {
    font-size: 1.2rem;
    color: var(--text-subtitle);
    max-width: 600px;
    margin: 0 auto;
	font-weight: bold;
}

/* --- General Page Content --- */
.page-content {
    padding: 100px 0;
}

/* --- Services Page Styles --- */
.service-block {
    display: flex;
    gap: 30px;
    margin-bottom: 4rem;
    align-items: flex-start;
}
.service-icon {
    font-size: 3rem;
    color: var(--primary-red);
    padding-top: 5px;
}
.service-content h2 {
    font-size: 2rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
}
.service-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.service-content ul li {
    background-color: var(--background-light);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid var(--border-color);
}
.service-content .detailed-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
    display: block; /* Overrides flex wrap */
}
.service-content .detailed-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: transparent; /* Overrides pill style */
    border: none; /* Overrides pill style */
    padding: 0 0 0 25px; /* Overrides pill style */
    font-weight: 400; /* Overrides pill style */
}
.service-content .detailed-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-red);
    position: absolute;
    left: 0;
    top: 2px;
}
.service-content .sub-service-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--border-color);
}

/* --- Capabilities Page Styles --- */
.large-cta {
    display: block;
    max-width: 500px;
    margin: 0 auto 4rem auto;
    text-align: center;
}
.capabilities-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
.capability-data-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px;
}
.capability-data-card.full-width {
    grid-column: 1 / -1;
}
.capability-data-card h3 {
    font-size: 1.5rem;
    color: var(--primary-black);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
    display: inline-block;
}
.capability-data-card table {
    width: 100%;
    border-collapse: collapse;
}
.capability-data-card table td {
    padding: 10px 5px;
    border-bottom: 1px solid var(--border-color);
}
.capability-data-card table tr:last-child td {
    border-bottom: none;
}
.capability-data-card table td:first-child {
    font-weight: 600;
    width: 30%;
}
.capability-data-card ul {
    list-style: none;
    padding-left: 0;
}
.capability-data-card ul li {
    padding: 5px 0;
}

.capabilities-intro {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 4rem;
}
.capabilities-data {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
}
.capabilities-data h3 {
    font-size: 1.5rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
}
.capabilities-data table {
    width: 100%;
}
.capabilities-data table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.capabilities-data table tr:last-child td {
    border-bottom: none;
}
.capabilities-data table td:first-child {
    font-weight: 600;
}
.capabilities-text h2 {
    font-size: 2rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
}
.capabilities-text .primary-cta {
    margin-top: 1.5rem;
}
.code-section {
    margin-bottom: 4rem;
}
.code-list {
    list-style: none;
    padding: 0;
    column-count: 2;
    column-gap: 40px;
}
.code-list li {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 0.95rem;
}
.code-list li strong {
    color: var(--primary-red);
    margin-right: 5px;
}


/* --- About, Clients, & Contact Pages --- */
.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}
.about-intro h2 {
    font-size: 2rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.leadership-section {
    margin-top: 5rem;
}
.bio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.bio-card {
    text-align: center;
}
.bio-card img {
    width: 100%;
    max-width: 200px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 4px solid var(--border-color);
}
.bio-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}
.bio-card .bio-title {
    font-size: 1rem;
    color: var(--primary-red);
    font-weight: 600;
}

.market-focus {
    background: var(--background-light);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 4rem;
    border: 1px solid var(--border-color);
}
.market-focus h3 {
    font-size: 1.5rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.client-grid-section {
    margin-bottom: 4rem;
}
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}
.logo-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: box-shadow 0.3s ease;
    min-height: 120px;
}
.logo-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}
.logo-card img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}
.logo-card-placeholder {
    background: var(--background-light);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px; /* Ensures consistent card height */
}
.logo-card-placeholder span {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}
.contact-form-container h3 {
    font-size: 1.8rem;
    color: var(--primary-black);
    margin-bottom: 1.5rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 5px rgba(217, 4, 41, 0.2);
}
.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}
.contact-info > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 1.5rem;
}
.info-item i {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-top: 5px;
}
.info-item strong {
    font-size: 1.1rem;
    color: var(--text-dark);
}
.info-item p {
    margin: 0;
    color: var(--text-light);
}
.map-embed {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden; /* This makes the map fit the rounded corners */
}
.map-embed iframe {
    width: 100%; /* Makes it responsive */
    display: block; /* Removes any weird bottom spacing */
}


/* ---
--- Impact Stats Section (V2 - "Amazing")
--- */
.stats-section {
    background-color: var(--primary-black);
    color: var(--white);
    padding: 100px 0; /* More "airy" padding */
    text-align: center;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px; /* More spacing between items */
}
.stat-item i {
    font-size: 3.5rem; /* Bigger icon */
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}
.stat-number {
    font-size: 7rem; /* MASSIVE font size */
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
}
.stat-label {
    font-size: 1.25rem; /* Larger, clearer label */
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase; /* More professional */
    letter-spacing: 1px; /* More professional */
    margin-top: 0.5rem;
}


/* ---
--- Parallax Section Styling
--- */
.parallax-container {
    /* Replace with your high-quality photo of people working */
    background-image: linear-gradient(rgba(17, 17, 17, 0.8), rgba(17, 17, 17, 0.8)), url('media/developer2.png');
    
    /* The magic: creates the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    padding: 100px 0; /* Adds the padding back in, but inside the new container */
    color: var(--white); /* We need to change text color for this section */
}

/* We must update the text colors to be readable on the dark image */
.parallax-container .section-title,
.parallax-container .section-subtitle,
.parallax-container .value-card-text h3 {
    color: var(--white);
}
.parallax-container .section-subtitle,
.parallax-container .value-card-text p {
    color: var(--text-light);
}

/* And we need to make the value cards blend in */
.parallax-container .value-card {
    background: rgba(255, 255, 255, 0.05); /* Slightly transparent white */
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px); /* A modern "glassmorphism" effect */
}

/* ---
--- Careers Page Styles
--- */

.careers-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}
.careers-intro h2 {
    font-size: 2rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.job-category-title {
    font-size: 2.2rem;
    color: var(--primary-black);
    margin-bottom: 2rem;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-red);
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 4rem;
}

.job-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.job-card h4 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.job-card .job-location {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.job-card p {
    color: var(--text-light);
    flex-grow: 1; /* Makes card body fill space */
    margin-bottom: 1.5rem;
}

.job-apply-button {
    padding: 12px 25px;
    font-size: 1rem;
    text-align: center;
}
.job-card p strong {
    color: var(--text-dark); /* Makes "Required:" text stand out */
}
.job-card-details {
    flex-grow: 1; /* This is key: it pushes the "Apply" button to the bottom */
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}
.job-card .detailed-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: block;
}
.job-card .detailed-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: transparent;
    border: none;
    padding: 0 0 0 25px;
    font-weight: 400;
}
.job-card .detailed-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-red);
    position: absolute;
    left: 0;
    top: 2px;
}
/* ---
--- RESPONSIVE DESIGN (ALL RULES CONSOLIDATED)
--- */

/* Tablet Breakpoint */
@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-info {
        margin-top: 3rem;
    }
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .capabilities-intro {
        grid-template-columns: 1fr;
    }
    .capabilities-data {
        margin-top: 2rem;
    }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .main-nav {
        display: none;
    }
    .hamburger {
        display: block;
    }
   .footer-contact p {
        justify-content: center;
    }
    .value-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .service-block {
        flex-direction: column;
        text-align: center;
        align-items: center; /* Corrected typo 'align-itemss' */
    }
    .service-content ul {
        justify-content: center;
    }
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 60px; /* More vertical space on mobile */
    }
    .stat-number {
        font-size: 5rem; /* Still huge on mobile */
    }
    .code-list {
        column-count: 1;
    }
}
	/* ---
--- Fade-in on Scroll Animation
--- */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---
--- Static Page Hero Images
--- */

.contact-hero {
    background: linear-gradient(rgba(17, 17, 17, 0.5), rgba(17, 17, 17, 0.5)), url('media/contact-image.png') no-repeat center center/cover;
}

.careers-hero {
    background: linear-gradient(rgba(17, 17, 17, 0.5), rgba(17, 17, 17, 0.5)), url('media/careers.png') no-repeat center center/cover;
}

.services-hero {
    background: linear-gradient(rgba(17, 17, 17, 0.5), rgba(17, 17, 17, 0.5)), url('media/services.png') no-repeat center center/cover;
}

.capabilities-hero {
    background: linear-gradient(rgba(17, 17, 17, 0.5), rgba(17, 17, 17, 0.5)), url('media/capabilities.png') no-repeat center center/cover;
}

.clients-hero {
    background: linear-gradient(rgba(17, 17, 17, 0.5), rgba(17, 17, 17, 0.5)), url('media/clients.png') no-repeat center center/cover;
}


/* ---
--- Mobile Navigation Menu
--- */

/* This stops the body from scrolling when the menu is open */
body.no-scroll {
    overflow: hidden;
}

/* This is the style for the menu when it's "open" 
It overrides the "display: none" from the mobile media query
*/
.main-nav.is-open {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* Full-screen overlay */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    
    /* Dark background */
    background: var(--primary-black);
    z-index: 999; /* Just below the header (z-index: 1000) */
}

/* Styles the links inside the open menu */
.main-nav.is-open ul {
    flex-direction: column;
    gap: 2rem;
}

.main-nav.is-open a {
    color: var(--white);
    font-size: 2rem; /* Make links big and easy to tap */
}

.main-nav.is-open a.contact-button {
    color: var(--white);
    background-color: transparent;
    border: 2px solid var(--primary-red);
    padding: 10px 20px;
}
.main-nav.is-open a.contact-button:hover {
    background-color: var(--primary-red);
}

/* This makes the hamburger icon (now an "X") sit on top */
.hamburger {
    z-index: 1001; /* Above the overlay */
}

/* This styles the "X" color when the menu is open */
.hamburger i {
    transition: transform 0.3s ease;
}
.hamburger i.fa-times {
    color: var(--white); /* Make the "X" white */
    transform: rotate(90deg);
}