/* ============================================
   SERVICE SINGLE PAGE - WANDACONNECT
   Complete CSS - Fixed Version
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary-color: #00D4B5;
    --primary-hover: #00b89d;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #95A9C6;
    --text-muted: #64748b;
    --border-color: #2a2a2a;
    --gradient-gold: linear-gradient(95deg, #ffffff, #1b76f5, #ffffff);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ============================================
   BREADCRUMB NAVIGATION
   ============================================ */
.breadcrumb-nav {
    background: var(--card-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-nav .container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: var(--primary-color);
}

.breadcrumb-nav .separator {
    color: var(--text-muted);
}

.breadcrumb-nav strong {
    color: var(--primary-color);
}

/* ============================================
   MAIN SERVICE SECTION - FIXED LAYOUT
   ============================================ */
.service-main {
    padding: 40px 0;
    overflow-x: hidden;
}

.service-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    gap: 40px;
    max-width: 100%;
    overflow: hidden;
}

/* ============================================
   LEFT COLUMN - SERVICE CONTENT
   ============================================ */
.service-content {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

/* ============================================
   SERVICE HEADER
   ============================================ */
.service-header {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.service-title {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 25px;
    background: var(--gradient-gold);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* ============================================
   FREELANCER MINI CARD (TOP)
   ============================================ */
.freelancer-card {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 20px;
    align-items: start;
    padding: 25px;
    background: var(--dark-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.freelancer-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: cover;
}

.freelancer-info {
    flex: 1;
}

.freelancer-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    margin-bottom: 5px;
}

.freelancer-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.freelancer-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 13px;
    margin-bottom: 12px;
}

.freelancer-stats .stat {
    color: var(--text-muted);
}

.freelancer-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 12px;
}

.meta-item {
    color: var(--text-muted);
    padding: 4px 10px;
    background: var(--card-bg);
    border-radius: 4px;
}

.btn-contact-seller {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-contact-seller:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 181, 0.3);
}

/* ============================================
   SERVICE COVER IMAGE
   ============================================ */
.service-cover {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.cover-image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
}

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

.badge-bestseller {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 212, 181, 0.4);
}

/* ============================================
   SERVICE TABS
   ============================================ */
.service-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-color);
    background: var(--dark-bg);
}

.tab-btn {
    flex: 1;
    padding: 18px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: var(--card-bg);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--card-bg);
}

/* ============================================
   TAB CONTENT
   ============================================ */
