/* Fonts */
@font-face {
    font-family: 'Pixellari';
    src: url('assets/fonts/pixellari.ttf') format('truetype');
}

@font-face {
    font-family: 'Rooyin';
    src: url('assets/fonts/RooyinFree-Regular.ttf') format('truetype');
}

:root {
    --bg-color: #000000;
    --surface-color: #111111;
    --surface-hover: #1a1a1a;
    --border-color: #333333;
    
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    
    --brand-color: #10b981;
    --brand-hover: #059669;

    --font-arabic: 'Tajawal', sans-serif;
    --font-pixel: 'Rooyin', monospace;
    
    --transition-smooth: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-arabic);
    line-height: 1.6;
    overflow-x: hidden;
}

.arabic-pixel {
    font-family: var(--font-pixel);
}

.pixelated {
    image-rendering: pixelated;
}

/* ================= Site Background & Fade ================= */
.site-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Cover fills the entire screen, while still fading out at the top */
    background: url('assets/images/logo.png') center/cover no-repeat;
    opacity: 0.25; /* Made significantly more visible */
    z-index: -2;
    pointer-events: none;
}

.site-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient fading from solid black at the bottom to transparent at the top */
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
    z-index: -1;
}

/* ================= Navigation ================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

nav.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
}

.brand-name {
    font-family: 'Pixellari', sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

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

/* ================= Buttons ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1.3rem; /* Pixel font needs larger size */
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--brand-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background-color: var(--brand-hover);
    transform: translateY(-2px);
}

/* ================= Hero Section ================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 60px;
}

.hero-grid {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.system-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.highlight {
    color: var(--brand-color);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 90%;
}

/* Glass Phone Mockup */
.glass-mockup {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9/19;
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 35px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    justify-content: flex-end;
}

.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.mockup-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.mockup-ui {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ui-line {
    width: 60%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-bottom: 15px;
}

.ui-card {
    width: 85%;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ui-mini-icon { width: 24px; height: 24px; }
.ui-text { font-size: 1.1rem; color: var(--brand-color); }

/* ================= Features Section ================= */
.features-section {
    padding: 60px 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.bento-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition-smooth);
}

.bento-card:hover {
    background: var(--surface-hover);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ================= Reviews Section ================= */
.reviews-section {
    padding: 80px 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

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

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.review-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
}

.review-stars {
    margin-bottom: 15px;
}

.review-text {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    color: var(--brand-color);
    font-size: 1.1rem;
}

/* ================= Footer ================= */
footer {
    background-color: var(--surface-color);
    padding: 40px 24px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.brand-footer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 28px;
    height: 28px;
}

.brand-footer .brand-name {
    font-family: 'Pixellari', sans-serif;
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    color: #666;
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* ================= Animations ================= */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

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

/* ================= Responsive ================= */
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero-title { font-size: 3.5rem; }
    .nav-links { display: none; }
}