/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    /* Color Palette - Cyber Steel & Neon */
    --color-primary: #334155;
    /* Slate 700 */
    --color-primary-dark: #0f172a;
    /* Slate 950 */
    --color-secondary: #020617;
    /* Almost Black */

    --color-steel: #475569;
    --color-blue: #3b82f6;
    --color-purple: #9333ea;
    --color-red: #ef4444;
    --color-accent: #38bdf8;

    --color-bg-body: #ffffff;
    --color-bg-surface: #f8fafc;

    --color-text-main: #1e293b;
    --color-text-muted: #64748b;
    --color-text-light: #f8fafc;

    --color-border: #cbd5e1;

    /* Complex Gradients */
    --gradient-primary: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --gradient-cyber: linear-gradient(135deg, #3b82f6 0%, #9333ea 50%, #ef4444 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Header */
.header {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    border-radius: var(--radius-full);
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--color-blue);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    border-left: 1px solid var(--color-border);
    padding-left: 1rem;
    margin-left: 1rem;
}

.lang-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    cursor: pointer;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--color-blue);
    background: rgba(59, 130, 246, 0.1);
}

/* RTL Support (Arabic) */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .nav-links {
    gap: 1.5rem;
}

html[dir="rtl"] .lang-switcher {
    border-left: none;
    border-right: 1px solid var(--color-border);
    padding-left: 0;
    padding-right: 1rem;
    margin-left: 0;
    margin-right: 1rem;
}

html[dir="rtl"] .skill-item {
    margin-right: 0;
    margin-left: 4rem;
}

html[dir="rtl"] .skill-item i {
    margin-right: 0;
    margin-left: 10px;
}

html[dir="rtl"] .message.ai {
    border-radius: 1rem 0 1rem 1rem;
}

html[dir="rtl"] .message.ai::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .message.user {
    border-radius: 1rem 1rem 1rem 0;
    align-self: flex-start;
}

html[dir="rtl"] .info-table th {
    text-align: right;
}

/* Utilities - REDUCED SPACING */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 3rem 0;
    position: relative;
}

/* Compact section padding */
.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    transition: var(--transition-bounce);
    gap: 0.5rem;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #1e293b;
}

.btn-outline {
    border: 1px solid var(--color-border);
    color: var(--color-primary);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    background: white;
}

/* REUSABLE CYBER CARD */
.cyber-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    position: relative;
    padding: 2rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.0);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cyber-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: background 0.4s;
}

.cyber-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.15);
}

.cyber-card:hover::before {
    background: var(--gradient-cyber);
}

/* AI MENTOR INTERFACE */
.ai-demo-section {
    padding-top: 1rem;
    padding-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.demo-interface {
    background: #ffffff;
    border-radius: 1.5rem;
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: perspective(1000px) rotateX(1deg);
    transition: transform 0.4s ease;
    overflow: hidden;
}

.demo-interface::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #9333ea, #ef4444);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.mentor-header {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brain-icon-wrapper {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e0e7ff 0%, #fae8ff 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-purple);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.mentor-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0;
}

.mentor-info p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-live {
    width: 6px;
    height: 6px;
    background: var(--color-red);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.chat-window {
    height: 350px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.message {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 85%;
    position: relative;
    animation: fadeInUp 0.3s ease-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.message.ai {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 0 1rem 1rem 1rem;
    color: var(--color-text-main);
}

.message.ai::before {
    content: 'AI AGENT';
    position: absolute;
    top: -18px;
    left: 0;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-purple);
    letter-spacing: 0.5px;
}

.message.user {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border-radius: 1rem 1rem 0 1rem;
    align-self: flex-end;
}

.input-area {
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 0.75rem;
}

.input-area input {
    flex: 1;
    padding: 0.8rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 99px;
    outline: none;
    transition: all 0.2s;
    background: #f8fafc;
}

.input-area input:focus {
    border-color: var(--color-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* === TICKERS (STATIC IN FLOW) === */
.ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    /* Static flow */
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    z-index: 20;
    margin-bottom: 0px;
}

.ticker-track {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    color: #f8fafc;
}

.skill-item {
    display: inline-flex;
    align-items: center;
    margin-right: 4rem;
}

.skill-item i {
    margin-right: 10px;
    color: var(--color-accent);
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.5));
}

/* 1. SKILLS TICKER - Blue/Grey/Purple */
.skills-ticker-flow {
    background: linear-gradient(90deg, rgba(30, 41, 59, 1), rgba(59, 130, 246, 0.5), rgba(147, 51, 234, 0.5));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 3px;
    /* --- 3PX GAP --- */
}

.skills-ticker-flow .ticker-track {
    animation: scroll 45s linear infinite;
}

/* 2. MODELS TICKER - Green/Grey/Purple */
.models-ticker-flow {
    background: linear-gradient(90deg, rgba(20, 83, 45, 1), rgba(71, 85, 105, 0.5), rgba(147, 51, 234, 0.5));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
}

.models-ticker-flow .ticker-track {
    animation: scroll 55s linear infinite reverse;
    /* Reverse scroll */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Hero Adjusted */
.hero {
    padding-top: 100px;
    /* Reduced from 140px */
    padding-bottom: 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--color-secondary);
    letter-spacing: -1px;
}

/* GRIDS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.four-col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: stretch;
}

/* Pricing Elements */
.pricing-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.pricing-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.feature-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* CUSTOM TEXTAREA */
.custom-textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--color-text-main);
    resize: vertical;
    min-height: 80px;
    margin-bottom: 1rem;
    background: #ffffff;
    transition: all 0.2s;
    position: relative;
    z-index: 50;
}

.custom-textarea:focus {
    outline: none;
    border-color: var(--color-purple);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

/* ORDER BUTTON */
.btn-order {
    width: 100%;
    position: relative;
    /* Ensure z-index works */
    z-index: 10;
    padding: 0.8rem;
    background: var(--color-secondary);
    color: white;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-top: auto;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    /* Ensure cursor pointer */
}

.btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    background: var(--color-blue);
}

/* Button Actions (For Contact Area) */
.card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-action {
    width: 100%;
    font-size: 0.8rem;
    border: none;
    padding: 0.6rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-action:hover {
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-telegram {
    background: #229ED9;
    color: white;
}

.btn-email {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

/* Tables */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: auto;
}

.info-table th {
    text-align: left;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.info-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
}

.info-table tr:last-child td {
    border: none;
}

/* Contact Form Card */
.contact-form-card {
    background: white;
    padding: 3rem;
    border-radius: 2rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
}

@media (max-width: 900px) {
    .header {
        width: 100%;
        top: 10px;
    }

    .hero {
        padding-top: 140px;
    }

    .four-col-grid {
        grid-template-columns: 1fr;
    }
}

/* Social Buttons in Footer */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
    background: var(--color-purple);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
    border-color: var(--color-purple);
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid #334155;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 10000;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.5s ease-out;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-text {
    flex: 1;
    font-size: 0.9rem;
    color: #cbd5e1;
    min-width: 300px;
}

.cookie-text a {
    color: var(--color-purple);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
}

.cookie-btn-accept {
    background: var(--color-purple);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.cookie-btn-accept:hover {
    background: #7e22ce;
}

.cookie-btn-decline {
    background: transparent;
    border: 1px solid #475569;
    color: #94a3b8;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
}

.social-btn:hover {
    background: var(--color-purple);
    /* Purple Highlights */
    color: white;
    border-color: var(--color-purple);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(126, 34, 206, 0.3);
}