/**
 * Service Gig Page Styles (Fiverr-style)
 * Compatible with both light and dark themes
 */

/* ==================== Service Gig Container ==================== */
.service-gig-page {
    padding: 0;
    background: var(--color-background);
    min-height: 100vh;
    overflow: visible !important;
    contain: none !important;
    transform: none !important;
}

.service-gig-container {
    width: 100%;
    overflow: visible !important;
    contain: none !important;
    transform: none !important;
}

/* Ensure body and parent elements don't break sticky */
body.single-coding_language {
    overflow-x: hidden;
    overflow-y: visible !important;
}

body.single-coding_language .site,
body.single-coding_language .site-content,
body.single-coding_language #primary {
    overflow: visible !important;
    contain: none !important;
    transform: none !important;
}

/* ==================== Breadcrumb (Hidden) ==================== */
.service-breadcrumb {
    display: none;
}

/* ==================== Service Layout ==================== */
.service-gig-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 50px;
    padding: 50px 0 80px 0;
    align-items: flex-start;
    position: relative;
    overflow: visible !important;
    contain: none !important;
}

/* Ensure main content area is visible and allows sticky */
.service-gig-main {
    overflow: visible !important;
    contain: none !important;
}

@media (max-width: 1200px) {
    .service-gig-layout {
        grid-template-columns: 1fr 380px;
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .service-gig-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px 0 50px 0;
        align-items: stretch;
    }
}

/* ==================== Main Content ==================== */
.service-gig-main {
    min-width: 0;
    animation: fadeInUp 0.6s ease-out;
    overflow: visible !important;
}

/* Service Header */
.service-gig-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--color-border);
}

.service-gig-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 15px 0;
    color: var(--color-text);
    letter-spacing: -0.5px;
}

.service-gig-subtitle {
    font-size: 19px;
    color: var(--color-text-muted);
    margin: 0 0 25px 0;
    line-height: 1.6;
    font-weight: 400;
}

.service-gig-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    padding: 20px 0 0 0;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.seller-name {
    font-weight: 600;
    color: var(--color-text);
}

/* Ensure seller name is visible in dark mode */
body.dark-mode .seller-name {
    color: var(--color-text);
}

.service-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 14px;
}

.service-rating-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffa500;
    font-weight: 600;
}

.service-rating-badge svg {
    color: #ffa500;
    fill: #ffa500;
}

/* Enhanced visibility for dark mode */
body.dark-mode .service-rating-badge {
    color: #ffb300;
}

body.dark-mode .service-rating-badge svg {
    color: #ffb300;
    fill: #ffb300;
}

.service-reviews {
    color: var(--color-text-muted);
}

/* Ensure reviews text is visible in dark mode */
body.dark-mode .service-reviews {
    color: var(--color-text-muted);
}

.service-queue {
    color: var(--color-primary);
    font-weight: 600;
}

/* Ensure queue is visible in dark mode */
body.dark-mode .service-queue {
    color: var(--color-primary);
}

/* ==================== Gallery with Slider ==================== */
.service-gig-gallery {
    margin-bottom: 40px;
}

.gallery-main-image {
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.gallery-main-image img {
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 500px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

/* Gallery navigation arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 15px;
}

.gallery-nav.next {
    right: 15px;
}

.gallery-nav svg {
    width: 24px;
    height: 24px;
}

body.dark-mode .gallery-nav {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

body.dark-mode .gallery-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.gallery-thumb {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 3px solid transparent;
}

.gallery-thumb.active {
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.gallery-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
    pointer-events: none;
}

.gallery-thumb:hover::before {
    opacity: 1;
}

.gallery-thumb.active::before {
    opacity: 0;
}

.gallery-thumb:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gallery-thumb img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.1);
}

body.dark-mode .gallery-thumb {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .gallery-thumb:hover,
body.dark-mode .gallery-thumb.active {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* ==================== Video ==================== */
.service-gig-video {
    margin-bottom: 50px;
    padding: 35px;
    background: var(--color-surface);
    border-radius: 16px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.service-gig-video h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 25px 0;
    color: var(--color-text);
    position: relative;
    padding-bottom: 15px;
}

.service-gig-video h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-radius: 2px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe,
.video-wrapper object,
.video-wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* ==================== Description ==================== */
.service-gig-description {
    margin-bottom: 50px;
    padding: 35px;
    background: var(--color-surface);
    border-radius: 16px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.service-gig-description h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 25px 0;
    color: var(--color-text);
    position: relative;
    padding-bottom: 15px;
}

.service-gig-description h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark, #0056b3));
    border-radius: 2px;
}

.description-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
}

