:root {
    --primary: #c41230; /* Crimson red from the logo */
    --primary-dark: #a30f28;
    --primary-light: #e0536e;
    --secondary: #ffb347; /* Warm gold/amber for contrast */
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--light);
    background-color: var(--primary);
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

/* Unified Header & Navigation */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    background-color: transparent;
}

.header-nav.scrolled {
    background-color: rgba(196, 18, 48, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    transition: padding 0.3s ease;
}

.scrolled .header-content {
    padding: 15px 0;
}

.header-logo {
    height: 50px;
    width: auto;
    transition: height 0.3s ease;
}

.scrolled .header-logo {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--light);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--light);
}

/* Main content */
main {
    padding-top: 120px;
}

.hero {
    height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
}

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

.tagline {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 30px;
}

h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--light);
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

section:nth-child(even) {
    background-color: var(--primary-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s, box-shadow 0.5s;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    background-color: rgba(255, 255, 255, 0.15);
}

.service-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature {
    display: flex;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s, transform 0.8s;
}

.feature.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-icon {
    flex: 0 0 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--light);
    font-size: 18px;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 5px;
}

footer {
    background-color: var(--dark);
    padding: 80px 0 60px;
    position: relative;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    color: var(--dark);
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.5);
}

textarea.form-control {
    min-height: 120px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.copyright {
    text-align: center;
    margin-top: 60px;
    color: var(--gray);
    font-size: 14px;
}

.btn {
    display: inline-block;
    background: #ff9e1b;
    color: var(--light);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 179, 71, 0.2);
}

.btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 179, 71, 0.4);
    color: var(--light);
}

/* Form success message */
.form-success {
    display: none;
    background-color: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.3);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.clients-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 20px;
    padding-top: 20px;
}

/* Fade edges */
.clients-container::before,
.clients-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-container::before {
    left: 0;
    background: linear-gradient(to right, 
        var(--primary-dark) 0%,
        var(--primary-dark) 20%,
        transparent 100%
    );
}

.clients-container::after {
    right: 0;
    background: linear-gradient(to left, 
        var(--primary-dark) 0%,
        var(--primary-dark) 20%,
        transparent 100%
    );
}

.clients-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
    padding: 20px 0;
}

.client {
    flex: 0 0 280px;
    margin: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.13);
    text-decoration: none;
    color: var(--light);
    transition: transform 0.22s, box-shadow 0.22s, background 0.22s;
    border: 1px solid rgba(255,255,255,0.13);
    transform-origin: center center;
}

.client:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 4px 32px rgba(0,0,0,0.25);
}

.client img {
    width: 140px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 6px;
    margin-top: 6px;
}

.client-logo-small img {
    width: 120px;
    height: 56px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.client-logo-large img {
    width: 168px;
    height: 76px;
    margin-bottom: 0px;
    margin-top: 0px;
}

.client-logo-xlarge img {
    width: 210px;
    height: 76px;
    margin-bottom: 0px;
    margin-top: 0px;
}

.client p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-align: center;
    margin: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Calculate exact width: (card width + margin) * number of unique clients */
        transform: translateX(calc(-1 * (320px * 7))); /* 280px + 40px margin = 320px per card, 7 clients */
    }
}

/* Pause animation on hover */
.clients-track:hover {
    animation-play-state: paused;
}

/* Job section styles */
.job h4,
.job-details h4 {
    color: var(--secondary) !important;
}

.job {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    transition: box-shadow 0.3s, background 0.3s;
    position: relative;
    cursor: pointer;
}
.job:hover,
.job.job-details-open {
    background: rgba(255,255,255,0.13);
    box-shadow: 0 8px 32px rgba(0,0,0,0.16);
}
.job-details-collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(.4,0,.2,1), opacity 0.4s;
    pointer-events: none;
}
.job-details-expanded {
    max-height: 600px;
    opacity: 1;
    transition: max-height 0.5s cubic-bezier(.4,0,.2,1), opacity 0.4s;
    pointer-events: auto;
}
.job-toggle {
    display: flex;
    align-items: center;
    color: var(--secondary);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    user-select: none;
    gap: 6px;
    transition: color 0.2s;
    pointer-events: none;
}
.job-arrow {
    display: inline-block;
    transition: transform 0.3s;
    font-size: 16px;
}
.job-arrow.open {
    transform: rotate(180deg);
}

