/* خط Cairo محلي */
@font-face {
  font-family: 'Cairo';
  src: url('fonts/cairo/Cairo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('fonts/cairo/Cairo-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
    --bg-dark: #0f1016;
    --bg-darker: #08090c;
    --bg-card: rgba(25, 27, 36, 0.7);
    --text-main: #f0f2f5;
    --text-muted: #a0a4b8;
    --border: rgba(255, 255, 255, 0.08);
    
    --accent-blue: #00d2ff;
    --accent-purple: #9d00ff;
    
    --font-main: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}

[data-theme="light"] {
    --bg-dark: #f8f9fa;
    --bg-darker: #ffffff;
    --bg-card: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --border: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

body::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140vh;
    height: 140vh;
    background: url('png/1.png') no-repeat center;
    background-size: contain;
    opacity: 0.08;
    filter: blur(4px);
    z-index: -1;
    pointer-events: none;
}

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

/* Navbar */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s, padding 0.3s;
    background: rgba(15, 16, 22, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.9);
}

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

[data-theme="light"] .logo {
    color: #1a1a1a;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-blue);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.glitch {
    font-size: 4rem;
    margin-bottom: 20px;
    position: relative;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

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

.hero-graphics {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    position: absolute;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

[data-theme="light"] .glass-card {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.glass-card i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.neon-icon.blue {
    color: var(--accent-blue);
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

.neon-icon.purple {
    color: var(--accent-purple);
    text-shadow: 0 0 15px rgba(157, 0, 255, 0.5);
}

.glass-card:nth-child(1) {
    top: 50px;
    left: 0;
}

.glass-card:nth-child(2) {
    bottom: 50px;
    right: 0;
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Store & Media Grid */
.store-section, .media-section {
    padding: 80px 10%;
    background: var(--bg-dark);
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.category-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.filter-btn.active, .filter-btn:hover {
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border-color: transparent;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 15px;
    backdrop-filter: blur(10px);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,210,255,0.15);
}

[data-theme="light"] .product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
}

.product-info {
    flex-grow: 1;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-price {
    color: var(--accent-blue);
    font-size: 1.3rem;
    font-weight: 800;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .modal {
    background: rgba(255,255,255,0.8);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px; left: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-img {
    width: 50px; height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-summary {
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

/* Netflix Style Media Cards */
.media-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.media-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.media-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.media-img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.media-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 20px 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.media-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
    color: white;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: transform 0.3s;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    padding: 50px 10% 20px;
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p, .footer-section li {
    color: var(--text-muted);
    margin-bottom: 10px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
    }
    .hero-content {
        margin-bottom: 50px;
    }
    .hero-buttons {
        justify-content: center;
    }
    nav {
        display: none;
    }
}