/* Ensure description is visible in dark mode */
body.dark-mode .description-content {
    color: var(--color-text);
}

.description-content p {
    margin-bottom: 15px;
}

.description-content ul,
.description-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.description-content li {
    margin-bottom: 8px;
    color: var(--color-text);
}

body.dark-mode .description-content li {
    color: var(--color-text);
}

/* ==================== Features ==================== */
.service-gig-features {
    margin-bottom: 50px;
    padding: 35px;
    background: linear-gradient(135deg, var(--color-surface), var(--color-background));
    border-radius: 16px;
    border: 2px solid var(--color-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.service-gig-features h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 25px 0;
    color: var(--color-text);
    position: relative;
    padding-bottom: 15px;
}

.service-gig-features h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 2px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--color-text);
    padding: 12px 16px;
    background: var(--color-background);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.features-list li:hover {
    transform: translateX(5px);
    background: var(--color-surface);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.features-list li svg {
    flex-shrink: 0;
    color: #28a745;
    margin-top: 3px;
    background: rgba(40, 167, 69, 0.1);
    padding: 4px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

/* ==================== Requirements ==================== */
.service-gig-requirements {
    margin-bottom: 50px;
    padding: 35px;
    background: linear-gradient(135deg, var(--color-surface), var(--color-background));
    border-radius: 16px;
    border: 2px solid var(--color-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.service-gig-requirements h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--color-text);
    position: relative;
    padding-bottom: 15px;
}

.service-gig-requirements h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border-radius: 2px;
}

.service-gig-requirements p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    margin: 0;
    padding: 20px;
    background: var(--color-background);
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

/* ==================== FAQ ==================== */
.service-gig-faq {
    margin-bottom: 50px;
}

.service-gig-faq h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 25px 0;
    color: var(--color-text);
    position: relative;
    padding-bottom: 15px;
}

.service-gig-faq h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark, #0056b3));
    border-radius: 2px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 2px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: var(--color-surface);
}

.faq-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

body.dark-mode .faq-item {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: var(--color-surface);
}

body.dark-mode .faq-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--color-surface);
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    transition: all 0.3s ease;
    position: relative;
}

.faq-question::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.faq-item.active .faq-question::before {
    opacity: 1;
}

.faq-question:hover {
    background: var(--color-hover);
    padding-left: 30px;
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--color-primary);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--color-background);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 20px 25px;
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
}

/* ==================== Sidebar - Pricing Packages ==================== */
.service-gig-sidebar {
    position: relative !important;
    animation: fadeInRight 0.6s ease-out forwards;
    contain: none !important;
}

/* Ensure transform is removed after animation */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.service-packages-sticky {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 100px !important;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
    max-height: calc(100vh - 120px);
    z-index: 10;
    align-self: flex-start;
    contain: none !important;
}

.service-packages-sticky:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* Scrollbar styling for sticky sidebar */
.service-packages-sticky::-webkit-scrollbar {
    width: 6px;
}

.service-packages-sticky::-webkit-scrollbar-track {
    background: var(--color-background);
}

.service-packages-sticky::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

.service-packages-sticky::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Force sticky on desktop - with high specificity */
@media screen and (min-width: 1025px) {
    body .service-gig-page .service-packages-sticky {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 100px !important;
    }
}

