/* --- Global Variables --- */
:root {
    --primary: #1B75BC; /* Updated BlueCrimson Primary */
    --accent: #D7393F;  /* Updated BlueCrimson Red */
    --text-dark: #4B5563; /* Updated Dark Grey for Navigation */
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
}

/* --- Container Margins (Reduced per feedback) --- */
.container {
    width: 95%; /* Increased from standard 90% to reduce left/right margins */
    max-width: 1400px; /* Allows the content to spread out more on large screens */
    margin: 0 auto;
}
/* --- Tighten Gap Between Badge and Hero Text --- */
.hero-text .badge {
    margin-bottom: 0.5rem !important; /* Keeps a small, clean space below the badge */
    display: inline-block; /* Ensures the bottom margin is respected by the browser */
}





body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}


/* --- Updated Navigation Logo --- */
.logo { 
    display: flex; 
    align-items: center; 
}

.nav-logo-img {
    height: 60px; /* Adjust this value up or down based on the logo's proportions */
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.nav-logo-img:hover {
    opacity: 0.8; /* Slight fade when hovering over the logo */
}


.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #1e293b; transform: translateY(-1px); }
.btn-outline { border-color: var(--border); color: var(--text-dark); background: white; }
.btn-outline:hover { border-color: var(--text-dark); }

/* --- Hero Section --- */
.hero { padding: 160px 0 100px 0; background: linear-gradient(to bottom, #fff, #f1f5f9); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }

.badge {
    background: #EFF6FF; color: var(--primary);
    padding: 0.4rem 0.8rem; border-radius: 50px;
    font-size: 0.8rem; font-weight: 600;
    margin-bottom: 1.5rem; display: inline-block;
}

.hero h1 { font-size: 3.5rem; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.hero .highlight { color: var(--primary); }
.hero p { font-size: 1.25rem; margin-bottom: 2rem; max-width: 90%; }
.hero-text {
    min-width: 0;
}
.cta-group { display: flex; gap: 1rem; margin-bottom: 3rem; }

.trust-signals { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.trust-signals p { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.logos { display: flex; flex-wrap: wrap; gap: 2rem; color: #94A3B8; font-weight: 700; font-size: 1.1rem; }

/* --- NEW HERO VISUAL: Tech Collage --- */
.hero-visual { display: flex; justify-content: flex-end; }
.tech-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
}

/* --- Neural Network Constellation --- */
.neural-network {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1; /* Keeps it perfectly square */
    margin: 0 auto;
}

/* The SVG Lines */
.network-lines {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    z-index: 1;
}

.network-lines line {
    stroke: #CBD5E1; /* Light grey lines */
    stroke-width: 2;
    stroke-dasharray: 6; /* Creates dashed lines */
    animation: dashPulse 20s linear infinite; /* Animates the dashes */
}

@keyframes dashPulse {
    to { stroke-dashoffset: 1000; }
}

/* The Nodes */
.node {
    position: absolute;
    transform: translate(-50%, -50%); /* Centers the node perfectly on its coordinates */
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 2;
    cursor: default;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.center-node {
    top: 50%; left: 50%;
    width: 90px; height: 90px;
    border: 3px solid var(--accent);
    font-size: 2.5rem; 
    color: var(--accent);
    box-shadow: 0 0 25px rgba(220, 38, 38, 0.2); /* Soft crimson glow */
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 25px rgba(220, 38, 38, 0.2); transform: translate(-50%, -50%) scale(1); }
    50% { box-shadow: 0 0 40px rgba(220, 38, 38, 0.5); transform: translate(-50%, -50%) scale(1.05); }
}

.tech-node {
    width: 65px; height: 65px;
    font-size: 1.8rem;
    border: 1px solid var(--border);
}

.tech-node:hover {
    transform: translate(-50%, -50%) scale(1.15); /* Snaps slightly larger */
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* The Hover Tooltips */
.tooltip {
    position: absolute;
    bottom: -35px;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none; /* Prevents tooltip from interfering with hover */
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
}

.tech-node:hover .tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .neural-network {
        max-width: 350px;
    }
    .center-node {
        width: 70px; height: 70px; font-size: 1.8rem;
    }
    .tech-node {
        width: 50px; height: 50px; font-size: 1.4rem;
    }
    .tooltip {
        font-size: 0.7rem; bottom: -30px; padding: 4px 8px;
    }
}

/* --- Stats Bar --- */
.stats-section { background: var(--primary); padding: 0.5rem 0; color: white; }
.stats-grid { display: flex; justify-content: space-between; text-align: center; }
.stat-item h2 { color: white; font-size: 2rem; margin-bottom: 0.3rem; } 
.stat-item p { color: #94A3B8; font-size: 0.9rem; font-weight: 500; text-transform: uppercase; }

/* --- Services --- */
.section { padding: 6rem 0; }
.bg-light { background-color: var(--bg-light); }
.section-header { margin-bottom: 4rem; max-width: 600px; }
.overline { color: var(--accent); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; display: block; margin-bottom: 1rem; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

.service-card {
    background: white; padding: 2.5rem;
    border-radius: 12px; border: 1px solid var(--border);
    transition: 0.3s; cursor: pointer;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.icon-box { font-size: 2rem; margin-bottom: 1.5rem; }
.service-card h3 { margin-bottom: 1rem; font-size: 1.25rem; }
.service-card .link { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-top: 1rem; display: block; }

/* --- Case Studies --- */
.case-study-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.metrics-grid { display: flex; gap: 3rem; margin: 2rem 0; }
.metric strong { display: block; font-size: 2rem; color: var(--primary); line-height: 1; }
.img-placeholder { width: 100%; height: 350px; background: #CBD5E1; border-radius: 12px; }

/* --- LEADERSHIP SECTION --- */
.leadership-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.leader-names {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-left: 2px solid var(--border);
    padding-left: 2rem;
}

.name-tag strong { display: block; font-size: 1.1rem; color: var(--primary); }
.name-tag small { color: var(--accent); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; }

/* The Photo Collage Grid */
.collage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 1rem;
}

.col-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s;
}

.col-img:hover { transform: scale(1.02); }

/* Masonry Logic */
.img-large {
    grid-row: span 2; /* Takes up full height on left */
}
.img-small-1 { grid-column: 2; grid-row: 1; }
.img-small-2 { grid-column: 2; grid-row: 2; }


/* --- Footer --- */
.footer { background: white; border-top: 1px solid var(--border); padding: 2rem 0 2rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-bottom: 3rem; }
.text-crimson { color: var(--accent); }
.contact-link { font-size: 1.5rem; font-weight: 700; color: var(--primary); text-decoration: underline; }
.copyright { text-align: center; font-size: 0.9rem; color: var(--text-light); }

/* --- Modal --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px);
    z-index: 2000; opacity: 0; pointer-events: none; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.modal-active { opacity: 1; pointer-events: auto; }
.modal-card {
    background: white; width: 90%; max-width: 600px; padding: 3rem;
    border-radius: 12px; position: relative; transform: translateY(20px); transition: 0.3s;
}
.modal-active .modal-card { transform: translateY(0); }
.close-modal { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--text-light); }
.close-modal:hover { color: var(--accent); }
hr { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-grid, .case-study-layout, .leadership-wrapper, .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .nav-links { display: none; }
    .stats-grid { flex-wrap: wrap; gap: 2rem; }
    
    .tech-collage { grid-template-columns: repeat(2, 1fr); }
    .hero-visual { order: -1; margin-bottom: 2rem; justify-content: center; }
    
    .collage-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .img-large { grid-row: auto; height: 250px; }
}
/* --- Infinite Logo Carousel --- */
.carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    margin-top: 1rem;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
    display: inline-flex;
    gap: 3rem;
    align-items: center;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
}

.carousel-logo {
    color: #94A3B8;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); /* Shifts exactly half the width to loop */ }
}
/* --- Why BlueCrimson Grid --- */
.text-center { text-align: center; margin: 0 auto 4rem auto; }

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.why-card {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.why-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.icon-blue { color: var(--primary); }
.icon-grey { color: var(--text-dark); }

.why-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.why-card p {
    font-size: 0.9rem;
    color: #4B5563 !important;
}
/* --- Portfolio Cards --- */
.portfolio-card {
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: 0.3s ease;
}

.portfolio-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.portfolio-content {
    padding: 2rem;
}

.tag {
    background: #EFF6FF;
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.portfolio-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.portfolio-content p {
    font-size: 0.95rem;
    min-height: 80px; /* Keeps cards aligned */
    color: #4B5563 !important;
}

.portfolio-metrics {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.portfolio-metrics strong {
    color: var(--accent);
    font-size: 1.5rem;
    line-height: 1.2;
}

.portfolio-metrics small {
    color: var(--text-light);
    font-weight: 500;
}
/* --- Full-Width Trust Section --- */
/* --- Updated Light Trust Section --- */
.trust-section {
    background: #F8FAFC; /* Light gray-blue instead of dark navy */
    border-bottom: 1px solid var(--border); 
}

.trust-section .trust-label {
    color: var(--text-dark); /* Darker text for light background */
    font-size: 0.rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    
    padding-top: 0.5rem;
}

/* --- Trusted Delivery Partner Seamless Marquee --- */

.carousel-container {
    overflow: hidden; /* Hides the logos outside the screen */
    width: 100%;
    padding: 1rem 0;
    position: relative;
}

/* Optional: Adds a subtle fade gradient on the left and right edges */
.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}
.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}
.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

/* The Track that holds both sets */
.carousel-track {
    display: inline-flex;
    width: max-content; /* Allows the track to be as wide as the logos dictate */
    animation: scroll-partners 35s linear infinite; /* Adjust the 35s to make it faster/slower */
}

/* Pause the animation if a user wants to look closely at a logo */
.carousel-track:hover {
    animation-play-state: paused;
}

/* The Logo Groups */
.carousel-logos {
    display: inline-flex;
    align-items: center;
    gap: 5rem; /* The space between each logo */
    padding-right: 5rem; /* MUST exactly match the gap so the loop stitches together seamlessly */
}

/* Sizing the colored logos once you drop them in */
.carousel-logos img {
    height: 40px; /* Adjust this to make the logos legible */
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Bring them to full color when hovered */
.carousel-logos img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* --- The Seamless Loop Animation --- */
@keyframes scroll-partners {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        /* Shifts exactly half the total track width, resting perfectly on Set 2 before instantly resetting to Set 1 */
        transform: translateX(-50%); 
    }
}
/* --- Accordion UI --- */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
    box-shadow: var(--shadow-sm);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: transparent;
    border: none;
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.accordion-header i {
    color: var(--accent);
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #FAFAFA;
}

.accordion-content p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
}

/* Active State Styles */
.accordion-item.active .accordion-header {
    color: var(--accent);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}


/* --- Atmospheric 3D Carousel --- */
.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    overflow: visible;
}

.ambient-glow {
    position: absolute;
    width: 300px; height: 300px;
    background: var(--accent);
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
}

.carousel-scene {
    position: relative;
    width: 280px; /* Scaled down from 320px */
    height: 260px; /* Scaled down from 300px */
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- The Upright Cards (Bug Fix & Orbit Widen) --- */
.carousel-card {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 40px 8px 40px 8px; 
    
    padding: 1.5rem; /* Reduced padding to fit the smaller box */
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    /* Pulled the orbit in to 220px to match the smaller cards */
    transform: rotateY(calc(var(--card-index) * 90deg)) translateZ(260px);
    transform-origin: center center;

    opacity: 0.3;
    filter: blur(3px);
    transition: all 0.6s ease;
}

/* Maintain the active state */
.carousel-card.active-card {
    opacity: 1;
    filter: blur(0px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .carousel-wrapper { height: 400px; perspective: 900px; }
    /* Scaled down orbit for smaller phone screens so they still fit */
    .carousel-card { transform: rotateY(calc(var(--card-index) * 90deg)) translateZ(220px); padding: 1.5rem; }
}

/* Accent Borders */
.card-ai { border-top: 4px solid var(--accent); }
.card-logic { border-top: 4px solid #F2C811; }
.card-data { border-top: 4px solid #00A4EF; }

/* Typography */
.layer-header {
    color: white;
    font-size: 1.1rem; /* Scaled down from 1.25rem */
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.layer-header i { color: var(--accent); }

.layer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    color: #E2E8F0;
    font-size: 0.75rem; /* Scaled down from 0.85rem */
    font-weight: 600;
    padding: 0.4rem; /* Scaled down padding */
    border-radius: 8px;
    text-align: center;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .carousel-wrapper { height: 400px; }
    .carousel-card { transform: rotateY(calc(var(--card-index) * 120deg)) translateZ(200px); padding: 1.5rem; }
}
/* --- Story-Driven Team Grid --- */
/* --- Executive Spotlight Layout --- */
.executive-spotlight {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-top: 3rem;
    min-height: 500px;
}

/* --- Left Roster --- */
.spotlight-roster {
    background: var(--bg-light);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    /* Height grows naturally with the 8 items */
}

.roster-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.roster-item:hover {
    background: white;
}

.roster-item.active {
    background: white;
    border-left-color: var(--accent);
}

.roster-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.roster-info h4 {
    font-size: 1rem;
    color: var(--primary);
    margin: 0;
}

.roster-info span {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 700;
}

/* --- Right Stage --- */
.spotlight-stage {
    padding: 3rem 3rem 3rem 0;
    position: relative;
}

.spotlight-content {
    display: none; /* Hides all content by default */
    animation: fadeIn 0.5s ease-in-out;
}

.spotlight-content.active-content {
    display: block; /* Shows only the active content */
}

.stage-image-wrapper img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.stage-text h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stage-title {
    display: block;
    font-size: 1rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.stage-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .executive-spotlight { grid-template-columns: 1fr; }
    .spotlight-roster { border-right: none; border-bottom: 1px solid var(--border); max-height: 300px; }
    .spotlight-stage { padding: 2rem; }
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent); /* Adds a splash of crimson on hover */
}

.team-card h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.team-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.team-story {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
}
/* --- Team Culture Gallery --- */
.culture-header {
    margin-top: 5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.culture-header h3 {
    font-size: 1.75rem;
    color: var(--primary);
}

.culture-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.culture-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.culture-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Makes certain images span two columns for a dynamic layout */
.culture-img.wide {
    grid-column: span 2;
}

/* Mobile adjustments for the gallery */
@media (max-width: 900px) {
    .culture-gallery { grid-template-columns: 1fr; }
    .culture-img.wide { grid-column: span 1; }
}
/* --- About Us Grid --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.about-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary); /* Highlights the BlueCrimson Blue */
}

.check-icon {
    color: var(--primary); /* BlueCrimson */
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.about-item p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.about-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

/* =========================================
   CLIENT FEEDBACK OVERRIDES (Grey & Blue)
   ========================================= */

/* --- 1. Global Grey Headings & Text (#4B5563) --- */
h3, h4, h5, h6, 
.section-header h2, .trust-section p, .stage-text p, .culture-header p,
body {
    color: #4B5563 !important;
}
h2 { color: #4B5563;}

.about-item p, .section-header p, .accordion-content p, .trust-section p,
.service-card p, .team-card p, .site-footer p, .modal-card p, .hero-subtitle {
    color: #4B5563 !important; 
    line-height: 1.6;
}
.footer-bottom p {
    color: white !important; 
    line-height: 1.6;
}

/* --- 2. Strict Blue Shade Enforcement (#1B75BC) --- */
.btn-primary {
    background-color: #1B75BC !important;
    border-color: #1B75BC !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: #145A92 !important; /* Slightly darker #1B75BC for hover */
    border-color: #145A92 !important;
}

/* Change the About Us checkmarks from Red to the Corporate Blue */
.check-icon {
    color: var(--primary) !important; 
}

/* Ensure section overlines ("Who We Are", etc.) use the Corporate Blue */
.overline {
    color: #1B75BC !important;
    font-weight: 700;
}

/* --- 3. Hero Subtitle Formatting --- */
/* Prevents the new paragraph text from stretching too wide across the screen */
.hero-subtitle {
    max-width: 650px;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    white-space: normal; /* Ensures it wraps beautifully */
}
/* =========================================
   NAVIGATION BAR STYLES
   ========================================= */


.nav-brand .logo {
    height: 60px; /* Adjust based on your actual logo proportions */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #4B5563 !important; /* The requested Dark Grey */
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}



/* --- Mobile Navigation Adjustments --- */
@media (max-width: 900px) {
    .navbar {
        padding: 1rem 5%;
    }
    
    .nav-links {
        display: none; /* Hides links for mobile (requires hamburger toggle setup) */
    }

    .btn-nav-contact {
        display: none; /* Hide CTA on mobile to save space, or adjust to fit */
    }
}
/* =========================================
   HERO SECTION & BUTTON FINAL POLISH
   ========================================= */

/* --- 1. Remove the Gap Below Nav --- */
/* Adjusts the hero section to sit flush against the navigation bar */
.hero {
    margin-top: 0 !important;
    padding-top: 3rem !important; /* Adjust this value if you need it slightly tighter or looser */
}

/* --- 3. CTA Buttons (Blue, White, No Underlines) --- */
.hero-cta-group a {
    text-decoration: none !important; /* Strips out any default link underlines */
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    display: inline-block;
}

/* Primary Button: "Our Expertise" (Solid Blue) */
.btn-primary {
    background-color: #1B75BC !important;
    color: white !important;
    border: 2px solid #1B75BC !important;
}

.btn-primary:hover {
    background-color: #145A92 !important;
    border-color: #145A92 !important;
}

/* Secondary Button: "View Case Studies" (White with Blue Text/Border) */
.btn-secondary {
    background-color: white !important;
    color: #1B75BC !important;
    border: 2px solid #1B75BC !important;
}

.btn-secondary:hover {
    background-color: #f8fafc !important; /* Slight grey tint on hover */
}

/* --- 4. Carousel Color Change --- */
/* Swaps the dark navy capsules for the vibrant BlueCrimson Blue */
/* --- Glassmorphism Carousel Cards --- */
.carousel-card {
    /* Replaces the solid blue with a translucent dark/blue tint */
    background: rgba(15, 25, 45, 0.6) !important; 
    
    /* The magic: blurs the background immediately behind the card */
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px); /* For Safari */
    
    /* A crisp, semi-transparent white border to define the edge */
    /*border: 1px solid rgba(255, 255, 255, 0.15) !important;  */
    
    /* Deep shadow to lift it off the background */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important; 
}

/* Make the inner tags look glassy too */
/* --- Make Tech Tags Pop --- */
.carousel-card .tech-tag {
    background: rgba(255, 255, 255, 0.08) !important; /* Slightly lighter background */
    /*border: 1px solid rgba(255, 255, 255, 0.25) !important; /* Crisper border */
}

/* --- Navigation Alignment & Color Fixes --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Locks all three columns vertically in the center */
    padding: 1rem 5%; 
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-cta {
    display: flex;
    align-items: center; /* Ensures the button itself doesn't float up or down */
}

/* Change Hover State from Red to Blue */
.nav-links a:hover,
.nav-links a.active {
    color: #D7393F !important; 
}

/* Ensure the Nav Button is Blue and perfectly aligned */
.btn-nav-contact {
    background-color: #1B75BC !important;
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap; /* Prevents the button text from wrapping on smaller screens */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-nav-contact:hover {
    background-color: #145A92 !important;
    transform: translateY(-2px);
}
/* --- Tagline Wrap Fix --- */
.hero-text h1 {
    color: #D7393F !important; 
    white-space: normal !important; /* Changed from nowrap so the line break works */
    line-height: 1.2;
}
/* --- Restore Colored Top Borders --- */

/* Card 0: Reporting & Data (Brand Red) */
.carousel-card.card-ai {
    border-top: 5px solid #D7393F !important;
}

/* Card 1: Enterprise & Mobile (Bright Gold) */
.carousel-card.card-logic {
    border-top: 5px solid #F2C811 !important;
}

/* Card 2: Front-End Technologies (Crisp White) */
.carousel-card.card-data {
    border-top: 5px solid #94A3B8 !important;
}

/* Card 3: Gen AI (Cyan) */
.carousel-card.card-genai {
    border-top: 5px solid #00E5FF !important;
}
/* --- Widen the Header Container ONLY for specific sections --- */
#services .section-header,
#why-us .section-header {
    max-width: 1100px !important;
}

/* --- Stretch the paragraph and tighten the height --- */
#services .section-header p,
#why-us .section-header p {
    max-width: 100% !important; /* Tells the text to fill the newly widened parent container */
    line-height: 1.5 !important; 
    margin: 0 auto 2rem auto !important; 
    font-size: 1.05rem !important; 
}
#stats-sectionm .stat-item h2, p {
    color: #E2E8F0 !important;
}
/* =========================================
   FOOTER STYLES
   ========================================= */

.site-footer {
    background-color: #F8FAFC; /* A very soft, professional off-white/grey */
    border-top: 2px solid #E2E8F0; /* Clean dividing line */
    padding-top: 1rem; /* Generous breathing room above */
    color: #4B5563; /* Corporate Dark Grey */
}

/* The 3-Column Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 1rem;
}

/* --- Column 1: Brand --- */
.brand-text {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.brand-blue { color: #1B75BC; }
.brand-crimson { color: #D7393F; }

/* --- Column 2 & 3: Headings and Text --- */
.site-footer h4 {
    color: #1B75BC; /* Corporate Blue */
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-footer p {
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Icons for contact and address */
.site-footer i {
    color: #D7393F; /* Brand Crimson for accent */
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* The Email Link */
.footer-email {
    display: inline-block;
    color: #4B5563;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: #1B75BC; /* Turns blue on hover */
}

/* --- The Bottom Copyright Bar --- */
.footer-bottom {
    background-color: #1B75BC; /* Solid Corporate Blue */
    text-align: center;
    padding: 1.5rem 0;
}

.footer-bottom p {
    margin: 0;
    color: white;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stacks into a single column on phones */
        text-align: center;
    }
    
    .site-footer i {
        display: none; /* Hides icons on mobile to keep text perfectly centered */
    }
}
/* =========================================
   RESTORED CLEAN HERO & CAROUSEL
   ========================================= */

/* 1. Ensure Hero Text is Corporate Grey */
.hero .hero-text h1,
.hero .hero-text p.hero-subtitle {
    color: #4B5563 !important; 
    text-shadow: none !important; /* Removes the dark shadow we added for the image */
}

/* 2. Optional: Keep the Crimson Highlight (It looks great on white!) */
.hero-text h1 .highlight, 
.hero-text h1 span { 
    color: #1B75BC !important; 
}

/* 3. Restore the Solid Blue Carousel Cards */
.carousel-card {
    background-color: #1B75BC !important; /* The original solid corporate blue */
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important; /* Soft shadow for the 3D effect */
}

/* 4. Ensure Carousel Text Remains White */
.carousel-card .layer-header,
.carousel-card .layer-header i,
.carousel-card .tech-tag {
    color: #FFFFFF !important;
}

/* 5. Restore Solid Tech Tags */
.carousel-card .tech-tag {
    background: rgba(255, 255, 255, 0.15) !important;
   
}

/* ========================================================
   SPLASH OVERLAY STYLES
   ======================================================== */
.celebration-overlay {
    position: fixed;
    inset: 0; /* Stretches to all 4 corners */
    background: rgba(10, 20, 40, 0.85); /* Deep dark blue */
    backdrop-filter: blur(12px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999; /* Sits above absolutely everything */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Class added by JS to fade it out */
.celebration-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.celebration-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 2rem;
    z-index: 10000;
    /* A slick pop-in animation when the page loads */
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* The Glowing 15 Badge */
/* --- Enhanced Glowing 15 Badge --- */
.celebration-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 130px; /* Increased size */
    height: 130px; /* Increased size */
    border-radius: 50%;
    
    /* Creates an internal glow effect */
    background: radial-gradient(circle, rgba(242, 200, 17, 0.15) 0%, rgba(242, 200, 17, 0.02) 70%);
    border: 2px solid #F2C811; /* Brand Gold */
    
    color: #F2C811;
    font-size: 4.5rem; /* Massive font size */
    font-weight: 900;
    margin-bottom: 1.5rem;
    
    /* Makes the number itself glow */
    text-shadow: 0 0 15px rgba(242, 200, 17, 0.5), 0 0 30px rgba(242, 200, 17, 0.2);
    
    /* Attaches the pulsing animation */
    animation: goldPulse 2s infinite alternate ease-in-out; 
}

/* The Breathing Light Animation */
@keyframes goldPulse {
    0% { 
        box-shadow: 0 0 20px rgba(242, 200, 17, 0.3), inset 0 0 15px rgba(242, 200, 17, 0.2); 
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 45px rgba(242, 200, 17, 0.7), inset 0 0 25px rgba(242, 200, 17, 0.4); 
        transform: scale(1.03); /* Extremely subtle physical expansion */
    }
}

.celebration-content h2 {
    color: white !important;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.celebration-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Ensure the button matches your primary red */
#enter-site-btn {
    background-color: #D7393F !important;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    cursor: pointer;
}