/* --- Global Styles & Clean Reset --- */
:root {
    --primary-color: #5c63ff;
    --secondary-color: #0e1324;
    --surface-color: #12182b;
    --text-color: #f3f4ff;
    --muted-text: #8c92b5;
    --accent-color: #18f0c8;
    --card-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    --hover-shadow: 0 45px 80px rgba(0, 0, 0, 0.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Noto Sans Arabic', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: radial-gradient(circle at top, #15182d 0%, #090c16 55%, #05060b 100%);
}

body.rtl {
    direction: rtl;
    text-align: right;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(4, 5, 12, 0.85);
    backdrop-filter: blur(18px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--muted-text);
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s;
}

body.rtl nav a {
    margin-left: 0;
    margin-right: 25px;
}

nav a:hover {
    color: var(--text-color);
}

/* --- CTA Button Styling --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: transform 0.3s, opacity 0.3s;
}

.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.lang-toggle {
    display: flex;
    gap: 6px;
    margin-left: 20px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid transparent;
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s, border-color 0.3s;
}

.lang-btn.active {
    background: var(--accent-color);
    color: #03050c;
    border-color: rgba(255, 255, 255, 0.2);
}

body.rtl .lang-toggle {
    margin-left: 0;
    margin-right: 20px;
    flex-direction: row-reverse;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.cta-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}
.cta-btn.primary {
    background-color: var(--accent-color);
    color: #050711;
}

.cta-btn.primary:hover {
    background-color: #39ffd7;
    transform: translateY(-2px);
}

.cta-btn.ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.cta-btn.ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.app-showcase {
    padding: 10px 0 60px;
}

.app-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.app-grid::-webkit-scrollbar {
    height: 6px;
}

.app-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.app-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 18px 16px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    max-width: 150px;
    scroll-snap-align: start;
}

.app-card:last-child {
    margin-right: 10px;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: inset 0 4px 15px rgba(255,255,255,.08), 0 15px 30px rgba(0,0,0,.4);
}

.app-card p {
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
}

.app-icon.netflix { background: linear-gradient(135deg, #6b0000, #d90429); }
.app-icon.snapchat { background: linear-gradient(135deg, #f4e72d, #fcbc05); }
.app-icon.spotify { background: linear-gradient(135deg, #00c853, #1db954); }
.app-icon.anime { background: linear-gradient(135deg, #3d5afe, #536dfe); }
.app-icon.imdb { background: linear-gradient(135deg, #ffd633, #ff9800); }
.app-icon.minecraft { background: linear-gradient(135deg, #5d9b63, #3a5a40); }
.app-icon.fortnite { background: linear-gradient(135deg, #8e2de2, #4a00e0); }
.app-icon.originals { background: linear-gradient(135deg, #ff3d71, #ff6ea1); }
.app-icon.metadata { background: linear-gradient(135deg, #4dd0e1, #00acc1); }
.app-icon.viewcaller { background: linear-gradient(135deg, #4f8cff, #316bff); }

@media (min-width: 1200px) {
    .app-grid {
        justify-content: center;
    }
}

/* --- Testimonials Slider --- */
.testimonials {
    padding: 20px 0 90px;
}

.section-head {
    text-align: center;
    margin-bottom: 30px;
}

.section-head .eyebrow {
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
}

.section-head h3 {
    font-size: 34px;
    color: var(--text-color);
}

.testimonial-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.testimonial-slider::-webkit-scrollbar {
    height: 6px;
}

.testimonial-slider::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(24, 240, 200, 0.2);
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial-card .quote {
    color: var(--text-color);
    font-size: 16px;
}

.author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(24, 240, 200, 0.15);
    border: 1px solid rgba(24, 240, 200, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-color);
}

.author .name {
    color: var(--text-color);
    font-weight: 600;
}

.author small {
    color: var(--muted-text);
}

/* --- Hero Section & Layout --- */
.hero {
    padding: 80px 0;
    background: radial-gradient(circle at top right, rgba(21, 241, 196, 0.25), transparent 45%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.text-side {
    max-width: 500px;
}

.text-side h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.1;
    color: var(--text-color);
}

.text-side p {
    font-size: 18px;
    color: var(--muted-text);
}


/* --- Phone Mockup & Animation (The core request) --- */

/* Keyframes for the floating animation */
@keyframes float-animation {
    0% { transform: translateY(0) rotate(-4deg); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); }
    50% { transform: translateY(-15px) rotate(-4deg); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3); }
    100% { transform: translateY(0) rotate(-4deg); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); }
}

.phone-mockup-container {
    position: relative;
    padding: 20px; /* Space for the shadow */
}

.phone-mockup {
    width: 230px;
    height: 460px;
    background: linear-gradient(180deg, #050608, #15182d);
    border: 12px solid rgba(0, 0, 0, 0.8);
    border-radius: 44px;
    overflow: hidden;
    position: relative;
    animation: float-animation 5s ease-in-out infinite;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); 
}

