/* 
=========================================================
   PROJECTS PAGE
=========================================================
*/

.projects-page-modern {
    padding-top: 105px !important;
}

/* Hero */
.projects-hero-wrap {
    padding: 0 0 10px;
}

.projects-hero {
    position: relative;
    height: 480px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.projects-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroFloat 20s ease-in-out infinite alternate;
}

.projects-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 75, 141, 0.92) 0%, rgba(0, 50, 94, 0.75) 33%, rgba(255, 255, 255, 0) 65%);
    z-index: 1;
}

.projects-hero-content {
    position: absolute;
    top: 50%;
    left: 60px;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 520px;
}

.projects-hero-content h1 {
    font-size: 68px;
    color: #ffffff;
    letter-spacing: -1px;
}

/* Intro Section */
.projects-intro-section {
    padding: 100px 0 60px;
}

.projects-intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: flex-start;
}

.section-eyebrow {
    display: block;
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.projects-intro-left h2 {
    font-size: 38px;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 24px;
}

.projects-intro-left p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.projects-intro-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.projects-intro-card p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
}

.projects-intro-card p:last-child { margin-bottom: 0; }

/* Gallery */
.projects-gallery-section {
    padding: 80px 0 20px; /* Reduced bottom padding significantly */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.project-image-wrap {
    background: #ffffff;
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: 0.3s ease;
}

.project-image-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 75, 141, 0.1);
}

.project-image-wrap img {
    width: 100%;
    aspect-ratio: 4/3; /* Better for horizontal scaffolding photos */
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 20, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    cursor: zoom-out;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 16px;
    transform: scale(0.9);
    transition: 0.3s;
}

.lightbox-overlay.active img {
    transform: scale(1);
}

/* 📞 Contact CTA Section - Handled Globally by style.css */

@media (max-width: 1200px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) { .contact-cta-grid { grid-template-columns: 1fr; } .projects-hero-content h1 { font-size: 42px; } }
@media (max-width: 768px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
