/* d:\MO AYMAN SESTEM\assets\css\landing.css */

/* Fonts */
:root {
    --primary: #4f46e5;       /* Indigo */
    --primary-glow: rgba(79, 70, 229, 0.5);
    --primary-light: #818cf8;
    --secondary: #06b6d4;     /* Cyan */
    --secondary-glow: rgba(6, 182, 212, 0.5);
    
    --bg-darker: #020617;     /* Deep slate */
    --bg-dark: #0f172a;
    
    --glass-bg: rgba(15, 23, 42, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.8;
}

.display-font {
    font-family: 'Tajawal', sans-serif;
    letter-spacing: -0.02em;
}

.fw-black { font-weight: 900; }
.tracking-widest { letter-spacing: 0.1em; }
.bg-darker { background-color: var(--bg-darker); }

/* Typography Gradients */
.text-gradient {
    /* Indigo to Cyan */
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-alt {
    /* Cyan to Emerald */
    background: linear-gradient(135deg, var(--secondary), #34d399);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Background Grid & Orbs */
.bg-grid {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 10%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 10%, transparent 80%);
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
    animation: floatOrb 15s infinite alternate ease-in-out;
}
.orb-1 {
    top: -10%; left: 10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--primary), transparent 60%);
}
.orb-2 {
    bottom: -10%; right: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--secondary), transparent 60%);
    animation-delay: -5s;
}
.orb-3 {
    top: 40%; left: -20%;
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, #8b5cf6, transparent 60%);
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(15%, 15%) scale(1.1); }
}

/* Glass Utilities */
.navbar-glass {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    background: rgba(2, 6, 23, 0.6);
}
.navbar-glass.scrolled {
    background: rgba(2, 6, 23, 0.9);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 10px 0;
}

.border-glass { border: 1px solid var(--glass-border); }
.border-y-glass { border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.border-end-glass { border-left: 1px solid var(--glass-border); } /* RTL => left = end */
@media (max-width: 767px) {
    .border-sm-none { border: none !important; }
}

/* Buttons */
.btn-glow {
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.btn-glow::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s;
}
.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.7), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-glow:hover::before { left: 100%; }

.btn-outline-glass {
    background: rgba(255,255,255,0.03);
    color: var(--text-main) !important;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.btn-outline-glass:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--glass-highlight);
    transform: translateY(-2px);
}
.border-link {
    border: 1px solid transparent;
    transition: 0.3s;
}
.border-link:hover {
    border-color: var(--glass-border);
    background: rgba(255,255,255,0.05);
}

/* Hero Badge */
.badge-glass {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}
.badge-pulse {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 180px;
    padding-bottom: 100px;
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.2;
    margin-bottom: 24px;
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 40px;
    max-width: 750px;
    line-height: 1.8;
}

/* Abstract Mockup inside Hero */
.hero-mockup-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    perspective: 1000px;
}
.hero-mockup-glow {
    position: absolute;
    inset: -30px;
    background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
    filter: blur(50px);
    z-index: -1;
    border-radius: 20px;
    opacity: 0.6;
    transform: rotateX(10deg);
}
.hero-mockup-dashboard {
    background: rgba(10, 15, 30, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: rotateX(8deg) translateY(10px);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}
.hero-mockup-wrapper:hover .hero-mockup-dashboard {
    transform: rotateX(0deg) translateY(0);
}
.mockup-header {
    background: rgba(0,0,0,0.3);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.mockup-body { padding: 24px; height: 350px; }
.mockup-sidebar {
    width: 60px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
}
.mockup-line { height: 16px; background: rgba(255,255,255,0.1); border-radius: 8px; }
.mockup-box {
    flex: 1; height: 80px; 
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding-top: 20px;
}
.mockup-chart {
    height: 120px; width: 100%;
    background: linear-gradient(180deg, rgba(79,70,229,0.2) 0%, transparent 100%);
    border-top: 3px solid var(--primary);
    border-radius: 8px 8px 0 0;
    margin-top: 24px;
}

/* Marquee */
.marquee-wrapper {
    background: rgba(3, 7, 18, 0.8);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.marquee {
    display: flex;
    white-space: nowrap;
}
.marquee-content {
    animation: marquee 30s linear infinite;
    display: flex;
    align-items: center;
    padding: 0 20px;
}
.shadow-text {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.2);
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* Bento Grid */
.section-padding { padding: 120px 0; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
}
.bento-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 40px;
    grid-column: span 4;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}
.bento-large {
    grid-column: span 8;
    grid-row: span 2;
}
.bento-wide {
    grid-column: span 8;
}

/* Add custom responsive breakpoints for grid */
@media (max-width: 1200px) {
    .bento-card { grid-column: span 6; }
    .bento-large { grid-column: span 12; }
    .bento-wide { grid-column: span 12; }
}
@media (max-width: 768px) {
    .bento-card { grid-column: span 12; padding: 30px; }
    .bento-grid { gap: 16px; }
}

/* Mouse Glow Effect initialized by JS */
.bento-card[data-glow]::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}
.bento-card:hover[data-glow]::before { opacity: 1; }

/* Internal Card Hover Effect */
.bento-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }

