/* Hero works*/
.works-hero {
    height: 60vh; /* Reduced from 100vh */
    margin-top: 1rem;
    min-height: 500px; /* Reduced from 800px */
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px; /* Reduced from 100px */
    text-align: center;
    overflow: hidden;
    background-attachment: fixed;
    background: rgba(0, 0, 0, 0.6);
}

.works-hero-background {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background: rgba(0, 0, 0, 0.6);

    transform: translateZ(0); /* triggers hardware acceleration */
}

/* Keep all other hero styles the same */
.works-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/images/backgrounds/back8.jpg') no-repeat center center / cover;
    background-attachment: fixed;
    z-index: -1;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: var(--accent-color);
    font-size: clamp(1rem, 2vw, 1.5rem);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 2;
}

.hero-scroll-indicator span {
    display: block;
    width: 24px;
    height: 24px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    margin: -12px;
    animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-10px, -10px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(10px, 10px);
    }
}

/* Portfolio Section */
.portfolio {
    background-color: white;
    padding: var(--section-spacing) 0;
}

.section-header {
    padding-top: 20px;
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--card-spacing);
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    padding: 10px 10px;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.portfolio-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 0;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.overlay-content {
    padding: 2rem;
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.btn-view {
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: var(--dark-color);
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-view:hover {
    background-color: var(--primary-color);
    color: var(--white);
}




/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background-color: #222;
    color: #fff;
}

.cta-section .cta-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    margin-bottom: 1rem;
    font-weight: 600;
}

.cta-section .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.cta-section .btn:hover {
    background-color: var(--primary-color);
}
.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    background-image: url('../images/backgrounds/back4.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: var(--section-spacing) 0;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    color: var(--white);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary {
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */
@media (max-width: 992px) {
    :root {
        --section-spacing: 80px;
        --card-spacing: 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

}

@media (max-width: 768px) {
    :root {
        --section-spacing: 60px;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .testimonial {
        padding: 2rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-author img {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .page-hero {
        padding: 120px 0 80px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-image {
        height: 250px;
    }
}





/* Clients Section */
.clients {
    padding: var(--section-spacing, 4rem) 0;
    background: linear-gradient(135deg, #f9fafb, #eef2f5);
}

/* Grid Layout */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

/* Client Logo Container */
.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
    aspect-ratio: 1 / 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover Effects */
.client-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.client-logo:hover .zoom-effect {
    transform: scale(1.05);
}

/* Section Title */
.section-header .section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--primary, #00b894);
    border-radius: 999px;
    margin: 0.5rem auto 0;
}


/* Image Wrapper with Zoom */
.zoom-effect {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

/* Image Style */
.zoom-effect img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}


/* Responsive Styles */
@media (max-width: 992px) {
    .section-header .section-title {
        font-size: 1.75rem;
    }

    .clients-grid {
        gap: 1.25rem;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .client-logo {
        padding: 1rem;
    }

    .zoom-effect img {
        max-width: 70%;
        max-height: 70%;
    }
}

@media (max-width: 576px) {
    .section-header .section-title {
        font-size: 1.5rem;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .client-logo {
        padding: 0.75rem;
    }

    .zoom-effect img {
        max-width: 60%;
        max-height: 60%;
    }
}
