/*
Theme Name: Mueen Theme
Theme URI: https://mueen-8ec0d.web.app/
Author: Antigravity
Author URI: https://anirni.com
Description: A modern, high-converting learning landing page theme for Mueen app.
Version: 1.0.0
License: All rights reserved
Text Domain: mueen
*/

:root {
    --primary-color: #0d9488; /* Teal accent */
    --primary-hover: #0f766e;
    --secondary-color: #1f2937;
    --background-color: #f9fafb;
    --surface-color: #ffffff;
    --text-main: #111827;
    --text-muted: #4b5563;
    --border-radius: 16px;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 25px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

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

.navbar nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
}

.navbar nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.5);
}

.btn-secondary {
    background-color: var(--surface-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-apple {
    background-color: #000000;
    color: white;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-apple:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.btn-google {
    background-color: #01875f; /* Google Play green */
    color: white;
    box-shadow: 0 4px 14px rgba(1, 135, 95, 0.4);
}

.btn-google:hover {
    background-color: #016a4a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 135, 95, 0.5);
}

.btn i {
    margin-left: 8px; /* For RTL support */
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13,148,136,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-text h1 span {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.mockup-frame {
    width: 320px;
    height: 650px;
    background-color: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: var(--transition);
}

.mockup-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    background: var(--surface-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 10;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 60px;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--surface-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--background-color);
    padding: 32px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--surface-color);
}

.feature-card.highlighted {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.feature-card.highlighted:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.feature-card.highlighted p {
    color: rgba(255,255,255,0.9);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Deep Dive Sections (Labs & AI Teacher) */
.deep-dive {
    padding: 100px 0;
    background-color: var(--surface-color);
}

.deep-dive .container {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.split-section {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* .reverse class for alternating layouts */
.split-section.reverse {
    flex-direction: row-reverse;
}

.split-text {
    flex: 1;
}

.split-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--primary-color);
    line-height: 1.3;
}

.split-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.split-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.split-image img {
    max-width: 300px;
    width: 100%;
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
    border: 10px solid #000;
}

/* How it Works */
.how-it-works {
    padding: 100px 0;
    background-color: var(--background-color);
}

.how-it-works .section-title {
    color: #0f172a;
    font-weight: 800;
    font-size: 2.8rem;
    margin-bottom: 80px;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--primary-color);
    opacity: 0.2;
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--surface-color);
    border: 4px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-md);
}

.step h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.step p {
    color: var(--text-muted);
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background-color: var(--surface-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--background-color);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-main);
}

.testimonial-card strong {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.footer .brand h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.footer .brand p {
    color: #9ca3af;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
    color: #9ca3af;
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        margin: 0 auto 32px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .split-section, .split-section.reverse {
        flex-direction: column;
        text-align: center;
    }

    .deep-dive .container {
        gap: 60px;
    }

    .path-curve {
        display: none;
    }

    .steps-container {
        flex-direction: column;
        gap: 60px;
        padding: 0;
    }
    
    .steps-container::before {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        align-items: center;
    }
    
    .navbar nav ul {
        display: none; /* simple mobile fallback */
    }
}
