@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Sora:wght@400;500;600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #111827;
    --accent-color: #f59e0b;
    --accent-light: #fbbf24;
    --text-light: #f8fafc;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f8fafc;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.3);
    --shadow-accent: 0 0 30px rgba(245, 158, 11, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #374151 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(17, 24, 39, 0.98) 50%, rgba(30, 58, 138, 0.95) 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

/* ===== REDUCED MOTION SUPPORT ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 { 
    font-family: 'Space Grotesk', 'Sora', sans-serif; 
    font-weight: 700; 
    letter-spacing: -0.02em; 
    line-height: 1.2; 
    margin-bottom: 1rem; 
}

.text-gradient { 
    background: var(--gradient-primary); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}

/* ===== BUTTONS ===== */
.btn { 
    border-radius: var(--border-radius); 
    font-weight: 600; 
    padding: 0.75rem 1.5rem; 
    transition: var(--transition); 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    border: none; 
    cursor: pointer; 
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary { 
    background: var(--gradient-primary); 
    color: var(--text-light); 
    box-shadow: var(--shadow-medium); 
}

.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: var(--shadow-heavy); 
    color: var(--text-dark); 
}

.btn-outline-light { 
    border: 2px solid var(--text-light); 
    color: var(--text-light); 
    background: transparent; 
}

.btn-outline-light:hover { 
    background: var(--text-light); 
    color: var(--primary-color); 
    transform: translateY(-2px); 
}

/* ===== NAV ===== */
.navbar { 
    background: rgba(17, 24, 39, 0.95); 
    backdrop-filter: blur(10px); 
    transition: var(--transition); 
    padding: 1rem 0; 
    box-shadow: var(--shadow-medium); 
    transform: translateY(0);
}

.navbar.scrolled {
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
}

.navbar.navbar-hidden {
    transform: translateY(-100%);
}

.navbar-brand img { 
    transition: var(--transition); 
}

.navbar-brand:hover img { 
    transform: scale(1.05); 
}

.nav-link { 
    color: var(--text-light) !important; 
    font-weight: 600; 
    padding: 0.5rem 1rem !important; 
    transition: var(--transition); 
    position: relative; 
}

.nav-link:hover { 
    color: var(--primary-light) !important; 
}

.nav-link::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    width: 0; 
    height: 2px; 
    background: var(--gradient-primary); 
    transition: var(--transition); 
    transform: translateX(-50%); 
}

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

/* Ensure navbar and dropdowns overlay page content */
.navbar { z-index: 1100; }

/* ===== CASE STUDIES SECTION ===== */
.case-studies-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.case-studies-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23cbd5e1" opacity="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>') repeat;
    z-index: 0;
    opacity: 0.6;
}

.case-studies-section .container {
    position: relative;
    z-index: 1;
}

.case-study-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-slow);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.case-study-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.05);
}

.case-study-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.case-study-card:hover .case-study-overlay {
    opacity: 1;
}

.case-study-category {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-study-actions {
    text-align: center;
    align-self: center;
}

.btn-case-study {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.btn-case-study:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1);
    border-color: white;
}

