/*
 * MT AI Theme — style.css v6.0
 * Theme Name: MT AI Theme
 * Theme URI: https://ai.mt-co.space
 * Author: MT AI
 * Description: Premium AI Marketing & Business Development Agency Theme
 * Version: 6.0
 */

/* ═══════════════════════════════════════════
   1. CSS VARIABLES & DESIGN TOKENS
   ═══════════════════════════════════════════ */
:root {
    --primary: #0ED4C7;
    --primary-dark: #0BB5A6;
    --primary-light: #5EEAD4;
    --primary-glow: rgba(14, 212, 199, .35);
    --accent: #06B6D4;
    --accent-glow: rgba(6, 182, 212, .25);
    --bg: #080B14;
    --bg-2: #0D1320;
    --bg-card: rgba(255, 255, 255, .03);
    --glass-bg: rgba(255, 255, 255, .04);
    --glass-border: rgba(255, 255, 255, .08);
    --glass-highlight: rgba(14, 212, 199, .06);
    --text: #f1f5f9;
    --muted: #64748b;
    --muted-2: #94a3b8;
    --success: #22c55e;
    --error: #ef4444;
    --info: #3b82f6;

    /* Spacing */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    /* Transitions */
    --ease: cubic-bezier(.4, 0, .2, 1);
    --ease-out: cubic-bezier(0, 0, .2, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ═══════════════════════════════════════════
   2. RESET & BASE
   ═══════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Cairo', 'Outfit', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    direction: rtl;
}

body.lang-en {
    direction: ltr;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ═══════════════════════════════════════════
   3. BACKGROUND EFFECTS
   ═══════════════════════════════════════════ */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 80% at 20% 10%, rgba(14, 212, 199, .10) 0%, transparent 55%),
        radial-gradient(ellipse 60% 60% at 80% 90%, rgba(6, 182, 212, .07) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(20, 40, 80, .35) 0%, transparent 70%);
    animation: bgPulse 12s ease-in-out infinite;
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .20;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

@keyframes bgPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .7;
    }
}

/* ═══════════════════════════════════════════
   4. TYPOGRAPHY
   ═══════════════════════════════════════════ */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.02em;
}

.teal-gradient-text {
    background: linear-gradient(135deg, #0ED4C7, #06B6D4, #5EEAD4);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Legacy class alias */
.orange-gradient-text {
    background: linear-gradient(135deg, #0ED4C7, #06B6D4, #5EEAD4);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* ═══════════════════════════════════════════
   5. LAYOUT HELPERS
   ═══════════════════════════════════════════ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.page-wrapper {
    padding-top: 68px;
    min-height: 100vh;
}

.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Spacing utilities */
.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-60 {
    margin-bottom: 60px;
}

/* ═══════════════════════════════════════════
   6. GLASS CARD
   ═══════════════════════════════════════════ */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
    will-change: transform;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 212, 199, .25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25), 0 0 30px rgba(14, 212, 199, .08);
}

/* ═══════════════════════════════════════════
   7. BUTTONS
   ═══════════════════════════════════════════ */
.btn-primary,
.btn-secondary,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease), background .25s;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

/* Ripple */
.btn-primary::after,
.btn-secondary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .12);
    opacity: 0;
    border-radius: inherit;
    transition: opacity .3s;
}

.btn-primary:active::after,
.btn-secondary:active::after {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #0a0a14;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 32px var(--primary-glow);
}

.btn-primary:active {
    transform: translateY(-1px) scale(.99);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    color: var(--text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .25);
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(239, 68, 68, .12);
    border: 1.5px solid rgba(239, 68, 68, .3);
    color: #f87171;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, .2);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   8. BADGES
   ═══════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
}

.badge-gray {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    color: var(--muted-2);
}

.badge-teal,
.badge-orange {
    background: rgba(14, 212, 199, .12);
    border: 1px solid rgba(14, 212, 199, .35);
    color: var(--primary);
}

.badge-green {
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .3);
    color: var(--success);
}

.badge-coming {
    background: rgba(139, 92, 246, .12);
    border: 1px solid rgba(139, 92, 246, .35);
    color: #a78bfa;
}