/* Static on mobile/tablet */
@media screen and (max-width: 1024px) {
    .service-packages-sticky {
        position: static !important;
        top: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
}

/* Package Tabs */
.packages-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px;
    background: var(--color-background);
}

.package-tab {
    padding: 16px 12px;
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: visible;
    z-index: 1;
}

/* Bottom indicator line */
.package-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--color-primary);
    transition: width 0.3s ease;
    border-radius: 2px 2px 0 0;
    z-index: 2;
}

.package-tab:hover {
    background: var(--color-hover);
    color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    border-color: var(--color-primary);
}

.package-tab:hover::after {
    width: 60%;
}

.package-tab.active {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark, #0056b3)) !important;
    background-clip: padding-box !important;
    -webkit-background-clip: padding-box !important;
    font-weight: 800;
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
    transform: translateY(-2px);
    opacity: 1 !important;
    z-index: 2;
}

/* Dark mode should have white text */
body.dark-mode .package-tab.active {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.package-tab.active::after {
    width: 80%;
    background: #000000;
    height: 4px;
}

/* Dark mode active tab - white underline */
body.dark-mode .package-tab.active::after {
    background: #ffffff;
}

/* Focus state for accessibility */
.package-tab:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

/* Active state on click */
.package-tab:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Subtle pulse animation for inactive tabs to draw attention */
@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    50% {
        box-shadow: 0 2px 12px rgba(40, 167, 69, 0.15);
    }
}

.package-tab:not(.active) {
    animation: subtlePulse 3s ease-in-out infinite;
}

/* Stop animation on hover or when active */
.package-tab:hover,
.package-tab.active {
    animation: none;
}

/* Add cursor pointer visual enhancement */
.packages-tabs {
    user-select: none;
}

/* Package Content */
.package-content {
    display: none;
    padding: 30px;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.package-content.active {
    display: block;
}

.package-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-border);
    position: relative;
}

.package-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark, #0056b3));
    border-radius: 2px;
}

.package-header h4 {
    display: none; /* Hide package name above price */
}

.package-price {
    margin: 0;
}

.price-amount {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-text);
    display: block;
}

/* Ensure price is visible in light mode */
body:not(.dark-mode) .price-amount {
    color: #1f2937;
}

body.dark-mode .price-amount {
    color: var(--color-text);
}

.package-desc {
    display: none; /* Hide "Basic Package", "Standard Package", etc. */
}

/* Package Details */
.package-details {
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    font-size: 14px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

/* Ensure detail items are visible in dark mode */
body.dark-mode .detail-item {
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

.detail-item:last-of-type {
    border-bottom: none;
}

.detail-item svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

body.dark-mode .detail-item svg {
    color: var(--color-primary);
}

/* Package Features */
.package-features {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.package-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--color-text);
}

/* Ensure package features are visible in dark mode */
body.dark-mode .package-features li {
    color: var(--color-text);
}

.package-features li svg {
    flex-shrink: 0;
    color: #28a745;
    margin-top: 2px;
}

body.dark-mode .package-features li svg {
    color: #4ade80;
}

/* Order Button */
.order-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #25d366, #1faa52);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    position: relative;
    overflow: hidden;
}

.order-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.order-button:hover::before {
    left: 100%;
}

.order-button:hover {
    background: linear-gradient(135deg, #1faa52, #25d366);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.5);
}

.order-button:active {
    transform: translateY(-1px);
}

.order-button svg {
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ==================== Homepage Service Sections ==================== */
.services-sections-wrapper {
    width: 100%;
}

.service-full-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: var(--color-background);
}

/* Alternating backgrounds like 7scribes.com */
.service-full-section:nth-child(odd) {
    background: var(--color-background);
}

.service-full-section:nth-child(even) {
    background: var(--color-surface);
}

.service-section-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

/* Light theme - subtle pattern overlay */
.service-section-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    opacity: 1;
}

/* Dark theme - enhanced pattern */
body.dark-mode .service-section-background::before {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
    opacity: 1;
}

