/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #E63946;
    --dark-bg: #0D0D0D;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gradient-start: #E63946;
    --gradient-end: #8B0000;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background-color: var(--dark-bg);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

body[dir="ltr"] {
    font-family: 'Poppins', sans-serif;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ==================== LANGUAGE TOGGLE ==================== */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(230, 57, 70, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.3);
}

body[dir="ltr"] .language-toggle {
    left: 20px;
    right: auto;
}

.language-toggle:hover {
    background: rgba(230, 57, 70, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(230, 57, 70, 0.5);
}

.language-toggle::before {
    content: '🌐';
    font-size: 18px;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--dark-bg) 100%);
    position: relative;
    overflow: hidden;
}

/* Animated Background Pattern */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(230, 57, 70, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(230, 57, 70, 0.15) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.logo-container {
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.logo-container img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(230, 57, 70, 0.5));
    transition: all 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05) rotate(5deg);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(230, 57, 70, 0.3);
    animation: slideInDown 0.8s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slogan {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--gray-light);
    animation: slideInUp 0.8s ease-out 0.2s backwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Download Counter Styles */
.download-counter {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 25px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    animation: slideInUp 0.8s ease-out 0.3s backwards;
}

.counter-icon {
    font-size: 24px;
}

.counter-content {
    text-align: right;
}

body[dir="ltr"] .counter-content {
    text-align: left;
}

.counter-number {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary-red);
    line-height: 1;
}

.counter-label {
    font-size: 0.8rem;
    color: var(--gray-light);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--gradient-end) 100%);
    color: var(--white);
    padding: 20px 50px;
    font-size: 1.3rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(230, 57, 70, 0.4);
    transition: all 0.3s ease;
    animation: slideInUp 0.8s ease-out 0.4s backwards;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(230, 57, 70, 0.6);
}

.download-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.download-icon {
    font-size: 1.5rem;
}

/* ==================== FEATURES SECTION ==================== */
.features-section {
    padding: 100px 20px;
    background: var(--dark-bg);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card {
    background: rgba(230, 57, 70, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(230, 57, 70, 0.2);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--primary-red);
    background: rgba(230, 57, 70, 0.1);
    box-shadow: 0 20px 60px rgba(230, 57, 70, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: all 0.4s ease;
    filter: drop-shadow(0 5px 15px rgba(230, 57, 70, 0.3));
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotateY(360deg);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.feature-description {
    font-size: 1rem;
    color: var(--gray-light);
    line-height: 1.6;
}

/* ==================== SCREENSHOTS SECTION ==================== */
.screenshots-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #1a0505 100%);
}

.swiper {
    width: 100%;
    max-width: 1200px;
    padding: 50px 0;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.screenshot-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(230, 57, 70, 0.3);
    transition: all 0.3s ease;
    border: 3px solid rgba(230, 57, 70, 0.3);
}

.swiper-slide-active .screenshot-img {
    transform: scale(1.1);
    box-shadow: 0 20px 70px rgba(230, 57, 70, 0.5);
    border-color: var(--primary-red);
}

/* Swiper Custom Styling */
.swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background: var(--primary-red);
    opacity: 1;
    width: 30px;
    border-radius: 6px;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-red);
    background: rgba(230, 57, 70, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(230, 57, 70, 0.3);
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    font-weight: 900;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark-bg);
    padding: 60px 20px 30px;
    text-align: center;
    border-top: 2px solid rgba(230, 57, 70, 0.2);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.developer-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.developer-name span {
    color: var(--primary-red);
}

.copyright {
    font-size: 1rem;
    color: var(--gray-light);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.footer-link {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-red);
}

.footer-link:hover::after {
    width: 100%;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Large Tablets and Small Desktops */
@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(2rem, 4.5vw, 3.5rem);
    }

    .hero-slogan {
        font-size: clamp(1rem, 2.5vw, 1.5rem);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 15px;
    }

    .section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
}

