/* Global Mobile Overflow Prevention */
html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Online Store Packages Page Styles */

/* Hero Section Enhancements */
.hero {
    min-height: 80vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 70vh;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 80%;
    right: 30%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Introduction Section */
.intro-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.intro-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.intro-lead {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.intro-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.intro-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.intro-mockups {
    position: relative;
    height: 400px;
}

.mockup-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.mockup {
    position: absolute;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.mockup-1 {
    width: 200px;
    height: 250px;
    top: 50px;
    left: 20px;
    transform: rotate(-5deg);
    z-index: 1;
}

.mockup-2.featured {
    width: 250px;
    height: 300px;
    top: 0;
    left: 150px;
    z-index: 3;
    border: 3px solid #667eea;
}

.mockup-3 {
    width: 180px;
    height: 220px;
    top: 100px;
    right: 20px;
    transform: rotate(5deg);
    z-index: 2;
}

.mockup:hover {
    transform: scale(1.05) rotate(0deg);
}

.mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Package Badge Styles */
.package-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 0 10px 10px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 10;
}

.package-badge.premium {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

/* Importance Section */
.importance-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /* color: white; */
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.benefit-number {
    position: absolute;
    top: -15px;
    right: 20px;
    background: white;
    color: #667eea;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-top: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.cta-importance {
    text-align: center;
    margin-top: 3rem;
}

.cta-importance h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Enhanced Why Choose Us Section */
.content-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-subtitle {
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.content-side h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.image-side img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
}

/* Final CTA Section */
.final-cta {
    padding: 3rem 0;
    background: #667eea;
    color: white;
    text-align: center;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Contact Icons */
/* .contact-icons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
} */

/* .contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.contact-icon:hover {
    transform: scale(1.1);
    animation: none;
}

.email-icon {
    background: #667eea;
}

.whatsapp-icon {
    background: #25d366;
}

.phone-icon {
    background: #34495e;
}

.contact-icon a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
} */

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* Animated Contact Icons */
/* .float-icon {
    position: relative;
    overflow: hidden;
}

.line-anm {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.line-anm1 {
    width: 2px;
    height: 100%;
    top: 0;
    left: 10px;
    animation: move1 2s infinite;
}

.line-anm2 {
    width: 100%;
    height: 2px;
    top: 10px;
    left: 0;
    animation: move2 2s infinite;
}

.line-anm3 {
    width: 2px;
    height: 100%;
    top: 0;
    right: 10px;
    animation: move3 2s infinite;
} */
/* 
@keyframes move1 {

    0%,
    100% {
        transform: translateY(-100%);
    }

    50% {
        transform: translateY(100%);
    }
}

@keyframes move2 {

    0%,
    100% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }
}

@keyframes move3 {

    0%,
    100% {
        transform: translateY(100%);
    }

    50% {
        transform: translateY(-100%);
    }
}

.social-media-float {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.whatsapp-float {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.phone-float {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
} */

/* .contact-icons .contact-icon {
    animation: bounce 2s infinite;
}

.contact-icons .contact-icon:nth-child(2) {
    animation-delay: 0.3s;
}

.contact-icons .contact-icon:nth-child(3) {
    animation-delay: 0.6s;
} */

/* @keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
} */

/* .contact-icons .contact-icon:hover {
    animation: none;
    transform: scale(1.1);
} */

/* Online Store Packages Page Styles */

/* Package Category Styles */
.package-category {
    margin-bottom: 4rem;
    border-radius: 12px;
    background: var(--card-bg, #ffffff);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.category-header h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-features {
    margin-top: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
}

.feature-list li i {
    color: #ffd700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.package-card {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.package-card:hover::before {
    transform: scaleX(1);
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color, #667eea);
}

.package-card.featured {
    border-color: var(--accent-color, #ffd700);
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.package-card.featured::before {
    background: linear-gradient(90deg, #ffd700, #ffed4a);
    transform: scaleX(1);
}

.package-card.featured .package-header::after {
    content: 'Recommended';
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: #ffd700;
    color: #333;
    padding: 0.25rem 3rem;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
    text-transform: uppercase;
}

.package-header {
    position: relative;
    margin-bottom: 1.5rem;
}

.package-header h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color, #333);
    margin-bottom: 0.5rem;
}

.package-features {
    margin-bottom: 2rem;
}

.package-features p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color, #666);
    margin: 0;
}

.package-action {
    text-align: center;
}

.package-action .btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* Why Choose Us Section */
.why-choose-us {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.why-choose-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/grid-pattern.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.why-choose-us .container {
    position: relative;
    z-index: 2;
}

.features-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.features-image img:hover {
    transform: scale(1.05);
}

/* Custom Ideas Section */
.custom-ideas {
    background: var(--dark-bg, #1a1a2e);
    color: var(--light-text, #ffffff);
    text-align: center;
}

.custom-ideas .section-title h2 {
    color: var(--light-text, #ffffff);
}

.custom-ideas .section-title p {
    color: rgba(255, 255, 255, 0.9);
}

/* Packages Wrapper */
.packages-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Importance Section Styles */
.importance-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.importance-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/grid-pattern.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.importance-section .container {
    position: relative;
    z-index: 2;
}

.importance-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.importance-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 1;
    /* Default visible state */
    transform: none;
    /* Default position */
}

.importance-item.animate-on-scroll {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.importance-item.animate-on-scroll.animated {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.importance-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.importance-item:hover::before {
    transform: translateX(0);
}

.importance-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.importance-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 1.5rem;
    flex-shrink: 0;
    position: relative;
}

.importance-number::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.3;
    transform: scale(1.3);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1.3);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.1;
    }

    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

.importance-content h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.5;
}

.importance-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.importance-cta h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Permanently visible state for importance items */
.importance-item.permanently-visible {
    opacity: 1 !important;
    transform: translateX(0) translateY(0) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.importance-item.permanently-visible:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Arabic RTL Adjustments */
[dir="rtl"] .importance-item {
    direction: rtl;
}

[dir="rtl"] .importance-number {
    margin-right: 0;
    margin-left: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Prevent horizontal overflow */
    * {
        box-sizing: border-box;
    }

    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        margin: 0 auto;
        overflow-x: hidden;
    }

    /* Hero Section Mobile */
    .hero {
        min-height: 60vh;
        padding: 2rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-text h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    /* Introduction Section Mobile */
    .intro-section {
        padding: 3rem 0;
    }

    .intro-section .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .intro-text h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .intro-mockups {
        height: 300px;
        margin-top: 2rem;
    }

    .mockup-container {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .mockup {
        border-radius: 10px;
    }

    .mockup-1 {
        width: 120px;
        height: 150px;
        top: 50px;
        left: 10px;
        transform: rotate(-3deg);
    }

    .mockup-2.featured {
        width: 150px;
        height: 180px;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 3;
    }

    .mockup-3 {
        width: 100px;
        height: 120px;
        top: 80px;
        right: 10px;
        transform: rotate(3deg);
    }

    /* Packages Grid Mobile */
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .package-card {
        padding: 1.5rem;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .package-card.featured {
        transform: none;
        margin: 0;
    }

    /* Category Header Mobile */
    .category-header {
        padding: 1.5rem 1rem;
    }

    .category-header h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .feature-list {
        gap: 0.75rem;
    }

    .feature-list li {
        font-size: 1rem;
    }

    /* Package Badge Mobile */
    .package-badge {
        right: 10px;
        top: -8px;
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Button Mobile */
    .package-action .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    /* Why Choose Us Mobile */
    .why-choose-us .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-side h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Importance Section Mobile */
    .importance-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .importance-number {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    [dir="rtl"] .importance-number {
        margin-left: 0;
        margin-bottom: 1rem;
    }

    .importance-content h3 {
        font-size: 1rem;
        line-height: 1.4;
    }

    .importance-cta {
        padding: 1.5rem;
    }

    .importance-cta h3 {
        font-size: 1.2rem;
    }

    /* Custom Ideas Mobile */
    .custom-ideas .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .text-content h3 {
        font-size: 1.4rem;
    }

    /* Final CTA Mobile */
    .final-cta {
        padding: 2rem 0;
    }

    .cta-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .cta-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Features Section Mobile */
    .features-section .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-item {
        text-align: center;
        padding: 1.5rem;
    }

    .feature-icon {
        margin-bottom: 1rem;
    }

    .feature-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .feature-item p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Process Section Mobile */
    .process-timeline {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .process-step {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        background: white;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .step-number {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .step-content p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin: 0;
    }

    /* FAQ Section Mobile */
    .faq-container {
        width: 100%;
    }

    .faq-item {
        margin-bottom: 1rem;
    }

    .faq-question h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .faq-answer p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Fix floating shapes on mobile */
    .floating-shapes {
        display: none;
    }

    /* Hide contact icons on very small screens */
    .contact-icons {
        display: none;
    }

    /* Section padding adjustments */
    .section {
        padding: 2rem 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .section-title p {
        font-size: 1rem;
        line-height: 1.5;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        word-break: break-word;
    }

    .hero-text h2 {
        font-size: 1.1rem;
        word-break: break-word;
    }

    .package-card {
        padding: 1rem;
    }

    .category-header {
        padding: 1rem;
    }

    .category-header h3 {
        font-size: 1.3rem;
        word-break: break-word;
    }

    .importance-content h3 {
        font-size: 0.95rem;
        word-break: break-word;
    }

    .cta-content h2 {
        font-size: 1.5rem;
        word-break: break-word;
    }
}

/* Dark Mode Support */
.dark .package-category {
    background: var(--dark-card-bg, #2d2d3a);
}

.dark .package-card {
    background: var(--dark-card-bg, #2d2d3a);
    border-color: var(--dark-border, #404040);
}

.dark .package-header h4 {
    color: var(--dark-primary-color, #8892b0);
}

.dark .package-features p {
    color: var(--dark-text-color, #a8b2d1);
}

.dark .feature-list li {
    color: var(--dark-text-color, #a8b2d1);
}

/* Arabic RTL Support */
.ar .package-card.featured .package-header::after {
    right: auto;
    left: -2rem;
    transform: rotate(-45deg);
}

.ar .feature-list li {
    flex-direction: row-reverse;
}

.ar .feature-list li i {
    margin-left: 0.75rem;
    margin-right: 0;
}

/* Animation Enhancements */
.package-card {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

.package-card:nth-child(1) {
    animation-delay: 0.1s;
}

.package-card:nth-child(2) {
    animation-delay: 0.2s;
}

.package-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.package-card:hover .package-header h4 {
    color: var(--primary-color, #667eea);
}

.package-card:hover .package-action .btn {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Accessibility Improvements */
.package-card:focus-within {
    outline: 2px solid var(--focus-color, #667eea);
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid var(--focus-color, #667eea);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .package-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }

    .packages-grid {
        display: block;
    }

    .package-card.featured {
        transform: none;
    }
}

/* Fix for importance section animation stability */
.importance-item.importance-visible {
    opacity: 1 !important;
    transform: translateX(0) translateY(0) !important;
    animation: none !important;
}

.importance-item.animate-visible {
    opacity: 1 !important;
    transform: translateX(0) translateY(0) !important;
}

/* Prevent animation conflicts */
.importance-item.animate-on-scroll.animated {
    transform: translateX(0) translateY(0) !important;
    opacity: 1 !important;
}

/* Enhanced stability for visible items */
.importance-item:not(.animate-on-scroll) {
    opacity: 1;
    transform: none;
}

/* Ensure importance items stay visible once animated */
.importance-section .importance-item.animated,
.importance-section .importance-item.animate-visible,
.importance-section .importance-item.importance-visible {
    opacity: 1 !important;
    transform: translateX(0) translateY(0) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.importance-section .importance-item.animated:hover,
.importance-section .importance-item.animate-visible:hover,
.importance-section .importance-item.importance-visible:hover {
    transform: translateY(-5px) !important;
}