/* --- RESET & VARIABLES --- */
:root {
    --primary: #4f46e5;
    /* Indigo/Purple tone */
    --secondary: #0ea5e9;
    /* Sky Blue */
    --accent: #f59e0b;
    /* Amber/Gold for "Creative" spark */
    --dark: #0f172a;
    /* Slate 900 */
    --light: #f8fafc;
    --text-gray: #94a3b8;
    --glass: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- LAYOUT & UTILS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.6);
}

/* --- BACKGROUND ANIMATION --- */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: 0.4s;
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--secondary);
}

.logo img {
    height: 90px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--secondary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 80vh;
    /* Changed from 100vh to accommodate shorter content if needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 100px;
    /* Added padding for fixed header */
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    animation: fadeIn Up 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--secondary);
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

/* --- ABOUT SECTION --- */
.about {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(79, 70, 229, 0.05));
    min-height: 80vh;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-gray);
}

.highlight-box {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    position: relative;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    z-index: -1;
    border-radius: 22px;
    opacity: 0.5;
    filter: blur(10px);
}

/* --- SERVICES SECTION --- */
.services {
    padding: 100px 0;
    min-height: 80vh;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 15px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--secondary);
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* --- DIFFERENCE SECTION --- */
.why-us {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--accent);
}

/* --- CLIENTS SECTION --- */
.clients {
    padding: 80px 0;
    text-align: center;
}

.clients-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.client-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.client-tag:hover {
    background: var(--light);
    color: var(--dark);
}

/* --- FOOTER --- */
footer {
    background: black;
    padding: 60px 0 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h2 {
    color: var(--secondary);
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-gray);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #555;
    font-size: 0.9rem;
}

/* Page Headers for subpages */
.page-header {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9));
    padding: 150px 0 60px;
    text-align: center;
}

/* Language Switcher */
.lang-switch {
    margin-left: 20px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid var(--secondary);
    padding: 5px 15px;
    border-radius: 20px;
}

/* RTL Support Details */
html[dir="rtl"] .lang-switch {
    margin-left: 0;
    margin-right: 20px;
}

html[dir="ltr"] .logo {
    flex-direction: row-reverse;
}

/* Maintain logo alignment? Check visual */
/* Actually, keep logo as is, but handle spacing in LTR */

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    /* Logo responsive */
    .logo img {
        height: 60px !important;
    }
}