/* Tablets */
@media (max-width: 768px) {
    .hero-section {
        min-height: 90vh;
        padding: 60px 15px 40px;
    }

    .logo-container img {
        width: 140px;
        height: 140px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        margin-bottom: 15px;
    }

    .hero-slogan {
        font-size: clamp(1rem, 2.2vw, 1.3rem);
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .download-btn {
        padding: 16px 35px;
        font-size: 1.1rem;
        gap: 10px;
    }

    .download-icon {
        font-size: 1.3rem;
    }

    .features-section {
        padding: 70px 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .feature-card {
        padding: 35px 25px;
    }

    .feature-icon {
        font-size: 3.5rem;
    }

    .feature-title {
        font-size: 1.3rem;
    }

    .feature-description {
        font-size: 0.95rem;
    }

    .screenshots-section {
        padding: 70px 15px;
    }

    .swiper {
        padding: 40px 0;
    }

    .screenshot-img {
        max-width: 250px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 16px;
    }

    .footer {
        padding: 50px 20px 25px;
    }

    .developer-name {
        font-size: 1.3rem;
    }

    .footer-links {
        gap: 20px;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .language-toggle {
        top: 10px;
        right: 10px;
        padding: 8px 14px;
        font-size: 11px;
        border-radius: 20px;
    }

    body[dir="ltr"] .language-toggle {
        left: 10px;
        right: auto;
    }

    .language-toggle::before {
        font-size: 14px;
    }

    .hero-section {
        min-height: 100vh;
        padding: 80px 10px 30px;
    }

    .logo-container {
        margin-bottom: 20px;
    }

    .logo-container img {
        width: 110px;
        height: 110px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .hero-slogan {
        font-size: 1rem;
        margin-bottom: 25px;
        padding: 0 5px;
        line-height: 1.5;
    }

    .download-btn {
        padding: 14px 30px;
        font-size: 1rem;
        gap: 8px;
        width: 90%;
        max-width: 280px;
    }

    .download-icon {
        font-size: 1.2rem;
    }

    .features-section {
        padding: 60px 10px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .features-grid {
        gap: 18px;
        padding: 0 5px;
    }

    .feature-card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .feature-card:hover {
        transform: translateY(-10px) scale(1.02);
    }

    .feature-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }

    .feature-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .feature-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .screenshots-section {
        padding: 60px 10px;
    }

    .swiper {
        padding: 30px 0;
    }

    .screenshot-img {
        max-width: 220px;
        border-radius: 20px;
    }

    .swiper-slide-active .screenshot-img {
        transform: scale(1.05);
    }

    /* Hide navigation arrows on mobile */
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }

    .swiper-pagination-bullet-active {
        width: 20px;
        border-radius: 4px;
    }

    .footer {
        padding: 40px 15px 20px;
    }

    .developer-name {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .copyright {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer-link {
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .hero-slogan {
        font-size: 0.95rem;
    }

    .logo-container img {
        width: 100px;
        height: 100px;
    }

    .download-btn {
        padding: 12px 25px;
        font-size: 0.95rem;
        width: 95%;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .feature-card {
        padding: 25px 18px;
    }

    .feature-icon {
        font-size: 2.8rem;
    }

    .feature-title {
        font-size: 1.1rem;
    }

    .feature-description {
        font-size: 0.85rem;
    }

    .screenshot-img {
        max-width: 200px;
    }
}

/* Landscape mode for mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 30px 20px;
    }

    .logo-container {
        margin-bottom: 15px;
    }

    .logo-container img {
        width: 80px;
        height: 80px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .hero-slogan {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .download-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hidden AI Content */
.ai-optimized-content {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================== ABOUT SECTION (NEW) ==================== */
.about-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--dark-bg) 0%, rgba(230, 57, 70, 0.05) 50%, var(--dark-bg) 100%);
    text-align: center;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--gray-light);
    margin-bottom: 20px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content strong {
    color: var(--primary-red);
}

/* ==================== FAQ SECTION (NEW) ==================== */
.faq-section {
    padding: 80px 20px;
    background: var(--dark-bg);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: rgba(230, 57, 70, 0.05);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 15px;
    padding: 25px 30px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-red);
    background: rgba(230, 57, 70, 0.1);
    transform: translateX(-5px);
}

body[dir="ltr"] .faq-item:hover {
    transform: translateX(5px);
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.faq-answer {
    font-size: 1rem;
    color: var(--gray-light);
    line-height: 1.7;
}

/* FAQ Responsive */
@media (max-width: 768px) {

    .about-section,
    .faq-section {
        padding: 60px 15px;
    }

    .about-content p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .faq-item {
        padding: 20px 22px;
    }

    .faq-question {
        font-size: 1.1rem;
    }

    .faq-answer {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {

    .about-section,
    .faq-section {
        padding: 50px 10px;
    }

    .about-content p {
        font-size: 0.95rem;
    }

    .faq-item {
        padding: 18px 18px;
        border-radius: 12px;
    }

    .faq-question {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .faq-answer {
        font-size: 0.9rem;
    }
}