:root {
    /* Colors */
    --primary-pink: #FF6B95;
    --primary-peach: #FF8E72;
    --primary-lavender: #9F7AEA;
    --dark-text: #1A202C;
    --light-text: #718096;
    --bg-light: #F7FAFC;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    
    /* Gradients */
    --gradient-main: linear-gradient(135deg, #FF6B95 0%, #FF8E72 100%);
    --gradient-text: linear-gradient(135deg, #FF6B95 0%, #9F7AEA 100%);
    --gradient-soft: linear-gradient(135deg, rgba(255, 107, 149, 0.1) 0%, rgba(159, 122, 234, 0.1) 100%);

    /* Fonts */
    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Cairo', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 20px rgba(255, 107, 149, 0.3);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-en);
    color: var(--dark-text);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* RTL Support */
html[dir="rtl"] body {
    font-family: var(--font-ar);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-text);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-pink);
    border: 1px solid rgba(255, 107, 149, 0.2);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
}

.logo .dot {
    color: var(--primary-pink);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--light-text);
}

.nav-links a:hover {
    color: var(--primary-pink);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--light-text);
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    transition: background 0.2s;
}

.lang-toggle:hover {
    background: rgba(0,0,0,0.05);
    color: var(--primary-pink);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--dark-text);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 1001;
    padding: 20px;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

html[dir="rtl"] .mobile-menu {
    right: auto;
    left: -100%;
    transition: left 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

html[dir="rtl"] .mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.close-menu-btn {
    font-size: 1.5rem;
    color: var(--dark-text);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.mobile-nav-links a {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    background: linear-gradient(180deg, rgba(255,235,240,0.5) 0%, rgba(255,255,255,0) 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 107, 149, 0.1);
    color: var(--primary-pink);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.125rem;
    color: var(--light-text);
    margin-bottom: 32px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--light-text);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(0,0,0,0.1);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    z-index: -1;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-pink);
    top: 50px;
    right: 50px;
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    width: 250px;
    height: 250px;
    background: var(--primary-lavender);
    bottom: 50px;
    left: 50px;
    animation: float 6s ease-in-out infinite reverse;
}

.hero-image-placeholder {
    width: 80%;
    height: 90%;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    /* In a real scenario, this would be an image */
    background-image: url('https://images.unsplash.com/photo-1560066984-138dadb4c035?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
}

.glass-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.card-1 {
    top: 15%;
    left: 0;
    animation-delay: 1s;
}

.card-2 {
    bottom: 20%;
    right: 0;
    animation-delay: 2s;
}

.icon-pink { color: var(--primary-pink); font-size: 1.2rem; }
.icon-purple { color: var(--primary-lavender); font-size: 1.2rem; }

.card-text {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
}

/* Features Section */
.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--light-text);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0,0,0,0.03);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.icon-pink-bg { background: rgba(255, 107, 149, 0.1); color: var(--primary-pink); }
.icon-purple-bg { background: rgba(159, 122, 234, 0.1); color: var(--primary-lavender); }
.icon-peach-bg { background: rgba(255, 142, 114, 0.1); color: var(--primary-peach); }
.icon-blue-bg { background: rgba(66, 153, 225, 0.1); color: #4299E1; }

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        height: 400px;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    
    .hero h1 { font-size: 2.5rem; }
    
    .glass-card {
        padding: 12px;
    }
}

/* Why Beautyz Section */
.bg-white { background: var(--white); }

.why-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-list {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.why-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.why-list i {
    color: var(--primary-pink);
    font-size: 1.2rem;
}

.why-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.05);
}

