/* Khan Stretch Ceilings - Gallery Page Desktop Styles */

/* Global link styles */
a {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

a:active {
    color: inherit;
    text-decoration: none;
}

@import url('home.css');

/* Page Hero */
.page-hero {
    background: transparent;
    color: var(--gold-light);
    padding: 6rem 0 4rem;
    text-align: center;
    margin-top: 80px;
    margin-bottom: 40px;
    border-radius: 20px;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gold-light);
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--gold-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Gallery Filters */
.gallery-filters {
    padding: 2rem 0;
    background: transparent;
    border-bottom: 1px solid rgba(63, 164, 80, 0.1);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--emerald-green);
    color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(80, 200, 120, 0.3);
}

/* Gallery Grid */
.gallery-grid {
    padding: 4rem 0;
    background: transparent;
}

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: var(--light-gray);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-dark);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    position: relative;
    transition: transform 0.3s ease;
    display: block;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--gold-light);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-overlay p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    line-height: 1.4;
}

.gallery-category {
    background: var(--emerald-green);
    color: var(--gold-light);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

/* Gallery Image Backgrounds */
.glossy-1 {
    background: linear-gradient(45deg, #ffffff, #f8f9fa),
                radial-gradient(circle at 30% 30%, rgba(80, 200, 120, 0.2), transparent 50%);
    background-blend-mode: overlay;
}

.glossy-2 {
    background: linear-gradient(135deg, #1a1a1a, #333333),
                linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
}

.glossy-3 {
    background: linear-gradient(45deg, #e3f2fd, #ffffff),
                radial-gradient(circle at 70% 20%, rgba(33, 150, 243, 0.3), transparent 60%);
}

.matte-1 {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

.matte-2 {
    background: linear-gradient(135deg, #f3e5ab, #ede0c8);
}

.matte-3 {
    background: linear-gradient(135deg, #e8eaf6, #c5cae9);
}

.multilevel-1 {
    background: linear-gradient(135deg, var(--primary-green), var(--velvet-green));
    position: relative;
}

.multilevel-1::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 20%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.multilevel-1::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 20%;
    width: 40%;
    height: 30%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.multilevel-2 {
    background: linear-gradient(45deg, var(--emerald-green), var(--velvet-green), var(--primary-green));
    position: relative;
}

.multilevel-3 {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    position: relative;
}

.photo-1 {
    background: radial-gradient(circle at center, #1a237e, #3949ab, #5c6bc0);
    position: relative;
}

.photo-1::before,
.photo-1::after {
    content: '✨';
    position: absolute;
    color: var(--gold-light);
    font-size: 1.5rem;
    animation: twinkle 2s infinite;
}

.photo-1::before {
    top: 20%;
    left: 30%;
}

.photo-1::after {
    bottom: 30%;
    right: 25%;
    animation-delay: 1s;
}

.photo-2 {
    background: linear-gradient(135deg, #87ceeb, #ffffff, #e0f6ff);
    position: relative;
}

.photo-2::before {
    content: '☁️';
    position: absolute;
    top: 20%;
    left: 20%;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.photo-2::after {
    content: '☁️';
    position: absolute;
    bottom: 30%;
    right: 30%;
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.photo-3 {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Gallery Stats */
.gallery-stats {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(80, 200, 120, 0.05), var(--light-gray));
}

.gallery-stats h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 3rem;
    font-weight: 700;
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--gold-light);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--emerald-green);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--gray);
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-green), var(--velvet-green));
    color: var(--gold-light);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--light-green);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--accent-gold);
    color: var(--dark-gray);
    border: none;
}

.cta-section .btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

.cta-section .btn-secondary {
    background: transparent;
    color: var(--gold-light);
    border: 2px solid var(--gold-light);
}

.cta-section .btn-secondary:hover {
    background: var(--gold-light);
    color: var(--primary-green);
}

/* Gallery Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    background: var(--white);
    border-radius: 15px;
    animation: slideIn 0.3s ease;
}

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

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-green);
}

#modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

#modal-info h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

#modal-info p {
    color: var(--gray);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-hero {
        padding: 4rem 0 2rem;
    }
    
    .page-hero h1 {
        font-size: 2.2rem;
    }
    
    .gallery-items {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .gallery-stats h2,
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    #modal-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .gallery-image {
        height: 180px;
    }
    
    .gallery-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .gallery-overlay h3 {
        font-size: 1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}