:root {
    --primary: #0f0f23;
    --secondary: #1a1a2e;
    --accent: #00d4ff;
    --accent-dark: #0099cc;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    --gradient-3: linear-gradient(135deg, #667eea 0%, #00d4ff 50%, #764ba2 100%);
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    font-family: 'Tajawal', 'Inter', sans-serif;
}

body {
    background: var(--primary);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.7;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--primary);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    top: 60%;
    right: 10%;
    width: 120px;
    height: 120px;
    background: var(--gradient-2);
    border-radius: 20px;
    animation-delay: 5s;
}

.shape:nth-child(3) {
    top: 40%;
    left: 60%;
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Navigation */
.navbar {
    background: rgba(15, 15, 35, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background: rgba(15, 15, 35, 0.95) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.navbar-brand img {
    height: 50px;
    filter: brightness(1.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 40% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    max-height: 140px;
    filter: drop-shadow(0 10px 40px rgba(0, 212, 255, 0.3));
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.cta-buttons {
    gap: 1rem;
    margin-bottom: 4rem;
}

.btn-primary-custom {
    background: var(--gradient-2);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4);
}

.btn-outline-custom {
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.3);
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-20px) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(0, 212, 255, 0.2);
    border-color: var(--accent);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.service-description {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Technology Stack */
.tech-stack {
    padding: 8rem 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.tech-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

.tech-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.tech-name {
    font-weight: 600;
    color: var(--text-light);
}

/* Clients Section */
.clients {
    padding: 6rem 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    align-items: center;
    margin-top: 4rem;
}

.client-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.4rem;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.client-logo {
    max-height: 60px;
    max-width: 100%;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-item:hover .client-logo {
    opacity: 1;
    filter: none;
}

/* Footer */
.footer {
    background: var(--secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    max-height: 60px;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-item:hover {
    color: var(--accent);
    transform: translateX(-5px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

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

    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        max-width: 280px;
    }

    .service-card {
        margin-bottom: 2rem;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }

    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ... existing code ... */

/* Service Quick Access */
.service-quick-access {
    margin-bottom: 4rem;
}

.service-prompt {
    font-size: 1.3rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.service-prompt.animate {
    opacity: 1;
    transform: translateY(0);
}

.btn-service-category {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem 1rem;
    color: var(--text-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transform: translateX(-50px);
}

.btn-service-category.animate {
    opacity: 1;
    transform: translateX(0);
}

.btn-service-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-service-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
    border-color: var(--accent);
    color: var(--text-light);
}

.btn-service-category:hover::before {
    opacity: 0.1;
}

.service-cat-icon {
    font-size: 2rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.btn-service-category:hover .service-cat-icon {
    transform: scale(1.1);
    color: var(--accent);
}

.service-cat-title {
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .btn-service-category {
        min-height: 120px;
        padding: 1.5rem 0.5rem;
        transform: translateY(30px);
    }

    .btn-service-category.animate {
        transform: translateY(0);
    }

    .service-cat-icon {
        font-size: 1.5rem;
    }

    .service-cat-title {
        font-size: 0.9rem;
    }
}

/* ... existing code ... */