:root {
    --bg: #000000;
    --card-bg: #050505;
    --text: #ffffff;
    --text-muted: #8892b0;
    --primary: #ff0000;
    --primary-hover: #cc0000;
    --glow: 0 0 20px rgba(255, 0, 0, 0.6);
}

/* Fix FontAwesome font-display to avoid render blocking */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2') format('woff2');
}
@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff2') format('woff2');
}
/* Fix Inter font-display */
@font-face {
    font-family: 'Inter';
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary);
    padding: 14px 35px;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid var(--primary);
    box-shadow: var(--glow);
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.btn-primary:hover {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.8);
    transform: translateY(-2px) scale(1.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 0, 0, 0.3);
    z-index: 100;
    padding: 20px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    position: relative;
    padding: 200px 0 150px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://images.unsplash.com/photo-1603584173870-7f23fdae1b7a?q=80&w=2069&auto=format&fit=crop') center/cover no-repeat;
    opacity: 0.35;
    z-index: -2;
    transition: transform 6s ease-out;
}
.hero:hover .hero-bg {
    transform: scale(1.05); /* حركة تكبير بطيئة وفخمة عند التأشير */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(9, 10, 15, 0.4), var(--bg));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 5px 30px rgba(255, 0, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.4rem;
    color: #e0e0e0;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Pricing Badge */
.price-badge {
    display: inline-block;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    padding: 10px 25px;
    margin-bottom: 20px;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    backdrop-filter: blur(5px);
}
.old-price {
    color: #8892b0;
    text-decoration: line-through;
    font-size: 1.5rem;
    margin-right: 15px;
    font-weight: 600;
}
.new-price {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 900;
    text-shadow: var(--glow);
    margin-right: 15px;
    vertical-align: middle;
}
.discount-tag {
    background: var(--primary);
    color: #fff;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    vertical-align: middle;
    display: inline-block;
}

/* Countdown Timer */
.countdown-container {
    margin-bottom: 25px;
    text-align: left;
}
.countdown-container p {
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 10px !important;
    text-transform: uppercase;
    font-size: 1rem !important;
    text-shadow: none !important;
}
.countdown {
    display: flex;
    align-items: center;
    gap: 10px;
}
.time-box {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 6px;
    text-align: center;
    min-width: 65px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}
.time-box span {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.time-box small {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 5px;
    font-weight: bold;
}
.time-separator {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    animation: blink 1s infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* Base Animations: Simple and safe */
.animate-up {
    animation: fadeInUp 1s ease forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stats */
.stats {
    padding: 60px 0;
    background-color: var(--card-bg);
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

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

.stat-card h3 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 900;
    text-shadow: var(--glow);
}

.stat-card p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* General Sections */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    color: #fff;
}
.section-title.text-left {
    text-align: left;
}

.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: #0a0000;
    box-shadow: var(--glow);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.card p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Benefits */
.benefits {
    padding: 100px 0;
    background: #06070a;
}

.benefits-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.check-list {
    list-style: none;
}

.check-list li {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #fff;
}

.check-list i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 4px;
}

.benefits-image img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Brands */
.brands {
    padding: 100px 0;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.brand {
    background: var(--card-bg);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    font-weight: 700;
    color: var(--text-muted);
    border: 1px solid #222;
    transition: all 0.3s;
}

.brand:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #000;
    padding: 60px 0;
    border-top: 1px solid #111;
}

.text-center {
    text-align: center;
}

footer h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff;
}
footer span {
    color: var(--primary);
}

footer p {
    color: var(--text-muted);
}

.copy {
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--card-bg);
    padding: 40px;
    border: 1px solid var(--primary);
    box-shadow: var(--glow);
    max-width: 500px;
    width: 90%;
    position: relative;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--primary);
}

.modal-content h2 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 2rem;
}

.step-box {
    display: flex;
    gap: 20px;
    background: #0a0000;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,0,0,0.2);
    align-items: center;
}

.step-num {
    background: var(--primary);
    color: #fff;
    min-width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.5rem;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.step-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #fff;
}

