:root {
    --primary-bg: #050505;
    --accent-color: #7c4dff;
    --accent-gradient: linear-gradient(135deg, #7c4dff 0%, #448aff 100%);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-family: var(--font-en);
    line-height: 1.6;
    overflow-x: hidden;
}

body.ar {
    font-family: var(--font-ar);
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 20px;
    width: 100%;
    z-index: 1000;
    padding: 0 5%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Buttons */
.btn-primary {
    background: var(--accent-gradient);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(124, 77, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding: 150px 5% 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.blob-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(80px);
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    opacity: 0.3;
}

.blob-1 {
    background: var(--accent-color);
    top: 20%;
    left: 10%;
    animation: move-blob 20s infinite alternate;
}

.blob-2 {
    background: #448aff;
    bottom: 20%;
    right: 10%;
    animation: move-blob 25s infinite alternate-reverse;
}

@keyframes move-blob {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(100px, 50px);
    }
}

.hero-section .content {
    flex: 1;
    max-width: 600px;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-mockup {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.mockup-img {
    width: 100%;
    max-width: 450px;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* Features Section */
.features-section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, background 0.3s;
    overflow: hidden;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(124, 77, 255, 0.1), transparent 40%);
    pointer-events: none;
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Showcase Section */
.showcase-section {
    padding: 100px 5%;
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-content {
    flex: 1;
}

.showcase-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.showcase-image {
    flex: 1;
}

.mockup-img-secondary {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Footer */
footer {
    padding: 40px 5%;
    text-align: center;
    margin-top: 100px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

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

@keyframes float {

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

    50% {
        transform: translateY(-20px);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-mockup {
        margin-top: 50px;
        justify-content: center;
    }

    .showcase-section {
        flex-direction: column;
    }
}

/* RTL Support */
body.ar {
    direction: rtl;
    text-align: right;
}

body.ar .hero-mockup {
    justify-content: flex-start;
}

body.ar .nav-links {
    flex-direction: row-reverse;
}
/* Buy Me a Coffee Button */
.bmc-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #FFDD00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(255, 221, 0, 0.4);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    text-decoration: none;
    color: #000000 !important;
}

.bmc-btn svg {
    width: 32px;
    height: 32px;
    fill: #000000;
    transition: transform 0.3s;
}

.bmc-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(255, 221, 0, 0.6);
}

.bmc-btn:hover svg {
    transform: rotate(10deg) scale(1.1);
}

/* RTL Adjustment for BMC Button */
body.ar .bmc-btn {
    right: auto;
    left: 30px;
}
