/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Project Header - Improved Responsive Design */
.project-header {
    min-height: 300px;
    padding: 6rem 0 2rem;
    background-color: #f8f9fa;
    background-image: linear-gradient(to right, #f8f9fa, #f0f2f5);
    display: flex;
    align-items: center;
    position: relative;
}

.project-header .container {
    width: 100%;
    padding-top: 0;
    margin-top: 0;
}

.project-header h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    color: #333;
    margin-bottom: 3rem;
    font-weight: 600;
    line-height: 1.2;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Client Section */
.client-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.client-info > span {
    font-size: 1.25rem;
    line-height: 1.5;
}

.client-label {
    color: #666;
    font-weight: 500;
}

.client-name {
    color: #364A93;
    font-weight: 600;
}

.project-dates {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.date-item i {
    font-size: 0.9rem;
    color: #666;
    width: 12px;
}

.info-text {
    display: flex;
    align-items: center;
    gap: 0;
}

.date-label {
    font-size: 1rem;
    color: #666;
}

.date-value {
    font-size: 1rem;
    color: #333;
}

.request-btn {
    background-color: #ff6b35;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.25rem;
    height: auto;
    min-height: 50px;
    align-self: flex-end;
}

.request-btn:hover,
.request-btn:focus {
    background-color: #e85a2c;
    outline: 2px solid #333;
    outline-offset: 2px;
}

.request-btn:focus-visible {
    outline: 3px solid #0066cc;
    outline-offset: 2px;
}

/* Overview & Scope Sections */
.overview-section,
.scope-section {
    padding: 1.5rem 0;
}

.overview-section .container,
.scope-section .container {
    padding: 0 2rem;
}

.overview-section h2,
.scope-section h2 {
    font-size: 1rem;
    color: white;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #1A2436;
    border-radius: 6px;
}

.overview-section p,
.scope-section p,
.scope-content {
    padding: 0 1rem;
}

.overview-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

.scope-item {
    margin-bottom: 2rem;
}

.scope-item:last-child {
    margin-bottom: 0;
}

.scope-item h3 {
    font-size: 1.3rem;
    color: #364A93;
    margin-bottom: 1rem;
    font-weight: 600;
}

.scope-item ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.scope-item ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #444;
}

.scope-item ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ff6b35;
}

.scope-item ul ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

/* Photos Section */
.photos-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.gallery-container {
    position: relative;
    height: min(500px, 60vh);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.gallery-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 4s ease;
    display: none;
}

.gallery-slide.active {
    opacity: 1;
    display: block;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gallery-nav:hover,
.gallery-nav:focus {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

.gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* Preview Cards */
.preview-cards {
    padding: 4rem 0;
    border-top: 1px solid #eee;
}

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

.preview-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

a.preview-card {
    text-decoration: none;
    color: inherit;
}

a.preview-card:hover {
    color: inherit;
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 992px) {
    .project-header {
        min-height: 300px;
    }
    
    .project-header .container {
        padding-top: 6rem;
    }
}

@media (max-width: 768px) {
    .project-header {
        min-height: 400px;
        padding: 4rem 0 3rem;
    }
    
    .project-header .container {
        padding-top: 0;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 2rem;
    }
    
    .request-btn {
        width: 100%;
        justify-content: center;
        margin-top: 2rem;
    }
    
    .client-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .client-info > span {
        font-size: 1.1rem;
    }
    
    .gallery-container {
        height: min(400px, 50vh);
        margin: 0 1rem;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .project-header {
        min-height: 600px;
    }
    
    .project-header .container {
        padding-top: 0;
    }
    
    .overview-section .container,
    .scope-section .container {
        padding: 0 1.5rem;
    }
    
    .project-meta {
        gap: 2.5rem;
    }
    
    .project-info {
        gap: 2rem;
    }
    
    .client-info {
        gap: 0.5rem;
    }
    
    .client-info > span {
        font-size: 1rem;
    }
    
    .project-dates {
        gap: 0.5rem;
    }
    
    .request-btn {
        margin-top: 2rem;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .project-header {
        min-height: 200px;
    }
    
    .project-header .container {
        padding-top: 2.5rem;
    }
}
