:root {
            --primary-teal: #2cb7b9;
            --dark-teal: #1a5162;
            --accent-orange: #ff8c42;
            --light-bg: #f0f9f9;
            --white: #ffffff;
            --text-dark: #2d3436;
            --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Cairo', sans-serif; }
        body { background-color: var(--light-bg); color: var(--text-dark); overflow-x: hidden; scroll-behavior: smooth; }

        /* Custom Scrollbar */
        ::-webkit-scrollbar { width: 10px; }
        ::-webkit-scrollbar-track { background: #f1f1f1; }
        ::-webkit-scrollbar-thumb { background: var(--primary-teal); border-radius: 5px; }

        /* Header & Nav */
        nav {
            padding: 15px 8%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(15px);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 20px rgba(0,0,0,0.05);
        }

        .logo-container { display: flex; align-items: center; gap: 10px; }
        .logo-img { height: 50px; transition: var(--transition); }
        .logo-img:hover { transform: scale(1.1) rotate(-5deg); }

        .nav-links { display: flex; gap: 30px; align-items: center; }
        .lang-switch {
            background: linear-gradient(45deg, var(--primary-teal), var(--dark-teal));
            color: white;
            border: none;
            padding: 10px 25px;
            border-radius: 50px;
            cursor: pointer;
            font-weight: bold;
            box-shadow: 0 4px 15px rgba(44, 183, 185, 0.3);
            transition: var(--transition);
        }
        .lang-switch:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(44, 183, 185, 0.5); }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding: 120px 8% 60px;
            background: radial-gradient(circle at top right, #e0f7f8 0%, #ffffff 70%);
            gap: 50px;
            position: relative;
            overflow: hidden;
        }

        /* Enhanced Floating Elements */
        .floating-shape {
            position: absolute;
            z-index: 0;
            opacity: 0.25;
            filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
            pointer-events: none;
        }
        
        .float-1 { animation: float-anim-1 8s ease-in-out infinite; }
        .float-2 { animation: float-anim-2 12s linear infinite; }
        .float-3 { animation: float-anim-3 10s ease-in-out infinite; }

        @keyframes float-anim-1 {
            0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
            50% { transform: translateY(-40px) rotate(20deg) scale(1.1); }
        }
        @keyframes float-anim-2 {
            0% { transform: translate(0, 0) rotate(0deg); }
            25% { transform: translate(20px, -20px) rotate(90deg); }
            50% { transform: translate(0, -40px) rotate(180deg); }
            75% { transform: translate(-20px, -20px) rotate(270deg); }
            100% { transform: translate(0, 0) rotate(360deg); }
        }
        @keyframes float-anim-3 {
            0%, 100% { transform: translateX(0) scale(1); }
            50% { transform: translateX(30px) scale(0.9); }
        }

        .hero-text { flex: 1; z-index: 1; }
        .hero-text h1 { font-size: 4rem; color: var(--dark-teal); line-height: 1.1; margin-bottom: 25px; font-weight: 900; }
        .hero-text p { font-size: 1.25rem; color: #555; margin-bottom: 40px; max-width: 550px; line-height: 1.6; }

        .store-buttons { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
        .store-btn {
            height: 55px;
            transition: var(--transition);
            border-radius: 12px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        }
        .store-btn:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 12px 25px rgba(0,0,0,0.15); }

        .cta-group { display: flex; align-items: center; gap: 20px; }
        .btn-pharmacy {
            display: inline-block;
            padding: 15px 35px;
            background: var(--white);
            border: 2px solid var(--primary-teal);
            color: var(--primary-teal);
            text-decoration: none;
            border-radius: 50px;
            font-weight: 700;
            transition: var(--transition);
        }
        .btn-pharmacy:hover { background: var(--primary-teal); color: white; transform: scale(1.05); }

        /* Interactive Mockup */
        .hero-mockup { flex: 1; display: flex; justify-content: center; position: relative; z-index: 1; }
        .phone-container { position: relative; perspective: 1000px; }
        .phone-frame {
            width: 300px;
            height: 620px;
            background: #1a1a1a;
            border-radius: 45px;
            border: 12px solid #2d2d2d;
            box-shadow: 0 50px 100px rgba(0,0,0,0.3);
            overflow: hidden;
            position: relative;
            transform: rotateY(-15deg) rotateX(5deg);
            transition: var(--transition);
        }
        .phone-container:hover .phone-frame { transform: rotateY(0deg) rotateX(0deg) scale(1.02); }
        
        .phone-screen {
            width: 100%;
            height: 100%;
            background: linear-gradient(180deg, var(--primary-teal), var(--dark-teal));
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: white;
            text-align: center;
            padding: 20px;
        }
        .mock-app-content { animation: pulse 2s infinite; }
        @keyframes pulse { 0% { opacity: 0.8; } 50% { opacity: 1; transform: scale(1.05); } 100% { opacity: 0.8; } }

        /* Features Section */
        .features { 
            padding: 100px 8%; 
            background: var(--white);
            position: relative;
            overflow: hidden;
        }
        .section-title { text-align: center; margin-bottom: 60px; }
        .section-title h2 { font-size: 2.5rem; color: var(--dark-teal); margin-bottom: 15px; }
        .section-title .underline { width: 80px; height: 4px; background: var(--primary-teal); margin: 0 auto; border-radius: 2px; }

        .features-grid {
            display: grid; 
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
            gap: 40px;
        }
        .feature-card {
            background: var(--light-bg);
            padding: 50px 40px;
            border-radius: 30px;
            text-align: center;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(44, 183, 185, 0.1);
        }
        .feature-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(135deg, var(--primary-teal), var(--dark-teal));
            opacity: 0;
            transition: var(--transition);
            z-index: 0;
        }
        .feature-card:hover { transform: translateY(-15px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
        .feature-card:hover::before { opacity: 1; }
        .feature-card:hover * { color: white !important; position: relative; z-index: 1; }

        .feature-card i { font-size: 3.5rem; color: var(--primary-teal); margin-bottom: 25px; transition: var(--transition); }
        .feature-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--dark-teal); }
        .feature-card p { color: #666; line-height: 1.6; }

        /* How it Works */
        .how-it-works { padding: 100px 8%; background: #fefefe; position: relative; overflow: hidden; }
        .steps-container { display: flex; justify-content: space-between; gap: 30px; margin-top: 50px; flex-wrap: wrap; }
        .step { flex: 1; min-width: 200px; text-align: center; position: relative; }
        .step-number { 
            width: 60px; height: 60px; background: var(--primary-teal); color: white; 
            border-radius: 50%; display: flex; align-items: center; justify-content: center; 
            font-size: 1.5rem; font-weight: 900; margin: 0 auto 20px;
            box-shadow: 0 10px 20px rgba(44, 183, 185, 0.3);
        }

        /* Footer */
        footer { background: var(--dark-teal); color: #eee; padding: 80px 8% 30px; position: relative; }
        .footer-content { 
            display: grid; 
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
            gap: 50px; 
            margin-bottom: 50px;
            text-align: left;
        }
        .footer-logo img { height: 60px; margin-bottom: 20px; filter: brightness(0) invert(1); }
        .footer-links h4 { color: white; margin-bottom: 25px; font-size: 1.2rem; }
        .footer-links ul { list-style: none; }
        .footer-links ul li { margin-bottom: 12px; }
        .footer-links a { color: #bdc3c7; text-decoration: none; transition: var(--transition); }
        .footer-links a:hover { color: var(--primary-teal); padding-left: 5px; }

        .social-icons { display: flex; gap: 15px; margin-top: 20px; }
        .social-icons a { 
            width: 40px; height: 40px; background: rgba(255,255,255,0.1); 
            display: flex; align-items: center; justify-content: center; 
            border-radius: 50%; color: white; transition: var(--transition);
        }
        .social-icons a:hover { background: var(--primary-teal); transform: rotate(360deg); }

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

        /* RTL Handling */
        [dir="rtl"] .hero-text { text-align: right; }
        [dir="rtl"] .store-buttons { justify-content: flex-start; }
        [dir="rtl"] .footer-content { text-align: right; }
        [dir="rtl"] .footer-links a:hover { padding-left: 0; padding-right: 5px; }
        [dir="rtl"] .phone-frame { transform: rotateY(15deg) rotateX(5deg); }
        [dir="rtl"] .phone-container:hover .phone-frame { transform: rotateY(0deg) rotateX(0deg) scale(1.02); }

        @media (max-width: 968px) {
            .hero { flex-direction: column; text-align: center; padding-top: 150px; }
            .hero-text h1 { font-size: 2.8rem; }
            .store-buttons { justify-content: center; }
            .cta-group { flex-direction: column; width: 100%; }
            .btn-pharmacy { width: 100%; }
            [dir="rtl"] .hero-text { text-align: center; }
            [dir="rtl"] .store-buttons { justify-content: center; }
            .phone-frame { transform: none !important; width: 260px; height: 540px; }
            .floating-shape { display: none; }
        }