/* Service Page Specific Styles */

.service-hero {
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark) 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(100px);
}

.service-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.service-icon-large {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.service-icon-large svg {
    width: 50px;
    height: 50px;
}

.service-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.service-hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.service-details {
    padding: 6rem 0;
    background: var(--color-white);
}

.service-details-content {
    max-width: 1000px;
    margin: 0 auto;
}

.service-description {
    margin-bottom: 4rem;
}

.service-description h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-black);
}

.service-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-medium-gray);
    margin-bottom: 1.5rem;
}

.service-features {
    margin-bottom: 4rem;
}

.service-features h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-black);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: var(--color-light-gray);
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(227, 30, 36, 0.1);
}

.feature-item h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-black);
}

.feature-item p {
    color: var(--color-medium-gray);
    line-height: 1.6;
}

.service-process {
    margin-bottom: 4rem;
}

.service-process h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-black);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
}

.process-step h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-black);
}

.process-step p {
    color: var(--color-medium-gray);
    line-height: 1.6;
}

.service-cta {
    background: var(--color-light-gray);
    padding: 4rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 4rem;
}

.service-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-black);
}

.service-cta > p {
    font-size: 1.2rem;
    color: var(--color-medium-gray);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

/* Fix secondary button visibility on light backgrounds */
.service-cta .btn-secondary {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.service-cta .btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.3);
}

/* Service Gallery Styles */
.service-gallery {
    margin-bottom: 4rem;
}

.service-gallery h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-black);
    text-align: center;
}

.gallery-subtitle {
    text-align: center;
    color: var(--color-medium-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.gallery-item:has(img[style*="display: none"]) {
    display: none;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.gallery-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--color-light-gray);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.2);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-label {
    color: var(--color-white);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Before/After Badges */
.gallery-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
}

.gallery-badge-before {
    background: rgba(220, 53, 69, 0.9);
    color: var(--color-white);
}

.gallery-badge-after {
    background: rgba(40, 167, 69, 0.9);
    color: var(--color-white);
}

/* Instagram Tile Styles */
.gallery-item-instagram {
    text-decoration: none !important;
    color: inherit;
    display: block !important;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    visibility: visible !important;
    opacity: 1 !important;
}

.gallery-item-instagram .gallery-image-container {
    background: linear-gradient(135deg, #833AB4 0%, #E1306C 50%, #FCAF45 100%);
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item-instagram:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(131, 58, 180, 0.4);
}

.gallery-item-instagram:hover .gallery-image-container {
    box-shadow: 0 10px 30px rgba(131, 58, 180, 0.4);
}

.instagram-tile-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--color-white);
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

.instagram-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.instagram-tile-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.instagram-tile-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: var(--color-white);
}

.gallery-item-instagram .gallery-label {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.gallery-item-instagram .gallery-overlay {
    display: none;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: var(--color-white);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    line-height: 1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-close:hover {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-white);
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    user-select: none;
    padding-bottom: 5px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-prev {
    left: 50px;
}

.lightbox-next {
    right: 50px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    display: block;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.lightbox-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none;
}

.lightbox-badge-before {
    background: rgba(220, 53, 69, 0.95);
    color: var(--color-white);
}

.lightbox-badge-after {
    background: rgba(40, 167, 69, 0.95);
    color: var(--color-white);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    font-size: 1.2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design for Service Pages */
@media (max-width: 768px) {
    .service-hero {
        padding: 100px 0 60px;
    }

    .service-hero h1 {
        font-size: 2rem;
    }

    .service-hero-subtitle {
        font-size: 1.1rem;
    }

    .service-description h2,
    .service-cta h2 {
        font-size: 2rem;
    }

    .service-features h3,
    .service-process h3 {
        font-size: 1.5rem;
    }

    .features-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .service-cta {
        padding: 2.5rem 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 36px;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.2);
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 36px;
        width: 56px;
        height: 56px;
        background: rgba(255, 255, 255, 0.2);
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-image-wrapper {
        max-width: 100%;
        max-height: 100vh;
        padding: 60px 20px 80px;
        box-sizing: border-box;
    }

    .lightbox-img {
        max-width: 100%;
        max-height: calc(100vh - 140px);
        width: auto;
        height: auto;
    }

    .lightbox-badge {
        top: 15px;
        right: 15px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .lightbox-caption {
        bottom: 20px;
        font-size: 1rem;
        padding: 8px 15px;
    }
}