/* ═══════════════════════════════════════════
   9. FORM ELEMENTS
   ═══════════════════════════════════════════ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted-2);
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, .04);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: border-color .25s, background .25s, box-shadow .25s;
    box-sizing: border-box;
    direction: inherit;
}

.form-input:focus {
    outline: none;
    border-color: rgba(14, 212, 199, .5);
    background: rgba(14, 212, 199, .04);
    box-shadow: 0 0 0 3px rgba(14, 212, 199, .1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, .3);
}

/* ═══════════════════════════════════════════
   10. ALERTS
   ═══════════════════════════════════════════ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    animation: slideDown .3s var(--ease-out);
}

.alert-success {
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .3);
    color: #4ade80;
}

.alert-error {
    background: rgba(239, 68, 68, .1);
    border: 1px solid rgba(239, 68, 68, .3);
    color: #f87171;
}

.alert-info {
    background: rgba(59, 130, 246, .1);
    border: 1px solid rgba(59, 130, 246, .3);
    color: #93c5fd;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════
   11. NAVIGATION
   ═══════════════════════════════════════════ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 68px;
    padding: 0 24px;
    background: rgba(8, 11, 20, .8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    animation: navSlideDown .5s var(--ease-out);
}

@keyframes navSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--muted-2);
    font-size: 14px;
    font-weight: 500;
    transition: color .2s;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform .25s var(--ease-spring);
    border-radius: 2px;
}

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

.nav-links a:hover::after {
    transform: scaleX(1);
}

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

/* Mobile hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

/* ═══════════════════════════════════════════
   12. FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
    padding: 64px 24px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 80px;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 24px 0;
    margin-top: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

/* ═══════════════════════════════════════════
   13. HERO SECTION
   ═══════════════════════════════════════════ */
.hero-section {
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    animation: heroFadeUp .8s var(--ease-out) both;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating orbs */
.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-section::before {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(14, 212, 199, .12) 0%, transparent 70%);
    animation-delay: -3s;
}

.hero-section::after {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -80px;
    background: radial-gradient(circle, rgba(6, 182, 212, .08) 0%, transparent 70%);
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* ═══════════════════════════════════════════
   14. CARDS & COMPONENTS
   ═══════════════════════════════════════════ */
.stat-card {
    padding: 32px;
    text-align: center;
}

.stat-value {
    font-size: 48px;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    color: var(--muted);
    font-size: 14px;
    margin-top: 8px;
}

/* Feature cards stagger */
.grid-3>.glass-card:nth-child(1) {
    animation-delay: .1s;
}

.grid-3>.glass-card:nth-child(2) {
    animation-delay: .2s;
}

.grid-3>.glass-card:nth-child(3) {
    animation-delay: .3s;
}

.grid-3>.glass-card:nth-child(4) {
    animation-delay: .4s;
}

.grid-3>.glass-card:nth-child(5) {
    animation-delay: .5s;
}

.grid-3>.glass-card:nth-child(6) {
    animation-delay: .6s;
}

/* ═══════════════════════════════════════════
   15. CHAT (Demo + Project Chat)
   ═══════════════════════════════════════════ */
.chat-msg-ai,
.chat-msg-user {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.7;
    max-width: 88%;
    animation: msgPop .35s var(--ease-spring);
}

.chat-msg-ai {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    align-self: flex-start;
}

.chat-msg-user {
    background: linear-gradient(135deg, rgba(14, 212, 199, .18), rgba(6, 182, 212, .10));
    border: 1px solid rgba(14, 212, 199, .3);
    align-self: flex-end;
    margin-left: auto;
}

@keyframes msgPop {
    from {
        opacity: 0;
        transform: scale(.9) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Project Chat Container */
.project-chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
    max-height: 65vh;
}

.project-chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(14, 212, 199, .3) transparent;
}

.project-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.project-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(14, 212, 199, .3);
    border-radius: 3px;
}

.project-chat-input-area {
    padding: 16px 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
    align-items: center;
}

.project-chat-input-area .form-input {
    flex: 1;
}

/* Chat typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    align-self: flex-start;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    opacity: .5;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: .2s; }
.typing-indicator span:nth-child(3) { animation-delay: .4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: .5; }
    30% { transform: translateY(-8px); opacity: 1; }
}

/* ═══════════════════════════════════════════
   16. PROJECT & REPORT
   ═══════════════════════════════════════════ */
.question-card {
    padding: 28px;
    margin-bottom: 16px;
}

.question-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: right;
}

.question-why {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
    padding: 10px;
    background: rgba(14, 212, 199, .06);
    border-radius: 10px;
    border: 1px solid rgba(14, 212, 199, .15);
}

.report-section {
    padding: 32px;
    margin-bottom: 20px;
}

.report-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lean-canvas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.canvas-cell {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 18px;
    transition: border-color .2s, transform .2s;
}

.canvas-cell:hover {
    border-color: rgba(14, 212, 199, .3);
    transform: translateY(-2px);
}

.canvas-cell h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    text-align: right;
}

.canvas-cell p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    text-align: right;
}

/* Export buttons */
.export-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid var(--glass-border);
    font-family: inherit;
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    transition: all .25s var(--ease);
    text-decoration: none;
}

.btn-export:hover {
    border-color: rgba(14, 212, 199, .4);
    background: rgba(14, 212, 199, .08);
    transform: translateY(-2px);
}

.btn-export-pdf {
    border-color: rgba(239, 68, 68, .3);
}