.screen-content {
    background: linear-gradient(180deg, #121526, #1b2036 65%, #0b0f1a);
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #757da4;
}

.status-icons {
    display: flex;
    gap: 4px;
    align-items: center;
}

.status-icons .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #4a4f64;
}

.phone-hero {
    background: linear-gradient(135deg, rgba(92, 99, 255, 0.25), rgba(24, 240, 200, 0.25));
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.phone-hero h4 {
    font-size: 16px;
    color: #fdfdff;
}

.phone-hero p {
    font-size: 13px;
    color: #b3b9da;
}

.mini-cta {
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 20px;
    border: none;
    background-color: var(--accent-color);
    color: #06101f;
    font-size: 12px;
    cursor: pointer;
}

.app-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-row:last-child {
    border-bottom: none;
}

.app-name {
    font-size: 14px;
    font-weight: 600;
    color: #f5f6ff;
}

.app-meta {
    font-size: 12px;
    color: #8a90b8;
}

.mini-pill {
    border: none;
    padding: 6px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
}

/* --- Packages Section --- */
.packages-section {
    padding: 60px 0 100px;
    text-align: center;
    color: var(--text-color);
}

.packages-section h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.subtitle {
    font-size: 18px;
    color: var(--muted-text);
    margin-bottom: 40px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* --- Package Cards & Shadow Effect --- */
.package-card {
    background: var(--surface-color);
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--card-shadow); 
    position: relative;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.package-card.featured {
    background: linear-gradient(160deg, rgba(92, 99, 255, 0.35), rgba(14, 255, 209, 0.25));
    color: white;
    transform: scale(1.02);
    box-shadow: 0 25px 55px rgba(24, 240, 200, 0.35);
}

.package-card.featured h3,
.package-card.featured .price,
.package-card.featured ul {
    color: white;
}

.package-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.price {
    font-size: 18px;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.price span {
    font-size: 42px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.package-card.featured .price {
    color: #fff;
}

.package-card ul {
    list-style: none;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 30px;
}

.package-card.featured ul {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.package-card .badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(24, 240, 200, 0.9);
    color: #031b15;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(24, 240, 200, 0.3);
}

.package-card ul li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
    color: var(--muted-text);
}

.package-card ul li::before {
    content: '✓';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: 700;
}

body.rtl .package-card ul li {
    padding-left: 0;
    padding-right: 25px;
}

body.rtl .package-card ul li::before {
    left: auto;
    right: 0;
}

.package-card.featured ul li::before {
    color: #fff;
}

.package-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.subscribe-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.3s;
    border: none;
}

.subscribe-btn {
    background-color: var(--accent-color);
    color: #051019;
    max-width: 220px;
}

.package-card.featured .subscribe-btn {
    background-color: #fff;
    color: #121528;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* --- Footer --- */
footer {
    background-color: #05060c;
    color: #cdd3ff;
    margin-top: 60px;
    padding: 60px 0 30px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: start;
}

.footer-brand p {
    margin-bottom: 10px;
    color: #8e95bb;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #fff;
}

.footer-col a {
    display: block;
    color: #cfd3ff;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #fff;
}

.payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.payment-badges span {
    padding: 6px 12px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 12px;
}

.support-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.support-pill {
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.support-pill.telegram { background: linear-gradient(135deg, #2193b0, #6dd5ed); }
.support-pill.discord { background: linear-gradient(135deg, #00f2ea, #ff0050); }
.support-pill.whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    color: #cfd3ff;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

body.rtl .footer-links a {
    margin-left: 0;
    margin-right: 20px;
}

.cta-ribbon {
    position: fixed;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    background: rgba(5, 6, 13, 0.92);
    border: 1px solid rgba(24, 240, 200, 0.4);
    border-radius: 20px 20px 0 0;
    padding: 18px;
    box-shadow: 0 -15px 35px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: transform 0.4s ease, bottom 0.4s ease;
    z-index: 15;
}

.cta-ribbon.visible {
    bottom: 0;
}

.cta-ribbon p {
    color: var(--text-color);
    font-size: 14px;
    flex: 1;
}

.chat-btn {
    background: var(--accent-color);
    border: none;
    color: #05060c;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

.close-ribbon {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
}


/* --- Responsive Design Adjustments --- */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column-reverse; /* Put text above phone on small screens */
        text-align: center;
    }
    .text-side {
        max-width: 100%;
    }
    .text-side h1 {
        font-size: 36px;
    }
    .phone-mockup-container {
        margin-bottom: 40px;
    }
    .packages-grid {
        grid-template-columns: 1fr;
    }
    nav {
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: rgba(5, 6, 13, 0.95);
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .menu-open nav {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .menu-toggle {
        display: flex;
    }
    nav a {
        margin-left: 0;
    }
    .package-actions {
        flex-direction: column;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .cta-ribbon {
        max-width: 100%;
        width: calc(100% - 30px);
        left: 15px;
        transform: none;
    }
}
