* {
    font-family: 'Tajawal', sans-serif;
}

:root {
    /* New Light Theme (Default) */
    --body-bg: #f8f6fb;
    --text-color: #333;
    --header-bg: rgba(255, 255, 255, 0.7);
    --logo-color: #4a3461;
    --logo-highlight: #A67BD1;
    --hero-title-color: #4a3461;
    --hero-desc-color: #6a5286;
    --stat-label-color: #8c73ab;
    --footer-bg: #fff;
    --footer-text: #6a5286;
    --win-frame-bg: #1e1e2e;
    /* Keeping frame dark as requested */
    --win-bar-bg: #2d2d3e;
    --social-bg: #f8f6fb;
}

[data-theme="dark"] {
    /* Old Dark Theme Re-implementation */
    --body-bg: #1e112e;
    --text-color: #f8f6fb;
    --header-bg: rgba(30, 17, 46, 0.55);
    --logo-color: #fff;
    --logo-highlight: #A67BD1;
    --hero-title-color: #fff;
    --hero-desc-color: rgba(255, 255, 255, 0.75);
    --stat-label-color: rgba(255, 255, 255, 0.5);
    --footer-bg: #0a0018;
    --footer-text: rgba(255, 255, 255, 0.6);
    --win-frame-bg: #1e1e2e;
    --win-bar-bg: #2d2d3e;
    --social-bg: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .hero-section {
    background: #11081d;
    background: radial-gradient(at 0% 0%, rgba(117, 79, 153, 0.15) 0, transparent 50%),
        radial-gradient(at 50% 0%, rgba(142, 101, 181, 0.2) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(117, 79, 153, 0.15) 0, transparent 50%);
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--body-bg);
    color: var(--text-color);
    transition: background 0.5s ease, color 0.5s ease;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(117, 79, 153, 0.1);
    transition: all 0.4s ease;
}

