/* ======== GLOBAL STYLES & VARIABLES ======== */
:root {
    --primary-blue: #0052cc;
    --light-blue: #4c9aff;
    --white: #ffffff;
    --off-white: #f4f7fa;
    --dark-text: #1a1a1a;
    --light-text: #555;
    --border-color: #e0e0e0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; }
p { margin-bottom: 15px; color: var(--light-text); }

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -15px auto 40px auto;
}

.cta-button {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(45deg, var(--light-blue), var(--primary-blue));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 82, 204, 0.3);
}

/* ======== HEADER ======== */
header {
    position: fixed;
    top: 20px;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo {
    height: 50px;
    /* This CSS filter will turn your black SVG into the primary blue color. Magic! */
    filter: brightness(0) saturate(100%) invert(27%) sepia(99%) saturate(4644%) hue-rotate(204deg) brightness(99%) contrast(95%);
}

header nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s;
}

header nav ul li a:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* ======== HERO SECTION ======== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 42, 102, 0.6); /* Dark blue overlay */
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* ======== CLIENTS / TRUST BAR ======== */
/* ======== CLIENTS / TRUST BAR ======== */
.clients {
    padding: 80px 0; /* Added a little more padding to give the lines space */
    background-color: var(--white); /* UPDATED: Changed from off-white to pure white */
}
.clients h2 {
    margin-bottom: 50px; /* Increased space below the title */
}

/* --- NEW: Blue Separator Lines --- */
/* We target the first scroller and add a line ::before it */
.clients .scroller:first-of-type {
    position: relative; /* This is needed for the pseudo-element to be positioned correctly */
    margin-bottom: 30px; /* Add some space between the two rows */
}

.clients .scroller:first-of-type::before {
    content: '';
    position: absolute;
    top: -25px; /* Position the line 25px above the scroller */
    left: 50%; /* Center the line */
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px; /* Match the max-width of the scroller */
    height: 2px; /* The thickness of the line */
    background-color: var(--primary-blue); /* The color of the line */
}

/* We target the last scroller and add a line ::after it */
.clients .scroller:last-of-type {
    position: relative;
}

.clients .scroller:last-of-type::after {
    content: '';
    position: absolute;
    bottom: -25px; /* Position the line 25px below the scroller */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 2px;
    background-color: var(--primary-blue);
}
/* --- END of new separator styles --- */

.scroller {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller-inner {
    display: flex;
    gap: 50px;
    white-space: nowrap;
    animation: scroll 60s linear infinite;
}
.scroller[data-direction="right"] .scroller-inner {
    animation-direction: reverse;
}
.scroller:hover .scroller-inner {
    animation-play-state: paused;
}

.scroller-inner img {
    height: 80px;
    opacity: 1;
    transition: transform 0.3s ease;
}

.scroller-inner img:hover {
    transform: scale(1.1); 
}

@keyframes scroll {
    to { transform: translateX(calc(-100% - 50px)); }
}

/* ======== SPECIALTIES SECTION ======== */
.specialties {
    background-color: var(--white);
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.specialty-card {
    background: var(--off-white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}
.specialty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 82, 204, 0.1);
}

.specialty-icon {
    width: 50px;
    height: 50px;
    stroke: var(--primary-blue);
    margin-bottom: 20px;
}

/* ======== WHY US SECTION ======== */
.why-us {
    background: var(--off-white);
}
.why-us-list {
    list-style: none;
    max-width: 700px;
    margin: 40px auto 0 auto;
}

.why-us-list li {
    font-size: 1.1rem;
    padding: 15px 0 15px 40px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}
.why-us-list li:last-child {
    border-bottom: none;
}
.why-us-list li::before {
    content: '✔';
    color: var(--primary-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 15px;
    font-size: 1.5rem;
}

/* ======== PORTFOLIO SHOWCASE ======== */
.portfolio-showcase {
    background: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 150px 200px 150px;
    gap: 15px;
}
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.img1 { grid-column: 1 / 2; grid-row: 1 / 2; }
.img2 { grid-column: 2 / 3; grid-row: 1 / 2; }
.img3 { grid-column: 1 / 3; grid-row: 2 / 3; }
.img4 { grid-column: 1 / 2; grid-row: 3 / 4; }
.img5 { grid-column: 2 / 3; grid-row: 3 / 4; }

.portfolio-cta {
    text-align: left;
    padding-left: 20px;
}
.portfolio-cta h2 {
    text-align: left;
    font-size: 2.8rem;
    color: var(--primary-blue);
}

/* ======== FINAL CTA ======== */
.final-cta {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
}
.final-cta h2 {
    color: var(--white);
}
.final-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}
.final-cta .cta-button {
    background: var(--white);
    color: var(--primary-blue);
}
.final-cta .cta-button:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ======== FOOTER ======== */
footer {
    text-align: center;
    padding: 20px;
    background: var(--off-white);
    border-top: 1px solid var(--border-color);
}
footer p {
    margin: 0;
    color: var(--light-text);
}


/* ======== MOBILE RESPONSIVENESS ======== */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-content h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }

    header {
        padding: 0 20px;
    }
    .logo { height: 40px; }
    header nav ul li a { padding: 8px 15px; font-size: 0.9rem; }

    .specialties-grid { grid-template-columns: 1fr; }
    
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-cta { text-align: center; padding-left: 0; margin-top: 40px; }
    .portfolio-cta h2 { text-align: center; }

    .scroller-inner img { height: 40px; }
}