.btn-export-pdf:hover {
    border-color: rgba(239, 68, 68, .6);
    background: rgba(239, 68, 68, .08);
}

.btn-export-word {
    border-color: rgba(59, 130, 246, .3);
}

.btn-export-word:hover {
    border-color: rgba(59, 130, 246, .6);
    background: rgba(59, 130, 246, .08);
}

/* ═══════════════════════════════════════════
   17. COMING SOON SECTION
   ═══════════════════════════════════════════ */
.coming-soon-section {
    padding: 80px 24px;
    position: relative;
}

.coming-soon-card {
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.coming-soon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), transparent);
    opacity: .6;
}

.social-platform-icons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-platform-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: border-color .2s, transform .2s;
}

.social-platform-icon:hover {
    border-color: rgba(14, 212, 199, .4);
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════
   18. ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(.9)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--primary-glow)
    }

    50% {
        box-shadow: 0 0 50px rgba(14, 212, 199, .6)
    }
}

@keyframes rotate360 {
    to {
        transform: rotate(360deg)
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0)
    }

    60% {
        transform: scale(1.1)
    }

    100% {
        transform: scale(1)
    }
}

.animate-float {
    animation: float 3.5s ease-in-out infinite;
}

.animate-pulse {
    animation: pulseGlow 2.5s ease-in-out infinite;
}

.animate-fade-up {
    animation: fadeInUp .6s var(--ease-out) both;
}

.animate-scale {
    animation: scaleIn .4s var(--ease-spring) both;
}

/* Scroll-triggered reveal (JS adds .visible class) */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

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

.reveal-delay-1 {
    transition-delay: .1s;
}

.reveal-delay-2 {
    transition-delay: .2s;
}

.reveal-delay-3 {
    transition-delay: .3s;
}

.reveal-delay-4 {
    transition-delay: .4s;
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .2);
    border-top-color: var(--primary);
    animation: rotate360 .7s linear infinite;
    display: inline-block;
}

/* ═══════════════════════════════════════════
   19. FLOATING WHATSAPP
   ═══════════════════════════════════════════ */
#whatsapp-float {
    transition: transform .3s var(--ease-spring), box-shadow .3s !important;
}

#whatsapp-float:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 8px 40px rgba(37, 211, 102, .7) !important;
}

/* ═══════════════════════════════════════════
   20. RESPONSIVE — TABLET (max 1024px)
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section {
        padding: 100px 24px 60px;
    }

    .hero-content {
        max-width: 100%;
    }
}

/* ═══════════════════════════════════════════
   21. RESPONSIVE — MOBILE (max 768px)
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Nav */
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-actions .btn-primary {
        padding: 8px 14px;
        font-size: 13px;
    }

    .nav-actions .btn-secondary {
        display: none;
    }

    /* Mobile nav open state */
    .nav-links.open {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(8, 11, 20, .97);
        backdrop-filter: blur(20px);
        padding: 24px;
        animation: fadeIn .25s var(--ease-out);
        z-index: 999;
    }

    .nav-links.open a {
        padding: 16px 0;
        border-bottom: 1px solid var(--glass-border);
        font-size: 20px;
        font-weight: 700;
        animation: fadeInUp .3s var(--ease-out) both;
    }

    .nav-links.open a:nth-child(1) {
        animation-delay: .05s
    }

    .nav-links.open a:nth-child(2) {
        animation-delay: .1s
    }

    .nav-links.open a:nth-child(3) {
        animation-delay: .15s
    }

    .nav-links.open a:nth-child(4) {
        animation-delay: .2s
    }

    .nav-links.open a::after {
        display: none;
    }

    /* Hamburger → X */
    .nav-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Grids → single column */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Typography scale down */
    h1 {
        font-size: clamp(30px, 8vw, 48px) !important;
    }

    h2 {
        font-size: clamp(22px, 6vw, 36px) !important;
    }

    /* Hero */
    .hero-section {
        padding: 90px 20px 60px;
    }

    .hero-section::before,
    .hero-section::after {
        display: none;
    }

    /* Page content */
    .page-content {
        padding: 32px 20px;
    }

    /* Flex column on mobile */
    .flex-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    /* Footer grid */
    .site-footer .grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    /* Stats */
    .stat-value {
        font-size: 36px;
    }

    /* WhatsApp button position */
    #whatsapp-float {
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
        width: 50px !important;
        height: 50px !important;
    }

    body.lang-ar #whatsapp-float {
        left: 20px !important;
        right: auto !important;
    }

    /* Project chat */
    .project-chat-container {
        height: 400px;
    }

    .export-actions {
        flex-direction: column;
    }
}

