/* Premium Packages Page Enhancement */

/* Premium Packages Hero */
.pn-packages-hero--premium
{
    position: relative;
    background: linear-gradient(180deg, #0f172a 0%, #1a1f3a 40%, #fff5f0 85%, #ffffff 100%);
    overflow: hidden;
    min-height: 65vh;
    display: flex;
    align-items: center;
    padding-block: clamp(5rem, 12vh, 8rem);
    padding-inline: 0;
}

/* Tighten the gap between the hero and the interactive comparison UI */
body.page-packages .pn-packages-hero
{
    padding-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

body.page-packages #packages.pn-section
{
    padding-top: clamp(1.25rem, 3vh, 2rem);
}

.pn-packages-hero--premium::before
{
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(198, 58, 15, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 90% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 50% 100%, rgba(198, 58, 15, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: heroBgShift 12s ease-in-out infinite;
}

.pn-packages-hero--premium::after
{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.pn-packages-hero__decoration
{
    position: absolute;
    top: -100px;
    right: -150px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(198, 58, 15, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(80px);
    animation: floatDecoration 10s ease-in-out infinite;
    z-index: 0;
}

.pn-packages-hero__decoration::before
{
    content: '';
    position: absolute;
    bottom: -200px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(70px);
    animation: floatDecorationAlt 12s ease-in-out infinite;
}

@keyframes heroBgShift
{
    0%
    {
        filter: brightness(1) saturate(1);
    }

    50%
    {
        filter: brightness(1.02) saturate(1.05);
    }

    100%
    {
        filter: brightness(1) saturate(1);
    }
}

@keyframes floatDecoration
{

    0%,
    100%
    {
        transform: translate(0, 0) scale(1);
    }

    50%
    {
        transform: translate(-40px, -50px) scale(1.15);
    }
}

@keyframes floatDecorationAlt
{

    0%,
    100%
    {
        transform: translate(0, 0) scale(1);
    }

    50%
    {
        transform: translate(30px, 40px) scale(1.1);
    }
}

.pn-packages-hero__title
{
    background: linear-gradient(135deg, #ffffff 0%, #ffe4d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -0.03em;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.2;
    margin: var(--pn-stack-md) 0;
    animation: titleShimmer 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes titleShimmer
{

    0%,
    100%
    {
        text-shadow: 0 0 20px rgba(198, 58, 15, 0.3);
    }

    50%
    {
        text-shadow: 0 0 40px rgba(198, 58, 15, 0.5);
    }
}

.pn-pill--glow
{
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(198, 58, 15, 0.25),
        0 0 0 2px rgba(255, 255, 255, 0.5);
    animation: pillGlow 3s ease-in-out infinite;
    font-weight: 700;
    border-radius: 50px;
    padding: 10px 20px;
    position: relative;
    z-index: 2;
}

@keyframes pillGlow
{

    0%,
    100%
    {
        box-shadow: 0 8px 32px rgba(198, 58, 15, 0.25), 0 0 0 2px rgba(255, 255, 255, 0.5);
    }

    50%
    {
        box-shadow: 0 12px 48px rgba(198, 58, 15, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.8);
    }
}

.pn-packages-hero__header
{
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.pn-packages-hero__tagline
{
    font-size: clamp(1rem, 3vw, 1.3rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-top: var(--pn-stack-md);
    font-weight: 500;
    letter-spacing: 0.3px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp
{
    from
    {
        opacity: 0;
        transform: translateY(20px);
    }

    to
    {
        opacity: 1;
        transform: translateY(0);
    }
}

.pn-section-heading
{
    position: relative;
    z-index: 2;
}

/* Premium Category Tabs */
.pn-service-categories
{
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1100px;
    margin-inline: auto;
    margin-top: 0;
    margin-bottom: var(--pn-stack-lg);
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 28px;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.12),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 2;
    animation: slideInDown 0.7s ease-out 0.1s both;
}

@keyframes slideInDown
{
    from
    {
        opacity: 0;
        transform: translateY(-30px);
    }

    to
    {
        opacity: 1;
        transform: translateY(0);
    }
}

.pn-category-tab
{
    flex: 0 0 auto;
    width: auto;
    min-height: 0;
    padding: 0.85rem 1.35rem;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    box-sizing: border-box;
}

.pn-category-tab::before
{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--pn-accent) 0%, #ff8c3a 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.pn-category-tab:hover::before,
.pn-category-tab--active::before
{
    opacity: 0.15;
}

.pn-category-tab__icon
{
    font-size: 1.35rem;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.pn-category-tab__label
{
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
}

.pn-category-tab:hover
{
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(198, 58, 15, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: rgba(198, 58, 15, 0.2);
    background: rgba(255, 255, 255, 0.98);
}

.pn-category-tab:hover .pn-category-tab__icon
{
    transform: scale(1.2) rotate(8deg);
}

.pn-category-tab--active
{
    background: linear-gradient(135deg, var(--pn-accent) 0%, #ff8c3a 100%);
    color: white;
    border-color: var(--pn-accent);
    box-shadow: 0 12px 40px rgba(198, 58, 15, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 640px)
{
    .pn-category-tab
    {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.15rem;
        border-radius: 14px;
    }
}

.pn-category-tab--active::before
{
    opacity: 0;
}

.pn-category-tab--active .pn-category-tab__icon
{
    animation: iconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconBounce
{

    0%
    {
        transform: scale(1) rotate(0deg);
    }

    50%
    {
        transform: scale(1.25) rotate(-5deg);
    }

    100%
    {
        transform: scale(1.15) rotate(0deg);
    }
}

/* Pricing Card Enhancements */
.pn-pricing-card
{
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    padding: calc(var(--pn-card-padding) * 1.3);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: visible;
}

.pn-pricing-card:hover
{
    transform: translateY(-16px);
    box-shadow: 0 32px 80px rgba(198, 58, 15, 0.2);
    border-color: rgba(198, 58, 15, 0.2);
}

.pn-pricing-card--featured
{
    background: linear-gradient(135deg, rgba(198, 58, 15, 0.12) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 2px solid rgba(198, 58, 15, 0.4);
    transform: scale(1.08);
    box-shadow: 0 24px 80px rgba(198, 58, 15, 0.3);
    position: relative;
}

.pn-pricing-card--featured::after
{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(198, 58, 15, 0.05) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 28px;
}

.pn-pricing-card--featured:hover
{
    transform: scale(1.12) translateY(-16px);
    box-shadow: 0 40px 100px rgba(198, 58, 15, 0.35);
}

.pn-pricing-card__badge
{
    position: absolute;
    top: 16px;
    right: -40px;
    transform: rotate(45deg);
}

.pn-featured-badge
{
    background: linear-gradient(135deg, var(--pn-accent) 0%, #ff8c3a 100%);
    color: white;
    padding: var(--space-2) var(--space-7);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 6px 20px rgba(var(--pn-accent-rgb), 0.5);
    display: block;
    text-transform: uppercase;
}

.pn-pricing-card__name
{
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 900;
    margin-bottom: var(--pn-stack-xs);
    background: linear-gradient(135deg, #0f172a 0%, var(--pn-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.pn-price-amount
{
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 900;
    color: var(--pn-accent);
    display: block;
    letter-spacing: -0.02em;
}

.pn-pricing-card__delivery
{
    background: linear-gradient(135deg, rgba(198, 58, 15, 0.12) 0%, rgba(198, 58, 15, 0.05) 100%);
    border-left: 4px solid var(--pn-accent);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    margin: var(--pn-stack-md) 0;
    transition: all 0.3s ease;
}

.pn-pricing-card:hover .pn-pricing-card__delivery
{
    background: linear-gradient(135deg, rgba(198, 58, 15, 0.18) 0%, rgba(198, 58, 15, 0.08) 100%);
}

.pn-delivery-time
{
    font-weight: 700;
    color: var(--pn-accent);
    font-size: 1rem;
}

.pn-feature-category
{
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--pn-accent);
    margin: var(--pn-stack-sm) 0 var(--pn-stack-xs);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pn-feature-list li::before
{
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--pn-accent) 0%, #ff8c3a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(198, 58, 15, 0.25);
}

.pn-feature-list li
{
    position: relative;
    padding-left: calc(var(--space-5) + 0.25rem);
}

/* Mobile Plan Cards */
.pn-mobile-plan-card
{
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    padding: var(--pn-card-padding);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pn-mobile-plan-card.is-featured
{
    background: linear-gradient(135deg, rgba(198, 58, 15, 0.12) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 2px solid rgba(198, 58, 15, 0.3);
    box-shadow: 0 16px 48px rgba(198, 58, 15, 0.2);
}

.pn-mobile-plan-card:hover
{
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.pn-mobile-plan-card.is-featured:hover
{
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(198, 58, 15, 0.3);
    border-color: rgba(198, 58, 15, 0.4);
}

/* Button Enhancements */
.pn-btn,
button[class*="pn-"],
a[class*="btn"]
{
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.pn-btn::before,
button[class*="pn-"]::before,
a[class*="btn"]::before
{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.pn-btn:hover::before,
button[class*="pn-"]:hover::before,
a[class*="btn"]:hover::before
{
    opacity: 1;
}

.pn-btn:hover,
button[class*="pn-"]:hover,
a[class*="btn"]:hover
{
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(198, 58, 15, 0.25) !important;
}

.pn-btn:active,
button[class*="pn-"]:active,
a[class*="btn"]:active
{
    transform: translateY(0);
}

/* Comparison Table Enhancements */
.pn-comparison-table
{
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.pn-comparison-table tbody tr:hover
{
    background: rgba(198, 58, 15, 0.04);
}

/* Section spacing improvements */
.pn-section
{
    scroll-margin-top: clamp(4rem, 12vh, 6rem);
}

/* Responsive adjustments */
@media (max-width: 768px)
{
    .pn-packages-hero--premium
    {
        min-height: auto;
        padding-block: clamp(4.5rem, 12vh, 6.5rem);
        padding-inline: 0;
    }

    .pn-packages-hero__title
    {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .pn-packages-hero__tagline
    {
        font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    }

    .pn-pricing-card--featured
    {
        transform: scale(1.04);
    }

    .pn-pricing-card--featured:hover
    {
        transform: scale(1.06) translateY(-12px);
    }

    .pn-category-tab
    {
        padding: 0.75rem 1.4rem;
        font-size: 0.9rem;
    }

    .pn-category-tab__icon
    {
        font-size: 1.2rem;
    }
}
