/* ==========================================================================
   Packages (Iraq-market pricing) + Video Reel showcase
   Sits between the hero and the portfolio section on index.php
   ========================================================================== */

#packages,
#reel {
    background-color: var(--bg-color);
}

.packages-subcopy {
    margin-top: 14px;
    max-width: 560px;
    font-size: 18px;
    color: var(--text-secondary);
}

/* ---- Scroll reveal (generic, reused by both sections) ---- */

.reveal-line {
    opacity: 0;
    transform: translate3d(0, 32px, 0) scale(0.96);
    filter: blur(14px);
}

.reveal-line.is-visible {
    animation: motion-line-in 880ms cubic-bezier(0.18, 0.64, 0.27, 0.99) forwards;
}

.reveal-line--1.is-visible { animation-delay: 0ms; }
.reveal-line--2.is-visible { animation-delay: 120ms; }
.reveal-line--3.is-visible { animation-delay: 240ms; }
.reveal-line--4.is-visible { animation-delay: 360ms; }
.reveal-line--5.is-visible { animation-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
    .reveal-line {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none !important;
    }
}

/* ---- Packages grid ---- */

.packages-header {
    margin-bottom: 60px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}

.package-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(247, 246, 245, 0.04);
    color: #f7f6f5;
    border: 1px solid rgba(247, 246, 245, 0.12);
    border-radius: 16px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: 44px 32px 36px;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    border-color: rgba(247, 246, 245, 0.22);
}

.package-card--featured {
    background: rgba(0, 0, 0, 0.25);
    border: 1.5px solid var(--accent-gold);
    transform: translateY(-16px);
    box-shadow: 0 0 60px rgba(181, 181, 169, 0.18), 0 30px 70px rgba(0, 0, 0, 0.4);
}

.package-card--featured:hover {
    transform: translateY(-22px);
}

.package-badge {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ink);
    background: var(--accent-gold);
    padding: 6px 12px;
    border-radius: 999px;
}

.package-index {
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.package-name {
    font-size: 32px;
    margin-top: 8px;
}

.package-tagline {
    margin-top: 6px;
    font-size: 15px;
    color: var(--text-secondary);
}

.package-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(247, 246, 245, 0.14);
}

.package-price-amount {
    font-size: 30px;
    font-weight: 600;
    background-image: linear-gradient(90deg, #ffffff 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.package-price-currency {
    font-size: 14px;
    letter-spacing: 1px;
    color: rgba(247, 246, 245, 0.6);
}

.package-price-note {
    font-size: 13px;
    color: rgba(247, 246, 245, 0.6);
    margin-left: auto;
}

.package-features {
    list-style: none;
    margin: 26px 0 32px;
    padding: 0;
    flex-grow: 1;
}

.package-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: rgba(247, 246, 245, 0.85);
    padding: 8px 0;
}

.package-features li i {
    color: var(--accent-gold);
    margin-top: 3px;
    font-size: 12px;
}

.package-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 999px;
    background: rgba(247, 246, 245, 0.05);
    border: 1px solid rgba(247, 246, 245, 0.15);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    color: #f7f6f5;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: gap 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.package-cta:hover {
    gap: 14px;
    opacity: 0.85;
    border-color: var(--accent-gold);
}

/* ---- Video reel grid ---- */

.reel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.reel-card {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    background: #1c1c1c;
    cursor: pointer;
}

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

.reel-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(180deg, rgba(73, 41, 71, 0.05) 0%, rgba(24, 12, 23, 0.65) 100%);
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.reel-card.is-playing .reel-card-overlay {
    opacity: 0;
}

.reel-card:hover .reel-card-overlay {
    opacity: 1;
}

.reel-card-play {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 246, 245, 0.9);
    color: var(--ink);
    font-size: 18px;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.reel-card:hover .reel-card-play {
    transform: scale(1.08);
}

.reel-card-title {
    color: #f7f6f5;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: absolute;
    bottom: 18px;
    left: 20px;
    right: 20px;
}

.reel-card-play {
    position: relative;
}

/* ---- Responsive ---- */

@media (max-width: 992px) {
    .packages-grid {
        grid-template-columns: 1fr;
    }

    .package-card--featured {
        transform: none;
    }

    .package-card--featured:hover {
        transform: translateY(-8px);
    }

    .reel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .reel-grid {
        grid-template-columns: 1fr;
    }
}
