/* ===================================
   Dentalia Landing Page - Arabic RTL
   Professional Production Styles
   =================================== */

/* CSS Variables */
:root {
    --primary-blue: #2196F3;
    --primary-cyan: #00BCD4;
    --primary-dark: #1976D2;
    --primary-gradient: linear-gradient(135deg, #2196F3 0%, #00BCD4 100%);
    --primary-gradient-hover: linear-gradient(135deg, #1976D2 0%, #0097A7 100%);
    
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
    
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #6c6c8a;
    --text-light: #ffffff;
    
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #1a1a2e;
    --bg-card: #ffffff;
    
    --border-light: #e2e8f0;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --font-family: 'Cairo', sans-serif;
    --container-width: 1200px;
    --section-padding: 100px 0;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-light);
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.3);
}

.btn-primary:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(33, 150, 243, 0.4);
}

.btn-light {
    background: var(--bg-white);
    color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 16px 32px;
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
}

.btn-small {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
}

.btn-large {
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-icon {
    font-size: 1.5rem;
}

/* Section Styling */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header.light h2,
.section-header.light p {
    color: var(--text-light);
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(33, 150, 243, 0.1);
    color: var(--primary-blue);
    border-radius: var(--border-radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header.light .section-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition-normal);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all var(--transition-normal);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdfa 100%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary-gradient);
    color: var(--text-light);
    border-radius: var(--border-radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-text h1 {
    margin-bottom: 24px;
}

.hero-text > p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Phone Mockup */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 580px;
    background: var(--text-primary);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #000;
    border-radius: 20px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    border-radius: 30px;
    overflow: hidden;
}

.app-preview {
    padding: 50px 16px 16px;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.1rem;
}

.app-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.app-card .card-img {
    width: 100%;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-sm);
    margin-bottom: 12px;
}

.app-card .card-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.app-card .card-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.app-card .card-rating {
    font-size: 0.8rem;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.floating-card .card-icon {
    font-size: 1.5rem;
}

.floating-card .card-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.card-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    left: -40px;
    animation-delay: 0.5s;
}

.card-3 {
    bottom: 15%;
    right: -30px;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===================================
   Features Section
   =================================== */
.features {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 40px 32px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(0, 188, 212, 0.1) 100%);
    border-radius: var(--border-radius);
    font-size: 2.5rem;
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background: var(--primary-gradient);
    transform: scale(1.1);
}

.feature-card:hover .feature-icon span {
    filter: brightness(0) invert(1);
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 1rem;
}

/* ===================================
   How It Works Section
   =================================== */
.how-it-works {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px;
    opacity: 0;
    transform: translateY(30px);
}

.step.animate {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: var(--text-light);
    font-size: 1.75rem;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.3);
}

.step-content h3 {
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.95rem;
    max-width: 200px;
}

.step-connector {
    width: 60px;
    height: 3px;
    background: var(--border-light);
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: var(--border-light);
}

/* ===================================
   Rewards Section
   =================================== */
.rewards {
    padding: var(--section-padding);
    background: var(--primary-gradient);
    color: var(--text-light);
}

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

.points-earning h3,
.levels-display h3,
.rewards-catalog h3 {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.points-list {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 8px;
}

.point-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    transition: background var(--transition-fast);
}

.point-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.point-action {
    font-size: 1rem;
}

.point-value {
    font-weight: 700;
    color: #7dd3fc;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.level-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    transition: all var(--transition-normal);
    opacity: 0;
    transform: scale(0.9);
}

.level-card.animate {
    opacity: 1;
    transform: scale(1);
}

.level-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.level-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.level-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.level-range {
    font-size: 0.9rem;
    opacity: 0.8;
}

.rewards-catalog {
    text-align: center;
}

.rewards-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.reward-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    padding: 32px 40px;
    text-align: center;
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
}

.reward-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.reward-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.reward-card.featured {
    background: var(--bg-white);
    color: var(--text-primary);
}

