/* =========================================
   GLOBAL VARIABLES
   ========================================= */
:root {
    --col-primary: #1e3a8a;
    --col-primary-light: #eff6ff; /* blue-50 */
    --col-accent: #d97706;
    --col-emerald-900: #064e3b;
    --col-emerald-800: #065f46;
    --col-emerald-700: #047857;
    --col-emerald-100: #d1fae5;
    --col-emerald-50: #ecfdf5;
    --col-gray-900: #111827;
    --col-gray-600: #4b5563;
    --col-gray-50: #f9fafb;
    --col-white: #ffffff;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 
   SCROLL ANIMATION 
   Moves the track to the left by 50% of its width.
   Logic: We duplicate the content (A + B). 
   We slide from 0 to -50%. 
   At -50%, the start of 'B' aligns exactly where 'A' started, creating a loop.
*/
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* =========================================
   CLIENT BANNER SECTION (Centered Layout + Photo Overlay)
   ========================================= */
.client-banner {
    position: relative;
    /* Background Image: Bright Modern Glass Architecture */
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    padding: 120px 0 120px; /* Generous padding for visual impact */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lighter Overlay for Airier Feel */
.client-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Gradient: Deep Navy but with lower opacity (0.6) to let the bright building shine through */
    background: linear-gradient(to bottom, 
        rgba(15, 23, 42, 0.6) 0%, 
        rgba(15, 23, 42, 0.4) 50%, 
        rgba(15, 23, 42, 0.6) 100%
    );
    z-index: 1;
}

/* Subtle Color Gradient Background - Shifted to Blue/Purple */
.banner-bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2; /* Above the dark overlay */
    mix-blend-mode: overlay;
}

/* Single Column Centered Layout */
.banner-grid-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10; /* Above all overlays */
    width: 100%;
    text-align: center;
}

/* Text Content */
.banner-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Title */
.client-banner h1 {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff; /* Pure White */
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    /* Stronger shadow to ensure legibility on lighter background */
    text-shadow: 0 4px 30px rgba(0,0,0,0.6); 
}

.text-highlight {
    background: none;
    color: #ffffff;
}

/* Paragraph */
.client-banner p {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    color: #ffffff;
    line-height: 1.7;
    font-weight: 500; /* Increased weight slightly for readability over photo */
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

/* Visual Element (Centered Glow) */
.banner-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
}

/* Media Queries */
@media (min-width: 992px) {
    .client-banner h1 { font-size: 5rem; }
    
    .visual-glow {
        width: 800px;
        height: 800px;
        filter: blur(100px);
    }
}


/* =========================================
   INTRO & STATS SECTION
   ========================================= */
.clients-intro {
    background-color: var(--col-white);
    padding: 5rem 1rem;
}

.intro-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: 'Georgia', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--col-gray-900);
    margin-bottom: 1.5rem;
}

.intro-text {
    font-size: 1.125rem;
    color: var(--col-gray-600);
    line-height: 1.7;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    border-top: 1px solid #f3f4f6;
    padding-top: 3rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--col-primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

@media (min-width: 768px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================
   LOGO SCROLL SECTION
   ========================================= */
.logo-section {
    background-color: var(--col-emerald-900);
    /* Reduced padding as requested previously */
    padding: 2.5rem 0;
    border-top: 1px solid var(--col-emerald-800);
    border-bottom: 1px solid var(--col-emerald-800);
    overflow: hidden;
}

.logo-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-header p {
    color: #a7f3d0; /* emerald-200 */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-size: 0.875rem;
    opacity: 0.9;
}

.scroll-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex; 
}

/* Gradient Masks */
.scroll-wrapper::before,
.scroll-wrapper::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--col-emerald-900), transparent);
}
.scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--col-emerald-900), transparent);
}

.logo-track {
    display: flex;
    width: max-content; 
    animation: scroll 35s linear infinite; 
}

.logo-track:hover {
    animation-play-state: paused;
}

.client-logo-item {
    flex-shrink: 0;
    /* Fixed container size for uniformity */
    width: 320px; 
    height: 220px; 
    margin: 0 .1rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Optional: background to make logos pop against the dark emerald */
    background-color: rgba(255, 255, 255, 0.05); 
    border-radius: 8px;
}

