/* ==========================================
   Rikaz Landing Page - Premium Gold Theme
   ========================================== */

/* CSS Variables for Easy Theming */
:root {
    /* Gold Colors */
    --gold-primary: #D4AF37;
    --gold-light: #F4C430;
    --gold-dark: #B8860B;
    --gold-gradient: linear-gradient(135deg, #F4C430 0%, #D4AF37 50%, #B8860B 100%);

    /* Silver Colors */
    --silver-primary: #C0C0C0;
    --silver-light: #E8E8E8;
    --silver-dark: #A8A8A8;

    /* Neutral Colors */
    --white: #FFFFFF;
    --cream: #FFF8F0;
    --light-gray: #F5F5F5;
    --gray: #666666;
    --dark: #2C2C2C;
    --black: #1A1A1A;

    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.3);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--dark);
    background-color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL Support for Arabic */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
.header {
    background: var(--white);
    padding: var(--spacing-sm) 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.logo-icon {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Language Switcher Dropdown */
.language-switcher {
    position: relative;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    border: 2px solid var(--gold-primary);
    background: var(--white);
    color: var(--gold-dark);
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-size: 0.9rem;
    min-width: 120px;
}

.lang-dropdown-btn:hover {
    background: var(--gold-light);
    color: var(--white);
}

.lang-dropdown-btn svg {
    transition: transform 0.3s ease;
}

.lang-dropdown-btn.active svg {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border: 2px solid var(--gold-primary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    min-width: 120px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

.lang-dropdown-menu.show {
    display: flex;
}

.lang-option {
    padding: 0.75rem 1rem;
    border: none;
    background: var(--white);
    color: var(--dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-align: left;
    width: 100%;
}

.lang-option:hover {
    background: var(--cream);
}

.lang-option.active {
    background: var(--gold-gradient);
    color: var(--white);
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom, var(--cream), var(--white));
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--gold-gradient);
    opacity: 0.05;
    border-radius: 0 0 0 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--black);
}

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

.silver-text {
    color: var(--silver-dark);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn svg {
    flex-shrink: 0;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

.btn-app-store svg {
    color: white;
    fill: white;
}

.btn-google-play svg {
    color: var(--gold-dark);
    fill: var(--gold-dark);
}

.cta .btn-app-store svg,
.cta .btn-google-play svg {
    color: var(--gold-dark);
    fill: var(--gold-dark);
}

.btn-primary,
.btn-app-store {
    background: var(--gold-gradient);
    color: var(--white);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover,
.btn-app-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.4);
}

.btn-secondary,
.btn-google-play {
    background: var(--white);
    color: var(--gold-dark);
    border: 2px solid var(--gold-primary);
}

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

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

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: var(--dark);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
}

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

/* Hero Slider */
.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.5s ease;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

.slider-img.active {
    opacity: 1;
    position: relative;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--gold-primary);
    width: 24px;
    border-radius: 4px;
}

.dot:hover {
    background: var(--gold-light);
}

/* Features Section */
.features {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--black);
}

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

.feature-card {
    background: var(--cream);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--gold-dark);
}

.feature-description {
    color: var(--gray);
    line-height: 1.8;
}

/* How It Works Section */
.how-it-works {
    padding: var(--spacing-xl) 0;
    background: var(--cream);
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    align-items: flex-start;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    box-shadow: var(--shadow-gold);
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--dark);
}

.step-description {
    color: var(--gray);
    line-height: 1.8;
}

/* Screenshots Section */
.screenshots {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

.screenshot-item {
    display: flex;
    justify-content: center;
}

.screenshot-frame {
    position: relative;
    width: 280px;
    max-width: 100%;
    background: var(--dark);
    border-radius: 30px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-frame:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
}

.screenshot-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}

/* CTA Section */
.cta {
    padding: var(--spacing-xl) 0;
    background: var(--gold-gradient);
    color: var(--white);
    text-align: center;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

.cta .btn-app-store,
.cta .btn-google-play,
.cta .btn-primary {
    background: var(--white);
    color: var(--gold-dark);
}

.cta .btn-app-store:hover,
.cta .btn-google-play:hover,
.cta .btn-primary:hover {
    background: var(--cream);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo .logo-icon {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--gold-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--white);
}

.footer-copyright {
    color: var(--silver-light);
    font-size: 0.875rem;
}

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

    .hero-title {
        font-size: 2rem;
    }

    .hero-image {
        order: -1;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
    }

    .download-buttons {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .logo-icon {
        height: 30px;
    }

    .footer-logo .logo-icon {
        height: 25px;
    }

    .language-switcher {
        justify-content: center;
    }

    .lang-dropdown-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        min-width: 100px;
    }

    .lang-option {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .screenshot-frame {
        width: 100%;
        max-width: 320px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.8s ease-out;
}

/* Accessibility */
.btn:focus,
.lang-dropdown-btn:focus,
.lang-option:focus {
    outline: 3px solid var(--gold-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .download-buttons {
        display: none;
    }
}