.step-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.modal-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-whatsapp {
    display: inline-block;
    background-color: #25D366;
    color: #fff;
    padding: 10px 20px;
    font-weight: 800;
    text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s;
    text-decoration: none;
}
.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
}

/* Mobile Navigation */
.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--text);
    cursor: pointer;
    margin-left: 15px;
}

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

.mobile-btn {
    display: none;
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .desktop-btn { display: none; }
    
    .nav-links {
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
        border-bottom: 1px solid rgba(255,0,0,0.2);
        text-align: center;
        z-index: 99;
    }
    
    .nav-links.active {
        max-height: 500px;
        padding: 20px 0;
    }

    .nav-links a {
        display: block;
        padding: 14px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .mobile-btn {
        display: inline-block;
        margin-top: 15px;
        width: 80%;
        text-align: center;
    }

    /* Hero Mobile */
    .hero { padding: 130px 0 80px; }
    .hero h1 { font-size: 2.4rem; letter-spacing: -1px; }
    .hero p { font-size: 1rem; }
    .price-badge { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 15px; }
    .new-price { font-size: 2rem; }
    .old-price { font-size: 1.2rem; }
    .discount-tag { font-size: 0.75rem; }
    .countdown { gap: 6px; }
    .time-box { min-width: 50px; padding: 8px 10px; }
    .time-box span { font-size: 1.4rem; }
    .hero-buttons { flex-direction: column !important; gap: 12px !important; }
    .hero-buttons a { width: 100%; text-align: center; justify-content: center; }
    
    /* General Sections Mobile */
    .services { padding: 60px 0; }
    .benefits { padding: 60px 0; }
    .brands { padding: 60px 0; }
    .testimonials { padding: 60px 0; }
    .faq-section { padding: 60px 0; }
    .section-title { font-size: 1.8rem; margin-bottom: 30px; }
    .section-title.text-left { text-align: center; }
    .section-title.text-right { text-align: center; }
    
    /* Benefits Mobile */
    .benefits-wrapper { grid-template-columns: 1fr; }
    .benefits-image { margin-top: 30px; }
    
    /* Cards Mobile */
    .services-grid { grid-template-columns: 1fr; }
    .card { clip-path: none; }
    
    /* Stats Mobile */
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-card h3 { font-size: 2.5rem; }
    
    /* Brands Mobile */
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Testimonials Mobile */
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonial-card { clip-path: none; }
    
    /* FAQ Mobile */
    .faq-question { padding: 16px 18px; }
    .faq-question span { font-size: 0.95rem; }
    .faq-item.active .faq-answer { padding: 0 18px 16px; }
    
    /* Modal Mobile */
    .modal-content { padding: 25px 20px; clip-path: none; }
    .step-box { flex-direction: column; gap: 10px; }
    
    /* Back to Top Mobile */
    #back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.9rem; }
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
    .price-badge { justify-content: center; text-align: center; }
    .countdown { justify-content: center; }
}

/* ===================== Scroll Progress Bar ===================== */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(to right, #ff0000, #ff6600);
    z-index: 9999;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    transition: width 0.1s linear;
}

/* ===================== Testimonials ===================== */
.testimonials {
    padding: 100px 0;
    background: var(--card-bg);
    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #000;
    padding: 35px 30px;
    border: 1px solid rgba(255,255,255,0.05);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
    transform: translateY(-8px);
}

.stars {
    color: #FFD700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.testimonial-card p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.reviewer {
    border-top: 1px solid #222;
    padding-top: 15px;
}

.reviewer strong {
    color: #fff;
    display: block;
    font-size: 1rem;
}

.reviewer span {
    color: var(--primary);
    font-size: 0.85rem;
}

/* ===================== FAQ Section ===================== */
.faq-section {
    padding: 100px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item.active {
    border-color: var(--primary);
}

.faq-question {
    padding: 22px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(255,0,0,0.05);
}

.faq-question span {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.4s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 25px 22px;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ===================== Back To Top ===================== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: #fff;
    border: none;
    width: 50px; height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--glow);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-3px);
}
