/* Global Styles & Animations */
:root {
    --primary: #f1c40f;
    --primary-glow: rgba(241, 196, 15, 0.4);
    --primary-op: rgba(241, 196, 15, 0.1);
    --dark: #000000;
    --dark-light: #121212;
    --dark-deep: #080808;
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(241, 196, 15, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(241, 196, 15, 0); }
    100% { box-shadow: 0 0 0 0 rgba(241, 196, 15, 0); }
}

body {
    background-color: var(--dark-deep);
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.header-part {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 180px 0 120px;
    background: radial-gradient(circle at top right, rgba(241, 196, 15, 0.1), transparent),
                radial-gradient(circle at bottom left, rgba(241, 196, 15, 0.05), transparent);
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://w0.peakpx.com/wallpaper/594/1004/HD-wallpaper-mercedes-amg-gt-r-back-view-car.jpg') no-repeat center;
    background-size: cover;
    opacity: 0.2;
    z-index: -1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #fff 0%, #f1c40f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.category-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: white;
}

.category-card:hover {
    background: var(--primary-op);
    border-color: var(--primary);
    transform: translateY(-10px);
}

.category-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

/* Product Cards */
.product-card {
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    transition: 0.4s;
}

.product-card:hover {
    transform: scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.product-media img {
    height: 250px;
    object-fit: cover;
}

/* Features */
.feature-box {
    padding: 100px 0;
    background: var(--dark-deep);
}

.feature-item {
    padding: 40px;
    border-radius: 30px;
    background: var(--glass);
    border: 1px solid var(--border);
    text-align: center;
    transition: 0.3s;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: var(--primary-op);
    color: var(--primary);
    border-radius: 20px;
    font-size: 30px;
    margin: 0 auto 25px;
}

/* App Download Section */
.app-section {
    padding: 120px 0;
    background: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.9)), url('https://images.unsplash.com/photo-1511919884226-fd3cad34687c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-attachment: fixed;
    border-radius: 50px;
    margin: 50px 20px;
}

.app-content {
    text-align: center;
}

.app-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.app-badges img {
    height: 60px;
    transition: 0.3s;
}

.app-badges img:hover {
    transform: scale(1.1);
}

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

.section-title span {
    color: var(--primary);
}

/* Search Bar Large */
.search-large {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 60px;
    padding: 8px 8px 8px 30px;
    display: flex;
    align-items: center;
    margin-bottom: 50px;
}

.search-large input {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    flex: 1;
}

.search-large input:focus { outline: none; }

.search-btn-hero {
    background: var(--primary);
    color: black;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.search-btn-hero:hover {
    background: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Animations Trigger */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RTL Adjustments */
[dir="rtl"] .search-large { padding: 8px 30px 8px 8px; }
[dir="rtl"] .hero-title { background: linear-gradient(-135deg, #fff 0%, #f1c40f 100%); -webkit-background-clip: text; }
