/* Packages Page Styles */
.packages-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
}

.packages-container::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: float 6s ease-in-out infinite;
}

.packages-container::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

.packages-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

.packages-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.packages-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.package-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.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; }

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.package-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.package-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    width: fit-content;
    letter-spacing: 1px;
}

.package-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.package-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
    flex-grow: 1;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 30px 0;
}

.package-features li {
    padding: 12px 0;
    color: #555;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.package-features li::before {
    content: '✓';
    color: #667eea;
    font-weight: bold;
    margin-right: 12px;
    font-size: 1.2rem;
}

.package-cta {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-top: auto;
}

.package-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.package-cta:active {
    transform: scale(0.98);
}

/* Dark Mode Styles */
[data-theme="dark"] .packages-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

[data-theme="dark"] .packages-container::before,
[data-theme="dark"] .packages-container::after {
    background: rgba(102, 126, 234, 0.1);
}

[data-theme="dark"] .packages-header h1 {
    color: #e0e0e0;
}

[data-theme="dark"] .packages-header p {
    color: rgba(224, 224, 224, 0.8);
}

[data-theme="dark"] .package-card {
    background: #1e1e2e;
    border: 1px solid #333;
}

[data-theme="dark"] .package-card:hover {
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .package-title {
    color: #e0e0e0;
}

[data-theme="dark"] .package-description {
    color: #aaa;
}

[data-theme="dark"] .package-features {
    border-top-color: #333;
    border-bottom-color: #333;
}

[data-theme="dark"] .package-features li {
    color: #bbb;
}

/* RTL Support */
[dir="rtl"] .package-features li {
    text-align: right;
}

[dir="rtl"] .package-features li::before {
    margin-right: 0;
    margin-left: 12px;
    order: 2;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .packages-header h1 {
        font-size: 2rem;
    }

    .packages-header p {
        font-size: 1rem;
    }

    .packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .package-card {
        padding: 30px 20px;
    }

    .packages-container {
        padding: 60px 20px;
    }
}

/* Fade In Down Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