/* ═══════════════════════════════════════════
   22. RESPONSIVE — SMALL MOBILE (max 480px)
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .page-content {
        padding: 24px 16px;
    }

    .glass-card {
        border-radius: var(--radius);
    }

    .site-footer .grid-4 {
        grid-template-columns: 1fr;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 14px;
        padding: 10px 18px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-value {
        font-size: 32px;
    }

    .nav-actions {
        gap: 6px;
    }
}

/* ═══════════════════════════════════════════
   23. RTL / LTR ADJUSTMENTS
   ═══════════════════════════════════════════ */
body.lang-en .nav-links {
    direction: ltr;
}

body.lang-en .flex-between {
    flex-direction: row;
}

body.lang-en .form-input {
    direction: ltr;
}

body.lang-en .question-text,
body.lang-en .canvas-cell h4,
body.lang-en .canvas-cell p {
    text-align: left;
}

/* ═══════════════════════════════════════════
   24. SCROLL PROGRESS BAR
   ═══════════════════════════════════════════ */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9999;
    transition: transform .05s linear;
}

/* ═══════════════════════════════════════════
   25. COSMIC / GALACTIC DECORATIONS & ENHANCEMENTS
   ═══════════════════════════════════════════ */
/* Global space mesh background */
body {
    background: radial-gradient(circle at 50% 50%, rgba(8, 11, 20, 1) 0%, #030712 100%) !important;
}

/* Twinkling star field */
.star-field-global {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -3;
    background-image: 
        radial-gradient(1px 1px at 10% 20%, #ffffff 100%, transparent),
        radial-gradient(1.5px 1.5px at 25% 75%, #ffffff 100%, transparent),
        radial-gradient(1px 1px at 50% 40%, #ffffff 100%, transparent),
        radial-gradient(2px 2px at 70% 90%, #ffffff 100%, transparent),
        radial-gradient(1px 1px at 85% 30%, #ffffff 100%, transparent);
    background-size: 550px 550px;
}

/* Nebula glowing backdrops */
.nebula-glow-cyan {
    position: fixed;
    top: 5%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 212, 199, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: -4;
    animation: orbFloat 14s ease-in-out infinite alternate;
}

.nebula-glow-purple {
    position: fixed;
    bottom: 10%;
    left: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(126, 34, 206, 0.05) 0%, transparent 70%);
    filter: blur(100px);
    pointer-events: none;
    z-index: -4;
    animation: orbFloat 18s ease-in-out infinite alternate-reverse;
}

/* Glassmorphism Cosmic Cards with Neon Glow borders */
.glass-card {
    background: rgba(13, 19, 32, 0.45) !important;
    border: 1px solid rgba(14, 212, 199, 0.12) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}

.glass-card:hover {
    border-color: rgba(14, 212, 199, 0.35) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(14, 212, 199, 0.12) !important;
}

/* Cyber Inputs */
.form-input {
    background: rgba(8, 11, 20, 0.5) !important;
    border: 1px solid rgba(14, 212, 199, 0.15) !important;
}

.form-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(14, 212, 199, 0.15) !important;
}

/* Cosmic circular gauge styles */
.cosmic-gauge-circle {
    transition: stroke-dashoffset 0.8s ease;
}

/* Floating animation keyframes */
@keyframes orbFloat {
    0% { transform: translateY(0) scale(1) rotate(0deg); }
    100% { transform: translateY(-40px) scale(1.08) rotate(10deg); }
}

/* Shooting Stars system */
.shooting-stars-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

.shooting-star {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 2px;
    background: linear-gradient(-45deg, #0ED4C7, rgba(0, 0, 255, 0));
    border-radius: 999px;
    filter: drop-shadow(0 0 6px #0ED4C7);
    animation: tail 3000ms ease-in-out infinite, shooting 3000ms ease-in-out infinite;
}

@keyframes tail {
    0% { width: 0; }
    30% { width: 100px; }
    100% { width: 0; }
}

@keyframes shooting {
    0% { transform: translateX(0) translateY(0) rotate(-45deg); }
    100% { transform: translateX(-500px) translateY(500px) rotate(-45deg); }
}

.shooting-star:nth-child(1) { top: 10%; left: 80%; animation-delay: 0ms; animation-duration: 4000ms; }
.shooting-star:nth-child(2) { top: 30%; left: 90%; animation-delay: 1000ms; animation-duration: 5000ms; }
.shooting-star:nth-child(3) { top: 50%; left: 70%; animation-delay: 2500ms; animation-duration: 4500ms; }

/* Interactive Social Mockup Styles */
.social-mockup-screen {
    background: #080b14;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    height: 480px;
    display: flex;
    flex-direction: column;
}

.social-mockup-tab {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.social-mockup-tab:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

.social-mockup-tab.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.mockup-mobile-frame {
    flex: 1;
    background: #0f1320;
    border-radius: 12px;
    border: 1.5px solid rgba(14, 212, 199, 0.2);
    padding: 12px;
    overflow-y: auto;
    font-size: 12px;
}