/* 
  ========================================
  2026 Innovation - Programming Company
  Design System & Core Styles
  ========================================
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;600;800&family=Cairo:wght@400;700&family=Tajawal:wght@400;700&display=swap');

:root {
    /* Color Tokens - Modern & Bold */
    --bg-dark: #020617;
    --bg-darker: #000000;
    --primary: #0ea5e9;
    /* Neon Blue */
    --secondary: #d946ef;
    /* Electric Pink/Purple */
    --accent: #22c55e;
    /* Neon Green */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Grains & Gradients */
    --grad-main: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --grad-surface: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);

    /* Spacing & Sizing */
    --section-padding: clamp(4rem, 10vw, 8rem);
    --container-max: 1400px;

    /* Animations */
    --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    font-family: 'Tajawal', 'Inter', sans-serif;
}

body.rtl .nav-innovative {
    flex-direction: row-reverse;
}

body.rtl .nav-links {
    flex-direction: row-reverse;
}

body.rtl .hero-text {
    text-align: right;
}

body.rtl .asymmetric-grid {
    direction: rtl;
}

[data-lang="en"] .en-only {
    display: block;
}

[data-lang="en"] .ar-only {
    display: none;
}

[data-lang="ar"] .en-only {
    display: none;
}

[data-lang="ar"] .ar-only {
    display: block;
}

/* Light Mode Tokens */
[data-theme="light"] {
    --bg-dark: #f0f4f8;
    --bg-darker: #ffffff;
    --text-main: #1a202c;
    --text-muted: #4a5568;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
    --grad-surface: linear-gradient(180deg, #ffffff 0%, #edf2f7 100%);
    --primary: #0284c7;
    /* Solid Blue for light mode */
    --secondary: #c026d3;
    /* Darker Pink */
}

/* 1. Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor implementation later */
}

body {
    font-family: 'Inter', 'Tajawal', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background-color 0.5s ease, color 0.5s ease, padding 0.5s ease;
}

.lang-toggle {
    transition: var(--transition-smooth);
}

.lang-toggle:hover {
    background: var(--primary) !important;
    color: white !important;
    box-shadow: 0 0 15px var(--primary);
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: 'Space Grotesk', 'Cairo', sans-serif;
    font-weight: 700;
}

/* 2. Custom Cursor */
#custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

#cursor-outline {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.2s ease-out;
}

/* 3. Layout Utilities */
.container-custom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.asymmetric-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

/* 4. Innovative Backgrounds */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    filter: blur(80px);
    opacity: 0.4;
}

/* 5. Components */

/* Navbar */
.nav-innovative {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 0.8rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.nav-innovative.scrolled {
    top: 1rem;
    width: 95%;
    padding: 0.6rem 2rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-main);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Buttons */
.btn-neon {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: inline-block;
    text-decoration: none;
}

.btn-neon:hover {
    background: var(--primary);
    box-shadow: 0 0 30px var(--primary);
    transform: translateY(-3px);
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-neon:hover::before {
    left: 100%;
}

/* Cards */
.card-interactive {
    background: var(--grad-surface);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.card-interactive:hover {
    border-color: var(--primary);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-interactive::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.card-interactive:hover::after {
    opacity: 1;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--grad-main);
    z-index: 1001;
    width: 0%;
}

/* Mobile Toggle Style */
.mobile-toggle {
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

/* Mobile Menu Active State */
.nav-links.active {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    z-index: 1001;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 6. Responsive Adjustments */
@media (max-width: 991px) {

    /* Hide custom cursor on mobile for better UX */
    #custom-cursor,
    #cursor-outline {
        display: none !important;
    }

    * {
        cursor: auto !important;
    }

    .asymmetric-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-text {
        grid-column: 1 / -1 !important;
        text-align: center;
        padding-top: 2rem !important;
    }

    .hero-visual {
        grid-column: 1 / -1 !important;
        margin-top: 2rem;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-btns .btn-neon {
        width: 100%;
        text-align: center;
    }

    .nav-innovative {
        width: 95%;
        padding: 0.5rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    [style*="grid-column"] {
        grid-column: span 12 !important;
        margin-top: 0 !important;
    }

    footer .asymmetric-grid div {
        grid-column: 1 / -1 !important;
        text-align: center;
    }

    footer div {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (min-width: 992px) {

    /* PC Specific refinements */
    .container-custom {
        padding: 0 4rem;
    }
}

/* 7. Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float {
    animation: float 6s ease-in-out infinite;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}