:root {
    --primary-blue: #2563eb;
    --secondary-blue: #1e40af;
    --dark-blue: #1e3a8a;
    --light-blue: #3b82f6;
    --accent-blue: #60a5fa;
    --navy: #0f172a;
    --slate: #1e293b;
    --light-slate: #334155;
    --gray: #64748b;
    --light-gray: #94a3b8;
    --white: #ffffff;
    --off-white: #f8fafc;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #1e3a8a 100%);
    --gradient-secondary: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-accent: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--slate);
    background: var(--off-white);
    font-feature-settings: 'liga' 1, 'kern' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Header */
.header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

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

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #1e3a8a 100%) !important;
    color: var(--white) !important;
    padding: 0.3rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient-primary);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
    width: 100%;
    overflow: hidden;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    width: 100%;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    flex-wrap: wrap;
}

.business-type {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 auto 2rem;
    display: inline-block;
    max-width: 100%;
    word-wrap: break-word;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    word-wrap: break-word;
    hyphens: auto;
}

.hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    opacity: 0.9;
    flex-wrap: wrap;
}

.ba-container{

    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    overflow: hidden;

}

.before-after {
padding: 8rem 0;
background: var(--white);
}

.before-after h2 {
text-align: center;
font-size: 2.5rem;
font-weight: 800;
color: var(--navy);
margin-bottom: 4rem;
}

.comparison-container {
    position: relative;
    height: 60vh;
    border-radius: 24px;
    overflow: hidden;
    cursor: ew-resize;
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.after-image {
    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
    transition: clip-path 0.3s ease;
}

.comparison-slider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: ew-resize;
    z-index: 10;
    overflow: hidden;
}

.comparison-line {
position: absolute;
top: 0;
left: 50%;
width: 2px;
height: 100%;
background: white;
transform: translateX(-50%);
z-index: 5;
}

.comparison-labels {
position: absolute;
top: 2rem;
left: 0;
right: 0;
display: flex;
justify-content: space-between;
padding: 0 2rem;
z-index: 10;
}

.comparison-label {
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 0.5rem 1rem;
border-radius: 20px;
font-weight: 600;
font-size: 0.875rem;
}

/* Project Overview */
.project-overview {
    padding: 8rem 0;
    background: var(--white);
    width: 100%;
    overflow: hidden;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 6rem;
    align-items: start;
    width: 100%;
    overflow: hidden;
}

.stats-card {
    background: var(--off-white);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky;
    top: 8rem;
    width: 100%;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 600;
    color: var(--gray);
    word-wrap: break-word;
}

.stat-value {
    font-weight: 700;
    color: var(--navy);
    word-wrap: break-word;
}

.services-used {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
}

.service-badge {
    padding: 0.25rem 0.75rem;
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
    word-wrap: break-word;
    flex-shrink: 0;
}

.content-section {
    max-width: 600px;
    width: 100%;
        
}

.content-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 2rem;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
}

.content-section p {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.quote {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    margin: 3rem 0;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.quote::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -1rem;
    left: 2rem;
    opacity: 0.3;
}

.quote p {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: white;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.quote-author {
    font-weight: 600;
    font-size: 0.875rem;
    opacity: 0.9;
    word-wrap: break-word;
}

/* Image Gallery */
.gallery {
    padding: 8rem 0;
    background: var(--off-white);
    width: 100%;
    overflow: hidden;
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 4rem;
    word-wrap: break-word;
    hyphens: auto;
}

.image-slider {
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 60vh;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    max-width: 100%;
}

.slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--navy);
    z-index: 10;
}

.slide-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.slide-nav.prev {
    left: 2rem;
}

.slide-nav.next {
    right: 2rem;
}

.thumbnails {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    overflow-x: auto;
    padding: 0 1rem;
    width: 100%;
}

.thumbnail {
    width: 100px;
    height: 80px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    flex-shrink: 0;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-blue);
    transform: scale(1.05);
}

/* Results Section */
.results {
    padding: 8rem 0;
    background: var(--navy);
    color: white;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
}

.results-content {
    overflow: hidden;
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.results h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
    word-wrap: break-word;
    hyphens: auto;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    width: 100%;
    overflow: hidden;
}

.result-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    width: 100%;
}

.result-number {
    font-size: 3rem;
    font-weight: 800;
    color: #60a5fa;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.result-label {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
    word-wrap: break-word;
}

/* Related Projects */
.related-projects {
    padding: 8rem 0;
    background: var(--off-white);
    width: 100%;
    overflow: hidden;
}

.related-projects h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 4rem;
    word-wrap: break-word;
    hyphens: auto;
}

.projects-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    width: 100%;
}

.project-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.4s ease;
    width: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    width: 100%;
}

.project-content {
    padding: 2rem;
    width: 100%;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    word-wrap: break-word;
    hyphens: auto;
}

.project-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    word-wrap: break-word;
}

.learn-more:hover {
    transform: translateX(4px);
}

/* Error State */
.error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    .nav {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-links {
        display: none;
    }

    .logo {
        font-size: 1.5rem;
    }

    .back-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .business-type {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1.5rem;
    }

    .hero-location {
        font-size: 1rem;
    }

    .project-overview {
        padding: 4rem 0;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats-card {
        position: static;
        padding: 2rem;
        margin: 0 auto;
        width: 90%;
    }

    .stat-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
        gap: 0.5rem;
    }

    .content-section {
        width: 90%;
        margin: 0 auto;
    }
    .content-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .content-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .quote {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }

    .quote::before {
        font-size: 3rem;
        left: 1.5rem;
        top: -0.5rem;
    }

    .quote p {
        font-size: 1.1rem;
    }

    .gallery {
        padding: 4rem 0;
    }

    .gallery h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .main-image {
        height: 40vh;
        border-radius: 16px;
    }

    .slide-nav {
        width: 50px;
        height: 50px;
    }

    .slide-nav.prev {
        left: 1rem;
    }

    .slide-nav.next {
        right: 1rem;
    }

    .thumbnails {
        gap: 0.5rem;
        padding: 0 0.5rem;
        justify-content: flex-start;
        overflow-y: hidden;
    }

    .thumbnail {
        width: 80px;
        height: 60px;
        min-width: 80px;
    }

    .results {
        padding: 4rem 0;
    }

    .results h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .result-card {
        padding: 2rem 1.5rem;
    }

    .result-number {
        font-size: 2.5rem;
    }

    .related-projects {
        padding: 4rem 0;
    }

    .related-projects h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .projects-carousel {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-content h3 {
        font-size: 1.1rem;
    }

    .project-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .comparison-container {
        height: 40vh;
    }
    
    .comparison-slider {
        width: 50px;
        height: 50px;
    }
    
    .comparison-labels {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .content-section h2 {
        font-size: 1.6rem;
    }

    .projects-carousel {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-width: unset;
        width: 100%;
    }

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

    .result-card {
        min-width: unset;
        width: 100%;
    }

    .slide-nav {
        width: 40px;
        height: 40px;
    }

    .slide-nav.prev {
        left: 0.5rem;
    }

    .slide-nav.next {
        right: 0.5rem;
    }

    .thumbnails {
        padding: 0 0.25rem;
    }

    .thumbnail {
        width: 70px;
        height: 50px;
        min-width: 70px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Additional overflow prevention */
.slide, .project-image, .main-image, .thumbnail {
    max-width: 100%;
    overflow: hidden;
}

/* Ensure no element causes horizontal scroll */
section, div, img, .hero, .gallery, .results, .related-projects {
    max-width: 100%;
    overflow-x: hidden;
}