/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
    background-color: #0f0f0f;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

/* Ensure no white space at top */
html, body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 18px;
    color: #2563eb;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.nav-logo i {
    margin-right: 8px;
    font-size: 20px;
}

.logo-image {
    height: 32px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.2));
}

.logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.nav-menu,
.case-study-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li,
.case-study-menu li {
    margin-left: 32px;
}

.nav-link,
.case-study-link {
    text-decoration: none;
    color: #e5e7eb;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover,
.case-study-link:hover {
    color: #dc2626;
}

.case-study-link {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.case-study-link.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.case-study-link:hover:not(.active) {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

/* Page transition effects */
body {
    transition: opacity 0.3s ease;
}

.page-loading {
    opacity: 0.7 !important;
}



.cta-button {
    background: #dc2626;
    color: white !important;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #ef4444;
    color: white !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1b1b 50%, #1a1a1a 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #333;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.4);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    color: #fca5a5;
}

.hero-badge i {
    margin-right: 8px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

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

.hero-cta {
    display: inline-flex;
    align-items: center;
    background: rgba(220, 38, 38, 0.2);
    border: 2px solid rgba(220, 38, 38, 0.4);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-cta:hover {
    background: rgba(220, 38, 38, 0.4);
    border-color: #dc2626;
    transform: translateY(-2px);
}

.hero-cta i {
    margin-right: 8px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: #d1d5db;
    max-width: 600px;
    margin: 0 auto;
}

/* Client Overview */
.client-overview {
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.client-card {
    background: #262626;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    border: 1px solid #404040;
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.client-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    overflow: hidden;
    border: 3px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.client-details h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f5f5f5;
    margin-bottom: 8px;
}

.client-title {
    color: #dc2626;
    font-size: 1.125rem;
    margin-bottom: 16px;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-links a {
    text-decoration: none;
}

.social-links i {
    font-size: 1.5rem;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.social-links i:hover {
    color: #dc2626;
}

/* Problem Section */
.problem-section {
    background: #1a1a1a;
    border-left: 4px solid #dc2626;
}

.problem-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 2px solid rgba(220, 38, 38, 0.3);
}

.section-icon i {
    font-size: 2rem;
    color: white;
}

.problem-section h2 {
    font-size: 2rem;
    color: #f5f5f5;
    margin-bottom: 32px;
}

.problem-main {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fca5a5;
    margin-bottom: 32px;
}

.problem-list {
    list-style: none;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.problem-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: #e5e7eb;
}

.problem-list i {
    margin-right: 16px;
    color: white;
    width: 20px;
    background: rgba(220, 38, 38, 0.8);
    padding: 4px;
    border-radius: 4px;
    text-align: center;
}

/* Solution Section */
.solution-section {
    background: #0f0f0f;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.solution-card {
    background: #262626;
    border: 1px solid #404040;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.2);
    border-color: #dc2626;
    background: #2d2d2d;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 2px solid rgba(220, 38, 38, 0.3);
}

.card-icon i {
    font-size: 1.5rem;
    color: white;
}

.card-icon .custom-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.solution-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f5f5f5;
    margin-bottom: 16px;
}

.solution-card p {
    color: #d1d5db;
    line-height: 1.6;
}

/* Role Section */
.role-section {
    background: #1a1a1a;
}

.role-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #f5f5f5;
    margin-bottom: 48px;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.role-item {
    display: flex;
    align-items: center;
    background: #262626;
    padding: 24px 20px;
    border-radius: 12px;
    border: 1px solid #404040;
    transition: all 0.3s ease;
    min-height: 90px;
}

.role-item:hover {
    transform: translateX(8px);
    border-color: #dc2626;
    background: #2d2d2d;
}

.role-item:hover i {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.6);
    transform: scale(1.05);
}

.role-item i {
    font-size: 1.2rem;
    color: white;
    margin-right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    border: 1px solid rgba(220, 38, 38, 0.6);
    flex-shrink: 0;
}

.role-item span {
    font-weight: 500;
    color: #f5f5f5;
}

/* Process Section */
.process-section {
    background: #0f0f0f;
}

.process-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #f5f5f5;
    margin-bottom: 60px;
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #404040;
    z-index: 0;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #dc2626;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 24px;
    border: 4px solid #0f0f0f;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f5f5f5;
    margin-bottom: 8px;
}

.step-content p {
    color: #d1d5db;
    font-size: 0.875rem;
}

/* Results Section */
.results-section {
    background: #1a1a1a;
    border-left: 4px solid #dc2626;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.result-card {
    background: #262626;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    border: 1px solid #404040;
    transition: all 0.3s ease;
}

.result-card.highlight {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border-color: #dc2626;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.3);
}

.result-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.result-card:not(.highlight) .result-icon {
    background: rgba(220, 38, 38, 0.2);
    border: 2px solid rgba(220, 38, 38, 0.3);
}

.result-card.highlight .result-icon {
    background: rgba(255, 255, 255, 0.2);
}

.result-icon i {
    font-size: 1.5rem;
}

.result-card:not(.highlight) .result-icon i {
    color: white;
}

.result-card.highlight .result-icon i {
    color: white;
}

.result-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.result-card:not(.highlight) h3 {
    color: #f5f5f5;
}

.result-card p {
    line-height: 1.6;
}

.result-card:not(.highlight) p {
    color: #d1d5db;
}

/* Tools Section */
.tools-section {
    background: #0f0f0f;
}

.tools-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #f5f5f5;
    margin-bottom: 48px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.tool-item {
    background: #262626;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    color: #d1d5db;
    border: 1px solid #404040;
    transition: all 0.3s ease;
}

.tool-item:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
    border-color: #ef4444;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1b1b 50%, #1a1a1a 100%);
    color: white;
    text-align: center;
    border-top: 1px solid #333;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 32px;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #dc2626;
    color: white;
}

.btn-primary:hover {
    background: #ef4444;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(220, 38, 38, 0.5);
}

.btn-secondary:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: #dc2626;
}

.btn-primary i, .btn-secondary i {
    margin-right: 8px;
}

.contact-info a {
    color: #fca5a5;
    text-decoration: none;
}

.contact-info a:hover {
    color: #dc2626;
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #0a0a0a;
    color: white;
    padding: 40px 0 20px;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
    gap: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.footer-logo i {
    margin-right: 8px;
    color: #dc2626;
}

.footer-logo-image {
    height: 32px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.footer-logo-image:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-left p {
    color: #9ca3af;
    margin-top: 8px;
    max-width: 400px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #262626;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
}

.social-icons a.x-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a.x-icon img {
    width: 18px;
    height: 18px;
    filter: brightness(0) saturate(100%) invert(64%) sepia(8%) saturate(1644%) hue-rotate(185deg) brightness(92%) contrast(89%);
    transition: filter 0.3s ease;
}

.social-icons a.x-icon:hover img {
    filter: brightness(0) invert(1);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
    /* Mobile navbar redesigned for better balance */
    .navbar {
        background: #1a1a1a;
        border-bottom: 1px solid #333;
    }
    
    .nav-container {
        padding: 10px 16px;
        height: auto;
        min-height: 70px;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    /* Top row: Logo centered */
    .nav-logo {
        width: 100%;
        justify-content: center;
        font-size: 16px;
        line-height: 1;
        order: 1;
        margin-bottom: 4px;
    }
    
    .logo-image {
        height: 28px;
        max-width: 140px;
    }
    
    .footer-logo-image {
        height: 26px;
        max-width: 140px;
    }
    
    /* Bottom row: Navigation menu */
    .nav-menu {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin: 0;
        padding: 0 8px;
        gap: 2px;
        order: 2;
    }
    
    .nav-menu li {
        margin: 0;
        flex: 1;
        text-align: center;
    }
    
    .nav-link {
        font-size: 10px;
        padding: 10px 3px;
        display: block;
        text-align: center;
        white-space: nowrap;
        color: #e5e7eb;
        border-radius: 8px;
        transition: all 0.3s ease;
        line-height: 1;
        font-weight: 500;
        min-height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-link:hover {
        background: rgba(220, 38, 38, 0.1);
        color: #dc2626;
    }
    
    .nav-link.cta-button {
        font-size: 9px;
        padding: 10px 6px;
        border-radius: 8px;
        background: #dc2626;
        color: white !important;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    }
    
    .nav-link.cta-button:hover {
        background: #ef4444;
        color: white !important;
        transform: scale(1.02);
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .client-info {
        flex-direction: column;
        text-align: center;
    }
    
    .process-timeline {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .process-step {
        max-width: 280px;
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .solution-grid,
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .role-grid {
        grid-template-columns: 1fr;
    }
    
    .role-item {
        padding: 20px 16px;
        min-height: 80px;
    }
    
    .role-item i {
        width: 45px;
        height: 45px;
        margin-right: 16px;
        font-size: 1.1rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}