@import url('settings/_variables.css');

/* === GENERIC (reset, box-sizing, typography) === */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #a57865;
            --secondary: #57463f;
            --light: #faf8f6;
            --cream: #f5ebe0;
            --accent: #d4af37;
            --gradient: linear-gradient(135deg, #a57865 0%, #8b6f5c 50%, #57463f 100%);
            --primary-color: #a57865;
            --secondary-color: #57463f;
            --gradient-bg: linear-gradient(135deg, #a57865, #57463f);
            --light-bg: #faf8f6;
            --text-dark: #57463f;
            --text-light: #8b7355;
            --white: #ffffff;
            --shadow: rgba(87, 70, 63, 0.15);
            --color-bg: #F7F4F2;
            --color-card-bg: #fff;
            --color-path: #EAE6E0;
            --color-primary-text: #4A403A;
            --color-secondary-text: #7D6D61;
            --color-accent-gold: #C0A062;
            --font-body: 'Tajawal', 'Amiri', sans-serif;
        }

        html {
            font-size: 100%; /* 1rem = 16px, accessible */
            scroll-behavior: smooth;
            scroll-padding-top: 100px; /* Offset for fixed navbar */
        }
        
        /* Ensure contact form is visible when navigated to */
        #contactForm {
            scroll-margin-top: 120px; /* Extra margin for better visibility */
        }
        
        /* Mobile adjustments for scroll padding */
        @media (max-width: 768px) {
            html {
                scroll-padding-top: 80px; /* Smaller offset for mobile navbar */
            }
            
            #contactForm {
                scroll-margin-top: 90px; /* Adjusted for mobile */
            }
        }

        body {
            font-family: 'Tajawal', 'Montserrat', sans-serif;
            line-height: 1.6;
            color: var(--text-dark);
            overflow-x: hidden;
            background-color: var(--light-bg); /* Ensure consistent background */
        }

        .arabic-text {
            font-family: 'Amiri', serif;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 40px;
        }

        /* === ELEMENTS (bare HTML tags: h1, p, a, ul, etc.) === */
        /* Answer Box - AI Optimization */
        .answer-box {
            background-color: #fef6f1;
            border: 2px solid var(--primary-color);
            border-radius: 12px;
            padding: 20px;
            margin: 20px 0;
            box-shadow: 0 4px 12px rgba(165, 120, 101, 0.1);
        }
        
        .answer-box h2 {
            color: var(--secondary-color);
            font-size: 20px;
            margin-bottom: 10px;
            font-family: 'Amiri', serif;
        }
        
        .answer-box p {
            font-size: 16px;
            line-height: 1.8;
            color: var(--text-dark);
        }
        
        /* Key Takeaways */
        .key-takeaways {
            background-color: #f9f9f9;
            border-inline-end: 4px solid var(--primary-color);
            padding: 20px;
            margin: 30px 0;
            border-radius: 8px;
        }
        
        .key-takeaways h3 {
            color: var(--secondary-color);
            margin-bottom: 15px;
            font-family: 'Amiri', serif;
        }
        
        .key-takeaways ul {
            list-style: none;
            padding-inline-end: 20px;
        }
        
        .key-takeaways li {
            margin-bottom: 10px;
            position: relative;
            padding-right: 25px; /* Changed to physical property for consistent visual placement */
        }
        
        .key-takeaways li::before {
            content: "✓";
            position: absolute;
            right: 0; /* Changed to physical property to always appear on visual right */
            top: 0; /* Added for consistent vertical alignment */
            color: var(--primary-color);
            font-weight: bold;
        }
        
        /* Update Log */
        .update-log {
            background-color: #fff9e6;
            padding: 15px;
            border-radius: 8px;
            margin: 20px 0;
            border: 1px solid #f0d878;
        }
        
        .update-log time {
            font-weight: 600;
            color: var(--secondary-color);
        }

        /* === COMPONENTS (navbar, hero, cards, buttons, etc.) === */
        /* Navigation */
        .navbar {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            z-index: 1000;
            padding: 15px 0;
            transition: all 0.3s ease;
            border-bottom: 1px solid rgba(165, 120, 101, 0.1);
        }

        .navbar.scrolled {
            background: rgba(255, 255, 255, 0.98);
            box-shadow: 0 2px 20px var(--shadow);
        }

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

        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        /* Logo image styling */
        .logo-img {
            height: 50px;
            width: auto;
            max-width: 200px;
            object-fit: contain;
        }

        /* Old logo icon styles - kept for backwards compatibility but hidden */
        .logo-icon {
            display: none;
        }

        .logo-icon::before {
            content: '';
            position: absolute;
            width: 30px;
            height: 30px;
            background: repeating-conic-gradient(
                from 0deg,
                var(--white) 0deg 10deg,
                transparent 10deg 20deg
            );
            border-radius: 50%;
            opacity: 0.9;
        }

        .logo-icon::after {
            content: '';
            position: absolute;
            width: 15px;
            height: 15px;
            background: var(--white);
            border-radius: 50%;
            z-index: 2;
        }

        /* Old logo text styles - kept for backwards compatibility but hidden */
        .logo-text {
            display: none;
        }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 30px;
        }

        .nav-menu a {
            text-decoration: none;
            color: var(--text-dark);
            font-weight: 500;
            transition: color 0.3s ease;
            position: relative;
        }

        .nav-menu a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            inset-inline-end: 0;
            width: 0;
            height: 2px;
            background: var(--gradient-bg);
            transition: width 0.3s ease;
        }

        .nav-menu a:hover::after {
            width: 100%;
        }

        .nav-menu a:hover {
            color: var(--primary-color);
        }

        .cta-btn {
            background: var(--gradient-bg);
            color: white;
            padding: 12px 25px;
            border: none;
            border-radius: 25px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            position: relative;
            overflow: hidden;
        }

        .cta-btn::before {
            content: '';
            position: absolute;
            top: 0;
            inset-inline-end: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: inset-inline-end 0.5s;
        }

        .cta-btn:hover::before {
            inset-inline-end: 100%;
        }

        .cta-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px var(--shadow);
        }

        /* NEW HERO SECTION - From paste.txt */
        .hero {
            min-height: 100vh;
            position: relative;
            display: flex;
            align-items: center;
            background: var(--light);
            overflow: hidden;
            padding-top: 20px; /* Reduced padding since navbar not sticky */
        }
        
        /* Remove any box shadows or backgrounds from sacred geometry elements */
        .hero-visual *,
        .sacred-geometry * {
            background-clip: padding-box; /* Ensure backgrounds don't extend beyond borders */
        }
        
        /* Ensure sacred geometry container has no background */
        .sacred-geometry::before,
        .sacred-geometry::after,
        .hero-visual::before,
        .hero-visual::after {
            display: none !important;
        }

        /* Animated Background Canvas */
        .hero-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.4;
        }

        /* Split Screen Layout */
        .hero-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 100px;
            align-items: center;
            min-height: 100vh;
            padding: 80px 0;
            position: relative;
            z-index: 10;
            background: transparent; /* Ensure transparent background */
        }

        /* Left Side - The Masterpiece */
        .hero-visual {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 600px;
            background: transparent; /* Ensure no background */
        }

        /* Sacred Geometry Composition */
        .sacred-geometry {
            position: relative;
            width: 500px;
            height: 500px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent; /* Ensure no background */
        }

        /* Main Circle - Breathing Effect */
        .main-circle {
            position: absolute;
            width: 400px;
            height: 400px;
            border-radius: 50%;
            background: var(--gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 
                0 0 100px rgba(165, 120, 101, 0.3),
                inset 0 0 100px rgba(0, 0, 0, 0.1);
            animation: breathe 4s ease-in-out infinite;
            /* Force circular clipping */
            -webkit-mask-image: radial-gradient(circle, white 100%, transparent 100%);
            mask-image: radial-gradient(circle, white 100%, transparent 100%);
        }

        @media (prefers-reduced-motion: no-preference) {
            .main-circle {
                animation: breathe 4s ease-in-out infinite;
            }
        }

        /* Inner Pattern */
        .inner-pattern {
            width: 90%;
            height: 90%;
            border-radius: 50%;
            position: relative;
            overflow: hidden;
            background: transparent; /* Ensure transparent background */
        }

        /* Radial Lines */
        .radial-lines {
            position: absolute;
            width: 100%;
            height: 100%;
            animation: rotate-slow 60s linear infinite;
        }

        .radial-line {
            position: absolute;
            width: 1px;
            height: 50%;
            background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
            left: 50%;
            top: 0;
            transform-origin: bottom;
        }

        .radial-line:nth-child(1) { transform: rotate(0deg); }
        .radial-line:nth-child(2) { transform: rotate(30deg); }
        .radial-line:nth-child(3) { transform: rotate(60deg); }
        .radial-line:nth-child(4) { transform: rotate(90deg); }
        .radial-line:nth-child(5) { transform: rotate(120deg); }
        .radial-line:nth-child(6) { transform: rotate(150deg); }
        .radial-line:nth-child(7) { transform: rotate(180deg); }
        .radial-line:nth-child(8) { transform: rotate(210deg); }
        .radial-line:nth-child(9) { transform: rotate(240deg); }
        .radial-line:nth-child(10) { transform: rotate(270deg); }
        .radial-line:nth-child(11) { transform: rotate(300deg); }
        .radial-line:nth-child(12) { transform: rotate(330deg); }

        @media (prefers-reduced-motion: no-preference) {
            .radial-lines {
                animation: rotate-slow 60s linear infinite;
            }
        }

        /* Center Content */
        .center-content {
            position: absolute;
            width: 200px;
            height: 200px;
            background: rgba(250, 248, 246, 0.95);
            border-radius: 50%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 10;
            box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
        }

        .arabic-logo {
            font-family: 'Amiri', serif;
            font-size: 48px;
            font-weight: 700;
            color: var(--secondary);
            line-height: 1;
            margin-bottom: 10px;
        }

        .logo-subtitle {
            font-size: 12px;
            color: var(--primary);
            font-weight: 300;
            letter-spacing: 2px;
        }

        /* Orbiting Elements */
        .orbit {
            position: absolute;
            width: 100%;
            height: 100%;
            animation: rotate-orbit 30s linear infinite;
        }

        .orbit-reverse {
            animation-direction: reverse;
            animation-duration: 40s;
        }

        @media (prefers-reduced-motion: no-preference) {
            .orbit {
                animation: rotate-orbit 30s linear infinite;
            }
            .orbit-reverse {
                animation-direction: reverse;
                animation-duration: 40s;
            }
        }

        .orbit-dot {
            position: absolute;
            width: 12px;
            height: 12px;
            background: var(--accent);
            border-radius: 50%;
            top: -6px;
            left: 50%;
            transform: translateX(-50%);
            box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
        }

        .orbit-dot-large {
            width: 20px;
            height: 20px;
            top: -10px;
            background: var(--primary);
        }

        /* Outer Rings */
        .outer-ring {
            position: absolute;
            border: 1px solid rgba(165, 120, 101, 0.2);
            border-radius: 50%;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .outer-ring-1 {
            width: 450px;
            height: 450px;
            animation: pulse-ring 3s ease-in-out infinite;
        }

        .outer-ring-2 {
            width: 500px;
            height: 500px;
            animation: pulse-ring 3s ease-in-out infinite;
            animation-delay: 1s;
        }

        .outer-ring-3 {
            width: 550px;
            height: 550px;
            animation: pulse-ring 3s ease-in-out infinite;
            animation-delay: 2s;
        }

        @media (prefers-reduced-motion: no-preference) {
            .outer-ring-1 {
                animation: pulse-ring 3s ease-in-out infinite;
            }
            .outer-ring-2 {
                animation: pulse-ring 3s ease-in-out infinite;
                animation-delay: 1s;
            }
            .outer-ring-3 {
                animation: pulse-ring 3s ease-in-out infinite;
                animation-delay: 2s;
            }
        }

        /* Right Side - Content */
        .hero-text {
            color: var(--secondary);
            padding-left: 40px;
        }

        /* Typography */
        .hero-title {
            font-family: 'Amiri', serif;
            font-size: clamp(2.5rem, 6vw, 3.5rem);
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 1.875rem;
            color: var(--secondary);
            letter-spacing: -1px;
        }

        .title-highlight {
            position: relative;
            display: inline-block;
            color: var(--primary);
        }

        .title-highlight::after {
            content: '';
            position: absolute;
            bottom: 5px;
            left: 0;
            width: 100%;
            height: 10px;
            background: var(--accent);
            opacity: 0.3;
            transform: skewY(-2deg);
            z-index: -1;
        }

        /* Clean Info Box */
        .info-box {
            background: white;
            padding: 35px;
            border-radius: 20px;
            margin-bottom: 30px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
            border-inline-end: 5px solid var(--primary);
            position: relative;
            overflow: hidden;
        }

        .info-box::after {
            content: '';
            position: absolute;
            top: 0;
            inset-inline-end: 0;
            width: 100px;
            height: 100px;
            background: var(--gradient);
            opacity: 0.05;
            border-radius: 50%;
            transform: translate(30px, -30px);
        }

        .info-box h3 {
            font-size: 20px;
            color: var(--primary);
            margin-bottom: 15px;
            font-weight: 600;
        }

        .info-box p {
            font-size: 16px;
            line-height: 1.8;
            color: var(--secondary);
        }

        /* Elegant Verse */
        .verse-container {
            text-align: center;
            margin: 40px 0;
            position: relative;
            padding: 30px 0;
        }

        .verse-container::before,
        .verse-container::after {
            content: '';
            position: absolute;
            width: 100px;
            height: 1px;
            background: linear-gradient(to right, transparent, var(--primary), transparent);
            left: 50%;
            transform: translateX(-50%);
        }

        .verse-container::before { top: 0; }
        .verse-container::after { bottom: 0; }

        .verse-text {
            font-family: 'Amiri', serif;
            font-size: 1.75rem;
            color: var(--primary);
            line-height: 1.8;
            font-weight: 400;
        }

        /* Description */
        .hero-description {
            font-size: 1.125rem;
            line-height: 1.8;
            color: #6b5d54;
            margin-bottom: 2.5rem;
            font-weight: 300;
        }

        /* CTA Design */
        .cta-wrapper {
            display: flex;
            align-items: center;
            gap: 30px;
        }

        .hero-cta {
            background: var(--gradient);
            color: white;
            padding: 18px 40px;
            border: none;
            border-radius: 50px;
            font-size: 17px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 12px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(165, 120, 101, 0.3);
        }

        .hero-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 40px rgba(165, 120, 101, 0.4);
        }

        .hero-cta i {
            font-size: 18px;
        }

        .secondary-link {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border-bottom: 2px solid transparent;
            transition: all 0.3s ease;
        }

        .secondary-link:hover {
            border-bottom-color: var(--primary);
        }

        /* Elegant Stats */
        .stats-row {
            display: flex;
            gap: 50px;
            margin-top: 60px;
            padding-top: 40px;
            border-top: 1px solid rgba(165, 120, 101, 0.1);
        }

        .stat-item {
            flex: 1;
        }

        .stat-number {
            font-size: 3rem;
            font-weight: 200;
            color: var(--primary);
            line-height: 1;
            margin-bottom: 0.625rem;
        }

        .stat-label {
            font-size: 0.875rem;
            color: var(--secondary);
            opacity: 0.7;
            font-weight: 400;
        }

        /* Floating Accents */
        .floating-accent {
            position: absolute;
            width: 300px;
            height: 300px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
            pointer-events: none;
        }

        .accent-1 {
            top: -150px;
            right: -150px;
            animation: float-gentle 20s ease-in-out infinite;
        }

        .accent-2 {
            bottom: -150px;
            left: -150px;
            animation: float-gentle 20s ease-in-out infinite reverse;
        }

        @keyframes float-gentle {
            0%, 100% { transform: translate(0, 0); }
            50% { transform: translate(30px, 30px); }
        }

        /* About Section */
        .about {
            padding: 80px 0;
            background: var(--white);
        }

        .section-title {
            text-align: center;
            font-family: 'Amiri', serif;
            font-size: clamp(2rem, 5vw, 2.25rem);
            color: var(--secondary-color);
            margin-bottom: 1.25rem;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            inset-inline-end: 50%;
            transform: translateX(50%);
            width: 60px;
            height: 3px;
            background: var(--gradient-bg);
            border-radius: 2px;
        }

        .section-subtitle {
            text-align: center;
            color: var(--text-light);
            font-size: 1.125rem;
            margin-bottom: 3.75rem;
            max-width: 37.5rem;
            margin-left: auto;
            margin-right: auto;
        }

        .about-content {
            font-size: 18px;
            line-height: 2;
            color: var(--text-dark);
            text-align: center;
            max-width: 800px;
            margin: 0 auto;
            background: var(--light-bg);
            padding: 40px;
            border-radius: 20px;
            border: 1px solid rgba(165, 120, 101, 0.2);
            position: relative;
            overflow: hidden;
        }

        .about-content::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 100%;
            height: 4px;
            background: var(--gradient-bg);
        }

        /* Features Section */
        .features {
            padding: 80px 0;
            background: linear-gradient(135deg, var(--light-bg) 0%, #f5f2ef 100%);
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 40px;
            margin-top: 60px;
        }

        .feature-card {
            background: var(--white);
            padding: 40px 30px;
            border-radius: 20px;
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid rgba(165, 120, 101, 0.2);
            position: relative;
            overflow: hidden;
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 100%;
            height: 4px;
            background: var(--gradient-bg);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .feature-card:hover::before {
            transform: scaleX(1);
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px var(--shadow);
        }

        .feature-icon {
            font-size: 3rem;
            color: var(--primary-color);
            margin-bottom: 1.25rem;
            position: relative;
        }

        .feature-icon::after {
            content: '';
            position: absolute;
            bottom: -10px;
            right: 50%;
            transform: translateX(50%);
            width: 30px;
            height: 30px;
            background: var(--gradient-bg);
            border-radius: 50%;
            opacity: 0.2;
            z-index: -1;
        }

        .feature-card h3 {
            font-size: 1.375rem;
            color: var(--secondary-color);
            margin-bottom: 0.9375rem;
            font-weight: 600;
        }

        .feature-card p {
            color: var(--text-light);
            line-height: 1.8;
        }

        /* Testimonials Section */
        .testimonials {
            padding: 80px 0;
            background: var(--white);
        }

        /* --- DYNAMIC TESTIMONIALS SLIDER WIDTH --- */
        .testimonials-grid {
            display: flex;
            gap: 0;
            margin-top: 40px;
            transition: transform 0.5s ease-in-out;
            width: auto; /* Let JS set width dynamically */
            direction: ltr;
            will-change: transform;
        }

        .testimonial-carousel {
            position: relative;
            max-width: 900px;
            margin: 0 auto;
        }

        .testimonial-slider-wrapper {
            overflow: hidden;
            border-radius: 24px;
            width: 100%;
            direction: ltr;
        }

        .testimonial-image-card {
            flex: 0 0 auto; /* Let JS set flex-basis dynamically */
            width: 100%;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .testimonial-img {
            width: 100%;
            height: auto;
            max-height: 65vh;
            object-fit: contain;
            border-radius: 18px;
            display: block;
        }

        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: var(--primary);
            color: var(--white);
            border: none;
            border-radius: 50%;
            width: 48px;
            height: 48px;
            min-width: 44px;
            min-height: 44px;
            font-size: 18px;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            transition: background-color 0.3s, transform 0.3s;
            padding: 0;
        }

        .carousel-btn i {
            pointer-events: none;
            font-size: 1.5em;
            padding: 8px;
        }

        .carousel-btn:focus-visible {
            outline: 3px solid var(--accent, #ffd700);
            outline-offset: 2px;
        }

        .carousel-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .carousel-btn--prev {
            left: 15px;
        }

        .carousel-btn--next {
            right: 15px;
        }

        .carousel-dots {
            text-align: center;
            padding: 20px 0;
        }

        .carousel-dot {
            border: none;
            background-color: #ccc;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin: 0 6px;
            cursor: pointer;
            padding: 0;
            transition: background-color 0.3s, transform 0.3s;
        }

        .carousel-dot:hover {
            background-color: var(--secondary);
        }

        .carousel-dot.active {
            background-color: var(--primary);
            transform: scale(1.2);
        }

        @media (max-width: 768px) {
            .carousel-btn {
                width: 44px;
                height: 44px;
                min-width: 44px;
                min-height: 44px;
                font-size: 16px;
            }
            .carousel-btn--prev { left: 10px; }
            .carousel-btn--next { right: 10px; }
        }

        .testimonial-whatsapp {
            background: #25D366;
            border-radius: 20px;
            padding: 25px;
            color: white;
            position: relative;
            transform: rotate(-1deg);
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
        }

        .testimonial-whatsapp:nth-child(even) {
            transform: rotate(1deg);
        }

        .testimonial-whatsapp:hover {
            transform: rotate(0deg) scale(1.02);
        }

        .whatsapp-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255,255,255,0.2);
        }

        .whatsapp-avatar {
            width: 40px;
            height: 40px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 10px;
            font-size: 20px;
        }

        .whatsapp-info h4 {
            font-size: 16px;
            margin-bottom: 2px;
        }

        .whatsapp-time {
            font-size: 12px;
            opacity: 0.8;
        }

        .whatsapp-message {
            background: white;
            color: var(--text-dark);
            padding: 15px;
            border-radius: 15px;
            border-bottom-left-radius: 5px;
            line-height: 1.6;
            position: relative;
            font-family: 'Amiri', serif;
        }

        .whatsapp-message::before {
            content: '';
            position: absolute;
            bottom: 0;
            right: -8px;
            width: 0;
            height: 0;
            border: 8px solid transparent;
            border-top-color: white;
            border-right: 0;
            transform: rotate(-45deg);
        }

        .testimonials-cta {
            text-align: center;
            margin-top: 50px;
        }

        .view-more-btn {
            background: transparent;
            color: var(--primary-color);
            border: 2px solid var(--primary-color);
            padding: 12px 30px;
            border-radius: 25px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }

        .view-more-btn:hover {
            background: var(--gradient-bg);
            color: white;
            border-color: transparent;
        }

        /* Pricing Section */
        .pricing {
            padding: 80px 0;
            background: linear-gradient(135deg, var(--light-bg) 0%, #f5f2ef 100%);
        }
        
        /* Info item title styling (replaced h4 with semantic p) */
        .info-item-title {
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
            color: var(--secondary-color);
            font-weight: 600;
        }

        /* Guarantee Section */
        .guarantee {
            padding: 60px 0;
            background: var(--gradient-bg);
            color: white;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .guarantee::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: repeating-conic-gradient(
                from 0deg,
                transparent 0deg 2deg,
                rgba(255,255,255,0.1) 2deg 4deg
            );
            animation: rotate 30s linear infinite;
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .guarantee-content {
            max-width: 800px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        .guarantee-icon {
            font-size: 64px;
            margin-bottom: 20px;
            color: #ffd700;
        }

        .guarantee h2 {
            font-family: 'Amiri', serif;
            font-size: 36px;
            margin-bottom: 20px;
        }

        .guarantee p {
            font-size: 18px;
            line-height: 1.8;
            margin-bottom: 20px;
            opacity: 0.95;
        }

        /* Services Section */
        .services {
            padding: 80px 0;
            background: var(--white);
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 60px;
        }

        .service-card {
            background: var(--light-bg);
            padding: 30px;
            border-radius: 15px;
            border-right: 4px solid var(--primary-color);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 0;
            height: 100%;
            background: linear-gradient(135deg, rgba(165, 120, 101, 0.1), rgba(87, 70, 63, 0.1));
            transition: width 0.3s ease;
        }

        .service-card:hover::before {
            width: 100%;
        }

        .service-card:hover {
            transform: translateX(-10px);
            box-shadow: 0 10px 30px var(--shadow);
        }

        .service-card h3 {
            color: var(--secondary-color);
            font-size: 20px;
            margin-bottom: 15px;
            position: relative;
            z-index: 2;
        }

        .service-card p {
            color: var(--text-light);
            line-height: 1.8;
            margin-bottom: 10px;
            position: relative;
            z-index: 2;
        }

        .service-suitable {
            color: var(--primary-color);
            font-weight: 600;
            font-size: 14px;
            position: relative;
            z-index: 2;
        }

        /* Contact Section */
        .contact {
            padding: 80px 0;
            background: linear-gradient(135deg, var(--light-bg) 0%, #f5f2ef 100%);
        }

        .contact-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            margin-top: 60px;
        }

        .contact-info {
            background: var(--white);
            padding: 40px;
            border-radius: 20px;
            height: fit-content;
            box-shadow: 0 10px 30px var(--shadow);
        }

        .contact-info h3 {
            color: var(--secondary-color);
            font-size: 24px;
            margin-bottom: 30px;
            text-align: center;
            font-family: 'Amiri', serif;
        }

        .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            padding: 15px;
            border-radius: 10px;
            transition: all 0.3s ease;
        }

        .contact-item:hover {
            background: var(--light-bg);
        }

        .contact-item i {
            font-size: 20px;
            color: var(--primary-color);
            margin-inline-start: 15px;
            width: 25px;
        }

        .contact-form {
            background: var(--white);
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 10px 30px var(--shadow);
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-group label {
            display: block;
            color: var(--secondary-color);
            font-weight: 600;
            margin-bottom: 8px;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 15px;
            border: 2px solid rgba(165, 120, 101, 0.2);
            border-radius: 10px;
            font-size: 16px;
            transition: all 0.3s ease;
            font-family: 'Montserrat', sans-serif;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(165, 120, 101, 0.1);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 120px;
            font-family: 'Amiri', serif;
        }

        .submit-btn {
            width: 100%;
            background: var(--gradient-bg);
            color: white;
            padding: 18px;
            border: none;
            border-radius: 10px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px var(--shadow);
        }

        /* Custom Phone Input Styling */
        .phone-input-wrapper {
            display: flex;
            align-items: center;
            direction: ltr; /* Force LTR for the wrapper to keep code on left */
            border: 2px solid rgba(165, 120, 101, 0.2);
            border-radius: 10px;
            transition: all 0.3s ease;
            background-color: #fff;
            overflow: hidden; /* Ensures border-radius is respected by children */
        }

        .phone-input-wrapper:focus-within {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(165, 120, 101, 0.1);
        }

        .phone-country-code {
            display: none; /* Hidden by default */
            padding: 15px;
            background-color: #f5f5f5;
            color: var(--text-dark);
            font-weight: 600;
            border-right: 2px solid rgba(165, 120, 101, 0.2);
            white-space: nowrap;
            font-family: 'Montserrat', sans-serif;
        }

        #phone {
            border: none;
            outline: none;
            padding: 15px;
            width: 100%;
            background: transparent;
            font-size: 16px;
            direction: ltr;
            text-align: left;
            font-family: 'Montserrat', sans-serif;
        }

        .form-group.invalid .phone-input-wrapper {
            border-color: #e74c3c !important;
        }

        /* FAQ Section */
        .faq {
            padding: 80px 0;
            background: var(--white);
        }

        .faq-container {
            max-width: 800px;
            margin: 0 auto;
            margin-top: 60px;
        }

        .faq-item {
            background: var(--light-bg);
            margin-bottom: 15px;
            border-radius: 15px;
            overflow: hidden;
            border: 1px solid rgba(165, 120, 101, 0.2);
            transition: all 0.3s ease;
        }

        .faq-item:hover {
            box-shadow: 0 5px 15px var(--shadow);
        }

        .faq-question {
            width: 100%;
            background: none;
            border: none;
            padding: 1.5625rem 1.875rem;
            text-align: right;
            cursor: pointer;
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--secondary-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
            font-family: 'Amiri', serif;
        }

        .faq-question:hover {
            background: rgba(165, 120, 101, 0.05);
        }

        .faq-question i {
            transition: transform 0.3s ease;
            color: var(--primary-color);
        }

        .faq-question.active i {
            transform: rotate(180deg);
        }

        .faq-answer {
            padding: 0 30px;
            max-height: 0;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .faq-answer.active {
            padding: 0 30px 25px;
            max-height: 500px;
        }

        .faq-answer p {
            color: var(--text-light);
            line-height: 1.8;
            font-family: 'Amiri', serif;
            font-size: 1rem;
        }

        /* Footer */
        .footer {
            background: var(--secondary-color);
            color: white;
            padding: 40px 0;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .footer::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 100%;
            height: 4px;
            background: var(--gradient-bg);
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 30px;
        }

        .footer-section h3 {
            font-family: 'Amiri', serif;
            font-size: 24px;
            margin-bottom: 20px;
            color: var(--primary-color);
        }

        .footer-section p {
            line-height: 1.8;
            opacity: 0.9;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 10px;
        }

        .footer-links a {
            color: white;
            text-decoration: none;
            opacity: 0.9;
            transition: all 0.3s ease;
        }

        .footer-links a:hover {
            opacity: 1;
            color: var(--primary-color);
        }

        .footer-bottom {
            border-top: 1px solid rgba(255,255,255,0.2);
            padding-top: 20px;
            opacity: 0.8;
        }

        /* WhatsApp Float Button */
        .whatsapp-float {
            position: fixed;
            bottom: 20px;
            left: 20px;
            width: 60px;
            height: 60px;
            background: #25D366;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            text-decoration: none;
            z-index: 1000;
            animation: bounce 2s infinite;
            box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
        }

        @media (prefers-reduced-motion: no-preference) {
            .whatsapp-float {
                animation: bounce 2s infinite;
            }
        }

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

            .hero-text {
                padding-left: 0;
            }

            .stats-row {
                justify-content: center;
            }

            .sacred-geometry {
                width: 400px;
                height: 400px;
            }

            .main-circle {
                width: 350px;
                height: 350px;
            }

            .container {
                padding: 0 20px;
            }
        }

        @media (max-width: 768px) {
            .nav-menu {
                display: none;
            }

            /* Flexible hero layout for mobile */
            .hero {
                padding-top: 20px; /* Reduced padding since navbar not sticky */
                padding-bottom: 30px;
                min-height: 100vh; /* Fill the viewport */
                min-height: -webkit-fill-available; /* Better mobile viewport handling */
                display: flex;
                flex-direction: column;
                justify-content: center; /* Center content vertically */
            }
            
            .hero-content {
                padding-top: 110px; /* Space for navbar */
                gap: 30px; /* Balanced spacing */
                width: 100%;
                flex: 1;
                display: flex;
                flex-direction: column;
                justify-content: center;
            }
            
            .hero-visual {
                height: 280px; /* Fixed height for consistency */
                min-height: auto;
                display: flex;
                align-items: center;
                justify-content: center;
                background: transparent; /* No background on visual container */
            }
            
            .hero-title {
                font-size: 42px;
            }

            .sacred-geometry {
                width: 300px;
                height: 300px;
                background: transparent !important; /* Force no background */
            }

            .main-circle {
                width: 280px;
                height: 280px;
                /* Force circular clipping on mobile too */
                -webkit-mask-image: radial-gradient(circle, white 100%, transparent 100%);
                mask-image: radial-gradient(circle, white 100%, transparent 100%);
            }

            .center-content {
                width: 150px;
                height: 150px;
            }

            .arabic-logo {
                font-size: 36px;
            }

            .cta-wrapper {
                flex-direction: column;
            }

            .stats-row {
                flex-wrap: wrap;
                gap: 30px;
            }

            .stat-item {
                flex: 0 0 100%;
            }

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

            .pricing-card.featured {
                transform: none;
            }

            .container {
                padding: 0 15px;
            }

            .logo-text h1 {
                font-size: 18px;
            }

            .logo-text p {
                font-size: 10px;
            }
        }

        /* Animations */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

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

        /* Brand Pattern */
        .brand-pattern {
            position: absolute;
            width: 100px;
            height: 100px;
            background: repeating-conic-gradient(
                from 0deg,
                var(--primary-color) 0deg 10deg,
                transparent 10deg 20deg
            );
            border-radius: 50%;
            opacity: 0.1;
            animation: rotate 20s linear infinite;
        }

        .brand-pattern.pattern-1 { top: 10%; inset-inline-end: 10%; }
        .brand-pattern.pattern-2 { bottom: 10%; inset-inline-start: 10%; animation-direction: reverse; }

        /* Citation Tooltips */
        .citation {
            font-size: 0.8em;
            color: var(--accent);
            cursor: help;
            position: relative;
            display: inline-block;
            margin-left: 2px;
        }

        .citation::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 125%;
            left: 50%;
            transform: translateX(-50%);
            background-color: #333;
            color: #fff;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: normal;
            white-space: nowrap;
            visibility: hidden;
            opacity: 0;
            transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
            z-index: 100;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .citation:hover::after {
            visibility: visible;
            opacity: 1;
        }

        /* Arrow for tooltip */
        .citation::before {
            content: '';
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            border-width: 5px;
            border-style: solid;
            border-color: #333 transparent transparent transparent;
            visibility: hidden;
            opacity: 0;
            transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
            z-index: 101;
        }

        .citation:hover::before {
            visibility: visible;
            opacity: 1;
        }

        .custom-select {
            position: relative;
            width: 100%;
            user-select: none;
            font-family: inherit;
        }
        .selected-option {
            background: #fff;
            border: 2px solid rgba(165, 120, 101, 0.2);
            border-radius: 10px;
            padding: 15px;
            font-size: 16px;
            cursor: pointer;
            transition: border-color 0.3s;
        }
        .selected-option:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(165, 120, 101, 0.1);
        }
        .options-list {
            display: none;
            position: absolute;
            width: 100%;
            background: #fff;
            border: 2px solid rgba(165, 120, 101, 0.2);
            border-radius: 0 0 10px 10px;
            box-shadow: 0 8px 24px rgba(165, 120, 101, 0.08);
            z-index: 100;
            max-height: 220px;
            overflow-y: auto;
            margin-top: 2px;
        }
        .custom-select.open .options-list {
            display: block;
        }
        .option {
            padding: 14px 16px;
            cursor: pointer;
            transition: background 0.2s;
            font-size: 16px;
        }
        .option:hover, .option.selected {
            background: var(--light);
        }

        /* === Restored Pricing Cards & Packages Table Styles === */
        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-top: 60px;
        }
        .pricing-card {
            background: var(--white);
            border-radius: 20px;
            overflow: hidden;
            position: relative;
            transition: all 0.3s ease;
            box-shadow: 0 5px 20px rgba(165, 120, 101, 0.1);
            border: 2px solid transparent;
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.6s ease forwards;
        }
        .pricing-card:nth-child(1) { animation-delay: 0.1s; }
        .pricing-card:nth-child(2) { animation-delay: 0.2s; }
        .pricing-card:nth-child(3) { animation-delay: 0.3s; }
        .pricing-card:nth-child(4) { animation-delay: 0.4s; }
        .pricing-card:nth-child(5) { animation-delay: 0.5s; }
        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .pricing-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(165, 120, 101, 0.2);
        }
        .pricing-card.popular {
            border-color: var(--primary);
            transform: scale(1.05);
            box-shadow: 0 15px 40px rgba(165, 120, 101, 0.3);
        }
        .pricing-card.popular:hover {
            transform: scale(1.05) translateY(-5px);
        }
        .popular-badge {
            position: absolute;
            top: 0px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--gradient);
            color: white;
            padding: 6px 20px;
            border-radius: 25px;
            font-size: 12px;
            font-weight: 600;
            z-index: 10;
            box-shadow: 0 4px 15px rgba(165, 120, 101, 0.3);
            white-space: nowrap;
            font-family: 'Tajawal', sans-serif;
            letter-spacing: 0.5px;
            text-align: center;
            min-width: 120px;
            direction: rtl;
        }
        .card-header {
            background: linear-gradient(135deg, var(--light) 0%, rgba(165, 120, 101, 0.05) 100%);
            padding: 40px 30px 30px;
            text-align: center;
            position: relative;
        }
        .pricing-card.popular .card-header {
            background: linear-gradient(135deg, rgba(165, 120, 101, 0.1) 0%, rgba(165, 120, 101, 0.05) 100%);
            padding-top: 55px;
        }
        .card-title {
            font-size: 1.375rem;
            font-weight: 600;
            color: var(--secondary);
            margin-bottom: 0.9375rem;
            font-family: 'Amiri', serif;
        }
        .card-price {
            font-size: 3rem;
            font-weight: 700;
            color: var(--primary);
            line-height: 1;
            margin-bottom: 0.625rem;
        }
        .card-price .currency {
            font-size: 1rem;
            font-weight: normal;
            color: var(--text-light);
            margin-right: 0.3125rem;
        }
        .card-period {
            color: var(--text-light);
            font-size: 0.875rem;
            margin-bottom: 1.25rem;
        }
        .card-sessions {
            background: rgba(165, 120, 101, 0.1);
            color: var(--secondary);
            padding: 0.625rem 1.25rem;
            border-radius: 25px;
            font-weight: 600;
            font-size: 0.875rem;
            display: inline-block;
        }
        .card-body {
            padding: 30px;
        }
        .features-list {
            list-style: none;
            margin-bottom: 30px;
        }
        .features-list li {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            font-size: 15px;
            color: var(--text-dark);
        }
        .features-list li i {
            color: var(--accent);
            margin-left: 12px;
            font-size: 16px;
            width: 20px;
            flex-shrink: 0;
        }
        .card-cta {
            width: 100%;
            background: var(--gradient);
            color: white;
            border: none;
            padding: 16px 20px;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        .card-cta::before {
            content: '';
            position: absolute;
            top: 0;
            right: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: right 0.5s;
        }
        .card-cta:hover::before {
            right: 100%;
        }
        .card-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(165, 120, 101, 0.4);
        }
        .pricing-card.popular .card-cta {
            background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
            font-size: 17px;
            padding: 18px 20px;
        }
        .session-info {
            background: rgba(212, 175, 55, 0.1);
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 20px;
            text-align: center;
        }
        .session-info .duration {
            font-weight: 600;
            color: var(--secondary);
            font-size: 1rem;
        }
        .session-info .note {
            font-size: 0.8125rem;
            color: var(--text-light);
            margin-top: 0.3125rem;
        }
        @media (max-width: 768px) {
            .pricing-grid {
                grid-template-columns: 1fr;
                gap: 20px;
                max-width: 400px;
                margin: 40px auto 0;
            }
            .pricing-card.popular {
                transform: none;
                order: -1;
            }
            .pricing-card.popular:hover {
                transform: translateY(-5px);
            }
            .popular-badge {
                top: 0px;
                font-size: 11px;
                padding: 5px 16px;
                min-width: 100px;
            }
            .card-price {
                font-size: 42px;
            }
            .section-title {
                font-size: 28px;
            }
            .section-subtitle {
                font-size: 16px;
            }
            .card-header {
                padding: 30px 20px 25px;
            }
            .card-body {
                padding: 25px 20px;
            }
        }
        @media (max-width: 480px) {
            body {
                padding: 20px 0; /* Removed horizontal padding to fix overflow */
            }
            
            /* Fix any background issues on mobile */
            .hero-visual,
            .sacred-geometry,
            .inner-pattern,
            .radial-lines {
                background: transparent !important;
                background-color: transparent !important;
            }
            
            .pricing-grid {
                max-width: 320px;
            }
            .popular-badge {
                top: 0px;
                font-size: 10px;
                padding: 4px 12px;
                border-radius: 20px;
                min-width: 80px;
            }
            .card-price {
                font-size: 36px;
            }
            .card-title {
                font-size: 20px;
            }
        }
        .additional-info {
            background: var(--white);
            border-radius: 15px;
            padding: 30px;
            margin-top: 40px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(165, 120, 101, 0.1);
        }
        .additional-info h3 {
            color: var(--secondary);
            font-family: 'Amiri', serif;
            font-size: 24px;
            margin-bottom: 20px;
        }
        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }
        .info-item {
            background: var(--light);
            padding: 20px;
            border-radius: 10px;
            border-right: 3px solid var(--primary);
        }
        .info-item i {
            font-size: 24px;
            color: var(--primary);
            margin-bottom: 10px;
        }
        .info-item h4 {
            color: var(--secondary);
            font-weight: 600;
            margin-bottom: 8px;
        }
        .info-item p {
            color: var(--text-light);
            font-size: 14px;
            line-height: 1.6;
        }

        /* === Restored Hero Section Animation Keyframes === */
        @keyframes breathe {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        @keyframes rotate-slow {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        @keyframes rotate-orbit {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        @keyframes pulse-ring {
            0%, 100% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.9);
            }
            50% {
                opacity: 0.3;
                transform: translate(-50%, -50%) scale(1);
            }
        }

        /* NEW Lightbox Styles */
        .lightbox-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(87, 70, 63, 0.9);
            backdrop-filter: blur(8px);
            z-index: 2000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            direction: ltr;
        }
        .lightbox-overlay.visible {
            opacity: 1;
        }
        .lightbox-content {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        .lightbox-image {
            max-width: 100%;
            max-height: calc(90vh - 80px);
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
            object-fit: contain;
            opacity: 0;
            transform: scale(0.95);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        .lightbox-image.loaded {
            opacity: 1;
            transform: scale(1);
        }
        .lightbox-caption {
            color: var(--light);
            margin-top: 15px;
            font-size: 16px;
            text-align: center;
            padding: 0 20px;
            direction: rtl;
        }
        .lightbox-control {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s, transform 0.3s;
            z-index: 2001;
        }
        .lightbox-control:hover {
            background: var(--primary);
            transform: translateY(-50%) scale(1.1);
        }
        .lightbox-close {
            top: 20px;
            right: 20px;
            transform: none;
        }
        .lightbox-prev {
            left: 20px;
        }
        .lightbox-next {
            right: 20px;
        }
        .lightbox-loader {
            width: 48px;
            height: 48px;
            border: 5px solid #FFF;
            border-bottom-color: var(--primary);
            border-radius: 50%;
            display: inline-block;
            box-sizing: border-box;
            animation: rotation 1s linear infinite;
            position: absolute;
        }
        @keyframes rotation {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        @media (max-width: 768px) {
            .lightbox-control {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }
            .lightbox-prev { left: 10px; }
            .lightbox-next { right: 10px; }
            .lightbox-close { top: 10px; right: 10px; }
        }

        @media (max-width: 900px) {
            .testimonials-grid { width: 600%; }
            .testimonial-image-card { flex: 0 0 16.6667%; }
        }
        @media (max-width: 600px) {
            .testimonials-grid { width: 600%; }
            .testimonial-image-card { flex: 0 0 16.6667%; }
        }

        /* === The Harmonious Path - Why Us Section === */
        .why-us-path {
            background: var(--color-bg);
            padding: clamp(3rem, 8vw, 6rem) 0;
            font-family: var(--font-body);
            direction: rtl;
            overflow: hidden;
        }
        .why-us-path .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 2rem;
        }
        .why-us-path .section-title {
            text-align: center;
            font-size: clamp(2rem, 5vw, 2.75rem);
            color: var(--color-primary-text);
            margin-bottom: clamp(3rem, 8vw, 6rem);
        }
        .timeline-path-container {
            position: relative;
        }
        @media (min-width: 768px) {
            .timeline-path-container::before {
                content: '';
                position: absolute;
                top: 0; bottom: 0; right: 50%;
                transform: translateX(50%);
                width: 4px;
                background: var(--color-path);
                border-radius: 2px;
            }
        }
        .timeline-item {
            position: relative;
            margin-bottom: 50px;
            width: 100%;
        }
        .timeline-content {
            background: var(--color-card-bg);
            padding: 1.75rem 2rem;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.07);
            border: 1px solid #F0EBE3;
            transition: transform 0.3s, box-shadow 0.3s;
        }
        .timeline-item:hover .timeline-content {
            transform: translateY(-5px);
            box-shadow: 0 12px 35px rgba(0,0,0,0.09);
        }
        .timeline-content h3 {
            font-size: 1.3rem;
            color: var(--color-primary-text);
            margin: 0 0 0.5rem 0;
        }
        .timeline-content p {
            font-size: 1rem;
            color: var(--color-secondary-text);
            line-height: 1.7;
            margin: 0;
        }
        .timeline-icon {
            position: absolute;
            top: 0; right: 50%;
            transform: translate(50%, -50%);
            background: var(--color-bg);
            width: 50px; height: 50px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            border: 3px solid var(--color-path);
            z-index: 10;
        }
        .timeline-icon svg {
            width: 24px; height: 24px;
            color: var(--color-accent-gold);
        }
        @media (min-width: 768px) {
            .timeline-item { width: 50%; padding-right: 50px; }
            .timeline-item:nth-child(odd) { right: 0; padding-left: 50px; padding-right: 0; text-align: left; }
            .timeline-item:nth-child(even) { right: 50%; text-align: right; }
            .timeline-item:nth-child(odd) .timeline-icon { right: auto; left: 50%; transform: translate(-50%, -50%); }
            .timeline-content::after { content: ''; position: absolute; top: 20px; width: 0; height: 0; border-style: solid; }
            .timeline-item:nth-child(even) .timeline-content::after { right: -15px; border-width: 10px 0 10px 15px; border-color: transparent transparent transparent var(--color-card-bg); }
            .timeline-item:nth-child(odd) .timeline-content::after { left: -15px; border-width: 10px 15px 10px 0; border-color: transparent var(--color-card-bg) transparent transparent; }
        }
        @media (max-width: 767px) {
            .timeline-path-container::before {
                content: '';
                position: absolute;
                top: 0; bottom: 0; right: 25px;
                transform: translateX(50%);
                width: 4px;
                background: var(--color-path);
                border-radius: 2px;
            }
            .timeline-item { width: 100%; padding-right: 70px; padding-left: 0; }
            .timeline-icon { right: 25px; top: 0; transform: translate(50%, 0); }
        }

        /* Hide the honeypot field visually (anti-spam) */
        .honeypot {
            position: absolute;
            left: -5000px;
            visibility: hidden;
        }

        /* === Form Validation & Feedback Enhancements === */
        .form-group.invalid input,
        .form-group.invalid .selected-option,
        .form-group.invalid textarea {
            border-color: #e74c3c !important;
        }

        .error-message {
            color: #e74c3c;
            font-size: 0.875em;
            margin-top: 5px;
            display: none;
            text-align: right;
        }

        .form-group.invalid .error-message {
            display: block;
        }

        #form-feedback.success {
            background-color: #eaf6ec;
            color: #3d8b4f;
            padding: 1rem;
            border-radius: 10px;
            margin-top: 1rem;
            text-align: center;
        }

        #form-feedback.error {
            background-color: #fbe9e8;
            color: #c93422;
            padding: 1rem;
            border-radius: 10px;
            margin-top: 1rem;
            text-align: center;
        }

        .btn-spinner {
            display: inline-block;
            vertical-align: middle;
            margin-right: 0.5em;
        }

        .btn-spinner i {
            color: #a57865;
            font-size: 1em;
        }

        .submit-btn[aria-busy="true"] .btn-text {
            display: none;
        }

        .submit-btn[aria-busy="true"] .btn-spinner {
            display: inline-block !important;
        }

        /* === Mobile Overflow Fixes === */
        @media (max-width: 768px) {
            /* Ensure no horizontal overflow on mobile */
            html, body {
                overflow-x: hidden !important;
                max-width: 100vw !important;
            }
            
            /* Fix container padding on small screens */
            .container {
                padding: 0 20px;
            }
            
            /* Ensure all sections respect viewport width */
            section, .hero, .about, .features, .pricing, .testimonials, 
            .why-us-path, .contact, .faq, .footer {
                overflow-x: hidden;
                max-width: 100vw;
            }
            
            /* Fix sacred geometry overflow */
            .sacred-geometry {
                max-width: 100vw;
                overflow: hidden;
                background: transparent !important;
            }
        }

        /* === Mobile Navigation === */
        .nav-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 2rem;
            color: var(--primary, #a57865);
            cursor: pointer;
            margin-inline-start: 1rem;
            z-index: 1002;
            padding: 0.5rem;
            border-radius: 50%;
            transition: background 0.2s;
        }
        .nav-toggle:focus-visible,
        .nav-toggle:hover {
            background: rgba(165, 120, 101, 0.1);
            outline: 2px solid var(--accent, #ffd700);
        }
        @media (max-width: 767px) {
            /* Creative mobile navbar layout */
            .navbar {
                padding: 10px 10px 8px;
                min-height: auto;
                background: rgba(250, 248, 246, 0.98); /* Match hero background */
                backdrop-filter: blur(20px);
                box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
                border-bottom: 1px solid rgba(165, 120, 101, 0.08);
                position: static; /* Remove sticky behavior */
                width: 100%; /* Ensure full width */
            }
            
            /* Hide hamburger menu - we don't need it anymore */
            .nav-toggle {
                display: none !important;
            }
            
            .nav-content {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 8px; /* Reduced gap from 15px */
                padding: 0;
            }
            
            /* Center logo at top */
            .logo {
                order: 0;
                margin: 0 auto;
                text-align: center;
                display: flex;
                flex-direction: column;
                align-items: center;
            }
            
            /* Bigger logo image size on mobile */
            .logo-img {
                height: 75px; /* Increased from 55px */
                max-width: 260px; /* Increased from 220px */
                width: auto; /* Maintain aspect ratio */
            }
            
            /* Horizontal menu list */
            .nav-menu {
                order: 1;
                position: static !important;
                transform: none !important;
                visibility: visible !important;
                display: flex !important;
                flex-direction: row !important;
                justify-content: center;
                align-items: center;
                gap: 0;
                padding: 5px 0; /* Reduced from 10px */
                margin: 0;
                width: 100%;
                height: auto;
                background: transparent;
                box-shadow: none;
                overflow-x: auto;
                overflow-y: hidden;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                -ms-overflow-style: none;
                position: relative;
            }
            
            /* Decorative line above menu */
            .nav-menu::before {
                content: '';
                position: absolute;
                top: 0;
                left: 20%;
                right: 20%;
                height: 1px;
                background: linear-gradient(90deg, 
                    transparent 0%, 
                    rgba(165, 120, 101, 0.3) 50%, 
                    transparent 100%);
            }
            
            .nav-menu::-webkit-scrollbar {
                display: none;
            }
            
            .nav-menu li {
                margin: 0;
                flex-shrink: 0;
                border-inline-end: 1px solid rgba(165, 120, 101, 0.2);
            }
            
            .nav-menu li:last-child {
                border-inline-end: none;
            }
            
            .nav-menu a {
                display: block;
                padding: 8px 12px;
                font-size: 0.85rem;
                color: var(--secondary-color);
                white-space: nowrap;
                transition: all 0.3s ease;
                position: relative; /* Critical for ::after positioning */
                touch-action: manipulation; /* Fix touch event handling on mobile */
            }
            
            .nav-menu a::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 50%; /* Use left for consistent centering */
                transform: translateX(-50%); /* Center relative to parent */
                width: 0;
                height: 2px;
                background: var(--primary);
                transition: width 0.3s ease;
            }
            
            .nav-menu a:hover::after,
            .nav-menu a:focus::after {
                width: 80%;
            }
            
            /* CTA button below menu */
            .nav-content > .cta-btn {
                order: 2;
                margin: 2px auto 0; /* Reduced from 5px */
                padding: 8px 25px; /* Reduced padding */
                font-size: 0.9rem;
                background: var(--gradient-bg);
                box-shadow: 0 4px 15px rgba(165, 120, 101, 0.3);
                animation: pulse-subtle 3s ease-in-out infinite;
            }
            
            @keyframes pulse-subtle {
                0%, 100% { transform: scale(1); }
                50% { transform: scale(1.05); }
            }
            
            /* Remove slide-out menu overlay since we don't need it */
            .nav-overlay {
                display: none !important;
            }
            
            body.nav-open {
                overflow: auto;
                touch-action: auto;
            }
        }
        
        /* Fine-tuned adjustments for very small screens (iPhone SE, etc.) */
        @media (max-width: 380px) {
            .nav-menu a {
                padding: 8px 8px; /* Tighter horizontal padding */
                font-size: 0.8rem; /* Slightly smaller font */
                touch-action: manipulation; /* Ensure touch events work on very small screens too */
            }
            
            .nav-menu li {
                border-inline-end: none; /* Remove borders to save space */
            }
            
            /* Use gap instead of borders for separation */
            .nav-menu {
                gap: 2px;
            }
            
            /* Even more compact logo */
            .logo-img {
                height: 65px; /* Increased from 45px */
                max-width: 220px;
                width: auto; /* Maintain aspect ratio */
            }
            
            /* Smaller button */
            .nav-content > .cta-btn {
                padding: 6px 20px;
                font-size: 0.85rem;
            }
            
            /* Adjust hero padding for small screens */
            .hero {
                padding-top: 15px; /* Minimal padding since navbar not sticky */
            }
        }

        .contact-item a {
            color: var(--primary);
            text-decoration: underline;
            font-weight: 500;
            transition: color 0.2s;
        }
        .contact-item a:hover, .contact-item a:focus {
            color: #7a5a4a;
            text-decoration: underline;
            outline: none;
        }
