:root {
    --primary: #007ACB;        /* Main blue from the mountain */
    --primary-dark: #005F9A;   /* Darker shade for hover/effects */
    --secondary: #1FC2A8;      /* Greenish-teal from the base/book */
    --accent: #50D4F6;         /* Light cyan accent (snow/highlight) */
    --accent-light: #A1ECFB;   /* Lighter aqua tone */
    --neutral: #F5F7F9;        /* Light neutral for backgrounds */
    --dark: #1C1C1C;           /* Almost black for contrast */
    --light: #FFFFFF;          /* Pure white */
    --gray: #6B7280;           /* Medium gray for UI */
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 15px 30px rgba(0, 0, 0, 0.11), 0 10px 10px rgba(0, 0, 0, 0.08);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul {
    list-style: none;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Add to your CSS: */
.desktop-auth {
    display: flex;
    align-items: center;
}

.mobile-auth {
    display: none;
}

@media (max-width: 768px) {
    .desktop-auth {
        display: none;
    }

    .mobile-auth {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 20px;
        margin-top: auto; /* Push to bottom of drawer */
    }

    .mobile-auth .btn {
        width: 100%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Add dropdown styles: */
.language-dropdown {
    position: relative;
    margin-right: 15px;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    gap: 5px;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    min-width: 120px;
    display: none;
    z-index: 100;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu button {
    width: 100%;
    text-align: left;
    padding: 8px 15px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px) {
    .language-dropdown {
        margin: 20px 0;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
    }
}

.animate {
    opacity: 0;
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    animation: slideUp 0.8s ease forwards;
}

.slide-left {
    animation: slideLeft 0.8s ease forwards;
}

.slide-right {
    animation: slideRight 0.8s ease forwards;
}

.float {
    animation: float 3s ease-in-out infinite;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background-color: var(--primary);
    box-shadow: var(--shadow-md);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

}

.scrolled .logo {
    filter: brightness(0) invert(1);
}

.scrolled .logo-text {
    color: white;
}

.logo img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: white;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 15px;
}

/* Updated Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Language Dropdown - Enhanced */
.language-dropdown {
    position: relative;
    margin-right: 10px;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    margin: auto;
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dropdown-toggle .material-symbols-outlined {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"] .material-symbols-outlined {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    padding: 10px 0;
    min-width: 140px;
    display: none;
    z-index: 100;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu button {
    width: 100%;
    text-align: left;
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.dropdown-menu button:hover {
    background: rgba(78, 99, 217, 0.1);
    color: var(--primary);
}

/* Auth Buttons - Desktop */
.desktop-auth {
    display: flex;
    gap: 10px;
}

/* Auth Buttons - Mobile */
.mobile-auth {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    margin-top: 20px;
    width: 100%;
}

.mobile-auth .btn {
    width: 100%;
    text-align: center;
}

/* Mobile Menu Adjustments */
@media (max-width: 768px) {
    .desktop-auth {
        display: none;
    }

    .mobile-auth {
        display: flex;
    }

    .language-dropdown {
        margin: 20px 0;
        width: 100%;
    }

    .dropdown-menu {
        width: 100%;
        box-shadow: none;
        background: rgba(255, 255, 255);
    }

    .dropdown-menu button {
        color: black;
        padding: 12px 20px;
    }

    .dropdown-menu button:hover {
        background: var(--primary);
        color: white;
    }

    .nav-links {
        align-items: flex-start;
        padding: 30px;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background: white;
    color: var(--dark);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(11, 12, 13, 0.7), rgba(11, 12, 13, 0.7)), url('../images/background.jpg') no-repeat center center/cover;
    overflow: hidden;
    clip-path: ellipse(100% 100% at 50% 0%);
}


.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 80px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.highlight {
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-accent {
    background: var(--accent);
    color: var(--dark);
    font-weight: 600;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(56, 224, 242, 0.3);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: float 2s ease-in-out infinite;
    cursor: pointer;
}

/* Features Section */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(78, 99, 217, 0.2);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
}

/* Pricing Section */
.pricing {
    background-color: #f8f9ff;
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    gap: 15px;
}

.toggle-label {
    font-weight: 500;
    color: var(--gray);
    transition: var(--transition);
}

.toggle-label.active {
    color: var(--primary);
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: var(--transition);
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray);
}

.price-desc {
    color: var(--gray);
    margin-bottom: 25px;
    min-height: 60px;
}

.divider {
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

.feature-list {
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.feature-item .icon {
    color: var(--success);
    margin-right: 10px;
    font-size: 1.2rem;
}

.pricing-btn {
    width: 100%;
    padding: 12px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    display: block;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/diagonal-striped-brick.png');
    opacity: 0.05;
    pointer-events: none;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.cta-btn {
    background: white;
    color: var(--primary);
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 30px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-about p {
    opacity: 0.7;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: white;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 12px;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-link:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.footer-contact .icon {
    color: var(--accent);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .section {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .cta h2 {
        font-size: 1.8rem;
    }

    .hero {
        position: sticky;
        top: 0;
        height: 100vh;
        background: linear-gradient(rgba(11, 12, 13, 0.7), rgba(11, 12, 13, 0.7)), url('../images/background.jpg') no-repeat center center/cover;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1;
        transition: all 0.5s ease;
        will-change: opacity, transform;
        clip-path: none;
    }

    .hero.scrolled {
        opacity: 0;
        transform: translateY(-50px);
        pointer-events: none;
    }

}

.pricing-card.enterprise {
    border: 2px solid var(--secondary);
    position: relative;
}

.pricing-card.enterprise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.pricing-card.enterprise .popular-badge {
    background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
}

.pricing-card.enterprise .feature-item .icon {
    color: var(--secondary);
}

.pricing-card.enterprise .pricing-btn {
    background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
    color: white;
    border: none;
}

/* RTL Layout */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .hero-cta,
[dir="rtl"] .features-grid,
[dir="rtl"] .pricing-cards {
    direction: rtl;
}

[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .popular-badge {
    right: auto;
    left: 15px;
}

[dir="rtl"] .social-links,
[dir="rtl"] .footer-content {
    direction: rtl;
}

/* Language switcher */
.language-switcher {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.lang-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
    font-family: 'Poppins', 'Tajawal', sans-serif;
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.2);
}

[dir="rtl"] .feature-item .icon {
    margin-right: 0;
    margin-left: 10px;
}

[lang="ar"] body {
    font-family: 'Tajawal', 'Poppins', sans-serif;
}

[lang="ar"] .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
}