.reward-discount {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.reward-card.featured .reward-discount {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reward-type {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 12px;
}

.reward-card.featured .reward-type {
    color: var(--text-secondary);
}

.reward-points {
    font-weight: 700;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.reward-card.featured .reward-points {
    border-top-color: var(--border-light);
    color: var(--primary-blue);
}

/* ===================================
   Courses Section
   =================================== */
.courses {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-card {
    padding: 40px 32px;
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(30px);
}

.category-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.category-card:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.category-card h3 {
    margin-bottom: 12px;
}

.category-card p {
    font-size: 0.95rem;
}

/* ===================================
   Payment Section
   =================================== */
.payment {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.payment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.payment-text .section-badge {
    margin-bottom: 16px;
}

.payment-text h2 {
    margin-bottom: 16px;
}

.payment-text > p {
    margin-bottom: 32px;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.payment-option:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(-4px);
}

.option-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.option-details h4 {
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.option-details p {
    font-size: 0.95rem;
    margin: 0;
}

.payment-visual {
    text-align: center;
}

.payment-card-display {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.payment-method {
    width: 100px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    padding: 12px;
}

.payment-method img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.payment-method.mada {
    font-weight: 800;
    font-size: 1.2rem;
    color: #004B87;
}

.payment-secure {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ===================================
   CTA Section
   =================================== */
.cta {
    padding: var(--section-padding);
    background: var(--primary-gradient);
    text-align: center;
}

.cta-content h2 {
    color: var(--text-light);
    margin-bottom: 16px;
}

.cta-content > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 1rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: 80px 0 0;
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary-gradient);
    transform: translateY(-2px);
}

.footer-links h4 {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-light);
}

.footer-contact h4 {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-contact ul {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-icon {
    font-size: 1.2rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--text-light);
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

/* ===================================
   Toast Notification
   =================================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-primary);
    color: var(--text-light);
    padding: 16px 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    opacity: 0;
    transition: all var(--transition-normal);
    font-weight: 500;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===================================
   Responsive Design
   =================================== */

/* Large Desktop */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .footer-grid {
        gap: 40px;
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text > p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .floating-card {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rewards-content {
        grid-template-columns: 1fr;
    }
    
    .payment-content {
        grid-template-columns: 1fr;
    }
    
    .payment-visual {
        order: -1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: right var(--transition-normal);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.25rem;
    }
    
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step-connector {
        width: 3px;
        height: 40px;
    }
    
    .step-connector::after {
        left: 50%;
        top: auto;
        bottom: 0;
        transform: translateX(-50%);
        border: 6px solid transparent;
        border-top-color: var(--border-light);
        border-right-color: transparent;
    }
    
    .levels-grid {
        grid-template-columns: 1fr;
    }
    
    .rewards-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .reward-card {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 576px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .container {
        padding: 0 20px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-lg {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .phone-mockup {
        width: 240px;
        height: 500px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 32px 24px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        padding: 32px 24px;
    }
    
    .payment-option {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 16px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
}

/* Very Small Mobile */
@media (max-width: 360px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 420px;
    }
}

/* ===================================
   Animations & Effects
   =================================== */

/* Staggered animation delays for cards */
.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }
.feature-card:nth-child(5) { transition-delay: 0.5s; }
.feature-card:nth-child(6) { transition-delay: 0.6s; }

.step:nth-child(1) { transition-delay: 0.1s; }
.step:nth-child(3) { transition-delay: 0.3s; }
.step:nth-child(5) { transition-delay: 0.5s; }
.step:nth-child(7) { transition-delay: 0.7s; }

.category-card:nth-child(1) { transition-delay: 0.1s; }
.category-card:nth-child(2) { transition-delay: 0.2s; }
.category-card:nth-child(3) { transition-delay: 0.3s; }
.category-card:nth-child(4) { transition-delay: 0.4s; }
.category-card:nth-child(5) { transition-delay: 0.5s; }
.category-card:nth-child(6) { transition-delay: 0.6s; }

.level-card:nth-child(1) { transition-delay: 0.1s; }
.level-card:nth-child(2) { transition-delay: 0.2s; }
.level-card:nth-child(3) { transition-delay: 0.3s; }
.level-card:nth-child(4) { transition-delay: 0.4s; }

.reward-card:nth-child(1) { transition-delay: 0.1s; }
.reward-card:nth-child(2) { transition-delay: 0.2s; }
.reward-card:nth-child(3) { transition-delay: 0.3s; }
.reward-card:nth-child(4) { transition-delay: 0.4s; }
.reward-card:nth-child(5) { transition-delay: 0.5s; }

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .floating-card {
        animation: none;
    }
    
    .feature-card,
    .step,
    .category-card,
    .level-card,
    .reward-card {
        opacity: 1;
        transform: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .cta,
    .floating-card,
    .social-links {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero {
        min-height: auto;
        padding: 20px 0;
    }
    
    .section-badge {
        border: 1px solid #000;
        background: transparent;
        color: #000;
    }
    
    .gradient-text {
        -webkit-text-fill-color: initial;
        background: none;
        color: var(--primary-blue);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #333;
        --text-muted: #555;
        --border-light: #999;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .feature-card,
    .category-card {
        border-width: 2px;
    }
}

/* ===================================
   Theme Toggle Button
   =================================== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-left: 16px;
}

.theme-toggle:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: scale(1.05);
}

.theme-toggle:hover .theme-icon {
    filter: brightness(0) invert(1);
}

.theme-icon {
    font-size: 1.25rem;
    transition: all var(--transition-normal);
}

.light-icon {
    display: block;
}

.dark-icon {
    display: none;
}

/* ===================================
   Dark Theme Styles
   =================================== */
[data-theme="dark"] {
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-light: #ffffff;
    
    --bg-white: #0f172a;
    --bg-light: #1e293b;
    --bg-dark: #020617;
    --bg-card: #1e293b;
    
    --border-light: #334155;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .light-icon {
    display: none;
}

[data-theme="dark"] .dark-icon {
    display: block;
}

[data-theme="dark"] .navbar {
    background: transparent;
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

[data-theme="dark"] .logo {
    color: var(--text-primary);
}

[data-theme="dark"] .hero-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

[data-theme="dark"] .hero-bg::before {
    background: radial-gradient(circle, rgba(33, 150, 243, 0.15) 0%, transparent 70%);
}

[data-theme="dark"] .hero-bg::after {
    background: radial-gradient(circle, rgba(0, 188, 212, 0.15) 0%, transparent 70%);
}

[data-theme="dark"] .phone-mockup {
    background: #334155;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .phone-screen {
    background: var(--bg-light);
}

[data-theme="dark"] .app-card {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .floating-card {
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .feature-card {
    background: var(--bg-card);
    border-color: var(--border-light);
}

[data-theme="dark"] .feature-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .feature-icon {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2) 0%, rgba(0, 188, 212, 0.2) 100%);
}

[data-theme="dark"] .how-it-works {
    background: var(--bg-white);
}

[data-theme="dark"] .step-connector {
    background: var(--border-light);
}

[data-theme="dark"] .step-connector::after {
    border-right-color: var(--border-light);
}

[data-theme="dark"] .category-card {
    background: var(--bg-card);
}

[data-theme="dark"] .category-card:hover {
    background: var(--bg-light);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .payment {
    background: var(--bg-white);
}

[data-theme="dark"] .payment-option {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .payment-option:hover {
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .payment-method {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .payment-method.mada {
    color: #60a5fa;
}

[data-theme="dark"] .footer {
    background: #020617;
}

[data-theme="dark"] .toast {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .theme-toggle {
    background: var(--bg-card);
    border-color: var(--border-light);
}

[data-theme="dark"] .mobile-menu-btn span {
    background: var(--text-primary);
}

/* Dark mode mobile menu */
@media (max-width: 768px) {
    [data-theme="dark"] .nav-links {
        background: var(--bg-white);
    }
}

/* Auto dark mode based on system preference */
@media (prefers-color-scheme: dark) {
    /* This will be applied when no theme is manually set and system prefers dark */
    body:not([data-theme]) {
        /* Optionally uncomment to auto-apply dark theme based on system preference
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        --bg-white: #0f172a;
        --bg-light: #1e293b;
        --bg-card: #1e293b;
        --border-light: #334155;
        */
    }
}