/* Additional decorative elements for visual interest */
.service-section-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(var(--color-primary-rgb, 99, 102, 241), 0.02) 50%, transparent 100%);
    opacity: 0.5;
}

body.dark-mode .service-section-background::after {
    opacity: 0.3;
}

.service-section-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.service-full-section.reverse .service-section-content {
    direction: rtl;
}

.service-full-section.reverse .service-section-content > * {
    direction: ltr;
}

.service-section-text {
    max-width: 650px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-category {
    display: inline-block;
    padding: 8px 16px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.service-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Light theme - ensure high contrast */
body:not(.dark-mode) .service-category {
    background: #6366f1;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

body:not(.dark-mode) .service-category:hover {
    background: #4f46e5;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

body.dark-mode .service-category {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.5);
}

body.dark-mode .service-category:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.service-section-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px 0;
    color: var(--color-text);
}

/* Ensure title is visible in both themes */
body.dark-mode .service-section-title {
    color: var(--color-text);
}

.service-section-subtitle {
    font-size: 19px;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin: 0 0 30px 0;
    font-weight: 400;
}

/* Ensure subtitle is visible in both themes */
body.dark-mode .service-section-subtitle {
    color: var(--color-text-muted);
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.service-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--color-text);
    font-weight: 600;
}

.service-rating svg {
    color: #ffa500;
    fill: #ffa500;
}

/* Ensure rating is visible in dark mode */
body.dark-mode .service-rating {
    color: var(--color-text);
}

body.dark-mode .service-rating svg {
    color: #ffb300;
    fill: #ffb300;
}

.service-price {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.service-price strong {
    font-size: 18px;
    color: var(--color-primary);
    font-weight: 700;
}

/* Ensure price is visible in dark mode */
body.dark-mode .service-price {
    color: var(--color-text-muted);
}

body.dark-mode .service-price strong {
    color: var(--color-primary);
}

.service-section-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.service-section-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

.service-section-button.primary {
    background: var(--color-primary);
    color: #ffffff;
}

.service-section-button.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.service-section-button.primary:hover::before {
    left: 100%;
}

.service-section-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.4);
}

/* Light theme - ensure button is visible */
body:not(.dark-mode) .service-section-button.primary {
    background: #6366f1;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

body:not(.dark-mode) .service-section-button.primary:hover {
    background: #4f46e5;
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
}

/* Dark theme button visibility */
body.dark-mode .service-section-button.primary {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
}

body.dark-mode .service-section-button.primary:hover {
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.7);
}

.service-section-image {
    position: relative;
    animation: fadeInRight 0.8s ease-out forwards;
}

/* fadeInRight keyframes defined earlier in sidebar section */

.service-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: transform 0.5s ease;
    background: var(--color-surface);
}

