@import url('https://api.fontshare.com/v2/css?f[]=clash-grotesk@500&f[]=cabinet-grotesk@400&f[]=space-grotesk@400&display=swap');

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

body {
    background-color: #000000;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
}

html[lang="ar"] body {
    font-family: 'Alexandria', sans-serif;
}

/* Background blurs that follow scrolling */
.background-images {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.right-blur {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 739px;
    height: 827px;
    background-image: url('https://dso5.raed.net:452/files/LuaVeil-Right-739x827.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    filter: blur(5px);
}

.left-blur {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 663px;
    height: 556px;
    background-image: url('https://dso5.raed.net:452/files/LuaVeil-Left-663x556.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom left;
    filter: blur(5px);
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 10px;
}

html[dir="rtl"] .language-switcher {
    right: auto;
    left: 20px;
}

.lang-btn {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.lang-btn img {
    width: 24px;
    height: 16px;
    border-radius: 2px;
}

.lang-btn:hover, .lang-btn.active {
    border-color: #1DCD9F;
    transform: translateY(-2px);
}

/* Common section styles */
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Clash Grotesk', sans-serif;
    font-weight: 500;
    font-size: 60px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: center;
}

html[lang="ar"] .section-title {
    font-family: 'Alexandria', sans-serif;
    font-weight: 700;
}

.section-title span.gradient,
span.gradient {
    background: linear-gradient(90deg,
            #169976 0%,
            #1DCD9F 50%,
            #169976 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-description {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 50px;
    color: #FFFFFF;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

html[lang="ar"] .section-description {
    font-family: 'Alexandria', sans-serif;
    font-weight: 400;
}

/* Hero Section Styles */
#hero {
    justify-content: center;
    padding-top: 0;
}

.logo {
    margin-bottom: 60px;
}

.logo img {
    max-width: 311px;
    height: auto;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
}

h1 {
    font-family: 'Clash Grotesk', sans-serif;
    font-weight: 500;
    font-size: 80px;
    line-height: 1.2;
    margin-bottom: 30px;
}

html[lang="ar"] h1 {
    font-family: 'Alexandria', sans-serif;
    font-weight: 700;
}

h1 span.gradient {
    display: block;
}

h1 span.white {
    color: #FFFFFF;
    display: block;
}

.hero-description {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 50px;
    color: #FFFFFF;
    max-width: 700px;
}

html[lang="ar"] .hero-description {
    font-family: 'Alexandria', sans-serif;
    font-weight: 400;
}

.buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 12px 35px;
    border-radius: 50px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

html[lang="ar"] .btn {
    font-family: 'Alexandria', sans-serif;
}

.btn-outline {
    background-color: transparent;
    color: white;
    position: relative;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 50px;
    padding: 1px;
    background: linear-gradient(90deg,
            #169976 0%,
            #1DCD9F 50%,
            #169976 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.btn-filled {
    background-color: rgba(29, 205, 159, 0.15);
    color: white;
    border: 2px solid rgba(29, 205, 159, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-filled:hover {
    background-color: rgba(29, 205, 159, 0.2);
    border: 2px solid rgba(29, 205, 159, 0.5);
}

/* Scroll Button Styles */
.scroll-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.scroll-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.scroll-arrow svg {
    width: 18px;
    height: 18px;
}

.scroll-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    color: white;
}

html[lang="ar"] .scroll-label {
    font-family: 'Alexandria', sans-serif;
}

.scroll-container:hover .scroll-arrow {
    animation: scroll-down 3s infinite;
}

@keyframes scroll-down {
    0%, 100% {
        transform: translateY(0rem);
        opacity: 1;
    }
    35% {
        transform: translateY(1rem);
        opacity: 0;
    }
    70% {
        transform: translateY(-1rem);
        opacity: 0;
    }
}

/* Features Section */
#features {
    padding-top: 100px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.feature-card {
    background-color: rgba(15, 15, 15, 0.6);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #169976 0%, #1DCD9F 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card.highlight {
    background: linear-gradient(135deg, rgba(22, 153, 118, 0.2) 0%, rgba(29, 205, 159, 0.1) 100%);
    border: 1px solid rgba(29, 205, 159, 0.3);
}

.feature-card.highlight::before {
    opacity: 1;
    height: 3px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: #1DCD9F;
}

.feature-card h3 {
    font-family: 'Clash Grotesk', sans-serif;
    font-weight: 500;
    font-size: 22px;
    margin-bottom: 15px;
    color: #FFFFFF;
}

html[lang="ar"] .feature-card h3 {
    font-family: 'Alexandria', sans-serif;
    font-weight: 600;
}

.feature-card p {
    font-size: 16px;
    line-height: 1.5;
    color: #CCCCCC;
}

/* How It Works Section */
#how-it-works {
    padding-top: 100px;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    margin-bottom: 50px;
}

.step-card {
    background-color: rgba(15, 15, 15, 0.6);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: rgba(29, 205, 159, 0.3);
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #169976 0%, #1DCD9F 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-family: 'Clash Grotesk', sans-serif;
    font-weight: 500;
    font-size: 20px;
    margin-bottom: 15px;
    color: #FFFFFF;
}

html[lang="ar"] .step-card h3 {
    font-family: 'Alexandria', sans-serif;
    font-weight: 600;
}

.step-card p {
    font-size: 15px;
    line-height: 1.5;
    color: #CCCCCC;
}

.step-connector {
    width: 50px;
    height: 2px;
    background-color: rgba(29, 205, 159, 0.3);
    position: relative;
}

html[dir="rtl"] .steps-container {
    flex-direction: row-reverse;
}

/* Pricing Section */
#pricing {
    padding-top: 100px;
}

.pricing-card {
    background-color: rgba(15, 15, 15, 0.6);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #169976 0%, #1DCD9F 100%);
}

.price-badge {
    background: linear-gradient(135deg, #169976 0%, #1DCD9F 100%);
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    display: inline-block;
    margin-bottom: 20px;
}

html[lang="ar"] .price-badge {
    font-family: 'Alexandria', sans-serif;
}

.pricing-title {
    font-family: 'Clash Grotesk', sans-serif;
    font-weight: 500;
    font-size: 32px;
    margin-bottom: 15px;
    color: #FFFFFF;
}

html[lang="ar"] .pricing-title {
    font-family: 'Alexandria', sans-serif;
    font-weight: 700;
}

.pricing-description {
    font-size: 18px;
    line-height: 1.5;
    color: #CCCCCC;
    margin-bottom: 30px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    padding: 0 20px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #FFFFFF;
    font-size: 18px;
}

.pricing-features li svg {
    width: 22px;
    height: 22px;
    color: #1DCD9F;
    flex-shrink: 0;
}

.pricing-button {
    background: linear-gradient(90deg, #169976 0%, #1DCD9F 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 500;
    display: inline-block;
    text-decoration: none;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

html[lang="ar"] .pricing-button {
    font-family: 'Alexandria', sans-serif;
}

.pricing-button:hover {
    transform: translateY(-3px);
}

.pricing-note {
    font-size: 14px;
    color: #999999;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
#footer {
    margin-top: 100px;
    padding: 60px 30px 30px;
    background-color: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(10px);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

html[lang="ar"] .footer-links a {
    font-family: 'Alexandria', sans-serif;
}

.footer-links a:hover {
    color: #1DCD9F;
}

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

.footer-copyright p {
    color: #999999;
    font-size: 14px;
    margin-bottom: 10px;
}

.disclaimer {
    color: #777777;
    font-size: 12px;
    max-width: 600px;
    margin: 0 auto;
}

/* RTL Support */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .feature-icon,
html[dir="rtl"] .step-number {
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .section-title,
    h1 {
        font-size: 50px;
    }

    .feature-card, 
    .step-card {
        width: 100%;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    html[dir="rtl"] .steps-container {
        flex-direction: column;
    }

    .step-connector {
        width: 2px;
        height: 30px;
    }

    .buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .section-title,
    h1 {
        font-size: 36px;
    }

    .section-description,
    .hero-description {
        font-size: 16px;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .footer-links {
        gap: 15px;
    }

    .footer-links a {
        font-size: 14px;
    }
}

/* Language-specific content display */
.lang-content {
    width: 100%;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.5s ease-out forwards;
}

.feature-card, .step-card, .pricing-card {
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: calc(var(--animation-order, 0) * 0.1s);
}

.feature-card:nth-child(1) { --animation-order: 1; }
.feature-card:nth-child(2) { --animation-order: 2; }
.feature-card:nth-child(3) { --animation-order: 3; }
.feature-card:nth-child(4) { --animation-order: 4; }
.feature-card:nth-child(5) { --animation-order: 5; }
.feature-card:nth-child(6) { --animation-order: 6; }
.feature-card:nth-child(7) { --animation-order: 7; }
.feature-card:nth-child(8) { --animation-order: 8; }