/* ═══════════════════════════════════════════════════════════════════════════
   هون تك للبرمجيات | Hoon Tech - Design System V3.1 (Luminous Tech)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Variables & Theme ────────────────────────────────────────────────── */
:root {
    /* Brand Palette - Vivid & Professional */
    --primary: #4F46E5;
    /* Indigo 600 */
    --primary-light: #6366F1;
    /* Indigo 500 */
    --primary-dark: #4338CA;
    /* Indigo 700 */

    --secondary: #0EA5E9;
    /* Sky 500 */
    --secondary-light: #38BDF8;
    /* Sky 400 */
    --secondary-dark: #0284C7;
    /* Sky 600 */

    --accent: #F43F5E;
    /* Rose 500 */
    --accent-glow: #FDA4AF;
    /* Rose 300 */

    /* Neutrals - Clean Light Theme */
    --bg-body: #FFFFFF;
    --bg-surface: #F8FAFC;
    /* Slate 50 */
    --bg-surface-2: #F1F5F9;
    /* Slate 100 */

    --text-main: #0F172A;
    /* Slate 900 - Headings */
    --text-body: #475569;
    /* Slate 600 - Body */
    --text-muted: #94A3B8;
    /* Slate 400 */
    --border-light: #E2E8F0;
    /* Slate 200 */

    /* Gradients */
    --grad-brand: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
    --grad-surface: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    --grad-glow: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);

    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-colored: 0 10px 25px -5px rgba(79, 70, 229, 0.25);

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --blur-md: blur(12px);

    /* Dimensions */
    --container-width: 1280px;
    --header-height: 80px;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-base: 0.3s;
}

/* ── 2. Reset & Typography ────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Almarai', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 800;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--duration-base) var(--ease-out);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── 3. Utilities & Components ────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Gradient Text */
.text-gradient {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 99px;
    /* Pill shape */
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s var(--ease-out);
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.btn-primary {
    background: var(--grad-brand);
    color: white;
    box-shadow: var(--shadow-colored);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-surface);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease-out);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(79, 70, 229, 0.2);
}

/* ── 4. Header & Navigation ──────────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: var(--blur-md);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo-img {
    height: 48px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--text-body);
    font-size: 1rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s;
}

/* ── 5. Hero Section ─────────────────────────────────────────────────────── */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    background: var(--grad-surface);
    position: relative;
}

/* Abstract Background Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5;
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: rgba(79, 70, 229, 0.15);
}

.blob-2 {
    bottom: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(14, 165, 233, 0.15);
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-visual img {
    max-width: 450px;
    /* Larger Mascot */
    filter: drop-shadow(0 30px 60px rgba(79, 70, 229, 0.25));
    animation: floating 4s ease-in-out infinite;
}

/* ── 6. About Section ────────────────────────────────────────────────────── */
.about {
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.about-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.4) 0%, transparent 100%);
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

.stat-box {
    text-align: center;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ── 7. Products (Bento Grid) ────────────────────────────────────────────── */
.products {
    background: var(--bg-surface);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.product-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-surface-2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.product-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-body);
}

.product-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

/* ── 8. Features & Contact ───────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-item {
    padding: 2rem;
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    transition: 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-box {
    width: 50px;
    height: 50px;
    background: var(--grad-brand);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.contact {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
}

.contact h2,
.contact p {
    color: white;
}

.contact .text-muted {
    color: #94a3b8;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    margin-bottom: 1rem;
}

.contact-form input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ── 9. Animations ───────────────────────────────────────────────────────── */
@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── 10. Responsive Design (Mobile First overrides) ──────────────────────── */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

    h1 {
        font-size: 2.75rem;
    }

    .hero-visual img {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .header .nav-links,
    .header .btn-primary {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Mobile Nav Drawer */
    .mobile-nav {
        position: fixed;
        inset: 0;
        background: white;
        z-index: 999;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: transform 0.3s ease;
        transform: translateX(100%);
        display: flex;
    }

    .mobile-nav.open {
        transform: translateX(0);
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .about-grid,
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .stats-strip {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.25rem;
    }

    .btn {
        width: 100%;
    }

    .hero-visual img {
        max-width: 280px;
    }
}