/* Dark mode image shadow */
body.dark-mode .service-image-wrapper {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.service-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.service-image-wrapper:hover::before {
    opacity: 1;
}

.service-image-wrapper:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

body.dark-mode .service-image-wrapper:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

.service-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.service-image-wrapper:hover img {
    transform: scale(1.05);
}

/* ==================== Responsive Design ==================== */

/* Tablet */
@media (max-width: 1024px) {
    .service-full-section {
        padding: 60px 0;
    }

    .service-section-title {
        font-size: 38px;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .service-gig-title {
        font-size: 26px;
    }

    .service-gig-subtitle {
        font-size: 17px;
    }

    .service-gig-layout {
        padding: 30px 0;
    }

    .service-gig-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .service-packages-sticky {
        position: static;
        border-radius: 12px;
    }

    .service-gig-description,
    .service-gig-features {
        padding: 25px;
        border-radius: 12px;
    }

    .service-section-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-full-section {
        padding: 50px 0;
    }

    .service-full-section.reverse .service-section-content {
        direction: ltr;
    }

    .service-section-title {
        font-size: 34px;
    }

    .service-section-subtitle {
        font-size: 17px;
    }

    .service-meta {
        gap: 15px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .gallery-thumb img {
        height: 100px;
    }

    .package-content {
        padding: 25px;
    }

    .price-amount {
        font-size: 36px;
    }

    .packages-tabs {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 12px;
    }

    .package-tab {
        padding: 14px 8px;
        font-size: 12px;
        border-radius: 8px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .service-gig-title {
        font-size: 22px;
    }

    .service-gig-subtitle {
        font-size: 15px;
    }

    .service-section-title {
        font-size: 28px;
        -webkit-text-fill-color: var(--color-text);
        background: none;
    }

    .service-section-subtitle {
        font-size: 15px;
    }

    .service-category {
        font-size: 11px;
        padding: 6px 12px;
    }

    .service-section-button {
        padding: 14px 24px;
        font-size: 15px;
    }

    .service-gig-description,
    .service-gig-features {
        padding: 20px;
    }

    .service-gig-description h3,
    .service-gig-features h3 {
        font-size: 20px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-thumb img {
        height: 90px;
    }

    .features-list li {
        font-size: 14px;
        padding: 10px 12px;
    }

    .packages-tabs {
        gap: 6px;
        padding: 10px;
    }
    
    .package-tab {
        padding: 12px 6px;
        font-size: 10px;
        letter-spacing: 0;
        border-radius: 6px;
    }

    .package-header h4 {
        font-size: 18px;
    }

    .price-amount {
        font-size: 32px;
    }

    .order-button {
        padding: 16px 24px;
        font-size: 16px;
    }

    .service-full-section {
        padding: 40px 0;
    }

    .service-section-buttons {
        flex-direction: column;
        width: 100%;
    }

    .service-section-button {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== Dark Theme Adjustments ==================== */
body.dark-mode .service-packages-sticky {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--color-border);
}

body.dark-mode .service-packages-sticky:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

body.dark-mode .service-gig-description,
body.dark-mode .service-gig-features,
body.dark-mode .service-gig-video,
body.dark-mode .service-gig-requirements {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: var(--color-surface);
    border-color: var(--color-border);
}

body.dark-mode .service-gig-features {
    background: linear-gradient(135deg, var(--color-surface), var(--color-background));
}

body.dark-mode .service-gig-requirements {
    background: linear-gradient(135deg, var(--color-surface), var(--color-background));
}

body.dark-mode .gallery-main-image {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

body.dark-mode .gallery-thumb {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .gallery-thumb:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Ensure all headings are visible in dark mode */
body.dark-mode .service-gig-description h3,
body.dark-mode .service-gig-features h3,
body.dark-mode .service-gig-video h3,
body.dark-mode .service-gig-requirements h3,
body.dark-mode .service-gig-faq h3 {
    color: var(--color-text);
}

/* Ensure breadcrumb is visible */
body.dark-mode .service-breadcrumb {
    background: var(--color-surface);
    border-bottom-color: var(--color-border);
}

body.dark-mode .service-breadcrumb span:not(.separator) {
    color: var(--color-text-muted);
}

body.dark-mode .service-breadcrumb span:not(.separator):hover {
    color: var(--color-primary);
}

/* Package tab visibility in dark mode */
body.dark-mode .package-tab {
    color: var(--color-text-muted);
    background: var(--color-surface);
    border-color: var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .package-tab:hover {
    color: var(--color-text);
    background: var(--color-hover);
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* FAQ visibility in dark mode */
body.dark-mode .faq-question {
    color: var(--color-text);
    background: var(--color-surface);
}

body.dark-mode .faq-question:hover {
    background: var(--color-hover);
}

body.dark-mode .faq-answer p {
    color: var(--color-text-muted);
    border-top-color: var(--color-border);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
.service-gig-gallery img,
.service-section-image img {
    background: var(--color-surface);
}

/* Focus states for accessibility */
.package-tab:focus,
.order-button:focus,
.service-section-button:focus,
.faq-question:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .service-packages-sticky {
        position: static;
        box-shadow: none;
        border: 1px solid #000;
    }

    .order-button,
    .service-section-button {
        display: none;
    }

    .service-section-background {
        display: none;
    }
}
