/* New styles for BUAC website */
/* Based on the design from screen.pdf */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

:root {
    --primary-red: #c00000;
    --dark-bg: #1a1a1a;
    --text-color: #333;
    --white: #ffffff;
    --light-gray: #f2f2f2;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--white);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    position: fixed; /* Make header sticky */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent; /* Initial transparent background */
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Lighter initial border */
    transition: background-color 0.4s ease, padding 0.4s ease;
}

header.header-scrolled {
    background-color: var(--white);
    padding: 1rem 0; /* Slightly smaller padding on scroll */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid transparent;
}

/* Scrolled state for navigation links */
header.header-scrolled nav ul li a {
    color: var(--text-color);
}

header.header-scrolled nav ul li a:hover {
    color: var(--primary-red);
}

/* Scrolled state for the client access button */
header.header-scrolled .btn-acceso {
    background-color: var(--primary-red);
    color: var(--white);
}

/* Scrolled state for the logo's image (if you wanted to switch it, e.g., to a dark version) */
/* For now, the logo is an image that should have a transparent background and work on both dark/light backgrounds. */

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    transition: transform 0.3s ease;
}

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

.logo-color {
    display: none;
}

header.header-scrolled .logo-white {
    display: none;
}

header.header-scrolled .logo-color {
    display: block;
}

.logo img {
    height: 40px;
    transition: height 0.4s ease;
}

header.header-scrolled .logo img {
    height: 35px; /* Slightly smaller logo on scroll */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-red);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    height: 3px;
    width: 100%;
    background-color: var(--white);
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    width: 250px;
    padding: 1rem;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-nav ul {
    display: block;
    text-align: center;
}

.mobile-nav ul li {
    margin: 0.5rem 0;
}

.mobile-nav ul li a {
    color: var(--text-color);
    display: block;
    padding: 0.5rem;
    border-radius: 5px;
}

.mobile-nav ul li a:hover {
    background-color: var(--light-gray);
    color: var(--primary-red);
}

.mobile-nav .btn-acceso {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--white);
}

.mobile-nav.active {
    display: block;
}

.btn-acceso {
    background-color: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s;
}

.btn-acceso:hover {
    background-color: #a00000;
}

