:root {
    --primary-color: #4a90e2;
    --secondary-color: #333333;
    --accent-color: #f8f8f8;
    --text-color: #333;
    --light-text: #fff;
    --dark-blue: #2c5282;
    --purple: #5b3c8b;
    --green: #4CAF50;
    --teal: #2c7a7b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Assistant', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 400;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Assistant', sans-serif;
    font-weight: 700;
}

p, a, li, span {
    font-family: 'Assistant', sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Background Styling */
.bg-image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Default overlay */
    z-index: 1;
}

.bg-overlay-light::before {
    background-color: rgba(255, 255, 255, 0.8);
}

.bg-overlay-dark::before {
    background-color: rgba(0, 0, 0, 0.7);
}

.bg-overlay-primary::before {
    background-color: rgba(74, 144, 226, 0.8);
}

.bg-overlay-none::before {
    background-color: transparent;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
}

.logo img {
    height: 85px;
    width: auto;
    max-width: 300px;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    list-style: none;
    margin-left: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* --- Homepage Hero --- */
.hero {
    padding: 180px 0 120px;
    position: relative;
    background-image: url('https://images.pexels.com/photos/3184418/pexels-photo-3184418.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

.hero-container {
    text-align: center;
}

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

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
    font-weight: 700;
}

.hero h2 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 30px;
    color: white;
}

/* --- Recruiting Page Hero --- */
.recruiting-hero {
    background-color: #f5f7fa;
    padding: 180px 0 80px;
    text-align: center;
}

.recruiting-hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--dark-blue);
}

.recruiting-hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color);
}


/* --- General Content Sections --- */
.cta-button {
    display: inline-block;
    background-color: var(--purple);
    color: white;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Assistant', sans-serif;
}

.cta-button:hover {
    background-color: #4a2e70;
}

/* Main Content Section (Recruiting Page) */
.main-content {
    padding: 80px 0;
}

.main-content h2 {
    font-size: 32px;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.main-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.main-content h3 {
    font-size: 24px;
    color: var(--dark-blue);
    margin-top: 30px;
    margin-bottom: 15px;
}

/* CTA Section (Recruiting Page) */
.cta-section {
    text-align: center;
    padding: 40px 0;
    margin-top: 40px;
}

/* Services Intro Section (Homepage) */
.services-intro {
    padding: 80px 0;
    position: relative;
    background-color: #f5f7fa;
}

.services-intro-container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.services-intro-image {
    flex: 1;
    max-width: 50%;
    padding-right: 40px;
}

.services-intro-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.services-intro-content {
    flex: 1;
    max-width: 50%;
}

.services-intro-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--dark-blue);
    line-height: 1.3;
}

.services-intro-content p {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--text-color);
}

