/* Stats Section */
.stats-section {
    background-color: var(--background-light);
    padding: 4rem 2rem;
    text-align: center;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--text-darker);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}


/* About Section */


.about-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

/* Left Content Box */
.about-content-box {
    flex: 1 1 400px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.about-content-box:hover {
    transform: translateY(-10px);
}

.about-content-box .eyebrow {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content-box h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 1rem;
}

.about-content-box p {
    font-size: 1rem;
    color: var(--text-dark);
    opacity: 0.9;
}

/* Stats Section */
.stats {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.stats-item {
    text-align: center;
    color: var(--white);
    position: relative;
}

.stats-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-color) 70%, transparent 71%);
    border: 8px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--white);
    margin: 0 auto 1rem;
    position: relative;
    overflow: hidden;
}

.stats-circle::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.stats-item:hover .stats-circle::before {
    height: 100%;
}

.stats-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Before and After Box */
.before-after-box {
    flex: 1 1 400px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.before-after-box:hover {
    transform: scale(1.02);
}

.slider-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.image-before,
.image-after {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.image-before {
    background-image: url('/assets/before.jpeg');
    z-index: 1;
}

.image-after {
    background-image: url('/assets/after.jpeg');
    z-index: 2;
    clip-path: inset(0 0 0 50%);
}

.slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 6px;
    background: var(--white);
    z-index: 3;
    cursor: pointer;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.slider-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.slider-button .arrow {
    font-size: 1.2rem;
    color: var(--white);
    pointer-events: none;
}

.labels {
    position: absolute;
    bottom: 1rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    color: var(--white);
    z-index: 5;
}

.label-before,
.label-after {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Responsive Adjustments */
@media screen and (max-width: 1024px) {
    .about-section {
        flex-direction: column;
        padding: 2rem 1rem;
    }

    .about-content-box,
    .before-after-box {
        flex: 1 1 100%;
    }
}

@media screen and (max-width: 600px) {
    .stats {
        flex-direction: column;
        align-items: center;
    }

    .about-content-box h2 {
        font-size: 2rem;
    }

    .stats-circle {
        width: 100px;
        height: 100px;
        font-size: 1.5rem;
    }
}

/* Responsive Adjustments for Slider Box */
@media screen and (max-width: 600px) {
    .before-after-box {
        flex: 1 1 100%;
        height: auto;
    }

    .slider-container {
        height: 300px;
        /* Ensure the slider container has a fixed height on smaller screens */
    }

    .slider {
        width: 4px;
        /* Adjust slider width for smaller screens */
    }

    .slider-button {
        width: 40px;
        /* Adjust button size */
        height: 40px;
    }

    .slider-button .arrow {
        font-size: 1rem;
        /* Adjust arrow size */
    }

    .labels {
        font-size: 0.8rem;
        /* Adjust label font size */
        bottom: 0.5rem;
        /* Adjust label positioning */
    }

    .label-before,
    .label-after {
        padding: 0.3rem 0.8rem;
        /* Adjust label padding */
        font-size: 0.9rem;
        /* Adjust text size */
    }
}

@media screen and (max-width: 400px) {
    .slider-container {
        height: 200px;
        /* Further adjust height for very small screens */
    }

    .slider-button {
        width: 35px;
        height: 35px;
    }

    .slider-button .arrow {
        font-size: 0.8rem;
    }

    .label-before,
    .label-after {
        padding: 0.2rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Adjustments for mid-range screen sizes */
@media screen and (max-width: 1024px) and (min-width: 601px) {
    .before-after-box {
        flex: 1 1 100%;
        height: auto;
    }

    .slider-container {
        height: 400px;
        /* Set a fixed height for this range */
    }

    .slider {
        width: 6px;
        /* Keep the slider width consistent */
    }

    .slider-button {
        width: 45px;
        /* Adjust button size */
        height: 45px;
    }

    .slider-button .arrow {
        font-size: 1.1rem;
        /* Adjust arrow size */
    }

    .labels {
        font-size: 0.9rem;
        bottom: 1rem;
    }

    .label-before,
    .label-after {
        padding: 0.4rem 0.9rem;
        font-size: 1rem;
    }
}

/* Ensure smooth transitions for smaller screens */
@media screen and (max-width: 600px) {
    .before-after-box {
        flex: 1 1 100%;
        height: auto;
    }

    .slider-container {
        height: 300px;
        /* Ensure height consistency */
    }

    .slider {
        width: 4px;
        /* Narrower slider */
    }

    .slider-button {
        width: 40px;
        height: 40px;
    }

    .slider-button .arrow {
        font-size: 1rem;
    }

    .labels {
        font-size: 0.8rem;
        bottom: 0.5rem;
    }

    .label-before,
    .label-after {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Services Section Styling */
.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
    background-color: #f9f7f5;
}

.services-header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-eyebrow {
    color: var(--accent-color);
    ;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.services-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.services-description {
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: #6c757d;
    line-height: 1.6;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .services-title {
        font-size: 2rem;
    }

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

/* Custom styles to enhance the portfolio section */
/* Portfolio Section */
.portfolio-section {
    background-color: #f9fafb;
    padding: 5rem 1rem;
    margin-bottom: 2rem;

}

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

.portfolio-content {
    display: flex;
    align-items: center;
    gap: 3rem;
   margin-bottom:2rem;
}

/* Portfolio Header */
.portfolio-header {
    flex: 1;
}

.portfolio-eyebrow {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.portfolio-description {
    color: #6c757d;
    ;
    margin-bottom: 2rem;
}

.view-projects-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 9999px;
    transition: background-color 0.3s ease;
}

.view-projects-btn:hover {
    background-color: #374151;
}

/* Portfolio Grid */
.portfolio-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Project Cards */
.project-card {
    position: relative;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.project-card img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    color: white;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
    transition: all 0.3s ease;
}

.card-overlay-content {
    transform: translateY(2.5rem);
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .card-overlay-content {
    transform: translateY(0);
    opacity: 1;
}

.project-card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.project-card-description {
    font-size: 0.75rem;
    color: #d1d5db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-content {
        flex-direction: column;
    }

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