:root {
    --bg-color: #050505;
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --accent-cyan: #00F2FF;
    --accent-blue: #2DD4BF;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(24px);
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --selection-bg: rgba(0, 242, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

::selection {
    background: var(--selection-bg);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'IBM Plex Sans Arabic', 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
    transition: background-color 0.5s ease;
}

html[lang="en"] body {
    font-family: 'Outfit', sans-serif;
    direction: ltr;
    text-align: left;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

/* Background Gradients & Noise Overlay */
.glow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background:
        radial-gradient(circle at 80% 0%, rgba(0, 242, 255, 0.15), transparent 40%),
        radial-gradient(circle at 20% 100%, rgba(45, 212, 191, 0.1), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(13, 13, 13, 1), rgba(5, 5, 5, 1));
    pointer-events: none;
}

.glow-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    mix-blend-mode: overlay;
    z-index: -1;
    pointer-events: none;
}

/* Custom Cursor Glow */
.cursor-glow {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.05) 0%, transparent 70%);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

/* Shared Components */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-10px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 242, 255, 0.1);
}

.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
    border-radius: inherit;
}

/* Floating Glass Navbar */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: 1000;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--accent-cyan);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.6);
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--accent-cyan);
    color: var(--bg-color);
}

.lang-btn:hover:not(.active) {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 10;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 100px;
    color: var(--accent-cyan);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-title {
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

html[lang="ar"] .hero-title {
    letter-spacing: 0;
}

.accent-text {
    color: var(--accent-cyan);
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 3.5rem;
    font-weight: 300;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1.1rem 2.5rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.glass-btn {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    position: relative;
    overflow: hidden;
}

.glass-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: 0.5s;
}

.glass-btn:hover::before {
    left: 100%;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
    transform: translateY(-5px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    animation: pulse-ring 4s ease-in-out infinite;
}

@keyframes pulse-ring {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

.floating-image {
    width: 100%;
    max-width: 500px;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(2deg);
    }

    50% {
        transform: translateY(-25px) rotate(-1deg);
    }
}

/* Bento Grid Features */
.bento-section {
    padding-bottom: 100px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 350px);
    gap: 1.5rem;
}

.glass-card-bg {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.glass-card-bg:hover .bg-img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    inset: 0;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: transparent;
    backdrop-filter: blur(0px);
    transition:
        backdrop-filter 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.glass-card-bg:hover .card-overlay {
    backdrop-filter: blur(15px);
    background: linear-gradient(to top, rgba(5, 5, 5, 0.95), rgba(5, 5, 5, 0.3));
}

.security-card {
    grid-row: span 2;
}

.dashboard-card {
    grid-column: span 1;
}

.transfer-card {
    grid-column: span 1;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

p {
    color: var(--text-secondary);
}

.card-overlay p {
    opacity: 0.3;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-bg:hover .card-overlay p {
    opacity: 1;
}

/* How It Works */
.how-it-works-section {
    padding: 100px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    transition: var(--transition);
}

.step-item:hover .step-icon {
    background: var(--accent-cyan);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

/* Advanced Features */
.advanced-features-section {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.feature-icon {
    font-size: 2.5rem;
    min-width: 60px;
}

.trust-label {
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    opacity: 0.6;
}

.partner-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 5px;
    color: var(--text-primary);
    transition: var(--transition);
}

.partner-logo:hover {
    opacity: 1;
    color: var(--accent-cyan);
    transform: scale(1.1);
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    padding: 0 !important;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: inherit;
    text-align: right;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(255, 255, 255, 0.02);
}

.accordion-content p {
    padding: 1.5rem 2rem;
    opacity: 0.8;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
}

.accordion-item.active .icon {
    transform: rotate(45deg);
}

.icon {
    transition: transform 0.3s ease;
    color: var(--accent-cyan);
    font-size: 1.5rem;
}

/* Final CTA */
.final-cta {
    padding: 100px 0 150px;
}

.cta-card {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.05), rgba(0, 0, 0, 0));
}

.cta-card h2 {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(to bottom, #fff, #999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.large {
    padding: 1.5rem 4rem;
    font-size: 1.4rem;
    background: var(--accent-cyan);
    color: var(--bg-color);
    border: none;
}

.large:hover {
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.5);
    transform: scale(1.05);
}

/* Footer */
.minimal-footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--accent-cyan);
}

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Contact Section Overhaul */
.contact-section {
    padding: 120px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.glass-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

.glass-input::placeholder {
    color: rgba(148, 163, 184, 0.4);
    text-align: right;
    font-weight: 300;
}

html[lang="en"] .glass-input::placeholder {
    text-align: left;
}

textarea.glass-input {
    min-height: 150px;
    resize: none;
}

.glow-btn {
    background: var(--accent-cyan);
    color: var(--bg-color);
    border: none;
    padding: 1.2rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 0 rgba(0, 242, 255, 0);
}

.glow-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.4);
    background: #00e0eb;
}

/* Fancy Corporate Footer */
.corporate-footer {
    padding: 100px 0 40px;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-brand .logo-text {
    margin-bottom: 1.5rem;
    display: block;
}

.footer-mission {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 250px;
    line-height: 1.8;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-right: 5px;
}

html[lang="en"] .footer-links a:hover {
    padding-right: 0;
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social-wrap {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent-cyan);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.2);
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    padding: 0;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

html[lang="en"] #back-to-top {
    right: 30px;
    left: auto;
}

html[lang="ar"] #back-to-top {
    left: 30px;
    right: auto;
}

@media (max-width: 1024px) {

    .container {
        padding: 0 1.25rem;
    }

    .hero-grid,
    .steps-grid,
    .features-grid,
    .bento-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        gap: 1.5rem;
    }

    .bg-img {
        background-attachment: scroll;
        /* Fix for some mobile browsers */
        background-size: cover;
        background-position: center;
    }

    .card-overlay {
        padding: 1.5rem;
        -webkit-backdrop-filter: blur(0px);
        backdrop-filter: blur(0px);
        /* Standard */
    }

    .hero-title,
    .section-title,
    .cta-card h2 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin: 0 auto 3rem;
    }

    .hero-ctas {
        justify-content: center;
    }

    .security-card,
    .dashboard-card,
    .transfer-card {
        grid-column: auto !important;
        grid-row: auto !important;
        height: 320px !important;
        width: 100%;
        box-sizing: border-box;
        contain: content;
        overflow: hidden;
    }

    .bento-item h3 {
        font-size: 1.5rem;
    }

    .glass-nav {
        width: 100%;
        top: 0;
        border-radius: 0;
    }

    .nav-links-wrap {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        overflow: hidden;
        transition: var(--transition);
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-links-wrap.active {
        height: calc(100vh - 80px);
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .nav-links a {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--text-primary);
        letter-spacing: 1px;
    }

    .nav-links li {
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
    }

    .mobile-toggle span {
        width: 30px;
        height: 2px;
        background: var(--text-primary);
        transition: var(--transition);
    }

    .mobile-toggle.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-toggle.open span:nth-child(2) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}