/* Work Page Specific Styles */

/* Hero Section */
.work-hero {
    background: linear-gradient(135deg, #5A8A9F 0%, #3A6A7F 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.work-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;charset=UTF-8,%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="%23ffffff" fill-opacity="0.05"%3E%3Ccircle cx="7" cy="7" r="5"/%3E%3Ccircle cx="53" cy="7" r="5"/%3E%3Ccircle cx="7" cy="53" r="5"/%3E%3Ccircle cx="53" cy="53" r="5"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.1;
    z-index: 1;
}

.work-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.work-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.work-hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    color: white !important;
    opacity: 1;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

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

.gallery-item {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* This ensures all images fill their container uniformly */
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.placeholder-image::before {
    content: '📷';
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}

.placeholder-image span {
    padding: 0 1rem;
    font-style: italic;
    font-weight: 500;
    color: #495057;
}

.gallery-item:hover .placeholder-image {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
    border-color: #adb5bd;
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 100%);
}

.gallery-item:hover .placeholder-image::before {
    opacity: 0.6;
}

/* Project Statistics */
.project-stats {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.project-stats h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--bg-white);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-card p {
    color: var(--text-light);
    font-weight: 500;
    margin: 0;
}

/* Hidden OneDrive Instructions */
.onedrive-instructions {
    display: none !important;
}

/* Lightbox Modal (for future implementation) */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

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

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Responsive Design */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .work-hero {
        padding: 60px 20px;
    }
    
    .work-hero h1 {
        font-size: 2.5rem;
    }
    
    .work-hero p {
        font-size: 1.1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .placeholder-image {
        height: 250px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .work-hero {
        padding: 50px 15px;
    }
    
    .work-hero h1 {
        font-size: 2rem;
    }
    
    .work-hero p {
        font-size: 1rem;
    }
    
    .gallery-grid {
        gap: 1rem;
        margin: 1rem 0;
    }
    
    .placeholder-image {
        height: 200px;
        font-size: 0.8rem;
    }
    
    .placeholder-image::before {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
}