.site-header.scrolled {
    background: var(--body-bg);
    box-shadow: 0 10px 30px rgba(117, 79, 153, 0.1);
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--logo-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span.highlight {
    color: var(--logo-highlight);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-lang {
    background: none;
    border: 1px solid rgba(117, 79, 153, 0.2);
    color: var(--logo-color);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-lang:hover {
    background: rgba(117, 79, 153, 0.05);
    border-color: #754F99;
}

.btn-platform {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #754F99, #8E65B5);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 20px rgba(117, 79, 153, 0.4);
}

.btn-platform:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(117, 79, 153, 0.6);
    color: #fff;
}

/* ===== HERO ===== */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fdfcff;
    background: radial-gradient(at 0% 0%, rgba(117, 79, 153, 0.08) 0, transparent 50%),
        radial-gradient(at 50% 0%, rgba(142, 101, 181, 0.15) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(117, 79, 153, 0.08) 0, transparent 50%);
    background-size: 200% 200%;
    animation: bgSweep 15s ease infinite alternate;
}

@keyframes bgSweep {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

/* Animated background elements */
.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: moveAround 25s infinite alternate ease-in-out;
}

.bg-circle-1 {
    width: 600px;
    height: 600px;
    background: rgba(117, 79, 153, 0.2);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 500px;
    height: 500px;
    background: rgba(166, 123, 209, 0.15);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.bg-circle-3 {
    width: 400px;
    height: 400px;
    background: rgba(193, 159, 227, 0.1);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes moveAround {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(150px, 150px) scale(1.2) rotate(120deg);
    }

    66% {
        transform: translate(-100px, 200px) scale(0.8) rotate(240deg);
    }

    100% {
        transform: translate(80px, -80px) scale(1.1) rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 80px 80px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    position: relative;
}

.hero-text {
    text-align: inherit;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(117, 79, 153, 0.2);
    border: 1px solid rgba(142, 101, 181, 0.4);
    color: #A67BD1;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-badge i {
    font-size: 14px;
}

.hero-title {
    font-size: clamp(30px, 3.8vw, 44px);
    font-weight: 900;
    color: var(--hero-title-color);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #8E65B5, #A67BD1, #C19FE3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 17px;
    color: var(--hero-desc-color);
    line-height: 1.7;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #754F99, #8E65B5);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(117, 79, 153, 0.5);
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(117, 79, 153, 0.7);
    color: #fff;
}

.btn-video {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--hero-title-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-video:hover {
    color: #A67BD1;
}

.btn-video .play-btn {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 2px solid rgba(117, 79, 153, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(117, 79, 153, 0.1);
}

.btn-video:hover .play-btn {
    background: rgba(117, 79, 153, 0.4);
    border-color: #8E65B5;
    transform: scale(1.1);
}

/* Stats */
.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(117, 79, 153, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 900;
    color: #A67BD1;
    display: block;
}

.stat-label {
    font-size: 13px;
    color: var(--stat-label-color);
    margin-top: 2px;
}

/* Hero Image - Desktop mockup */
.hero-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-mockup-container {
    position: relative;
    width: 100%;
    max-width: 460px;
}

/* Windows PC Frame */
.windows-frame {
    background: var(--win-frame-bg);
    border-radius: 12px 12px 0 0;
    padding: 8px 8px 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.06);
    animation: floatUp 4s ease-in-out infinite;
}

.windows-frame .win-bar {
    background: var(--win-bar-bg);
    border-radius: 6px 6px 0 0;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.win-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.win-btn.close {
    background: #ff5f57;
}

.win-btn.min {
    background: #ffbd2e;
}

.win-btn.max {
    background: #28ca41;
}

.windows-frame .screen {
    width: 100%;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    background: #0f172a;
    aspect-ratio: 16/9;
}

.windows-frame .screen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f6fb;
    display: block;
}

/* PC monitor base */
.win-base {
    width: 60%;
    height: 14px;
    background: linear-gradient(to bottom, #2a2a3e, #1a1a2e);
    margin: 0 auto;
    border-radius: 0 0 8px 8px;
}

.win-stand {
    width: 25%;
    height: 20px;
    background: linear-gradient(to bottom, #1a1a2e, #111122);
    margin: 0 auto;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Secondary hero image (mobile version) - positioned to overlay */
.hero-img-secondary {
    position: absolute;
    bottom: -15px;
    left: -20px;
    width: 35%;
    z-index: 20;
    animation: floatDown 5s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.hero-img-secondary img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes floatUp {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes floatDown {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(10px);
    }
}

/* ===== SOCIAL MEDIA SIDEBAR ===== */
.social-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-sidebar a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.social-sidebar a::before {
    content: attr(data-label);
    position: absolute;
    left: 54px;
    background: rgba(10, 0, 30, 0.9);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.social-sidebar a:hover::before {
    opacity: 1;
}

.social-sidebar a:hover {
    transform: translateX(5px) scale(1.1);
}

.social-sidebar .soc-twitter {
    background: linear-gradient(135deg, #000, #1a1a1a);
}

.social-sidebar .soc-instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.social-sidebar .soc-tiktok {
    background: linear-gradient(135deg, #010101, #69c9d0);
}

.social-sidebar .soc-youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-sidebar .soc-snapchat {
    background: linear-gradient(135deg, #FFFC00, #f7c800);
}

.social-sidebar .soc-telegram {
    background: linear-gradient(135deg, #0088cc, #229ed9);
}

.social-sidebar .soc-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.social-sidebar .soc-snapchat i {
    color: #000;
}

/* ===== DOWNLOAD BUTTONS (RIGHT SIDEBAR) ===== */
.download-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-sidebar a {
    width: 55px;
    height: 65px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    text-decoration: none;
}

.download-sidebar a span {
    font-size: 8px;
    font-weight: 800;
    color: #754F99;
    text-align: center;
    line-height: 1;
    display: block;
}

.download-sidebar a:hover {
    transform: translateX(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.download-sidebar img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* ===== WAVES ===== */
.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 40px 40px;
    font-size: 14px;
    border-top: 1px solid rgba(117, 79, 153, 0.1);
    transition: all 0.5s ease;
}

.site-footer strong {
    color: #A67BD1;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--social-bg);
    border: 1px solid rgba(117, 79, 153, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #754F99;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: rgba(117, 79, 153, 0.3);
    border-color: #8E65B5;
    color: #A67BD1;
    transform: translateY(-3px);
}

/* ===== SCROLL TOP ===== */
#theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #754F99, #8E65B5);
    color: #fff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(117, 79, 153, 0.4);
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
}



/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .hero-content {
        padding: 80px 40px;
        max-width: 1250px;
    }

    .hero-inner {
        grid-template-columns: 1fr 1fr;
        gap: 70px;
    }

    .desktop-mockup-container {
        max-width: 460px;
    }

    .hero-title {
        font-size: 44px;
    }
}

@media (max-width: 992px) {
    .site-header {
        padding: 14px 20px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-image-wrap {
        order: -1;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .windows-frame {
        width: 100%;
        left: 0;
    }

    .hero-img-secondary {
        width: 35%;
        left: -10px;
    }

    .social-sidebar {
        display: none !important;
    }

    .download-sidebar {
        right: 50%;
        transform: translateX(50%);
        bottom: 20px;
        top: auto;
        flex-direction: row;
        gap: 8px;
        padding: 8px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }

    .download-sidebar a {
        width: 45px;
        height: 55px;
        border-radius: 8px;
    }

    .download-sidebar a span {
        font-size: 7px;
    }

    .download-sidebar a i,
    .download-sidebar a svg {
        font-size: 16px !important;
        width: 16px !important;
        height: 16px !important;
    }

    .hero-content {
        padding: 140px 20px 80px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 30px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-stats {
        gap: 20px;
    }

    .site-header {
        padding: 14px 20px;
    }

    .logo {
        font-size: 20px;
    }
}

/* Glowing orbs decoration */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #754F99;
    top: 10%;
    right: 5%;
    animation: orbFloat 7s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #8E65B5;
    bottom: 15%;
    left: 10%;
    animation: orbFloat 9s ease-in-out infinite reverse;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}