:root {
            --primary-gold: #f39c12;
            --primary-gold-light: #f1c40f;
            --primary-gold-dark: #e67e22;
            --secondary-teal: #16a085;
            --secondary-teal-light: #1abc9c;
            --bg-dark: #1d1d21;
            --bg-card: rgba(45, 45, 50, 0.9);
            --text-primary: #ffffff;
            --text-secondary: rgba(255, 255, 255, 0.8);
            --text-muted: rgba(255, 255, 255, 0.6);
            --border-light: rgba(255, 255, 255, 0.1);
            --border-medium: rgba(255, 255, 255, 0.2);
            --shadow-glow: 0 0 30px rgba(243, 156, 18, 0.3);
            --gradient-hero: linear-gradient(135deg, var(--bg-dark) 0%, #2c2c30 50%, var(--bg-dark) 100%);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Cairo', sans-serif;
            background: var(--bg-dark);
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
            transition: var(--transition);
        }

        /* English font */
        body[lang="en"] {
            font-family: 'Inter', sans-serif;
        }

        /* Language Switcher */
        .language-switcher {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 25px;
            padding: 0.3rem;
            backdrop-filter: blur(10px);
        }

        .lang-btn {
            padding: 0.4rem 0.8rem;
            border: none;
            background: transparent;
            color: var(--text-secondary);
            border-radius: 20px;
            cursor: pointer;
            transition: var(--transition);
            font-size: 0.9rem;
            font-weight: 500;
            min-width: 35px;
        }

        .lang-btn.active {
            background: var(--primary-gold);
            color: var(--bg-dark);
        }

        .lang-btn:hover:not(.active) {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-primary);
        }

        /* Navigation */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: rgba(29, 29, 33, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-light);
            z-index: 1000;
            padding: 0.8rem 0;
            transition: var(--transition);
            height: auto;
            min-height: 70px;
        }

        .navbar.scrolled {
            background: rgba(29, 29, 33, 0.98);
            box-shadow: var(--shadow-glow);
            border-bottom: 1px solid var(--border-medium);
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 100%;
            min-height: 50px;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary-gold);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            white-space: nowrap;
        }

        .nav-center {
            display: flex;
            align-items: center;
            gap: 2rem;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
            align-items: center;
        }

        .nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            position: relative;
            transition: var(--transition);
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--primary-gold);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary-gold);
            transition: var(--transition);
        }

        .nav-links a:hover::after,
        .nav-links a.active::after {
            width: 100%;
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 1.4rem;
            cursor: pointer;
            z-index: 1001;
            position: relative;
            padding: 0.4rem;
            border-radius: 4px;
            transition: var(--transition);
            width: 40px;
            height: 40px;
            align-items: center;
            justify-content: center;
        }

        .mobile-menu-btn:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            background: var(--gradient-hero);
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            position: relative;
            overflow: hidden;
            padding-top: 70px;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(243,156,18,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
            opacity: 0.3;
        }

        .hero-content {
            max-width: 800px;
            margin: 0 auto;
            padding: 0 2rem;
            position: relative;
            z-index: 2;
        }

        .hero h1 {
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 800;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero .subtitle {
            font-size: clamp(1.1rem, 2.5vw, 1.5rem);
            color: var(--text-secondary);
            margin-bottom: 2rem;
            font-weight: 500;
        }

        .quranic-verse {
            background: var(--bg-card);
            border: 1px solid var(--border-medium);
            border-radius: 15px;
            padding: 2rem;
            margin: 2rem 0;
            backdrop-filter: blur(10px);
            box-shadow: var(--shadow-glow);
        }

        .verse-text {
            font-size: clamp(1.2rem, 2.5vw, 1.8rem);
            font-style: italic;
            color: var(--primary-gold-light);
            margin-bottom: 1rem;
            line-height: 1.8;
        }

        .verse-reference {
            font-size: 1rem;
            color: var(--text-muted);
        }

        .cta-button {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
            color: var(--bg-dark);
            padding: 1rem 2rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            transition: var(--transition);
            box-shadow: var(--shadow-glow);
            margin-top: 1rem;
        }

        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 40px rgba(243, 156, 18, 0.4);
        }

        /* Section Styles */
        .section {
            padding: 5rem 0;
            position: relative;
        }

        /* Base responsive utilities */
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }
        
        /* Ensure images and content don't overflow */
        img,
        video,
        iframe {
            max-width: 100%;
            height: auto;
        }
        
        /* Prevent horizontal scroll */
        body {
            overflow-x: hidden;
            width: 100%;
        }
        
        /* Better touch targets for mobile */
        .btn,
        .nav-links a,
        .social-link,
        .back-to-top {
            min-height: 44px;
            min-width: 44px;
        }

        .section-header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .section-title {
            font-size: clamp(2rem, 4vw, 3rem);
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--primary-gold);
        }

        .section-subtitle {
            font-size: 1.2rem;
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
        }

        /* Apps Section */
        .apps-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .app-card {
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: 20px;
            padding: 2rem;
            transition: var(--transition);
            backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
        }

        .app-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, transparent 0%, rgba(243, 156, 18, 0.1) 100%);
            opacity: 0;
            transition: var(--transition);
        }

        .app-card:hover {
            transform: translateY(-10px);
            border-color: var(--primary-gold);
            box-shadow: var(--shadow-glow);
        }

        .app-card:hover::before {
            opacity: 1;
        }

        .app-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            display: block;
        }

        .app-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--primary-gold);
        }

        .app-description {
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        .app-features {
            list-style: none;
            margin-bottom: 2rem;
        }

        .app-features li {
            padding: 0.5rem 0;
            color: var(--text-secondary);
            position: relative;
            padding-right: 1.5rem;
        }

        /* English direction features */
        body[lang="en"] .app-features li {
            padding-right: 0;
            padding-left: 1.5rem;
        }

        .app-features li::before {
            content: '✓';
            position: absolute;
            right: 0;
            color: var(--secondary-teal);
            font-weight: bold;
        }

        body[lang="en"] .app-features li::before {
            right: auto;
            left: 0;
        }

        .app-buttons,
        .download-platforms {
            display: flex;
            gap: 1rem;
            flex-direction: column;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
            border: 2px solid transparent;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
            color: var(--bg-dark);
        }

        .btn-secondary {
            background: transparent;
            color: var(--secondary-teal);
            border-color: var(--secondary-teal);
        }

        .btn:hover {
            transform: translateY(-2px);
        }

        .btn-primary:hover {
            box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
        }

        .btn-secondary:hover {
            background: var(--secondary-teal);
            color: var(--text-primary);
        }

        /* Features Section */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .feature-card {
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: 15px;
            padding: 2rem;
            text-align: center;
            transition: var(--transition);
            backdrop-filter: blur(10px);
        }

        .feature-card:hover {
            transform: translateY(-5px);
            border-color: var(--primary-gold);
        }

        .feature-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            display: block;
        }

        .feature-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--primary-gold);
        }

        .feature-description {
            color: var(--text-secondary);
            line-height: 1.6;
        }

        /* Download Section */
        .download-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .download-card {
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: 20px;
            padding: 2rem;
            text-align: center;
            transition: var(--transition);
            backdrop-filter: blur(10px);
        }

        .download-card:hover {
            transform: translateY(-5px);
            border-color: var(--primary-gold);
            box-shadow: var(--shadow-glow);
        }

        .download-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: var(--primary-gold);
        }

        .download-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        .download-platforms {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        /* Contact Section */
        .contact-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 3rem;
            align-items: start;
        }

        .contact-info {
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: 15px;
            padding: 2rem;
            backdrop-filter: blur(10px);
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
            color: var(--text-secondary);
        }

        .contact-item i {
            color: var(--primary-gold);
            font-size: 1.2rem;
            width: 20px;
        }

        .contact-form {
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: 15px;
            padding: 2rem;
            backdrop-filter: blur(10px);
        }

        /* Footer */
        .footer {
            background: var(--bg-card);
            border-top: 1px solid var(--border-light);
            padding: 3rem 0 1rem;
            text-align: center;
        }

        .footer-content {
            margin-bottom: 2rem;
        }

        .footer-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-gold);
            margin-bottom: 1rem;
        }

        .footer-description {
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto 2rem;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .social-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            background: var(--primary-gold);
            color: var(--bg-dark);
            border-radius: 50%;
            text-decoration: none;
            font-size: 1.2rem;
            transition: var(--transition);
        }

        .social-link:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(243, 156, 18, 0.4);
        }

        .footer-bottom {
            border-top: 1px solid var(--border-light);
            padding-top: 2rem;
            color: var(--text-muted);
        }

        /* Scroll Progress */
        .scroll-progress {
            position: fixed;
            top: 0;
            left: 0;
            width: 0%;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-gold), var(--primary-gold-light));
            z-index: 1001;
            transition: width 0.1s ease;
        }

        /* Back to Top */
        .back-to-top {
            position: fixed;
            bottom: 2rem;
            left: 2rem;
            width: 50px;
            height: 50px;
            background: var(--primary-gold);
            color: var(--bg-dark);
            border: none;
            border-radius: 50%;
            font-size: 1.2rem;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            z-index: 999;
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(243, 156, 18, 0.4);
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .apps-grid {
                grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
                gap: 1.5rem;
            }
            
            .features-grid {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            }
            
            .download-cards {
                grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            }
        }

        @media (max-width: 768px) {
            .navbar {
                padding: 0.6rem 0;
                min-height: 60px;
            }
            
            .nav-container {
                padding: 0 1.5rem;
                min-height: 45px;
            }
            
            .nav-center {
                gap: 1rem;
            }
            
            .nav-links {
                position: fixed;
                top: 60px;
                left: 0;
                right: 0;
                background: rgba(29, 29, 33, 0.98);
                backdrop-filter: blur(20px);
                flex-direction: column;
                padding: 1.5rem;
                gap: 1.2rem;
                transform: translateY(-120%);
                transition: var(--transition);
                border-top: 1px solid var(--border-light);
                z-index: 999;
                box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
                margin: 0;
            }

            .nav-links.active {
                transform: translateY(0);
            }

            .nav-links a {
                font-size: 1.1rem;
                padding: 0.8rem 0;
                text-align: center;
                border-bottom: 1px solid var(--border-light);
                display: block;
                width: 100%;
            }

            .nav-links a:last-child {
                border-bottom: none;
            }

            .mobile-menu-btn {
                display: flex;
                z-index: 1001;
                position: relative;
            }

            .apps-grid,
            .features-grid,
            .download-cards {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .contact-content {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .hero {
                min-height: 80vh;
                padding-top: 100px;
            }

            .section {
                padding: 3rem 0;
            }

            .container {
                padding: 0 1.5rem;
            }
            
            .app-card,
            .feature-card,
            .download-card {
                padding: 1.5rem;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 0 1rem;
            }
            
            .nav-container {
                padding: 0 1rem;
            }
            
            .navbar {
                padding: 0.5rem 0;
                min-height: 55px;
            }
            
            .nav-links {
                top: 55px;
                padding: 1.2rem;
                gap: 1rem;
            }
            
            .nav-links a {
                font-size: 1rem;
                padding: 0.7rem 0;
            }
            
            .hero {
                min-height: 70vh;
                padding-top: 85px;
            }
            
            .hero-content {
                padding: 0 1rem;
            }

            .quranic-verse {
                padding: 1.5rem 1rem;
                margin: 1.5rem 0;
            }
            
            .verse-text {
                font-size: 1.1rem;
                line-height: 1.6;
            }

            .app-card,
            .feature-card,
            .download-card,
            .contact-info,
            .contact-form {
                padding: 1.2rem;
            }
            
            .app-title,
            .feature-title,
            .download-title {
                font-size: 1.2rem;
            }
            
            .app-description,
            .feature-description {
                font-size: 0.9rem;
            }
            
            .app-features li {
                font-size: 0.85rem;
                padding: 0.3rem 0;
            }
            
            .btn {
                padding: 0.6rem 1.2rem;
                font-size: 0.9rem;
            }
            
            .section {
                padding: 2.5rem 0;
            }
            
            .section-header {
                margin-bottom: 2.5rem;
            }
            
            .cta-button {
                padding: 0.8rem 1.5rem;
                font-size: 1rem;
            }
            
            .logo {
                font-size: 1.5rem;
            }
            
            .social-links {
                gap: 0.8rem;
            }
            
            .social-link {
                width: 45px;
                height: 45px;
                font-size: 1.1rem;
            }
        }

        @media (max-width: 320px) {
            .container,
            .nav-container {
                padding: 0 0.8rem;
            }
            
            .navbar {
                padding: 0.4rem 0;
                min-height: 50px;
            }
            
            .nav-links {
                top: 50px;
                padding: 1rem;
                gap: 0.8rem;
            }
            
            .nav-links a {
                font-size: 0.9rem;
                padding: 0.6rem 0;
            }
            
            .hero {
                min-height: 60vh;
                padding-top: 75px;
            }
            
            .hero h1 {
                font-size: 2rem;
            }
            
            .hero .subtitle {
                font-size: 1rem;
            }
            
            .quranic-verse {
                padding: 1rem;
                margin: 1rem 0;
            }
            
            .verse-text {
                font-size: 1rem;
            }
            
            .section-title {
                font-size: 1.8rem;
            }
            
            .section-subtitle {
                font-size: 1rem;
            }
            
            .app-card,
            .feature-card,
            .download-card,
            .contact-info,
            .contact-form {
                padding: 1rem;
            }
            
            .app-title,
            .feature-title,
            .download-title {
                font-size: 1.1rem;
            }
            
            .app-description,
            .feature-description {
                font-size: 0.85rem;
            }
            
            .app-features li {
                font-size: 0.8rem;
            }
            
            .btn {
                padding: 0.5rem 1rem;
                font-size: 0.85rem;
            }
            
            .cta-button {
                padding: 0.7rem 1.2rem;
                font-size: 0.9rem;
            }
            
            .logo {
                font-size: 1.3rem;
            }
            
            .section {
                padding: 2rem 0;
            }
            
            .section-header {
                margin-bottom: 2rem;
            }
            
            .apps-grid,
            .features-grid,
            .download-cards {
                gap: 1rem;
            }
            
            .social-link {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }
            
            .footer-title {
                font-size: 1.2rem;
            }
            
            .footer-description {
                font-size: 0.9rem;
            }
        }

        /* Fix for very wide screens */
        @media (min-width: 1400px) {
            .container {
                max-width: 1300px;
            }
            
            .apps-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in-up {
            animation: fadeInUp 0.6s ease forwards;
        }

        .stagger-delay-1 { animation-delay: 0.1s; }
        .stagger-delay-2 { animation-delay: 0.2s; }
        .stagger-delay-3 { animation-delay: 0.3s; }