:root {
    --primary: #00d4ff; /* Cyan Neon */
    --primary-dark: #0099cc;
    --secondary: #7000ff; /* Purple Neon */
    --accent: #ff0055; /* Pink Neon */
    
    --bg-body: #0a0a12;
    --bg-card: #151520;
    --bg-alt: #11111a;
    
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --container-width: 1200px;
}

[data-theme="light"] {
    --bg-body: #f0f2f5;
    --bg-card: #ffffff;
    --bg-alt: #e4e6eb;
    --text-main: #1a1a1a;
    --text-muted: #65676b;
    --glass-bg: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #000;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block; /* Center aligned relative to container usually needs wrapper, but for h2 text-align works */
    width: 100%;
}

.section-title span {
    color: var(--primary);
    position: relative;
}

.section-title span::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.bg-alt {
    background-color: var(--bg-alt);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    position: relative;
    opacity: 0.8;
}

.nav-links a:hover, .nav-links a.active {
    opacity: 1;
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0; /* RTL */
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-actions button {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-actions button:hover {
    background: var(--primary);
    color: #000;
}

.mobile-menu-btn {
    display: none;
}

/* Hero Section */
.hero {
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    opacity: 0.2;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.2;
    z-index: -1;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.badge {
    background: rgba(255, 0, 85, 0.2);
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid var(--accent);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    position: relative;
    animation: rotate 20s linear infinite;
}

.tech-circle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
}

.floating-icon {
    font-size: 8rem;
    color: var(--text-main);
    position: absolute;
    filter: drop-shadow(0 0 30px var(--primary));
    animation: float 3s ease-in-out infinite;
}

/* Ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--bg-card);
    border-bottom: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border);
    padding: 10px 0;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    padding: 0 40px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticker-item i {
    color: var(--success);
}

.ticker-item i.fa-caret-up { color: #00ff88; }
.ticker-item i.fa-caret-down { color: #ff0055; }

/* News Grid */
.grid-news {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.card-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
}

.color-1 { background: linear-gradient(45deg, #FF6B6B, #556270); }
.color-2 { background: linear-gradient(45deg, #4ECDC4, #556270); }
.color-3 { background: linear-gradient(45deg, #C7F464, #556270); }

.card-image i {
    transition: var(--transition);
}

.news-card:hover .card-image i {
    transform: scale(1.2);
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.category {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 700;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.read-more {
    margin-top: auto;
    color: var(--text-main);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: var(--primary);
    gap: 10px;
}

/* Review / Specs Cards */
.specs-comparison {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.specs-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 30px;
    width: 300px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.specs-card.featured {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    z-index: 10;
}

.specs-card:hover {
    transform: translateY(-10px) scale(1.05);
}

.specs-card.featured:hover {
    transform: translateY(-10px) scale(1.15);
}

.spec-header h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.price {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.specs-list {
    text-align: right;
    margin-bottom: 30px;
}

.specs-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.specs-list li i {
    color: var(--secondary);
    width: 20px;
}

/* Prices Table */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
}

.prices-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

.prices-table th, .prices-table td {
    padding: 20px;
    text-align: right;
    border-bottom: 1px solid var(--glass-border);
}

.prices-table th {
    background: #1f1f2e;
    color: var(--primary);
    font-weight: 700;
}

.prices-table tr:hover {
    background: var(--glass-bg);
}

.status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.in-stock { background: rgba(0, 255, 136, 0.1); color: #00ff88; }
.low-stock { background: rgba(255, 170, 0, 0.1); color: #ffaa00; }
.out-stock { background: rgba(255, 0, 85, 0.1); color: #ff0055; }

/* Footer */
footer {
    background: #050508;
    padding: 80px 0 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-col h3 span { color: var(--primary); }

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col a {
    display: block;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--primary);
    padding-right: 10px; /* RTL Slide */
}

.socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.socials a {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.socials a:hover {
    background: var(--primary);
    color: #000;
    padding-right: 0;
}

.newsletter {
    display: flex;
    gap: 10px;
}

.newsletter input {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: var(--bg-alt);
    color: white;
}

.newsletter button {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: #000;
    font-weight: 700;
    cursor: pointer;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* Animations */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Tablets and Mobile */
@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse; /* Image on top on mobile usually, or bottom? Let's keep content on top */
        padding-top: 100px;
        text-align: center;
        justify-content: center;
    }
    
    .hero-content {
        margin-top: 40px;
    }

    .hero-btns {
        justify-content: center;
    }
    
    .logo {
        z-index: 1001; /* Above mobile menu */
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .specs-card.featured {
        transform: scale(1);
    }
    
    .specs-card.featured:hover {
        transform: translateY(-10px);
    }
}