.case-study-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-study-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.case-study-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.case-study-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.case-study-meta i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.case-study-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.case-study-results {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.result-item {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.result-item i {
    color: var(--primary-color);
    font-size: 0.7rem;
}

.case-study-card:hover .result-item {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.case-study-card:hover .result-item i {
    color: white;
}

/* ===== RESPONSIVE CASE STUDIES ===== */
@media (max-width: 768px) {
    .case-study-image {
        height: 200px;
    }
    
    .case-study-content {
        padding: 1.5rem;
    }
    
    .case-study-results {
        gap: 0.3rem;
    }
    
    .result-item {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
    
    .case-study-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ===== PAGE HERO SECTION ===== */
.page-hero-section {
    background: var(--gradient-hero);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.page-hero-section .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="bg"><stop offset="0%" stop-color="%23374151" stop-opacity="0.1"/><stop offset="100%" stop-color="%23111827" stop-opacity="0.3"/></radialGradient></defs><rect width="100%" height="100%" fill="url(%23bg)"/></svg>') no-repeat center;
    background-size: cover;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    color: var(--text-light);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== CASE STUDIES HERO SECTION ===== */
.case-studies-hero-section {
    background: var(--gradient-hero);
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.case-studies-hero-section .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: 0;
}

.case-studies-hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(17, 24, 39, 0.95) 100%);
    z-index: 1;
}

.case-studies-hero-section .container {
    position: relative;
    z-index: 2;
}

.min-vh-70 {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.case-studies-hero-content {
    text-align: center;
    color: white;
    padding: 2rem 0;
}

.case-studies-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: white;
}

.case-studies-hero-description {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.case-studies-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 150px;
    transition: var(--transition);
}

.hero-stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-medium);
}

.hero-stat-item .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.hero-stat-item .stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Responsive Case Studies Hero */
@media (max-width: 992px) {
    .case-studies-hero-title {
        font-size: 2.5rem;
    }
    
    .case-studies-hero-stats {
        gap: 1.5rem;
    }
    
    .case-studies-hero-section {
        min-height: 60vh;
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .case-studies-hero-title {
        font-size: 2rem;
        color: #ffffff !important;
        
    }
    
    .case-studies-hero-description {
        font-size: 1rem;
        color: #ffffff !important;
    }
    
    .case-studies-hero-stats {
        gap: 1rem;
        flex-direction: column;
    }
    
    .hero-stat-item {
        min-width: 120px;
        padding: 1rem;
    }
    
    .hero-stat-item .stat-number {
        font-size: 2rem;
    }
}

/* ===== FILTER SECTION ===== */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ===== DETAILED CASE STUDY CARDS ===== */
.case-study-card-detailed {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-slow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-study-card-detailed:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.case-study-image-large {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.case-study-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.case-study-card-detailed:hover .case-study-image-large img {
    transform: scale(1.1);
}

.case-study-overlay-detailed {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(17, 24, 39, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.case-study-card-detailed:hover .case-study-overlay-detailed {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.overlay-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.overlay-results {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

.case-study-content-detailed {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.case-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}

.case-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.case-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex: 1;
}

.case-highlights {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.highlight-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.highlight-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.highlight-item h5 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.highlight-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="%23ffffff" stroke-width="1" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>') repeat;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== RESPONSIVE DETAILED CASE STUDIES ===== */
@media (max-width: 992px) {
    .case-highlights {
        flex-direction: column;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .case-study-image-large {
        height: 250px;
    }
    
    .case-study-content-detailed {
        padding: 1.5rem;
    }
    
    .case-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .highlight-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .page-hero-section {
        min-height: 50vh;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== CASE STUDY DETAIL PAGES ===== */
.case-study-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.case-study-hero .hero-overlay {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(17, 24, 39, 0.95) 100%);
}

.case-study-breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.case-study-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.case-study-breadcrumb a:hover {
    color: white;
}

.case-study-category-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.case-study-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.case-study-hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.case-study-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.meta-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.meta-item a:hover {
    color: white;
}

/* Case Study Sidebar */
.case-study-sidebar {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 2rem;
}

.result-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.metric {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
}

.metric-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Challenge and Solution Lists */
.challenge-list, .solution-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.challenge-item, .solution-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.challenge-item:hover, .solution-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.challenge-item i, .solution-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.challenge-item h5, .solution-item h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.challenge-item p, .solution-item p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Technology Cards */
.tech-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.tech-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tech-card h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.tech-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Results Cards */
.results-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    height: 100%;
}

.progress-item {
    margin-bottom: 1.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e2e8f0;
}

.impact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.impact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    font-weight: 500;
    transition: var(--transition);
}

.impact-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-light);
}

.impact-item i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    position: relative;
}

.testimonial-content {
    position: relative;
}

.testimonial-content .fa-quote-left {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    top: -1rem;
    left: -1rem;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 2rem 0;
    font-style: italic;
}

.testimonial-author h5 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Next Project Section */
.next-project-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.next-project-image img {
    transition: var(--transition-slow);
}

.next-project-image:hover img {
    transform: scale(1.05);
}

/* Responsive Case Study Detail */
@media (max-width: 992px) {
    .case-study-hero-title {
        font-size: 2.5rem;
    }
    
    .case-study-hero-meta {
        gap: 1rem;
    }
    
    .result-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .case-study-sidebar {
        margin-top: 2rem;
        position: static;
    }
}

@media (max-width: 768px) {
    .case-study-hero-title {
        font-size: 2rem;
    }
    
    .case-study-hero-description {
        font-size: 1rem;
    }
    
    .case-study-hero-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .challenge-item, .solution-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .tech-card {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
}

/* ===== MEGA MENU (Services) ===== */
.navbar .dropdown-menu.mega-menu {
    display: none; /* default hidden; shown via hover on lg and click via Bootstrap */
    width: 100%;
    left: 0;
    right: 0;
    margin-top: 0;
    padding: 1.25rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1200;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition);
}

/* Support Bootstrap's .show state (mobile click/tap) */
.navbar .dropdown-menu.mega-menu.show { 
    display: block; 
    opacity: 1;
    transform: translateY(0);
}

.navbar .dropdown-menu.mega-menu .mega-menu-section h5 {
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.navbar .dropdown-menu.mega-menu .mega-menu-list { 
    list-style: none; 
    padding-left: 0; 
    margin: 0; 
}

.navbar .dropdown-menu.mega-menu .mega-menu-list li { 
    margin-bottom: 0.35rem; 
}

.navbar .dropdown-menu.mega-menu .mega-menu-list a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: var(--transition);
}

.navbar .dropdown-menu.mega-menu .mega-menu-list a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

/* ===== REGULAR DROPDOWN MENU (About, etc.) ===== */
.navbar .dropdown-menu:not(.mega-menu) {
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 200px;
    box-shadow: var(--shadow-medium);
}

.navbar .dropdown-menu:not(.mega-menu) .dropdown-item {
    color: var(--text-light);
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
    font-weight: 500;
}

.navbar .dropdown-menu:not(.mega-menu) .dropdown-item:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-light);
    padding-left: 2rem;
}

/* Show mega menu on hover for desktops; keep click/touch behavior for mobile */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu.mega-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
    
    .navbar .dropdown:hover > .dropdown-menu:not(.mega-menu) {
        display: block;
    }
}

/* On small screens, allow inner scrolling without breaking layout */
@media (max-width: 991.98px) {
    .navbar .dropdown-menu.mega-menu {
        position: static; /* flow within the collapsed nav */
        max-height: 60vh;
    }
    
    .navbar .dropdown-menu:not(.mega-menu) {
        background: rgba(17, 24, 39, 0.95);
        border: none;
        margin-top: 0;
    }
}

/* ===== HERO ===== */
.hero-section { 
    position: relative; 
    height: 100vh; 
    display: flex; 
    align-items: center; 
    background: var(--gradient-secondary); 
    overflow: hidden; 
}

.hero-background { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%231e3a8a" stop-opacity="0.1"/><stop offset="100%" stop-color="%23111827" stop-opacity="0"/></radialGradient></defs><rect width="100%" height="100%" fill="url(%23a)"/></svg>'); 
    background-size: cover; 
}

.hero-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: var(--gradient-hero); 
}

.hero-content { 
    position: relative; 
    z-index: 2; 
    color: var(--text-light); 
}

/* Strong enforcement for hero text color across all pages */
.hero-section .container, .hero-section .hero-content { 
    position: relative; 
    z-index: 2; 
}

.hero-section :is(h1, h2, h3, h4, h5, h6, p, span, strong, a) { 
    color: #ffffff !important; 
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28); 
}

/* Ultra-specific reinforcement to defeat any conflicting utility classes */
.hero-section .container .row .col-lg-10 .hero-title,
.hero-section .container .row .col-lg-9 .hero-title,
.hero-section .container .row .col-lg-8 .hero-title,
.hero-section .container .row .col-lg-6 .hero-title,
.hero-section .container .row .col-lg-10 .hero-description,
.hero-section .container .row .col-lg-9 .hero-description,
.hero-section .container .row .col-lg-8 .hero-description,
.hero-section .container .row .col-lg-6 .hero-description {
    color: #ffffff !important;
}

.hero-title { 
    font-size: 3.5rem; 
    font-weight: 800; 
    margin-bottom: 1rem; 
    opacity: 0;
    transform: translateY(30px);
    animation: heroTitleReveal 1.2s var(--ease-out) 0.3s forwards;
}

.hero-subtitle { 
    font-size: 1.5rem; 
    font-weight: 700; 
    margin-bottom: 1.5rem; 
    color: var(--text-light); 
    opacity: 0;
    transform: translateY(30px);
    animation: heroTitleReveal 1.2s var(--ease-out) 0.6s forwards;
}

.hero-description { 
    font-size: 1.12rem; 
    margin-bottom: 2rem; 
    opacity: 0; 
    transform: translateY(30px);
    animation: heroTitleReveal 1.2s var(--ease-out) 0.9s forwards;
}

.hero-buttons { 
    opacity: 0;
    transform: translateY(30px);
    animation: heroTitleReveal 1.2s var(--ease-out) 1.2s forwards;
}

@keyframes heroTitleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FLOATERS ===== */
.floating-elements { 
    position: relative; 
    height: 400px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    width: 100%;
}

.floating-element { 
    position: absolute; 
    font-size: 3rem; 
    color: var(--primary-light); 
    opacity: 0.7; 
    animation: float 6s ease-in-out infinite; 
}

.floating-element:nth-child(1) { 
    top: 50%; 
    left: 20%; 
    transform: translateY(-50%);
    animation-delay: 0s; 
}

.floating-element:nth-child(2) { 
    top: 50%; 
    right: 20%; 
    transform: translateY(-50%);
    animation-delay: 1.5s; 
}

.floating-element:nth-child(3) { 
    top: 50%; 
    left: 30%; 
    transform: translateY(-50%);
    animation-delay: 3s; 
}

.floating-element:nth-child(4) { 
    top: 50%; 
    right: 40%; 
    transform: translateY(-50%);
    animation-delay: 4.5s; 
}

@keyframes float { 
    0%, 100% { 
        transform: translateY(-50%) rotate(0deg); 
    } 
    50% { 
        transform: translateY(-70px) rotate(5deg); 
    } 
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator { 
    position: absolute; 
    bottom: 2rem; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 2; 
}

.scroll-arrow { 
    width: 30px; 
    height: 30px; 
    border: 2px solid var(--text-light); 
    border-top: none; 
    border-left: none; 
    transform: rotate(45deg); 
    animation: scrollBounce 2s infinite; 
}

@keyframes scrollBounce { 
    0%, 20%, 50%, 80%, 100% { 
        transform: rotate(45deg) translateY(0);
    } 
    40% { 
        transform: rotate(45deg) translateY(10px);
    } 
    60% { 
        transform: rotate(45deg) translateY(5px);
    } 
}

/* ===== SECTIONS ===== */
.section-title { 
    font-size: 2.6rem; 
    font-weight: 800; 
    text-align: center; 
    margin-bottom: 1rem; 
    color: var(--text-dark); 
}

.section-subtitle { 
    font-size: 1.08rem; 
    text-align: center; 
    color: var(--text-muted); 
    margin-bottom: 3rem; 
}

/* ===== SERVICES ===== */
.services-section { 
    background: var(--bg-light); 
}

.service-card { 
    background: white; 
    border-radius: var(--border-radius-lg); 
    padding: 2rem; 
    text-align: start; 
    box-shadow: var(--shadow-light); 
    transition: var(--transition); 
    height: 100%; 
    border: 1px solid var(--border-color); 
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(30, 58, 138, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow-heavy); 
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-icon { 
    width: 80px; 
    height: 80px; 
    background: var(--gradient-primary); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 1.25rem; 
    font-size: 2rem; 
    color: white; 
    transition: var(--transition); 
}

.service-card:hover .service-icon { 
    transform: scale(1.06) rotate(4deg); 
}

.service-card h3 { 
    font-size: 1.35rem; 
    margin-bottom: 0.6rem; 
    color: var(--text-dark); 
    font-weight: 700; 
}

.service-card p { 
    color: var(--text-muted); 
    margin-bottom: 1.25rem; 
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-card a {
    word-break: break-word;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

.service-link { 
    color: var(--primary-color); 
    text-decoration: none; 
    font-weight: 700; 
    transition: var(--transition); 
    display: inline-flex; 
    align-items: center; 
}

.service-link:hover { 
    color: var(--primary-light); 
    transform: translateX(4px); 
}

/* ===== ABOUT / STATS ===== */
.about-section { 
    background: var(--bg-light); 
}

.about-content { 
    padding-right: 2rem; 
}

.about-description { 
    font-size: 1.05rem; 
    color: var(--text-muted); 
    margin-bottom: 1rem; 
}

.feature-item { 
    display: flex; 
    align-items: center; 
    margin-bottom: 0.85rem; 
    font-weight: 600; 
    opacity: 0;
    transform: translateX(-20px);
    transition: var(--transition);
}

.feature-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.feature-item i { 
    color: var(--primary-color); 
    margin-right: 0.8rem; 
    font-size: 1.1rem; 
    transition: var(--transition);
}

.feature-item:hover i {
    transform: scale(1.2);
    color: var(--primary-light);
}

.stat-card { 
    text-align: center; 
    padding: 1.6rem; 
    background: white; 
    border-radius: var(--border-radius-lg); 
    box-shadow: var(--shadow-light); 
    transition: var(--transition); 
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-medium); 
}

.stat-number { 
    font-size: 3rem; 
    font-weight: 800; 
    color: var(--primary-color); 
    margin-bottom: 0.4rem; 
    position: relative;
    z-index: 1;
}

.stat-label { 
    font-size: 0.95rem; 
    color: var(--text-muted); 
    font-weight: 600; 
    position: relative;
    z-index: 1;
}

/* ===== CONTACT ===== */
.contact-section { 
    background: var(--gradient-secondary); 
    color: var(--text-light); 
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 5rem 0;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%231e3a8a" stop-opacity="0.1"/><stop offset="100%" stop-color="%23111827" stop-opacity="0"/></radialGradient></defs><rect width="100%" height="100%" fill="url(%23a)"/></svg>');
    background-size: cover;
    opacity: 0.3;
    z-index: 0;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-form-wrapper { 
    background: rgba(255, 255, 255, 0.12); 
    backdrop-filter: blur(12px); 
    border-radius: var(--border-radius-lg); 
    padding: 3rem; 
    border: 1px solid rgba(255, 255, 255, 0.35); 
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25); 
    position: relative;
    z-index: 2;
}

.contact-form-wrapper .form-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-form-wrapper .form-control {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.contact-form-wrapper .form-control:focus {
    background: #ffffff;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.28);
    color: var(--text-dark);
    outline: none;
    transform: translateY(-1px);
}

.contact-form-wrapper .form-control:hover {
    border-color: var(--primary-light);
    transform: translateY(-1px);
}

.contact-form-wrapper .form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

/* Contact section responsive fixes */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 0;
        min-height: auto;
        width: 100%;
        overflow-x: hidden;
    }
    
    .contact-section .container {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .contact-section .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .contact-section .col-lg-10 {
        padding-left: 0;
        padding-right: 0;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .contact-section .section-title,
    .contact-section .section-subtitle {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ===== FEATURE HIGHLIGHTS ===== */
.feature-highlight {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(251, 191, 36, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.feature-highlight:hover::before {
    opacity: 1;
}

.feature-highlight:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-color);
}

.feature-highlight > * {
    position: relative;
    z-index: 1;
}

.feature-icon-large {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: var(--transition);
    box-shadow: var(--shadow-accent);
}

.feature-highlight:hover .feature-icon-large {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-heavy);
}

.feature-highlight h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-highlight p {
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer { 
    background: var(--bg-dark); 
    color: var(--text-light); 
}

.footer-title { 
    color: var(--primary-light); 
    margin-bottom: 1.1rem; 
    font-weight: 700; 
}

.footer-description { 
    color: rgba(255, 255, 255, 0.85); 
    margin-bottom: 1.2rem; 
    line-height: 1.6; 
}

.footer-links { 
    list-style: none; 
    padding: 0; 
}

.footer-links a { 
    color: rgba(255, 255, 255, 0.8); 
    text-decoration: none; 
    transition: var(--transition); 
}

.footer-links a:hover { 
    color: var(--primary-light); 
    transform: translateX(5px); 
}

.social-links { 
    display: flex; 
    gap: 1rem; 
}

.social-link { 
    width: 40px; 
    height: 40px; 
    background: var(--gradient-primary); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    text-decoration: none; 
    transition: var(--transition); 
}

.social-link:hover { 
    transform: translateY(-3px) scale(1.1); 
    box-shadow: var(--shadow-medium); 
    color: white; 
}

/* ===== POLICY & SITEMAP PAGES ===== */
.policy-content, .sitemap-content { 
    max-width: 800px; 
    margin: 0 auto; 
}

.policy-section h2 { 
    color: var(--text-dark); 
    font-size: 1.8rem; 
    margin-bottom: 1rem; 
    font-weight: 700; 
}

.policy-section h3 { 
    color: var(--text-dark); 
    font-size: 1.4rem; 
    margin: 1.5rem 0 0.75rem 0; 
    font-weight: 600; 
}

.policy-section p { 
    color: var(--text-muted); 
    line-height: 1.7; 
    margin-bottom: 1rem; 
}

.policy-section ul { 
    color: var(--text-muted); 
    margin-bottom: 1rem; 
    padding-left: 1.5rem; 
}

.policy-section li { 
    margin-bottom: 0.5rem; 
    line-height: 1.6; 
}

.policy-section .contact-info p { 
    margin-bottom: 0.5rem; 
}

.policy-section .contact-info a { 
    color: var(--primary-color); 
    text-decoration: none; 
}

.policy-section .contact-info a:hover { 
    color: var(--primary-light); 
}

/* Sitemap specific styles */
.sitemap-section h2 { 
    color: var(--text-dark); 
    font-size: 1.6rem; 
    margin-bottom: 1.5rem; 
    font-weight: 700; 
}

.sitemap-section h2 i { 
    color: var(--primary-color); 
}

.sitemap-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.sitemap-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-light);
}

.sitemap-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.sitemap-card h4 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.sitemap-card h4 a:hover {
    color: var(--primary-color);
}

.sitemap-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.sitemap-card p a {
    color: var(--primary-color);
    text-decoration: none;
}

.sitemap-card p a:hover {
    color: var(--primary-light);
}

/* ===== FOOTER STYLING FIXES ===== */
.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-bottom-links li {
    margin: 0;
}

.footer-bottom-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    opacity: 0.8;
}

.footer-bottom-links a:hover {
    color: var(--primary-light);
    opacity: 1;
}

@media (max-width: 767.98px) {
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* ===== BACK TO TOP ===== */
.back-to-top { 
    position: fixed; 
    bottom: 2rem; 
    right: 2rem; 
    width: 50px; 
    height: 50px; 
    background: var(--gradient-primary); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    text-decoration: none; 
    box-shadow: var(--shadow-medium); 
    transition: var(--transition); 
    opacity: 0; 
    visibility: hidden; 
    z-index: 1000; 
}

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

.back-to-top:hover { 
    transform: translateY(-3px) scale(1.1); 
    box-shadow: var(--shadow-heavy); 
    color: white; 
}

/* ===== HOME EXTRAS ===== */
.trusted-logos { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.25rem; 
    opacity: 0.9; 
}

@media (min-width: 768px) { 
    .trusted-logos { 
        grid-template-columns: repeat(4, 1fr); 
    } 
}

.trusted-logos .logo-badge { 
    background: white; 
    border: 1px solid var(--border-color); 
    border-radius: 10px; 
    padding: 1rem 1.25rem; 
    text-align: center; 
    box-shadow: var(--shadow-light); 
    font-weight: 700; 
    transition: var(--transition);
}

.trusted-logos .logo-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-light);
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal.scroll-reveal-left {
    transform: translateX(-40px);
}

.scroll-reveal.scroll-reveal-left.revealed {
    transform: translateX(0);
}

.scroll-reveal.scroll-reveal-right {
    transform: translateX(40px);
}

.scroll-reveal.scroll-reveal-right.revealed {
    transform: translateX(0);
}

.scroll-reveal.scroll-reveal-scale {
    transform: scale(0.9) translateY(40px);
}

.scroll-reveal.scroll-reveal-scale.revealed {
    transform: scale(1) translateY(0);
}

/* ===== LOTTIE ANIMATION CONTAINER ===== */
.lottie-container {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s var(--ease-out);
    position: relative;
}

.lottie-container.loaded {
    opacity: 1;
    transform: scale(1);
}

/* ===== MICRO-INTERACTIONS ===== */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-scale {
    transition: var(--transition);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: var(--transition);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
}

/* ===== ENHANCED VISUAL EFFECTS ===== */
.accordion-item {
    transition: var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { 
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

@keyframes slideInLeft { 
    from { 
        opacity: 0; 
        transform: translateX(-30px);
    } 
    to { 
        opacity: 1; 
        transform: translateX(0);
    } 
}

@keyframes slideInRight { 
    from { 
        opacity: 0; 
        transform: translateX(30px);
    } 
    to { 
        opacity: 1; 
        transform: translateX(0);
    } 
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) { 
    .hero-title { font-size: 2.6rem; } 
    .hero-subtitle { font-size: 1.25rem; } 
    .section-title { font-size: 2.1rem; } 
    .floating-elements { height: 300px; } 
    .floating-element { font-size: 2rem; } 
}

@media (max-width: 767.98px) { 
    .hero-title { font-size: 2.1rem; } 
    .hero-subtitle { font-size: 1.1rem; } 
    .section-title { font-size: 1.8rem; } 
    .hero-buttons { flex-direction: column; gap: 1rem; } 
    .hero-buttons .btn { width: 100%; } 
}

/* ===== FOOTER ===== */
.footer .contact-info { 
    display: flex; 
    flex-direction: column; 
    gap: 0.75rem; 
}

.footer .contact-item { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
}

.footer .contact-item i { 
    font-size: 1.1rem; 
    color: var(--primary-light); 
    line-height: 1; 
    flex-shrink: 0; 
    width: 22px; 
    height: 22px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    margin-top: 0; 
}

.footer .contact-item > div { 
    display: inline-flex; 
    align-items: baseline; 
    flex-wrap: wrap; 
    gap: 0; 
}

.footer .contact-item strong { 
    font-weight: 700; 
}

.footer .contact-item strong + span { 
    display: inline; 
}

.footer .contact-item a { 
    color: inherit; 
    text-decoration: none; 
}

.footer .contact-item a:hover { 
    color: var(--primary-light); 
    text-decoration: underline; 
}
/* ===== MOBILE RESPONSIVENESS IMPROVEMENTS ===== */
@media (max-width: 768px) {
    /* Reduce hero section height on mobile */
    .hero-section {
        min-height: 100vh;
        height: auto;
    }
    
    .hero-section .min-vh-100 {
        min-height: 90vh;
        padding: 2rem 0;
    }
    
    /* Optimize hero content for mobile */
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
        margin-top: 1rem;
        color: #ffffff !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    .hero-subtitle {
        font-size: 1.25rem !important;
        margin-bottom: 1rem;
        color: #ffffff !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    .hero-description {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem;
        color: #ffffff !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    /* Hide floating elements and Lottie animation on mobile for better performance */
    .floating-elements {
        display: none !important;
    }
    
    .lottie-container {
        display: none !important;
    }
    
    .hero-image {
        display: none !important;
    }
    
    /* Ensure hero content takes full width on mobile */
    .hero-section .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 1rem;
    }
    
    /* Optimize section padding */
    section.py-5 {
        padding: 2.5rem 0 !important;
    }
    
    /* Service cards mobile optimization */
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.15rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    /* Case study cards mobile */
    .case-study-card {
        margin-bottom: 1.5rem;
    }
    
    .case-study-image {
        height: 200px;
    }
    
    .case-study-content {
        padding: 1.25rem;
    }
    
    .case-study-title {
        font-size: 1.1rem;
    }
    
    .case-study-description {
        font-size: 0.875rem;
    }
    
    /* Stats cards mobile */
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Feature highlights mobile */
    .feature-highlight {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon-large {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .feature-highlight h4 {
        font-size: 1.1rem;
    }
    
    /* Section titles mobile */
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .section-subtitle {
        font-size: 0.95rem !important;
    }
    
    /* Contact form mobile */
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .form-control-lg {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    /* Navbar mobile improvements */
    .navbar-collapse {
        max-height: 70vh;
        overflow-y: auto;
    }
    
    /* Trust logos mobile */
    .trusted-logos {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .logo-badge {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Extra small devices optimization */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem !important;
        margin-top: 20px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .hero-description {
        font-size: 0.875rem !important;
    }
    
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .service-card h3 {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Optimize animations for mobile */
@media (max-width: 768px) {
    [data-aos] {
        transition-duration: 0.4s !important;
    }
    
    /* Reduce transform intensity on mobile */
    .hover-lift:hover {
        transform: translateY(-3px) !important;
    }
    
    .hover-glow {
        box-shadow: none !important;
    }
    
    /* Disable complex animations on mobile */
    .scroll-reveal-scale {
        transform: none !important;
    }
    
    .scroll-reveal-left,
    .scroll-reveal-right {
        transform: none !important;
    }
}

/* Performance optimizations */
.service-card,
.case-study-card,
.stat-card,
.feature-highlight {
    will-change: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--gradient-primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); } 

/* ===== TEAM SECTION ===== */
.team-section .section-title { text-align: center; }

.team-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid #e5e7eb;
    transition: var(--transition);
    overflow: hidden;
}

.team-card:hover { 
    transform: translateY(-6px); 
    box-shadow: var(--shadow-medium); 
}

.team-image { 
    position: relative; 
    width: 100%; 
    /* Use fixed height for consistent rendering across browsers */
    height: var(--team-img-size, 260px); 
    overflow: hidden; 
    background: linear-gradient(135deg, #eef2ff, #e2e8f0); 
}

.team-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center; 
    display: block; 
}

.team-content { 
    padding: 1rem 1rem 1.25rem; 
}

.team-name { 
    font-weight: 700; 
    color: var(--text-dark); 
}

.team-role { 
    color: var(--primary-color); 
    font-weight: 600; 
    margin-bottom: 0.5rem; 
}

.team-bio { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
}

.team-social {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.team-social .btn {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}

.team-social .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.team-social .btn-outline-success {
    border-color: #14a800;
    color: #14a800;
    background-color: #f0fdf4;
}

.team-social .btn-outline-success:hover {
    background-color: #14a800;
    color: white;
    border-color: #14a800;
}

.team-social .btn i {
    font-size: 1rem;
}

.team-social .btn svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* Default and responsive image sizes */
.team-section { --team-img-size: 260px; }
@media (max-width: 991.98px) { .team-section { --team-img-size: 220px; } }
@media (max-width: 767.98px)  { .team-section { --team-img-size: 200px; } }
@media (max-width: 575.98px)  { .team-section { --team-img-size: 180px; } .team-content { padding: 0.85rem; } }

/* Team hero title and description text color override to pure white */
.page-hero-section .case-studies-hero-title { 
    color: #ffffff !important; 
}

.page-hero-section .case-studies-hero-description { 
    color: #ffffff !important; 
}

/* ===== COMPREHENSIVE MOBILE RESPONSIVENESS FIXES ===== */
@media only screen and (max-width: 768px) {
    /* Global overflow fix */
    html, body {
        width: 100%;
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Team Page Mobile Fixes */
    .team-card {
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .team-image {
        height: 300px;
        width: 100%;
        overflow: hidden;
    }
    
    .team-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        display: block;
    }
    
    .team-content {
        padding: 1.25rem;
    }
    
    .team-name {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .team-role {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .team-bio {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .team-social {
        margin-top: 1rem;
        gap: 0.5rem;
    }
    
    .team-social .btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    /* Contact Page Email Fix */
    .service-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .service-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
        word-wrap: break-word;
    }
    
    .service-card p {
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    
    .service-card a {
        word-break: break-all;
        overflow-wrap: break-word;
        display: inline-block;
        max-width: 100%;
        font-size: 0.85rem;
    }
    
    /* Home Page Animation Fixes */
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    .hero-section .container {
        width: 100%;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
        /* margin-bottom: 1rem; */
        color: #ffffff !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        color: #ffffff !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    .hero-description {
        color: #ffffff !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    /* Disable complex animations on mobile */
    .floating-element {
        display: none !important;
    }
    
    .lottie-container {
        display: none !important;
    }
    
    .hero-image {
        display: none !important;
    }
    
    /* Hide scroll indicator on mobile */
    .scroll-indicator {
        display: none !important;
    }
    
    /* Stats section mobile */
    .stat-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Services section mobile */
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    /* Case studies mobile */
    .case-study-card {
        margin-bottom: 1.5rem;
    }
    
    .case-study-image {
        height: 220px;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    /* Section padding adjustments */
    section {
        padding: 3rem 0;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Typography mobile */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    /* Grid adjustments */
    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
    
    /* Navbar mobile fixes */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand img {
        height: 40px;
    }
}

/* Extra small devices (phones, less than 576px) */
@media only screen and (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem !important;
        margin-top: 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .team-image {
        height: 280px;
    }
    
    .team-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        display: block;
    }
    
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .service-card a {
        font-size: 0.8rem;
    }
}

/* ===== FINAL OVERRIDES: WHITE HERO TITLES ON MOBILE ===== */
@media (max-width: 768px) {
    .case-study-hero-title,
    .case-studies-hero-title,
    .page-hero-section h1,
    .case-studies-hero-section h1,
    .hero-section h1,
    .hero-title {
        color: #ffffff !important;
    }
    
    .hero-section,
    .page-hero-section,
    .case-studies-hero-section {
        padding-top: 100px !important;
    }
    
    .team-image {
        height: 300px !important;
    }
    
    .team-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        display: block;
    }
}

@media (max-width: 576px) {
    .case-study-hero-title,
    .case-studies-hero-title,
    .hero-title,
    .page-hero-section h1,
    .case-studies-hero-section h1 {
        color: #ffffff !important;
    }
    
    .hero-section,
    .page-hero-section,
    .case-studies-hero-section {
        padding-top: 90px !important;
    }
    
    .team-image {
        height: 280px !important;
    }
    
    .team-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        display: block;
    }
}

/* Desktop hero sections padding */
.hero-section,
.page-hero-section,
.case-studies-hero-section {
    padding-top: 120px !important;
}