/* Basic Setup */
:root {
    --primary: #FF8F5D;
    /* Soft Salmon/Orange */
    --primary-dark: #E66A35;
    --secondary: #4DD0E1;
    /* Soft Cyan */
    --accent: #FFD54F;
    /* Sunny Yellow */
    --bg-cream: #FFF9C4;
    --bg-white: #FFFFFF;
    --text-dark: #37474F;
    --text-light: #78909C;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-pop: 0 15px 35px rgba(255, 143, 93, 0.25);
    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --gradient-hero: linear-gradient(-45deg, #FFFDE7, #ffffff, #E1F5FE, #FFF3E0);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-dark);
    background-color: #FAFAFA;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.btn-xl,
.logo {
    font-family: 'Baloo Bhaijaan 2', cursive;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid #F0F0F0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
    /* Ensure RTL layout for navbar */
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary);
}

.logo i {
    color: var(--secondary);
    font-size: 32px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding-top: 140px;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.float-icon {
    position: absolute;
    color: rgba(0, 0, 0, 0.05);
    font-size: 4rem;
    animation: floatingIcons 6s ease-in-out infinite;
}

.fi-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    color: rgba(255, 143, 93, 0.1);
}

.fi-2 {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
    color: rgba(77, 208, 225, 0.1);
}

.fi-3 {
    top: 30%;
    right: 20%;
    animation-delay: 4s;
    font-size: 3rem;
}

.fi-4 {
    bottom: 20%;
    left: 20%;
    animation-delay: 1s;
    font-size: 5rem;
}

@keyframes floatingIcons {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.hero-content {
    display: flex;
    align-items: center;
    padding-bottom: 80px;
}

.text-col {
    flex: 1;
    z-index: 2;
}

.image-col {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

h1 {
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.highlight {
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background: rgba(77, 208, 225, 0.2);
    z-index: -1;
    border-radius: 10px;
    transform: rotate(-2deg);
}

.hero-desc {
    font-size: 20px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
}

.badge {
    background: #FFF3E0;
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
    display: inline-block;
}

.cta-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-xl {
    background: var(--primary);
    color: white;
    padding: 15px 40px;
    border-radius: 20px;
    font-size: 24px;
    font-weight: 700;
    border-bottom: 6px solid #D84315;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    box-shadow: var(--shadow-pop);
}

.btn-mac {
    background: #263238;
    border-bottom: 6px solid #1a2327;
}

.btn-mac:hover {
    background: #37474F;
    transform: translateY(-2px);
}

.btn-xl small {
    font-size: 14px;
    font-family: 'Tajawal', sans-serif;
    opacity: 0.9;
    margin-top: 5px;
    font-weight: 400;
}

.btn-xl:active {
    transform: translateY(4px);
    border-bottom-width: 2px;
}

.btn-secondary {
    color: var(--text-light);
    font-weight: 600;
    font-size: 18px;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 3px;
}

/* Mockup Animation */
.mockup-screen {
    width: 400px;
    height: 300px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 8px solid var(--text-dark);
    position: relative;
    z-index: 2;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
    display: flex;
    flex-direction: column;
}

.screen-header {
    background: #ECEFF1;
    padding: 10px;
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #eee;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}

.red {
    background: #FF5252;
}

.yellow {
    background: #FFD740;
}

.green {
    background: #69F0AE;
}

.screen-body {
    flex: 1;
    display: flex;
}

.app-sidebar {
    width: 50px;
    background: #263238;
}

.app-canvas {
    flex: 1;
    background-image: radial-gradient(#CFD8DC 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

.sticker {
    background: #FFD54F;
    padding: 5px 15px;
    border-radius: 10px;
    font-weight: bold;
    transform: rotate(-10deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Baloo Bhaijaan 2';
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(2deg);
    }

    50% {
        transform: translateY(-20px) rotate(-2deg);
    }

    100% {
        transform: translateY(0px) rotate(2deg);
    }
}

.blob {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 1;
    opacity: 0.6;
}

.blob-1 {
    background: #B2EBF2;
    top: -50px;
    right: -50px;
    animation: morph 8s ease-in-out infinite alternate;
}

.blob-2 {
    background: #FFE0B2;
    bottom: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    animation: morph 10s ease-in-out infinite alternate-reverse;
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.wave-bottom {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    text-align: center;
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.section-title p {
    font-size: 20px;
    color: var(--text-light);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--secondary);
    transform: translateY(-10px);
}

.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
}

.icon-wifi {
    background: #FFEBEE;
    color: #EF9A9A;
}

.icon-time {
    background: #E0F7FA;
    color: #4DD0E1;
}

.icon-fun {
    background: #FFF8E1;
    color: #FFD54F;
}

h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* Features List */
.features-list {
    padding: 80px 0;
    background: #F0F4F8;
    position: relative;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feat-text {
    flex: 1;
    text-align: right;
    /* Explicitly align text to right */
}

.feat-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.4;
    color: var(--text-dark);
}

.feat-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 30px;
}

.check-list {
    list-style: none;
}

.check-list li {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    justify-content: flex-start;
    /* Ensure start alignment for RTL */
}

.check-list i {
    width: 25px;
    height: 25px;
    background: #C8E6C9;
    color: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.feat-img {
    flex: 1;
}

.img-placeholder {
    width: 100%;
    height: 350px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 20px;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Baloo Bhaijaan 2';
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.img-placeholder:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Abstract Background Shapes */
.img-placeholder::before,
.img-placeholder::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

.img-placeholder::before {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.3);
    top: -50px;
    right: -50px;
}

.img-placeholder::after {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.2);
    bottom: -30px;
    left: -30px;
}

/* Icon Container */
.img-placeholder i {
    z-index: 2;
    /* Increased z-index */
    background: rgba(255, 255, 255, 0.25);
    width: 100px;
    height: 100px;
    display: grid;
    /* More robust centering */
    place-items: center;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-size: 48px;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    /* Make it pop */
}

.img-placeholder span {
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bg-pink {
    background: linear-gradient(135deg, #F48FB1, #F06292);
}

.bg-blue {
    background: linear-gradient(135deg, #64B5F6, #42A5F5);
}

.bg-purple {
    background: linear-gradient(135deg, #BA68C8, #9C27B0);
}

/* Stats Counter */
.stats-section {
    padding: 60px 0;
    background: white;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Baloo Bhaijaan 2';
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-light);
    font-size: 18px;
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: #F9FAFB;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: var(--transition-base);
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
}

.faq-answer {
    margin-top: 15px;
    color: var(--text-light);
    line-height: 1.6;
    display: none;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.faq-item.active .faq-answer {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.faq-icon {
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reviews */
.reviews {
    padding: 80px 0;
    text-align: center;
}

/* Reviews Carousel */
.review-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
    /* Space for arrows */
}

.review-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 30px;
    /* Hide scrollbar spacing if any */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    justify-content: flex-start;
    flex-wrap: nowrap !important;
    /* Force single row */
}

.review-grid::-webkit-scrollbar {
    display: none;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    min-width: 300px;
    /* Fixed width for slider cards */
    scroll-snap-align: center;
    border: 1px solid #eee;
}

.stars {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 18px;
}

.review-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-style: italic;
}

.review-card h5 {
    color: var(--text-light);
    font-weight: 700;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    color: var(--primary);
    font-size: 18px;
    transition: all 0.2;
}

.slider-btn:hover {
    background: var(--primary);
    color: white;
}

.prev-btn {
    right: -10px;
}

.next-btn {
    left: -10px;
}

/* CTA Footer */
.cta-footer {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), #FF7043);
    color: white;
}

.cta-footer h2 {
    font-size: 42px;
    margin-bottom: 15px;
    color: white;
}

.cta-footer p {
    font-size: 20px;
    opacity: 0.95;
    color: white;
}

.cta-footer .btn-xl {
    color: var(--primary-dark);
    border-bottom-color: #e0e0e0;
}

.cta-footer .btn-xl.white:hover {
    transform: translateY(-5px);
}

.cta-footer .btn-xl.white {
    background: white;
}

.cta-footer .os-note {
    font-size: 14px;
    margin-top: 15px;
    opacity: 0.8;
}

/* Footer */
footer {
    background: #263238;
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer p {
    opacity: 0.7;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .text-col {
        order: 1;
        margin-bottom: 50px;
    }

    .image-col {
        order: 2;
        width: 100%;
    }

    .cta-group {
        justify-content: center;
        flex-direction: column;
    }

    .mockup-screen {
        width: 100%;
        max-width: 400px;
        height: 250px;
    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
    }

    .feat-text {
        text-align: center;
    }

    .check-list li {
        justify-content: center;
    }
}

/* Utilities */
.shadow {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.bounce-hover:hover {
    animation: bounce 0.5s ease infinite alternate;
}

@keyframes bounce {
    from {
        transform: scale(1.05) translateY(0);
    }

    to {
        transform: scale(1.05) translateY(-5px);
    }
}