/* Parallax Circles */
#parallax-circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

.parallax-circle {
    position: absolute;
    border-radius: 50%;
    transition: background 0.5s;
    will-change: transform;
}

/* Add these media queries for responsive menu */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--primary-dark);
        padding: 20px;
        gap: 15px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--light);
        cursor: pointer;
        padding: 5px;
    }

    .header-content.mobile-menu-open .nav-links {
        display: flex;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }

    .nav-links {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    /* Remove fade edges on mobile */
    .clients-container::before,
    .clients-container::after {
        display: none;
    }

    /* Adjust container padding and margins */
    .clients-container {
        margin: 40px -15px 0;
        padding-top: 20px;
        width: calc(100% + 30px);
    }

    /* Adjust client cards for mobile */
    .client {
        flex: 0 0 260px;
        margin: 0 15px;
    }

    /* Adjust scroll animation distance for mobile */
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-1 * (290px * 7))); /* Adjusted for new card width + margin */
        }
    }
}

.section-header-with-image {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.content-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-text {
    flex: 1;
}

.section-image {
    display: none; /* Hide by default (mobile) */
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    will-change: transform;
}

@media (min-width: 769px) {
    .section-header-with-image {
        flex-direction: row;
        gap: 40px;
        align-items: flex-start;
    }

    .content-side {
        flex: 1;
        order: 1;
    }

    .section-image {
        display: block; /* Show on desktop */
        width: 45%;
        order: 2;
        position: sticky;
        top: 100px;
        align-self: flex-start;
    }

    .section-header-with-image.image-left .section-image {
        order: 0;
    }

    .section-header-with-image.image-left .content-side {
        order: 1;
    }
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.tech-category {
    background: rgba(255,255,255,0.08);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.13);
}

.tech-category h3 {
    color: var(--secondary);
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.tech-category p {
    color: var(--light);
    opacity: 0.9;
    font-size: 15px;
    margin: 0;
}

@media (max-width: 768px) {
    .tech-categories {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 16px;
    }
    
    .tech-category {
        padding: 12px 16px;
    }
    
    .tech-category h3 {
        font-size: 16px;
    }
    
    .tech-category p {
        font-size: 14px;
    }
}

.process-options {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.process-option {
    background: rgba(255,255,255,0.08);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.13);
    transition: all 0.3s ease;
    cursor: pointer;
}

.process-option:hover {
    background: rgba(255,255,255,0.12);
}

.process-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.process-header h3 {
    margin: 0;
    color: var(--secondary);
    font-size: 18px;
    font-weight: 600;
}

.process-arrow {
    color: var(--light);
    font-size: 14px;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.process-option.expanded .process-arrow {
    transform: rotate(180deg);
}

.process-details {
    margin-top: 12px;
    transition: all 0.3s ease-out;
    overflow: hidden;
    max-height: 500px;
}

.process-details-collapsed {
    margin-top: 0;
    max-height: 0;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--light);
    opacity: 0.9;
}

.service-features {
    margin-top: 12px;
    padding-left: 20px;
    color: var(--light);
    opacity: 0.9;
}

.service-features li {
    margin-bottom: 4px;
    font-size: 14px;
}

// Rename process-related classes to match new terminology
.engagement-options {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.engagement-option {
    background: rgba(255,255,255,0.08);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.13);
    transition: all 0.3s ease;
    cursor: pointer;
}

.engagement-option:hover {
    background: rgba(255,255,255,0.12);
}

.engagement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.engagement-header h3 {
    margin: 0;
    color: var(--secondary);
    font-size: 18px;
    font-weight: 600;
}

.engagement-arrow {
    color: var(--light);
    font-size: 14px;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.engagement-option.expanded .engagement-arrow {
    transform: rotate(180deg);
}

.engagement-details {
    margin-top: 12px;
    transition: all 0.3s ease-out;
    overflow: hidden;
    max-height: 500px;
}

.engagement-details-collapsed {
    margin-top: 0;
    max-height: 0;
}
