/* Services Pages Styles */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* Service Hero Section */
.service-hero {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="30" cy="30" r="4"/></g></svg>');
    opacity: 0.3;
}

.service-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.service-hero__icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--mb-2);
    font-size: 3rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: float 6s ease-in-out infinite;
}

.service-hero__title {
    font-size: var(--biggest-font-size);
    font-weight: var(--font-extra-bold);
    margin-bottom: var(--mb-1);
    color: white;
}

.service-hero__description {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-2-5);
    opacity: 0.9;
    line-height: 1.6;
}

.service-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat__number {
    display: block;
    font-size: var(--h1-font-size);
    font-weight: var(--font-extra-bold);
    color: white;
    margin-bottom: var(--mb-0-25);
}

.stat__text {
    font-size: var(--small-font-size);
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--font-medium);
}

/* Services Grid */
.services-grid {
    padding: 5rem 0;
    background: #f8fafc;
    width: 100%;
    overflow-x: hidden;
}

.services__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Make featured package span full width on larger screens */
@media screen and (min-width: 1200px) {
    .services__container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .featured-package {
        grid-column: span 3;
        max-width: 600px;
        margin: 0 auto 3rem;
    }
}

/* Service Package Cards */
.service__package {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition-long);
    border: 1px solid var(--border-color);
}

.service__package:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* Featured YouTube Monetization Package */
.featured-package {
    --monetization-primary: #f39c12;
    --monetization-secondary: #f1c40f;
    --monetization-accent: #e74c3c;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 50%, #fdcb6e 100%) !important;
    border: 3px solid var(--monetization-primary) !important;
    position: relative;
    overflow: hidden;
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(243, 156, 18, 0.3) !important;
}

.featured-package::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
    z-index: 1;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(30deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(30deg); }
}

.package__badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: linear-gradient(135deg, var(--monetization-accent), #c0392b);
    color: white;
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    z-index: 3;
}

.monetization-icon {
    background: linear-gradient(135deg, #f1c40f, #f39c12) !important;
    color: #2c3e50 !important;
    border: 3px solid #fff !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.package__subtitle {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.monetization-features .features__list li {
    background: rgba(255, 255, 255, 0.9);
    margin: 0.4rem 0;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--monetization-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.monetization-pricing {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
    position: relative;
    z-index: 2;
    border: 1px solid #f39c12;
}

.pricing__original .original-price {
    font-size: 1.1rem;
    color: #7f8c8d;
    text-decoration: line-through;
    display: block;
    margin-bottom: 0.5rem;
}

.pricing__discounted .discounted-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2c3e50;
    display: block;
    margin-bottom: 0.5rem;
}

.pricing__savings .savings-text {
    background: var(--monetization-accent);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.button--monetization {
    background: linear-gradient(135deg, var(--monetization-secondary), var(--monetization-primary)) !important;
    color: #2c3e50 !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    padding: 1rem 2rem !important;
    border: 2px solid var(--monetization-primary) !important;
    box-shadow: 0 8px 25px rgba(241, 196, 15, 0.4) !important;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 25px !important;
}

.button--monetization:hover {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(241, 196, 15, 0.5);
}

.monetization-summary {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    z-index: 2;
    border: 1px solid var(--monetization-primary);
}

.featured-package .package__header,
.featured-package .package__order,
.featured-package .package__features {
    position: relative;
    z-index: 2;
}

/* Package Header */
.package__header {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid var(--border-color);
}

.package__icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--mb-1);
    font-size: 2rem;
    color: white;
    transition: var(--transition);
}

.service__package:hover .package__icon {
    transform: scale(1.1) rotate(5deg);
}

.package__title {
    font-size: var(--h2-font-size);
    font-weight: var(--font-bold);
    color: var(--title-color);
    margin-bottom: var(--mb-0-75);
}

.package__description {
    color: var(--text-color);
    line-height: 1.6;
}

/* Package Features */
.package__features {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.features__list {
    display: grid;
    gap: 0.75rem;
}

.features__list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    font-size: var(--normal-font-size);
}

.features__list i {
    color: var(--primary-color);
    font-size: var(--small-font-size);
    width: 16px;
    flex-shrink: 0;
}

/* Package Pricing */
.package__pricing {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing__options {
    display: grid;
    gap: 1rem;
}

.pricing__option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.pricing__option:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.pricing__option.active {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: var(--shadow-md);
}

.pricing__option.popular {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(244, 63, 94, 0.1) 100%);
    position: relative;
}

.pricing__option.popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-2);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.option__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-2);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-semi-bold);
    white-space: nowrap;
}

.option__quantity {
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
}

.option__price {
    font-size: var(--h3-font-size);
    font-weight: var(--font-bold);
    color: var(--primary-color);
}

/* Package Order */
.package__order {
    padding: 2rem;
}

.order__form {
    display: grid;
    gap: 1rem;
}

.order__input,
.order__textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    transition: var(--transition);
    resize: vertical;
}

.order__input:focus,
.order__textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.order__textarea {
    min-height: 80px;
}

.order__summary {
    background: #f8fafc;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.summary__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.summary__item:last-child {
    margin-bottom: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    font-weight: var(--font-semi-bold);
}

.selected__price {
    color: var(--primary-color);
    font-weight: var(--font-bold);
}

.order__btn {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: var(--normal-font-size);
}

/* Why Choose Section */
.why-choose {
    background: white;
}

.why-choose__container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-choose__item {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: var(--border-radius-lg);
    background: white;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition-long);
}

.why-choose__item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.item__icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--mb-1);
    font-size: 1.5rem;
    color: white;
    transition: var(--transition);
}

