/* Global Styles & Variables */
:root {
    --primary-color: #e63946;
    /* Vibrant Red/Pink matching brand */
    --secondary-color: #f1faee;
    --accent-color: #457b9d;
    --dark-color: #1d3557;
    --text-color: #333;
    --light-text: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --gradient-main: linear-gradient(135deg, #e63946 0%, #d62828 100%);
    --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(230, 57, 70, 0.2);
    --radius: 12px;
    --font-main: 'Cairo', sans-serif;
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
body.dark-mode {
    --secondary-color: #1a1a1a;
    --dark-color: #f1faee;
    /* This becomes light for text */
    --text-color: #e0e0e0;
    --light-text: #b0b0b0;
    --bg-light: #121212;
    --white: #1e1e1e;
    /* Card background becomes dark */
    --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 40px rgba(230, 57, 70, 0.4);
}

/* Dark Mode Text Overrides */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode strong {
    color: #ffffff !important;
}

body.dark-mode p,
body.dark-mode span,
body.dark-mode li,
body.dark-mode small,
body.dark-mode .feedback,
body.dark-mode .client-info span {
    color: #dddddd !important;
}

body.dark-mode .subtitle {
    color: var(--primary-color) !important;
}

body.dark-mode .logo .highlight {
    color: var(--primary-color) !important;
}

/* Dark Mode Component Overrides */
body.dark-mode .navbar {
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode .nav-links li a {
    color: #ffffff;
}

body.dark-mode .hero-bg-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 20, 0.8) 100%);
}

body.dark-mode .store-btn {
    background: #ffffff;
    color: #000000;
}

body.dark-mode .store-btn:hover {
    background: #e0e0e0;
}

body.dark-mode .store-btn span {
    color: #555555 !important;
}

body.dark-mode .store-btn strong {
    color: #000000 !important;
}

body.dark-mode .about-section,
body.dark-mode .contact-section {
    background-color: #121212;
}

body.dark-mode .value-card,
body.dark-mode .vision-card,
body.dark-mode .whatsapp-btn,
body.dark-mode .testimonial-card {
    border: 1px solid #333;
    background-color: var(--white);
    /* Dark card bg */
}

body.dark-mode .value-card h3,
body.dark-mode .testimonial-card strong {
    color: #ffffff !important;
}

body.dark-mode .footer {
    background: #050505;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-color);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-main);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-main);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark-color);
}

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

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

.nav-links li a {
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.lang-switch {
    border: 1px solid var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    color: var(--primary-color) !important;
}

.lang-switch:hover {
    background: var(--primary-color);
    color: var(--white) !important;
}

.theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--dark-color);
    padding: 5px;
    transition: var(--transition);
}

.theme-btn:hover {
    color: var(--primary-color);
    transform: rotate(15deg);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1549419148-73236eb53c15?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    /* This image is a placeholder, feel free to replace with brand asset */
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    /* Light overlay for readability */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--dark-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 10px;
    transition: var(--transition);
    min-width: 180px;
}

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

.store-btn div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-btn span {
    font-size: 0.8rem;
    opacity: 0.8;
}

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

.store-btn:hover {
    transform: translateY(-5px);
    background: #000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}

.hero-shape svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.shape-fill {
    fill: #FFFFFF;
}

/* Sections General */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header .subtitle {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header .line {
    width: 60px;
    height: 4px;
    background: var(--gradient-main);
    margin: 0 auto;
    border-radius: 2px;
}

/* Vision Section */
.vision-section {
    background-color: var(--white);
    text-align: center;
}

.vision-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.vision-card .icon-box {
    width: 70px;
    height: 70px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-main);
    color: var(--primary-color);
    font-size: 1.8rem;
}

.vision-card p {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.8;
}

/* About Section */
.about-section {
    background-color: #fcfcfc;
}

.about-section .row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.col-half {
    flex: 1;
}

.about-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-main);
}

.content-col p {
    margin-bottom: 20px;
    color: var(--light-text);
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.value-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(230, 57, 70, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(230, 57, 70, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.value-card:hover .card-icon {
    background: var(--gradient-main);
    color: var(--white);
    transform: rotateY(360deg);
}

.value-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.value-card p {
    font-size: 0.95rem;
    color: var(--light-text);
}

/* WhatsApp / Contact */
.contact-section {
    background: #fafafa;
}

.whatsapp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #ebebeb;
}

.whatsapp-btn i {
    font-size: 1.8rem;
    color: #25D366;
    margin-left: 15px;
}

.whatsapp-btn span {
    font-weight: 700;
    color: var(--dark-color);
    margin-left: auto;
}

.whatsapp-btn small {
    color: var(--light-text);
    font-family: monospace;
    font-size: 1rem;
}

.whatsapp-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
    border-color: #25D366;
}

/* Testimonials */
.testimonials-section {
    overflow: hidden;
}

.testimonials-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 350px;
    position: relative;
    border-top: 5px solid var(--primary-color);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    color: rgba(0, 0, 0, 0.05);
}

.feedback {
    font-style: italic;
    color: var(--light-text);
    margin-bottom: 25px;
    min-height: 80px;
}

.client-info strong {
    display: block;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.client-info span {
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: #ffffff;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: #ffffff;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

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

.footer-col ul li a {
    color: #ccc;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: rotate(360deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #888;
}

/* Animations Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.nav-active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-section .row {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}