/* ===================================
   Union & Co Styles
   =================================== */

/* Import Main Variables if not already available in scope, 
   but since this is loaded after main, we can use them */

:root {
    --color-primary-construction: #3b82f6;
    /* Blue-500 */
    --color-primary-glow-construction: #60a5fa;
    /* Blue-400 */
    --gradient-construction: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

/* Update selection color for this page */
::selection {
    background: var(--color-primary-construction);
    color: white;
}

/* Header Background - Match Other Sections */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Remove effects from logo */
.logo-img {
    transition: none !important;
    filter: none !important;
    animation: none !important;
    transform: none !important;
}

.logo-img:hover {
    transform: none !important;
    filter: none !important;
    animation: none !important;
}

.logo {
    animation: none !important;
    transform: none !important;
}

.logo:hover {
    animation: none !important;
    transform: none !important;
}


/* Hero Section Override */
.hero-construction {
    background: linear-gradient(rgba(10, 14, 23, 0.85), rgba(10, 14, 23, 0.95)), url('../assets/images/project-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Service Cards Override */
.construction-card {
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.construction-card:hover {
    border-color: var(--color-primary-construction);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.construction-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary-construction);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.construction-card:hover .construction-icon-wrapper {
    background: var(--gradient-construction);
    color: white;
    transform: rotateY(180deg);
}

/* Text Gradient Override */
.text-gradient-construction {
    background: var(--gradient-construction);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Override */
.btn-construction {
    background: var(--gradient-construction);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-construction:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-outline-construction {
    border-color: var(--color-primary-construction);
    color: var(--color-primary-construction);
}

.btn-outline-construction:hover {
    background: var(--color-primary-construction);
    color: white;
}

/* Project Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-title {
    transform: translateY(0);
}

/* Features List */
.construction-features li i {
    color: var(--color-primary-construction);
}

/* Contact Section */
.contact-construction i {
    color: var(--color-primary-construction);
}


/* ===================================
   Responsive adjustments
   =================================== */

@media (max-width: 768px) {

    /* Header & Navigation */
    .header-container {
        padding: 0.5rem 1rem;
        /* More compact vertical padding */
    }

    .logo-img {
        height: 75px !important;
        /* Smaller logo on mobile */
        transform: scale(3.5) !important;
        transform-origin: left center;
        margin-left: 10px;
    }

    .mobile-menu-btn {
        display: block;
        /* Show hamburger menu */
        color: #111827 !important;
        /* Dark color for visibility */
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98) !important;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        /* Ensure items start below header */
        align-items: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 2000 !important;
        backdrop-filter: blur(10px);
    }

    .nav-list.active {
        right: 0;
    }

    .nav-list li {
        margin: 1.5rem 0;
    }

    .nav-link {
        font-size: 1.2rem;
        color: #111827 !important;
        /* Dark text for visibility on white bg */
    }

    /* Hero adjustments */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero {
        padding-top: 120px;
        /* Adjust for smaller header */
    }
}