/* ===================================
   GuideMe - Landing Page Styles
   Built to match app.html aesthetics
   =================================== */

:root {
    --primary-coral: #F8A494;
    --primary-coral-dark: #E08B7B;
    --primary-coral-light: #FBC9C1;
    --navy: #2B2D42;
    --gray-blue: #BEC6D4;
    --soft-bg: #FDFBFA;
    --white: #FFFFFF;

    --font-main: 'Tajawal', sans-serif;

    --shadow-soft: 0 10px 30px rgba(248, 164, 148, 0.1);
    --shadow-strong: 0 20px 40px rgba(43, 45, 66, 0.1);

    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--soft-bg);
    color: var(--navy);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    right: 50%;
    transform: translateX(50%);
    background: var(--primary-coral-dark);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 0 0 15px 15px;
    z-index: 2000;
    transition: top 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--navy);
    outline-offset: -4px;
}

/* Focus Styles - Improved for visibility */
*:focus-visible {
    outline: 3px solid var(--primary-coral);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(248, 164, 148, 0.3);
}

/* Base focus fallback */
*:focus {
    outline: 2px solid var(--primary-coral);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(253, 251, 250, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

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

.btn-primary {
    background: var(--primary-coral);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(248, 164, 148, 0.3);
}

.btn-primary:hover {
    background: var(--primary-coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 164, 148, 0.4);
}

/* Hero Section */
.hero {
    padding: 12rem 10% 6rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(248, 164, 148, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

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

.hero-content p {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* About Section (Vision & Mission) */
.about-section {
    padding: 6rem 10%;
    background: var(--soft-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(248, 164, 148, 0.15);
}

.about-card h2 {
    color: var(--primary-coral);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-card p {
    font-size: 1.1rem;
    color: var(--navy);
    opacity: 0.9;
    line-height: 1.8;
}

/* Features Section */
.features {
    padding: 6rem 10%;
    background: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--gray-blue);
    font-size: 1.1rem;
}

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

.feature-card {
    background: var(--soft-bg);
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    background: var(--white);
    border-color: var(--primary-coral-light);
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-coral-light);
    color: var(--primary-coral-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Shopping Details Section (Modern Layout) */
.shopping-preview {
    padding: 6rem 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.shopping-preview.reverse {
    direction: ltr;
    /* To swap columns visually */
}

.shopping-preview.reverse .content-box {
    direction: rtl;
    /* Reset text direction */
}

.content-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.content-box p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.payment-badge {
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Accessibility Section */
.accessibility-section {
    padding: 6rem 10%;
    background: linear-gradient(135deg, var(--navy) 0%, #1a1b24 100%);
    color: var(--white);
    border-radius: 50px 50px 0 0;
    text-align: center;
}

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

.accessibility-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--primary-coral);
}

/* Footer */
footer {
    padding: 4rem 10%;
    background: var(--white);
    border-top: 1px solid #eee;
    text-align: center;
}

@media (max-width: 968px) {

    .hero,
    .shopping-preview {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .shopping-preview {
        gap: 3rem;
    }

    .nav-links {
        display: none;
    }
}

/* Voice Waves Animation */
.voice-waves {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 150px;
}

.wave {
    width: 6px;
    height: 40px;
    background: var(--primary-coral);
    border-radius: 10px;
    animation: wavePulse 1s ease-in-out infinite;
}

.wave:nth-child(2) {
    height: 80px;
    animation-delay: 0.2s;
}

.wave:nth-child(3) {
    height: 50px;
    animation-delay: 0.4s;
}

@keyframes wavePulse {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.6;
    }

    50% {
        transform: scaleY(1.5);
        opacity: 1;
    }
}

/* Store Cards UI Visualization */
.store-card {
    background: white;
    padding: 2rem;
    border-radius: 30px;
    box-shadow: var(--shadow-strong);
    width: 300px;
    margin: 0 auto;
}

.store-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

.store-item.best {
    background: var(--primary-coral-light);
    border-radius: 15px;
    border-bottom: none;
    color: var(--primary-coral-dark);
    font-weight: 700;
}

.graphic-box {
    perspective: 1000px;
}

.store-card {
    transform: rotateY(-10px) rotateX(5px);
    transition: var(--transition);
}

.store-card:hover {
    transform: rotateY(0) rotateX(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--soft-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-coral-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-coral);
}