/* ============================================= */
/* BASE STYLES & VARIABLES                       */
/* ============================================= */
:root {
    --main-blue: rgb(35, 48, 232);
    --light-blue: rgb(9, 79, 222);
    --secondary-red: rgb(234, 79, 114);
    --white: rgb(255, 255, 255);
    --text-dark: #222;
    --text-light: #f4f4f4;
    --background-light: #f9f9f9;
    --background-grey-subtle: #f0f0f0; /* New variable for subtle background */
    --font-family: 'Inter', 'Helvetica Neue', sans-serif;
    --border-radius: 12px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    font-size: 16px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/site_background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.8;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: -1;
}

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 700;
}

h1 { font-size: 3.2rem; line-height: 1.2; font-weight: 800; }
h2 { font-size: 2.5rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 15px 0; }
a { text-decoration: none; color: var(--main-blue); }

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

section {
    padding: 80px 0;
}

.content-card {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    margin: 0 20px 40px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.text-red {
    color: var(--secondary-red);
}

/* ============================================= */
/* HEADER & NAVIGATION                           */
/* ============================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--main-blue);
}

/* ============================================= */
/* BUTTONS                                       */
/* ============================================= */
.btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--main-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--light-blue);
}

/* UPDATED: Main red button style */
.btn-accent {
    background-color: var(--secondary-red);
    color: var(--white);
    border-color: var(--secondary-red);
}

.btn-accent:hover {
    opacity: 0.9;
    transform: translateY(-2px); /* Add a subtle lift */
}

/* NEW: Outlined red button style */
.btn-accent-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-accent-outline:hover {
    background-color: var(--white);
    color: var(--secondary-red);
}

.btn-light {
    background-color: var(--white);
    color: var(--main-blue);
}

.btn-light:hover {
    background-color: var(--background-light);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--main-blue);
}