.visual-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red { background: #FF5F56; }
.yellow { background: #FFBD2E; }
.green { background: #27C93F; }

.ui-row {
    height: 12px;
    background: #E2E8F0;
    border-radius: 4px;
    margin-bottom: 12px;
    width: 80%;
}

.ui-row.short { width: 60%; }

.ui-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 100px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #E2E8F0;
}

.bar {
    flex: 1;
    background: #CBD5E0;
    border-radius: 4px 4px 0 0;
}

.bar.active {
    background: var(--gradient-main);
}

/* Stats Section */
.stats-section {
    background: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
    text-align: center;
}

.stat-box h3 {
    font-size: 3rem;
    margin-bottom: 8px;
}

.stat-box p {
    color: var(--light-text);
    font-weight: 600;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: #E2E8F0;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 1.5rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 16px;
    color: var(--dark-text);
}

.testimonial-card h4 {
    font-size: 0.9rem;
    color: var(--primary-pink);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
}

.cta-box {
    background: var(--gradient-main);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.cta-box h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-white {
    background: var(--white);
    color: var(--primary-pink);
}

.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
}

/* App Section */
.app-section {
    overflow: hidden;
}

.app-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.app-badges {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--dark-text);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    transition: transform 0.2s;
}

.store-btn:hover {
    transform: translateY(-2px);
}

.store-btn i {
    font-size: 1.8rem;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.7rem;
}

.store-text strong {
    font-size: 1rem;
}

.app-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--dark-text);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    background-image: linear-gradient(135deg, #FFF5F7 0%, #FFF 100%);
}

.app-header {
    height: 60px;
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.app-card {
    margin: 20px;
    height: 100px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.app-nav {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: var(--white);
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Footer */
.footer {
    background: var(--white);
    padding: 80px 0 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col p {
    color: var(--light-text);
    margin-top: 16px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--primary-pink);
}

.footer-col h4 {
    margin-bottom: 24px;
}

.footer-col a {
    display: block;
    color: var(--light-text);
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: var(--primary-pink);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Responsive Adjustments for New Sections */
@media (max-width: 992px) {
    .why-container, .app-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .why-visual, .app-visual {
        margin-top: 40px;
    }
    
    .why-list {
        align-items: center;
    }
    
    .app-badges {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-col p {
        margin: 16px auto 0;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* --- Phase 2 Enhancements --- */

/* Dark Mode Variables */
[data-theme="dark"] {
    --dark-text: #F7FAFC;
    --light-text: #A0AEC0;
    --bg-light: #1A202C;
    --white: #2D3748;
    --glass-bg: rgba(26, 32, 44, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .navbar {
    background: rgba(26, 32, 44, 0.9);
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .expert-card,
[data-theme="dark"] .comparison-table {
    border-color: rgba(255,255,255,0.05);
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-pink);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-pink);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* Trusted By Section */
.trusted-section {
    padding: 40px 0;
    background: var(--bg-light);
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logos-slide {
    display: flex;
    gap: 60px;
    animation: slide 20s linear infinite;
    white-space: nowrap;
    font-size: 2rem;
    color: var(--light-text);
    opacity: 0.5;
}

@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* Scroll Velocity */
.velocity-scroll {
    overflow: hidden;
    padding: 20px 0;
    background: var(--primary-pink);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
    transform: rotate(-2deg);
    margin: 60px 0;
}

.velocity-track {
    display: inline-block;
    animation: slide 15s linear infinite;
}

/* Comparison Section */
.comparison-table {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.comp-header, .comp-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    align-items: center;
}

.comp-header {
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

.comp-col.text-primary {
    font-weight: 600;
    color: var(--primary-pink);
}

/* Experts Section */
.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.expert-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.expert-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.expert-info {
    padding: 20px;
    text-align: center;
}

.expert-info h4 { margin-bottom: 4px; }
.expert-info p { color: var(--light-text); font-size: 0.9rem; margin-bottom: 8px; }
.rating { color: #FFBD2E; font-weight: 600; font-size: 0.9rem; }

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--dark-text);
    z-index: 999;
    transition: transform 0.2s;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* 3D Tilt Effect */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

/* Magnetic Button */
.magnetic-btn {
    transition: transform 0.1s ease-out;
}