.why-choose__item:hover .item__icon {
    transform: scale(1.1);
    background: var(--gradient-2);
}

.item__title {
    font-size: var(--h3-font-size);
    font-weight: var(--font-bold);
    color: var(--title-color);
    margin-bottom: var(--mb-0-75);
}

.item__description {
    color: var(--text-color);
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    background: #f8fafc;
}

.faq__container {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.faq__item:hover {
    box-shadow: var(--shadow-md);
}

.faq__question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.faq__question:hover {
    background: #f8fafc;
}

.faq__question h3 {
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
    margin: 0;
}

.faq__question i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.faq__item.active .faq__question i {
    transform: rotate(180deg);
}

.faq__answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq__item.active .faq__answer {
    padding: 0 2rem 1.5rem;
    max-height: 200px;
}

.faq__answer p {
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
}

/* Service Categories Navigation */
.service-nav {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: var(--header-height);
    z-index: var(--z-tooltip);
}

.service-nav__container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    overflow-x: auto;
    padding: 0 1rem;
}

.service-nav__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    color: var(--text-color);
    text-decoration: none;
    font-weight: var(--font-medium);
    white-space: nowrap;
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-nav__link:hover,
.service-nav__link.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
}

.service-nav__link i {
    font-size: 1.2rem;
}

/* Order Modal */
.order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.order-modal.show {
    opacity: 1;
    visibility: visible;
}

.order-modal__content {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: var(--transition);
}

.order-modal.show .order-modal__content {
    transform: translateY(0);
}

.order-modal__header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.order-modal__title {
    font-size: var(--h2-font-size);
    font-weight: var(--font-bold);
    color: var(--title-color);
    margin-bottom: var(--mb-0-5);
}

.order-modal__subtitle {
    color: var(--text-color);
}

.order-modal__body {
    padding: 2rem;
}

.order-modal__footer {
    padding: 1rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.order-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.order-modal__close:hover {
    background: #f3f4f6;
    color: var(--title-color);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Price Calculator */
.price-calculator {
    background: #f8fafc;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.calculator__header {
    text-align: center;
    margin-bottom: var(--mb-1-5);
}

.calculator__title {
    font-size: var(--h3-font-size);
    font-weight: var(--font-bold);
    color: var(--title-color);
    margin-bottom: var(--mb-0-5);
}

.calculator__form {
    display: grid;
    gap: 1rem;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form__group {
    display: grid;
    gap: 0.5rem;
}

.form__label {
    font-weight: var(--font-medium);
    color: var(--title-color);
}

.form__select {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.form__select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.calculator__result {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    margin-top: 1rem;
}

.result__text {
    font-size: var(--small-font-size);
    color: var(--text-color);
    margin-bottom: var(--mb-0-25);
}

.result__price {
    font-size: var(--h2-font-size);
    font-weight: var(--font-extra-bold);
    color: var(--primary-color);
}

/* Responsive Design */
@media screen and (max-width: 968px) {
    .service-hero__stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-hero__title {
        font-size: var(--bigger-font-size);
    }

    .service-hero__description {
        font-size: var(--normal-font-size);
    }

    .package__header,
    .package__features,
    .package__pricing,
    .package__order {
        padding: 1.5rem;
    }

    .why-choose__container {
        grid-template-columns: 1fr;
    }

    .service-nav__container {
        gap: 1rem;
    }

    .service-nav__link {
        padding: 0.5rem 1rem;
        font-size: var(--small-font-size);
    }

    .form__row {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .service-hero {
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 2rem;
    }

    .service-hero__icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .service-hero__title {
        font-size: var(--h1-font-size);
    }

    .services__container {
        gap: 2rem;
    }

    .service__package,
    .package__header,
    .package__features,
    .package__pricing,
    .package__order {
        padding: 1rem;
    }

    .faq__question {
        padding: 1rem;
    }

    .faq__question h3 {
        font-size: var(--normal-font-size);
    }

    .faq__item.active .faq__answer {
        padding: 0 1rem 1rem;
    }

    .order-modal__content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .order-modal__header,
    .order-modal__body,
    .order-modal__footer {
        padding: 1rem;
    }

    .order-modal__footer {
        flex-direction: column;
    }
}

/* Enhanced Responsive Design */
@media screen and (max-width: 1200px) {
    .services__container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

@media screen and (max-width: 768px) {
    .services__container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .service__package {
        margin-bottom: 1rem;
    }
    
    .service-hero__icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .service-hero__title {
        font-size: 2rem;
    }
    
    .service-hero__stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .why-choose__container {
        grid-template-columns: 1fr;
    }
    
    .faq__container {
        padding: 0 1rem;
    }
}

@media screen and (max-width: 480px) {
    .services-grid {
        padding: 3rem 0;
    }
    
    .service-hero {
        padding: 6rem 0 3rem;
    }
    
    .service__package {
        border-radius: 1rem;
    }
    
    .package__header {
        padding: 1.5rem;
    }
    
    .pricing__options {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .pricing__option {
        padding: 1rem;
    }
    
    .order__form {
        padding: 1.5rem;
    }
}

/* Container Width Fix */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Prevent horizontal scroll */
.services-grid,
.service-hero,
.why-choose,
.faq,
.cta {
    width: 100%;
    overflow-x: hidden;
}

/* Print Styles */
@media print {
    .service-hero,
    .nav,
    .footer,
    .cta,
    .order__btn,
    .order-modal {
        display: none !important;
    }

    .service__package {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body {
        background: white !important;
        color: black !important;
    }
}