/* ============================================= */
/* HERO SECTION                                  */
/* ============================================= */
.hero-section {
    position: relative;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background-image: url('images/hero_team_strategy.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(35, 48, 232, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* UPDATED: Glowing title with solid white core */
.glowing-title {
    color: var(--white); /* Ensures the text itself is pure white */
    text-shadow:
        /* Inner sharp shadow for contrast */
        0 1px 2px rgba(0,0,0,0.5),
        /* The glow effect */
        0 0 15px rgba(255,255,255,0.5),
        0 0 42px var(--light-blue),
        0 0 102px var(--light-blue);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* UPDATED: Subheadline with solid white color */
.hero-content .subheadline {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 20px auto 30px;
    color: var(--white); /* Ensures text is pure white */
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* ============================================= */
/* GRID LAYOUT FOR SECTIONS                      */
/* ============================================= */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* NEW: Specific grid for About section */
.grid-layout-about {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Adjusted for text and strengths balance */
    gap: 60px;
    align-items: start; /* Align to the top of the grid cell */
}

.challenge-section .grid-layout {
    grid-template-columns: 1fr 1fr;
}

/* ============================================= */
/* ABOUT SECTION & LOGO CAROUSEL                 */
/* ============================================= */
.about-text-content h2 {
    margin-bottom: 15px;
}

.about-text-content p {
    font-size: 1.1rem; /* Adjust font size if needed */
    line-height: 1.6;
    margin-bottom: 20px; /* Space between paragraph and strengths on mobile */
}

.key-strengths {
    margin-top: 0; /* Remove top margin as it's now in its own grid column */
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Vertically center within its column if needed, but 'start' for grid-layout-about handles it */
    justify-content: center; 
}

.strength-card {
    padding: 20px;
    border-radius: var(--border-radius);
    background: radial-gradient(circle at center, rgba(9, 79, 222, 0.1), transparent 70%);
    border: 1px solid #eaf0ff;
}

.strength-card h3 {
    font-size: 1.2rem;
}

/* NEW: Logo Carousel Styles */
.logo-carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 40px; /* Space below about content */
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.7); 
    box-shadow: inset 0 0 15px rgba(0,0,0,0.05);
}

.logo-carousel-track {
    display: flex;
    width: fit-content; /* Allows all images to be on one line */
    animation: scrollLogos 30s linear infinite; /* Adjust duration for speed */
}

.logo-carousel-track img {
    height: 60px; /* Adjust logo height as needed */
    margin: 0 40px; /* Space between logos */
    filter: grayscale(100%); /* Makes logos look neutral */
    opacity: 0.6; /* Subtle appearance */
    transition: all 0.3s ease;
    max-width: none; /* Override default img max-width */
    border-radius: 0; /* No border-radius for logos */
}

.logo-carousel-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scrolls half the track width to create infinite loop */
}


/* ============================================= */
/* CHALLENGE SECTION                             */
/* ============================================= */
.highlight-box {
    background-color: #f0f4ff;
    border-left: 4px solid var(--secondary-red);
    padding: 20px;
    margin-top: 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}
.highlight-box p {
    font-size: 1.1rem;
    font-style: italic;
    margin: 0;
}
.highlight-box .source { /* NEW: Specific style for source */
    display: block;
    font-style: italic;
    font-size: 0.9rem; /* 2 points smaller than 1.1rem base for p */
    margin-top: 5px;
    opacity: 0.7;
}

/* ============================================= */
/* PROMISE & MODEL SECTIONS                      */
/* ============================================= */
.section-header {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.promise-columns {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.promise-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    flex: 1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* NEW: Model section background */
.model-section {
    background-color: rgba(9, 79, 222, 0.05); /* Lighter blue tone */
    border-radius: var(--border-radius);
    margin: 0 20px 40px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.model-timeline {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.timeline-step {
    padding: 15px 25px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: var(--white);
    text-align: center;
    min-width: 180px; /* Ensure buttons have consistent width */
}

.timeline-step h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.timeline-step p {
    font-size: 0.95rem;
    margin: 0;
}


.growth-phases {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.phase-card {
    background-color: var(--main-blue);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 30px;
}

.model-cta {
    margin-bottom: 40px;
    text-align: center;
}

/* ============================================= */
/* RESULTS & WHY CHOOSE US SECTIONS              */
/* ============================================= */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stat-item { /* NEW: Style for stat items */
    background-color: var(--background-grey-subtle);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-item h3 {
    color: var(--main-blue);
    font-size: 2.2rem; /* Slightly smaller for balance */
    margin-bottom: 5px;
}
.stat-item p {
    font-size: 1rem;
    margin: 0;
}


.why-choose-us-text ul {
    list-style-type: '✓';
    padding-left: 20px;
}

.why-choose-us-text li {
    padding-left: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* ============================================= */
/* CONTACT SECTION                               */
/* ============================================= */
.contact-section {
    background-color: var(--main-blue);
    color: var(--white);
    text-align: center;
}

.contact-section h2 {
    color: var(--white);
}

.contact-section p {
    max-width: 600px;
    margin: 15px auto 30px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    text-align: left;
    flex-wrap: wrap;
}

.contact-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: var(--border-radius);
    width: 300px;
}

.contact-card h3 {
    color: var(--white);
    margin-bottom: 15px;
}

/* NEW: No underline for contact links */
.contact-card a {
    color: var(--white);
    display: block;
    margin-bottom: 10px;
    text-decoration: none; /* Removed underline */
    transition: opacity 0.3s;
}

.contact-card a:hover {
    opacity: 0.8;
    text-decoration: none;
}
.contact-card .btn {
    margin-top: 15px;
}

/* ============================================= */
/* FOOTER                                        */
/* ============================================= */
.footer {
    background-color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #888;
}

/* ============================================= */
/* RESPONSIVE DESIGN                             */
/* ============================================= */
@media (max-width: 992px) {
    .grid-layout {
        gap: 40px;
    }
    .grid-layout-about {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
        gap: 30px;
    }
    .logo-carousel-track img {
        height: 50px; /* Adjust for smaller screens */
        margin: 0 30px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .grid-layout {
        grid-template-columns: 1fr;
    }

    .grid-layout-about {
        grid-template-columns: 1fr;
    }

    .challenge-section .grid-layout .challenge-image {
        order: -1;
    }
     .why-choose-us-section .grid-layout .why-choose-us-image {
        order: -1;
    }

    .promise-columns {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    section, .content-card {
        padding: 60px 20px;
    }

    .content-card {
        margin: 0 10px 30px 10px;
    }
    
    .hero-section {
        min-height: 70vh;
    }

    .logo-carousel-track img {
        height: 40px; /* Further adjust for mobile */
        margin: 0 20px;
    }
    .timeline-step {
        min-width: unset; /* Allow steps to shrink on small screens */
        padding: 10px 15px;
    }
    .model-timeline {
        flex-direction: column; /* Stack steps vertically on small screens */
    }
}