/* ===== Variables ===== */
:root {
    /* Light Theme Colors */
    --primary-color: #1e3a5f;
    --secondary-color: #3498db;
    --accent-color: #f39c12;
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --primary-color: #3498db;
    --secondary-color: #1e3a5f;
    --accent-color: #f39c12;
    --bg-color: #1a1a2e;
    --bg-secondary: #16213e;
    --text-color: #ffffff;
    --text-light: #b0b0b0;
    --border-color: #2a2a4a;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section {
    padding: var(--section-padding);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.nav__logo img {
    height: 50px;
    width: auto;
}

.nav__list {
    display: flex;
    gap: 40px;
}

.nav__link {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle,
.lang-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

.lang-toggle {
    border-radius: 20px;
    width: auto;
    padding: 0 15px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
}

.theme-toggle:hover,
.lang-toggle:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Logo visibility */
.logo-dark { display: none; }
.logo-light { display: block; }

[data-theme="dark"] .logo-dark { display: block; }
[data-theme="dark"] .logo-light { display: none; }

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

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

.hero__content {
    color: white;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero__description {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero__buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    font-family: 'Tajawal', sans-serif;
}

.btn--primary {
    background-color: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}

.btn--primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn--outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn--outline:hover {
    background-color: white;
    color: var(--primary-color);
}

.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__logo {
    max-width: 400px;
    height: auto;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    transition: var(--transition);
}

.hero__logo:hover {
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.3));
    transform: scale(1.02);
}

/* Hero logo visibility toggle */
.hero__image .logo-dark { display: none; }
.hero__image .logo-light { display: block; }

[data-theme="dark"] .hero__image .logo-dark { display: block; }
[data-theme="dark"] .hero__image .logo-light { display: none; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.hero__wave svg {
    display: block;
    width: 100%;
    height: 120px;
}

.hero__wave path {
    fill: var(--bg-color);
}

/* ===== Features Section ===== */
.features {
    padding: 60px 0;
    background-color: var(--bg-color);
    margin-top: -1px;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature__card {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--bg-secondary);
    border-radius: 20px;
    transition: var(--transition);
}

.feature__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature__icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature__icon i {
    font-size: 1.75rem;
    color: white;
}

.feature__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature__text {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== Section Header ===== */
.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__subtitle {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
}

/* ===== About Section ===== */
.about__content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
}

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

.stat {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    color: white;
}

.stat__number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat__label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== Services Section ===== */
.services {
    background-color: var(--bg-secondary);
}

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

.service__card {
    background-color: var(--bg-color);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.service__icon i {
    font-size: 2rem;
    color: white;
}

.service__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.service__text {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===== App Section ===== */
.app__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.app__text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.app__buttons {
    display: flex;
    gap: 20px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 12px;
    transition: var(--transition);
}

.store-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.store-btn i {
    font-size: 2rem;
}

.store-btn__text {
    text-align: left;
}

.store-btn__text span {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

.store-btn__text strong {
    font-size: 1.1rem;
}

.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 320px;
    margin: 0 auto;
}

.phone-mockup img {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
    transition: var(--transition);
}

.phone-mockup img:hover {
    transform: scale(1.03) translateY(-5px);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
}

.phone-mockup .logo-dark { display: none; }
.phone-mockup .logo-light { display: block; }

[data-theme="dark"] .phone-mockup .logo-dark { display: block; }
[data-theme="dark"] .phone-mockup .logo-light { display: none; }

/* ===== Contact Section ===== */
.contact {
    background-color: var(--bg-secondary);
}

.contact__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.contact__card {
    background-color: var(--bg-color);
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.contact__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact__icon i {
    font-size: 1.5rem;
    color: white;
}

.contact__card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact__card a,
.contact__card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact__card a:hover {
    color: var(--accent-color);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
}

[data-theme="dark"] .footer {
    background-color: #0f0f1a;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer__logo {
    height: 60px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer__brand p {
    opacity: 0.8;
    font-size: 1rem;
}

.footer__links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer__links h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

[dir="ltr"] .footer__links h4::after {
    right: auto;
    left: 0;
}

.footer__links ul li {
    margin-bottom: 12px;
}

.footer__links ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer__links ul li a:hover {
    opacity: 1;
    padding-right: 5px;
}

[dir="ltr"] .footer__links ul li a:hover {
    padding-right: 0;
    padding-left: 5px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.7;
}

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    animation: pulse 2s infinite;
}

[dir="ltr"] .whatsapp-float {
    left: auto;
    right: 30px;
}

.whatsapp-float i {
    font-size: 2rem;
    color: white;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

[dir="ltr"] .back-to-top {
    right: auto;
    left: 30px;
}

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

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__image {
        display: none;
    }

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

    .about__content {
        grid-template-columns: 1fr;
    }

    .about__stats {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .app__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .app__buttons {
        justify-content: center;
    }

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

    .footer__content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--bg-color);
        box-shadow: var(--shadow);
        padding: 80px 40px;
        transition: var(--transition);
    }

    [dir="ltr"] .nav__menu {
        right: auto;
        left: -100%;
    }

    .nav__menu.show-menu {
        right: 0;
    }

    [dir="ltr"] .nav__menu.show-menu {
        right: auto;
        left: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 30px;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
    }

    [dir="ltr"] .nav__close {
        right: auto;
        left: 25px;
    }

    .nav__toggle {
        display: block;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__description {
        font-size: 1rem;
    }

    .section__title {
        font-size: 2rem;
    }

    .features__grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .about__stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .app__buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact__grid {
        grid-template-columns: 1fr;
    }

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__links h4::after {
        right: 50%;
        transform: translateX(50%);
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.75rem;
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .stat__number {
        font-size: 2rem;
    }

    .store-btn {
        padding: 10px 20px;
    }
}