.bento-inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center;}
.bento-icon {
    width: 64px; height: 64px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
}

/* Abstract animation for Bento wide */
.bento-abstract-chart {
    display: flex; align-items: flex-end; gap: 8px; height: 120px;
}
.bar { width: 30px; border-radius: 8px 8px 0 0; background: rgba(255,255,255,0.1); border: 1px solid var(--glass-border); border-bottom: none; }
.bar-1 { height: 40%; animation: barAnim 2s infinite alternate ease-in-out; }
.bar-2 { height: 70%; animation: barAnim 2s infinite alternate -0.5s ease-in-out; background: rgba(79,70,229,0.3); border-color: var(--primary); }
.bar-3 { height: 50%; animation: barAnim 2s infinite alternate -1s ease-in-out; }
.bar-4 { height: 100%; animation: barAnim 2s infinite alternate -1.5s ease-in-out; background: rgba(239,68,68,0.3); border-color: #ef4444; }

@keyframes barAnim { from{transform: scaleY(0.8);} to{transform: scaleY(1.1);} }

/* Stats */
.stat-box { padding: 40px 20px; }

/* Pricing */
.pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3px; /* To allow gradient border */
    position: relative;
    height: 100%;
    z-index: 1;
}
.pricing-card::before {
    content: ''; position: absolute; inset: 0;
    border-radius: 32px; padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 50%, rgba(255,255,255,0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.pricing-card.popular::before {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.pricing-inner {
    background: var(--bg-darker);
    border-radius: 29px;
    padding: 50px 40px;
    height: 100%; display: flex; flex-direction: column;
}

.popular-badge {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; font-weight: 800; font-size: 0.9rem;
    padding: 6px 20px; border-radius: 50px; z-index: 3; box-shadow: 0 10px 20px var(--primary-glow);
}
.divider-glass { height: 1px; background: var(--glass-border); width: 100%; }
.pricing-features li { margin-bottom: 20px; color: var(--text-muted); }

/* CTA Box */
.cta-box { border-radius: 40px; }
.cta-glow-bg {
    position: absolute; inset: 0;
    background: radial-gradient(circle at center, rgba(79, 70, 229, 0.4) 0%, transparent 70%);
    z-index: 0;
}

/* Footer elements */
.social-icon {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--glass-border); background: rgba(255,255,255,0.02);
    border-radius: 50%; color: var(--text-muted) !important; font-size: 1.2rem;
    transition: 0.3s;
}
.social-icon:hover {
    background: var(--primary); color: white !important; border-color: var(--primary);
    transform: translateY(-5px); box-shadow: 0 10px 20px var(--primary-glow);
}

/* Animations */
.reveal, .slide-up, .slide-down { opacity: 0; transition: 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) all; }
.slide-up { transform: translateY(50px); }
.slide-down { transform: translateY(-50px); }
.reveal { transform: translateY(40px); }

.slide-up.active, .slide-down.active, .reveal.active { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 150ms; }
.delay-2 { transition-delay: 300ms; }
.delay-3 { transition-delay: 450ms; }