.hero {
    background: linear-gradient(to bottom right, #1E1E1E 0%, #750A0A 100%), url('../includes/img_hero.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 8rem 0 4rem 0; /* Reduced bottom padding from 8rem to 4rem */
    min-height: 100vh; /* Make hero section take full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    margin-top: -200px; /* Move content up by 200 pixels */
}

.hero-content h1 {
    font-size: 4rem; /* Changed from 3rem to 4rem */
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.hero-btn {
    background-color: var(--light-gray); /* Light gray background */
    border: none; /* No border needed with background color */
    color: var(--text-color); /* Dark text for contrast */
    text-decoration: none;
    width: 227px; /* Fixed width as requested */
    height: 50px; /* Fixed height as requested */
    display: flex; /* Use flexbox for centering content */
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    border-radius: 25px; /* Rounded borders */
    font-weight: 700; /* Made text bolder */
    font-size: 1rem; /* Adjusted font size */
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.hero-btn i { /* Styling for the icon inside the button */
    color: var(--primary-red); /* Red icon */
    margin-right: 10px; /* Space between icon and text */
    font-size: 1.2rem; /* Icon size */
}

.hero-btn:hover {
    background-color: var(--primary-red); /* Red background on hover */
    color: var(--white); /* White text on hover */
    box-shadow: 0 5px 15px rgba(192, 0, 0, 0.4);
    transform: translateY(-3px);
}

.hero-btn:hover i {
    color: var(--white); /* White icon on hover */
}

.nuestros-servicios a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nuestros-servicios a:hover {
    color: var(--primary-red);
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 6rem;
    height: 0.25rem;
    background-color: var(--primary-red);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    line-height: 1.6;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-column h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-column p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about-column ul {
    list-style: none;
    padding-left: 0;
}

.about-column ul li {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 25px;
}

.about-column ul li:before {
    content: '✓';
    color: var(--primary-red);
    font-weight: 700;
    position: absolute;
    left: 0;
}

/* Rich text styles for consistent line height */
.rich-text {
    line-height: 1.6;
}

.rich-text p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.rich-text ul, .rich-text ol {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.rich-text li {
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Philosophy Section */
.philosophy-section {
    padding: 6rem 0;
    background-color: var(--light-gray);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.philosophy-item .philosophy-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.philosophy-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.philosophy-item p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background-color: var(--white);
}

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

.service-card {
    background-color: var(--light-gray);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Clients Section */
.clients-section {
    padding: 6rem 0;
    background-color: var(--light-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    margin-bottom: 4rem;
}

.stat-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: #666;
}

.section-title-small {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.sector-item {
    background: var(--white);
    width: 368px;
    height: 126px;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.sector-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.sector-item i {
    font-size: 1.8rem;
    color: var(--primary-red);
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.sector-item:hover i {
    color: #a00000;
}

.sector-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    text-align: left;
    min-width: 0; /* Allows text overflow ellipsis to work */
}

.sector-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0.25rem 0;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sector-item:hover h4 {
    color: var(--primary-red);
}

.sector-item p {
    font-size: 0.85rem;
    line-height: 1.3;
    color: #666;
    margin: 0;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sector-item:hover p {
    color: #333;
}

/* Trust Section */
.trust-section {
    background-color: #a00000;
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.trust-section h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.trust-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    background-color: var(--light-gray);
}

.contact-form-container {
    padding: 3rem;
}

.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    border: 1px solid #ccc;
    padding: 0.8rem;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.btn-submit {
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #a00000;
}

.contact-info-container {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 3rem;
}

.contact-info-container h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    color: var(--primary-red);
    font-size: 1.2rem;
}

.contact-info-container ul {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.contact-info-container ul li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 20px;
}

.contact-info-container ul li::before {
    content: '✓';
    color: var(--primary-red);
    position: absolute;
    left: 0;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3rem;
    }

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

@media screen and (max-width: 992px) {
    .container {
        width: 95%;
    }

    .hero {
        padding: 6rem 0 3rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        margin-top: -150px;
    }

    .hero-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

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

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

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

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

    .contact-form-container {
        padding: 2rem;
    }

    .contact-info-container {
        padding: 2rem;
    }

    nav ul li {
        margin-left: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 1rem 0;
    }

    .header-container {
        position: relative;
    }

    .desktop-nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .btn-acceso {
        display: none; /* Hide desktop button, show in mobile nav */
    }

    nav ul {
        justify-content: center;
    }

    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    /* Scrolled state adjustments for mobile */
    header.header-scrolled .nav-toggle span {
        background-color: var(--text-color);
    }
}

@media screen and (max-width: 576px) {
    header {
        padding: 1.2rem 0;
    }

    .hero {
        padding: 9rem 0 2rem 0;
        min-height: auto;
    }

    .hero-content {
        margin-top: 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .about-section,
    .philosophy-section,
    .services-section,
    .clients-section,
    .contact-section {
        padding: 4rem 0;
    }

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

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

    .sector-item {
        width: 100%;
        max-width: 100%;
    }

    .sector-text {
        text-align: center;
    }

    .sector-item h4,
    .sector-item p {
        text-align: center;
    }

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

    .contact-form-container,
    .contact-info-container {
        padding: 1.5rem;
    }

    .trust-section {
        padding: 2rem 0;
    }

    .trust-section h3 {
        font-size: 1.5rem;
    }

    .trust-section p {
        font-size: 1rem;
    }
}

/* Extra small devices (phones, 320px and up) */
@media screen and (max-width: 480px) {
    header {
        padding: 0.8rem 0;
    }

    .container {
        width: 98%;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-btn {
        height: 45px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-column h3 {
        font-size: 1.3rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .btn-submit {
        width: 100%;
    }
}

/* Responsive form styling */
@media screen and (max-width: 768px) {
    .contact-form-container {
        padding: 2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .form-group {
        width: 100%;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        min-width: auto;
    }
}

@media screen and (max-width: 576px) {
    .contact-form-container {
        padding: 1.5rem;
    }

    .form-row {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
}


/* Footer */
footer {
    background-color: var(--dark-bg);
    color: #aaa;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Enterprise Construction Theme Variables */
:root {
    --steel-gray: #4a5568;
    --navy-blue: #1a365d;
    --construction-orange: #ed8936;
    --corporate-gold: #d69e2e;
    --light-steel: #e2e8f0;
    --dark-steel: #2d3748;
}

/* Services Gallery Styles */
.services-gallery-container {
    margin-top: 4rem;
}

.service-gallery-section {
    margin-bottom: 7rem;
    padding: 2rem 0;
}

.service-gallery-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy-blue);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-gallery-title:after {
    content: '';
    position: absolute;
    width: 5rem;
    height: 4px;
    background: linear-gradient(90deg, var(--construction-orange), var(--corporate-gold));
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(237, 137, 54, 0.3);
}

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

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    aspect-ratio: 16/10;
    border: 2px solid transparent;
    transform: translateY(0);
}

.gallery-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    border-color: var(--construction-orange);
    z-index: 10;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: brightness(0.95);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
    filter: brightness(1.1) saturate(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(26, 54, 93, 0.85) 0%,
        rgba(26, 54, 93, 0.7) 40%,
        rgba(26, 54, 93, 0.5) 70%,
        rgba(26, 54, 93, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 2rem;
    backdrop-filter: blur(5px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-project-name {
    color: var(--white);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.3;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item:hover .gallery-project-name {
    transform: translateY(0);
}

.gallery-view-icon {
    color: var(--corporate-gold);
    font-size: 1.6rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-item:hover .gallery-view-icon {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced hover effect for better UX */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(237, 137, 54, 0.1), rgba(214, 158, 46, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Card-style gallery item for alternate layout */
.gallery-item.card-style {
    aspect-ratio: 3/4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item.card-style .gallery-image {
    height: 70%;
    width: 100%;
}

.gallery-item.card-style .gallery-overlay {
    height: 30%;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
}

.gallery-item.card-style .gallery-project-name {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Masonry-style gallery */
.masonry-grid {
    column-count: 3;
    column-gap: 2rem;
}

.masonry-grid .gallery-item {
    break-inside: avoid;
    margin-bottom: 2rem;
}

/* Filter buttons for gallery */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: var(--light-gray);
    border: 2px solid transparent;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--construction-orange);
    color: var(--white);
    border-color: var(--corporate-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(237, 137, 54, 0.3);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background-color: var(--primary-red);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.lightbox-nav:hover {
    background-color: var(--primary-red);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-project-info {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    text-align: center;
    background: rgba(0,0,0,0.7);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Clients Carousel Styles */
.clients-carousel-container {
    margin: 3rem 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 4rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}

.clients-carousel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e2e8f0' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.clients-carousel-track {
    display: flex;
    animation: scrollLeft 35s linear infinite;
    width: fit-content;
    position: relative;
    z-index: 1;
}

.client-logo-item {
    flex: 0 0 auto;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    position: relative;
    z-index: 1;
}

.client-logo {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8);
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

.client-logo:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.clients-carousel-container:hover .clients-carousel-track {
    animation-play-state: paused;
}

/* Responsive Design for Gallery */
@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .service-gallery-title {
        font-size: 1.5rem;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .client-logo-item {
        padding: 0 2rem;
        height: 60px;
    }
    
    .client-logo {
        max-width: 120px;
        max-height: 45px;
    }
}

@media screen and (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .service-gallery-section {
        margin-bottom: 3rem;
    }
    
    .client-logo-item {
        padding: 0 1.5rem;
        height: 50px;
    }
    
    .client-logo {
        max-width: 100px;
        max-height: 35px;
    }
}