/* Client Logo Carousel */
.client-logos {
    padding: 40px 0;
    background-color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.logo-carousel {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.logo-slide {
    display: flex;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.logo-item {
    padding: 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.logo-item img {
    max-height: 80px;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Testimonials Section */
.testimonials {
    background-color: #f5f7fa;
    padding: 80px 0;
    position: relative;
}

.testimonials-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.testimonials-title h2 {
    color: var(--dark-blue);
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.testimonials-title::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--dark-blue);
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.testimonial-item {
    display: flex;
    gap: 30px;
}

.testimonial-logo {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.testimonial-content {
    flex: 1;
    position: relative;
}

.quote-marks {
    font-size: 120px;
    line-height: 0;
    color: rgba(99, 102, 241, 0.1);
    font-family: serif;
    position: absolute;
    top: 20px;
    left: -20px;
}

.testimonial-text {
    color: var(--text-color);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    color: var(--dark-blue);
    font-style: italic;
    font-weight: 500;
}

/* Services Section (Homepage) */
.services-section {
    padding: 80px 0;
    background-color: #ffffff;
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(99, 102, 241, 0.15) 2px, transparent 2px);
    background-size: 25px 25px;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.services-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.services-title h2 {
    color: var(--dark-blue);
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.services-title::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--dark-blue);
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(99, 102, 241, 0.1) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.service-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background-color: rgba(44, 122, 123, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--teal);
}

.service-title {
    font-size: 24px;
    color: var(--dark-blue);
    font-weight: 600;
}

.service-description {
    margin-bottom: 25px;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.service-features {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.service-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.service-feature:last-child {
    margin-bottom: 0;
}

.feature-icon {
    color: var(--green);
    margin-right: 10px;
    font-size: 18px;
    margin-top: 2px;
}

/* About Section */
.about {
    background-color: white;
    padding: 80px 0;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 25%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(99, 102, 241, 0.15) 2px, transparent 2px);
    background-size: 25px 25px;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.about-intro {
    margin-bottom: 60px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.about-intro h2 {
    color: var(--dark-blue);
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-intro p {
    color: var(--text-color);
    font-size: 18px;
    line-height: 1.8;
}

.team-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.team-title h3 {
    color: var(--dark-blue);
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.team-title::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--dark-blue);
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    position: relative;
    z-index: 2;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.team-member-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
    height: 0;
    padding-bottom: 100%; /* Creates a square aspect ratio container */
}

.team-member-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: grayscale(100%); /* Makes images black and white */
}

.team-member-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 15px;
}

.team-member-name {
    color: var(--dark-blue);
    font-size: 24px;
    font-weight: 600;
}

.team-member-role {
    color: var(--dark-blue);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 500;
}

.team-member-social {
    margin-top: 10px;
}

.team-member-social a {
    color: var(--text-color);
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.team-member-social a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 60px 0 20px;
    position: relative;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    padding: 0 20px;
    margin-bottom: 30px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

.footer-column p {
    font-weight: 400;
}

.footer-logo img {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
}

.copyright {
    margin-top: 40px;
    text-align: center;
    width: 100%;
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 400;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #4a2e70;
}

.back-to-top i {
    font-size: 20px;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal h2 {
    color: var(--dark-blue);
    font-size: 28px;
    margin-bottom: 15px;
    text-align: center;
}

.modal p {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* Contact Form Styling */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: span 2;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-blue);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Assistant', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

.hidden {
    display: none;
}

.submit-button {
    background-color: var(--purple);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-button:hover {
    background-color: #4a2e70;
}

/* Form Success Message */
.form-success {
    display: none;
    text-align: center;
    padding: 20px;
}

.form-success-icon {
    font-size: 60px;
    color: var(--green);
    margin-bottom: 20px;
}

.form-success h3 {
    color: var(--dark-blue);
    font-size: 24px;
    margin-bottom: 15px;
}

.form-success p {
    margin-bottom: 25px;
}

.back-button {
    display: inline-block;
    background-color: var(--purple);
    color: white;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    cursor: pointer;
    border: none;
}

.back-button:hover {
    background-color: #4a2e70;
}

/* Form submission status */
.form-submitting .submit-button {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-submitting .submit-button::after {
    content: "...";
    display: inline-block;
    margin-left: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 10px 0;
    }
    
    .logo img {
        height: 50px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero h2 {
        font-size: 18px;
    }

    .recruiting-hero {
        padding: 120px 0 60px;
    }
    
    .recruiting-hero h1 {
        font-size: 28px;
    }
    
    .recruiting-hero p {
        font-size: 16px;
    }
    
    .services-intro-container {
        flex-direction: column;
    }
    
    .services-intro-image {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .services-intro-content {
        max-width: 100%;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-item {
        padding: 0 15px;
    }
    
    .logo-item img {
        max-height: 60px;
        max-width: 120px;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-item {
        flex-direction: column;
    }
    
    .testimonial-logo {
        margin: 0 auto 20px;
    }
    
    .about-intro {
        max-width: 100%;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .footer-column {
        width: 100%;
        padding: 0;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 30px 20px;
        width: 95%;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
}

/* Prevent body scrolling when modal is open */
body.modal-open {
    overflow: hidden;
}