:root {
    --bg-color: #0f172a;
    --primary-color: #7c3aed;
    /* Neon Purple */
    --secondary-color: #3b82f6;
    /* Blue */
    --text-color: #f8fafc;
    --card-bg: #1e293b;
    --accent-glow: 0 0 20px rgba(124, 58, 237, 0.5);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 0 15px var(--secondary-color);
}

section {
    padding: 80px 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
}

#hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

#hero p {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About Section */
#about {
    background-color: rgba(30, 41, 59, 0.5);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--accent-glow);
}

.icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: #94a3b8;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.portfolio-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.portfolio-card:hover {
    border-color: var(--primary-color);
}

.portfolio-content {
    padding: 30px;
}

.portfolio-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.portfolio-content p {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.coming-soon-overlay {
    position: relative;
}

.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(45deg, #ff007b, #7c3aed);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.disabled-btn {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Footer */
footer {
    background-color: #020617;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content p {
    color: #64748b;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Media Queries */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 20px;
        /* Added spacing */
        z-index: 999;
        /* Ensure it's on top */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: block;
        font-size: 2rem;
        z-index: 1001;
    }
}

/* Language Selector */
#language-selector {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

#language-selector:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
}

#language-selector option {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* RTL Specific Overrides */
/* When dir="rtl", normal flow flips automatically. 
   We only need to fix physical positioning triggers like 'right' */

@media (max-width: 768px) {
    .rtl .nav-links {
        right: auto;
        left: -100%;
    }

    .rtl .nav-links.active {
        right: auto;
        left: 0;
    }
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex: 1;
    min-width: 250px;
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--accent-glow);
    transform: translateY(-5px);
}

.contact-item h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: var(--text-color);
}

.contact-item p a {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-item p a:hover {
    text-shadow: 0 0 10px var(--primary-color);
}

.social-links-contact {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-links-contact a {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: var(--transition);
}

.social-links-contact a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}