.client-logo-item img {
    /* Force image to fit within the box while maintaining aspect ratio */
    width: 100%;
    height: 100%;
    object-fit: fill; 
    
    border-radius: 4px;
    filter: drop-shadow(0 4px 3px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.client-logo-item img:hover {
    transform: scale(1.1);
}

/* =========================================
   REAL RESULTS SECTION (Sticky Layout)
   ========================================= */
.results-section {
    background-color: var(--col-gray-50);
    padding: 6rem 1rem;
}

.results-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Sidebar */
.results-sidebar {
    flex: 1;
}

.sticky-content {
    /* Sticky needs a height limit on the parent or window context */
    position: -webkit-sticky;
    position: sticky;
    top: 8rem; 
}

.results-sidebar h2 {
    font-family: 'Georgia', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--col-gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.results-sidebar p {
    color: var(--col-gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.features-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    font-weight: 500;
    color: var(--col-gray-900);
}

.features-icon {
    color: var(--col-emerald-700);
}

/* Grid */
.results-grid-container {
    flex: 2;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Case Study Card */
.case-study-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.case-study-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border-color: #10b981; /* emerald-500 */
}

.card-deco {
    position: absolute;
    top: 0; right: 0;
    width: 5rem; height: 5rem;
    background-color: var(--col-emerald-50);
    border-bottom-left-radius: 100%;
    transform: translate(30%, -30%);
    transition: transform 0.3s ease;
}

.case-study-card:hover .card-deco {
    transform: translate(10%, -10%) scale(1.5);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 10;
}

.icon-box {
    width: 2rem; height: 2rem;
    background-color: var(--col-emerald-100);
    color: var(--col-emerald-800);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
}

.card-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--col-emerald-700);
}

.case-study-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--col-gray-900);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 10;
}

.result-tag {
    display: inline-block;
    background-color: var(--col-primary-light);
    color: var(--col-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 10;
}

.case-study-card p {
    font-size: 0.875rem;
    color: var(--col-gray-600);
    line-height: 1.5;
    position: relative;
    z-index: 10;
}

.view-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--col-primary);
    font-weight: 700;
    text-decoration: none;
    margin-top: 2rem;
    transition: color 0.2s;
}

.view-more-link:hover {
    color: #1e40af;
}

@media (min-width: 1024px) {
    .results-layout { flex-direction: row; }
}

/* =========================================
   TESTIMONIALS SECTION
   ========================================= */
.testimonials-section {
    position: relative;
    background-color: #0f172a; /* slate-900 */
    color: white;
    padding: 6rem 1rem;
    overflow: hidden;
}

.testimonial-deco-1, .testimonial-deco-2 {
    position: absolute;
    width: 24rem; height: 24rem;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
}

.testimonial-deco-1 {
    top: -5rem; right: -5rem;
    background-color: var(--col-primary);
}

.testimonial-deco-2 {
    bottom: -5rem; left: -5rem;
    background-color: var(--col-accent);
}

.testimonials-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-header h2 {
    font-family: 'Georgia', serif;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.testimonials-header p {
    color: #94a3b8; /* gray-400 */
    max-width: 600px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 0.75rem;
}

.stars {
    color: var(--col-accent);
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.quote-text {
    font-style: italic;
    color: #cbd5e1; /* gray-300 */
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.client-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 2.5rem; height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--col-primary), #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.875rem;
}

.avatar.accent { background: linear-gradient(135deg, var(--col-accent), #fcd34d); }
.avatar.green { background: linear-gradient(135deg, var(--col-emerald-700), #34d399); }

.client-info h4 { font-weight: 700; font-size: 1rem; }
.client-info p { font-size: 0.75rem; color: #94a3b8; }

@media (min-width: 768px) {
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
    background-color: var(--col-primary-light);
    padding: 6rem 1rem;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-container h2 {
    font-family: 'Georgia', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--col-gray-900);
    margin-bottom: 1.5rem;
}

.cta-container p {
    font-size: 1.125rem;
    color: var(--col-gray-600);
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--col-primary);
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: #1e3a8a; /* darker */
    transform: translateY(-2px);
}

.btn-outline {
    background-color: white;
    color: var(--col-primary);
    border: 1px solid var(--col-primary);
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: #eff6ff;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .btn-group { flex-direction: row; }
}