.tab-content {
    display: none;
    padding: 40px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.tab-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

.tab-content h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.tab-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.lead {
    font-size: 18px !important;
    font-weight: 500;
    color: var(--text-primary) !important;
}

/* ============================================
   CHECKLIST
   ============================================ */
.checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.checklist li {
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.checklist li:last-child {
    border-bottom: none;
}

/* ============================================
   TOOLS BADGES
   ============================================ */
.tools-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.tool-badge {
    padding: 8px 16px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tool-badge:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ============================================
   STYLED LIST
   ============================================ */
.styled-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.styled-list li {
    padding: 15px 0;
    font-size: 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.styled-list li:last-child {
    border-bottom: none;
}

.styled-list li strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   WARNING BOX
   ============================================ */
.warning-box {
    padding: 25px;
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--warning-color);
    border-radius: 8px;
    margin: 30px 0;
}

.warning-box h4 {
    color: var(--warning-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.warning-box ul {
    margin: 0;
    padding-left: 20px;
}

.warning-box li {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* ============================================
   INDUSTRIES TAGS
   ============================================ */
.industries-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.industry-tag {
    padding: 10px 20px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.industry-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.reviews-header {
    margin-bottom: 40px;
}

.rating-summary {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    margin-top: 30px;
}

.rating-score {
    text-align: center;
    padding: 30px;
    background: var(--dark-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.score {
    font-size: 56px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.rating-score .stars {
    font-size: 24px;
    margin: 10px 0;
}

.rating-score p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-bar {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: var(--text-secondary);
}

.rating-bar .bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.rating-bar .fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

/* ============================================
   REVIEWS LIST
   ============================================ */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-card {
    padding: 25px;
    background: var(--dark-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.review-card:hover {
    border-color: var(--primary-color);
}

.review-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.review-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-primary);
    font-weight: 600;
}

.review-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
}

.review-meta .stars {
    color: #fbbf24;
}

.review-meta .date {
    color: var(--text-muted);
}

.review-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
}

.review-footer {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.helpful {
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.btn-load-more {
    padding: 12px 30px;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-load-more:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--dark-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question svg {
    transition: transform 0.3s ease;
    stroke: var(--primary-color);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p,
.faq-answer ul {
    padding: 0 20px 20px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.faq-answer ul {
    padding-left: 40px;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* ============================================
   ABOUT ME TAB CONTENT
   ============================================ */
.about-me-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-profile-header {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 25px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 212, 181, 0.1) 0%, transparent 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.about-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 212, 181, 0.3);
}

.about-profile-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-profile-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.about-profile-tagline {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.about-profile-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.about-stat {
    padding: 6px 14px;
    background: var(--dark-bg);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.about-section {
    padding: 25px;
    background: var(--dark-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.about-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   SKILLS LIST (IN ABOUT TAB)
   ============================================ */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-experience {
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 10px;
    background: var(--card-bg);
    border-radius: 12px;
}

.skill-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, #1b76f5 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* ============================================
   QUICK STATS GRID (IN ABOUT TAB)
   ============================================ */
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.quick-stat-card {
    padding: 20px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.quick-stat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   CERTIFICATIONS LIST (IN ABOUT TAB)
   ============================================ */
.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--card-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.cert-item:hover {
    border-color: var(--primary-color);
}

.cert-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.cert-name {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   ABOUT ACTIONS (BUTTONS IN ABOUT TAB)
   ============================================ */
.about-actions {
    display: flex;
    gap: 15px;
    padding: 25px;
    background: var(--dark-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.btn-contact-profile,
.btn-view-profile {
    flex: 1;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-contact-profile {
    background: var(--primary-color);
    color: white;
}

.btn-contact-profile:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 181, 0.3);
}

.btn-view-profile {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-view-profile:hover {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   PORTFOLIO PREVIEW SECTION (MOVED AFTER TABS)
   ============================================ */
.portfolio-preview-section {
    padding: 40px;
    background: var(--dark-bg);
    border-top: 1px solid var(--border-color);
}

.portfolio-preview-section .section-header {
    margin-bottom: 25px;
}

.portfolio-preview-section h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.portfolio-preview-section .subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.portfolio-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.portfolio-preview-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.portfolio-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-preview-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-preview-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-title {
    font-size: 13px;
    color: white;
    font-weight: 600;
}

.view-icon {
    font-size: 20px;
}

/* ============================================
   PORTFOLIO LIGHTBOX
   ============================================ */
.portfolio-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox-container {
    position: relative;
    max-width: 1200px;
    max-height: 90vh;
    width: 90%;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    z-index: 10001;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    background: var(--dark-bg);
}

.lightbox-info {
    padding: 30px;
}

.lightbox-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.lightbox-info p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.lightbox-nav {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.nav-btn {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.nav-btn svg {
    stroke: white;
    stroke-width: 2;
}

/* ============================================
   RIGHT COLUMN - PRICING SIDEBAR - STICKY FIX
   ============================================ */
.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
    min-width: 0;
    overflow: visible; /* Changed from hidden to allow sticky */
    position: relative;
}

.pricing-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Sticky behavior only on desktop */
@media (min-width: 993px) {
    .pricing-card {
        position: sticky;
        top: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
    
    /* Custom scrollbar for pricing card */
    .pricing-card::-webkit-scrollbar {
        width: 6px;
    }
    
    .pricing-card::-webkit-scrollbar-track {
        background: var(--dark-bg);
    }
    
    .pricing-card::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 3px;
    }
    
    .pricing-card::-webkit-scrollbar-thumb:hover {
        background: var(--primary-color);
    }
}

/* ============================================
   PACKAGE TABS - FULLY CONSTRAINED
   ============================================ */
.package-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--dark-bg);
    border-bottom: 2px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0; /* Prevent shrinking when sticky */
}

.package-tab {
    padding: 12px 5px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

.package-tab:hover {
    background: var(--card-bg);
}

.package-tab.active {
    border-bottom-color: var(--primary-color);
    background: var(--card-bg);
}

.package-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

.package-tab.active .package-name {
    color: var(--primary-color);
}

.package-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

/* ============================================
   PACKAGE CONTENT - FULLY CONSTRAINED
   ============================================ */
.package-content {
    display: none;
    padding: 18px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.package-content.active {
    display: block;
}

.package-content h3 {
    font-size: 17px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 700;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.package-description {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.badge-popular {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary-color);
    color: white;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 15px;
}

.package-details {
    padding: 12px 10px;
    background: var(--dark-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 7px 0;
    font-size: 11px;
    border-bottom: 1px solid var(--border-color);
    gap: 8px;
    min-width: 0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    color: var(--text-muted);
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.detail-row .value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.package-features li {
    padding: 7px 0;
    font-size: 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.package-features li:last-child {
    border-bottom: none;
}

.price-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 2px solid var(--border-color);
    margin-top: 15px;
}

.price-label {
    font-size: 13px;
    color: var(--text-muted);
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/* ============================================
   BUTTONS - FULLY CONSTRAINED
   ============================================ */
.btn-order-now {
    width: 100%;
    max-width: 100%;
    padding: 12px 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    box-sizing: border-box;
    display: block;
    text-align: center;
    line-height: 1.2;
}

.btn-order-now:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 181, 0.3);
}

.btn-order-now:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-contact {
    width: 100%;
    max-width: 100%;
    padding: 10px 10px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    display: block;
    text-align: center;
    line-height: 1.2;
}

.btn-contact:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.btn-contact:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   TRUST BADGES - FULLY CONSTRAINED
   ============================================ */
.trust-badges {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 8px;
    background: var(--dark-bg);
    border-top: 1px solid var(--border-color);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 6px;
    overflow: hidden;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: var(--text-muted);
    text-align: center;
    flex: 1;
    min-width: 0;
    max-width: 50%;
}

.trust-item span:last-child {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.3;
}

.trust-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* ============================================
   SELLER STATS CARD - FULLY CONSTRAINED
   ============================================ */
.seller-stats-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 18px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.seller-stats-card h4 {
    font-size: 15px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 700;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 8px;
    min-width: 0;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.stat-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ============================================
   MORE SERVICES BY SELLER
   ============================================ */
.more-services-by-seller {
    padding: 60px 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.more-services-by-seller .section-header {
    margin-bottom: 40px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.seller-avatar-small {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: cover;
}

.section-title {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================
   RELATED SERVICES
   ============================================ */
.related-services {
    padding: 60px 0;
    background: var(--dark-bg);
}

.related-services .section-title {
    text-align: center;
    margin-bottom: 10px;
    font-size: 32px;
    background: var(--gradient-gold);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.related-services .section-subtitle {
    text-align: center;
    margin-bottom: 40px;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--dark-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 181, 0.15);
}

.service-image-link {
    position: relative;
    display: block;
}

.service-card .service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.service-content {
    padding: 20px;
}

.service-card h4 {
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
    font-weight: 600;
}

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

.service-card a:hover h4 {
    color: var(--primary-color);
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}

.service-footer .rating {
    color: #fbbf24;
    font-size: 13px;
}

.service-footer .price {
    color: var(--text-muted);
    font-size: 13px;
}

.service-footer .price strong {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 700;
}

/* ============================================
   FREELANCER MINI (for related services)
   ============================================ */
.freelancer-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.freelancer-mini img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.freelancer-mini span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE DESIGN - COMPLETE
   ============================================ */

/* Large Desktop */
@media (min-width: 1401px) {
    .service-layout {
        grid-template-columns: minmax(0, 1fr) 400px;
        gap: 40px;
    }
    
    .service-sidebar {
        max-width: 400px;
    }
}

/* Standard Desktop */
@media (min-width: 993px) and (max-width: 1400px) {
    .service-layout {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 30px;
    }
    
    .service-sidebar {
        max-width: 380px;
    }
    
    .package-tab {
        padding: 12px 3px;
    }
    
    .package-name {
        font-size: 11px;
    }
    
    .package-price {
        font-size: 15px;
    }
}

/* Small Desktop / Large Tablet */
@media (min-width: 993px) and (max-width: 1200px) {
    .service-layout {
        grid-template-columns: minmax(0, 1fr) 350px;
        gap: 25px;
    }
    
    .service-sidebar {
        max-width: 350px;
    }
    
    .package-content {
        padding: 18px 12px;
    }
    
    .package-details {
        padding: 12px 10px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .portfolio-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets */
@media (max-width: 992px) {
    .service-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-sidebar {
        order: -1;
        width: 100%;
        max-width: 100%;
    }
    
    .pricing-card {
        position: relative !important;
        top: 0 !important;
    }
    
    .package-tabs {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .package-tab {
        padding: 15px 10px;
    }
    
    .package-name {
        font-size: 13px;
    }
    
    .package-price {
        font-size: 18px;
    }
    
    .rating-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portfolio-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .freelancer-card {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    
    .freelancer-info {
        text-align: center;
    }
    
    .freelancer-stats,
    .freelancer-meta {
        justify-content: center;
    }
    
    .quick-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-profile-header {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    
    .about-profile-info {
        align-items: center;
    }
    
    .about-profile-stats {
        justify-content: center;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .service-title {
        font-size: 24px;
    }
    
    .cover-image-wrapper {
        height: 300px;
    }
    
    .service-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        font-size: 14px;
        padding: 15px 10px;
    }
    
    .tab-content {
        padding: 25px 20px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .service-main {
        padding: 30px 0;
    }
    
    .package-tabs {
        grid-template-columns: 1fr;
    }
    
    .package-tab {
        padding: 15px 20px;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .package-name {
        font-size: 14px;
    }
    
    .package-price {
        font-size: 20px;
    }
    
    .package-content {
        padding: 20px 15px;
    }
    
    .btn-order-now {
        font-size: 15px;
        padding: 14px 15px;
    }
    
    .btn-contact {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .portfolio-preview-section {
        padding: 25px 20px;
    }
    
    .header-left {
        flex-direction: column;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .more-services-by-seller,
    .related-services {
        padding: 40px 0;
    }
    
    .about-actions {
        flex-direction: column;
    }
    
    .btn-contact-profile,
    .btn-view-profile {
        width: 100%;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .service-main {
        padding: 20px 0;
    }
    
    .service-title {
        font-size: 20px;
    }
    
    .freelancer-avatar {
        width: 60px;
        height: 60px;
    }
    
    .cover-image-wrapper {
        height: 250px;
    }
    
    .portfolio-preview-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tab-content h2 {
        font-size: 22px;
    }
    
    .tab-content h3 {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .seller-avatar-small {
        width: 50px;
        height: 50px;
    }
    
    .about-profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .about-profile-name {
        font-size: 24px;
    }
    
    .quick-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .service-cover {
        padding: 20px;
    }
    
    .portfolio-preview-section {
        padding: 20px 15px;
    }
    
    .package-content {
        padding: 15px 12px;
    }
    
    .package-details {
        padding: 12px 10px;
    }
    
    .detail-row {
        font-size: 11px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .detail-row .value {
        text-align: left;
        margin-left: 0;
    }
    
    .btn-order-now {
        font-size: 14px;
        padding: 13px 12px;
    }
    
    .btn-contact {
        font-size: 13px;
        padding: 11px 12px;
    }
    
    .price-amount {
        font-size: 24px;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    
    .trust-item {
        max-width: 100%;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .package-content h3 {
        font-size: 16px;
    }
    
    .package-name {
        font-size: 12px;
    }
    
    .package-price {
        font-size: 16px;
    }
    
    .btn-order-now,
    .btn-contact {
        font-size: 12px;
        padding: 11px 10px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .service-sidebar,
    .breadcrumb-nav,
    .portfolio-lightbox,
    .btn-order-now,
    .btn-contact,
    .service-tabs {
        display: none !important;
    }
    
    .service-layout {
        grid-template-columns: 1fr;
    }
    
    .tab-content {
        display: block !important;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }


/* ============================================ */
/* SERVICE COVER SLIDER */
/* ============================================ */

.service-cover {
    margin: 30px 0;
}

.cover-slider-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cover-slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #000;
}

.cover-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-nav.prev-slide {
    left: 20px;
}

.slider-nav.next-slide {
    right: 20px;
}

.slider-nav svg {
    width: 24px;
    height: 24px;
}

/* Slide Indicators (Dots) */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    backdrop-filter: blur(5px);
}

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

.indicator-dot.active {
    background: white;
    width: 28px;
    border-radius: 5px;
}

.indicator-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Image Counter */
.image-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(5px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.current-slide {
    font-weight: 700;
}

/* Thumbnail Strip */
.thumbnail-strip {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f8f9fa;
}

.thumbnail-strip::-webkit-scrollbar {
    height: 8px;
}

.thumbnail-strip::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.thumbnail-strip::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
    position: relative;
}

.thumbnail-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

.thumbnail-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.thumbnail-item:hover::after {
    opacity: 0;
}

.thumbnail-item.active {
    border-color: #1dbf73;
    opacity: 1;
}

.thumbnail-item.active::after {
    opacity: 0;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Best Seller Badge */
.badge-bestseller {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

/* Loading State */
.cover-slide img[loading="lazy"] {
    background: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cover-slider-container {
        height: 300px;
    }

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

    .slider-nav.prev-slide {
        left: 10px;
    }

    .slider-nav.next-slide {
        right: 10px;
    }

    .slider-indicators {
        bottom: 15px;
        padding: 8px 12px;
        gap: 8px;
    }

    .indicator-dot {
        width: 8px;
        height: 8px;
    }

    .indicator-dot.active {
        width: 24px;
    }

    .thumbnail-strip {
        padding: 10px;
        gap: 8px;
    }

    .thumbnail-item {
        width: 80px;
        height: 60px;
    }

    .image-counter {
        top: 10px;
        right: 10px;
        font-size: 12px;
        padding: 6px 12px;
    }

    .badge-bestseller {
        top: 10px;
        left: 10px;
        font-size: 11px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .cover-slider-container {
        height: 250px;
    }

    .thumbnail-item {
        width: 70px;
        height: 50px;
    }
}


/* ============================================
   END OF CSS
   ============================================ */
