:root {
    --primary-blue: #0066ff;
    --electric-cyan: #00d9ff;
    --vibrant-purple: #9333ea;
    --neon-pink: #ff0080;
    --dark-bg: #0a0e27;
    --dark-card: #151b3d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--dark-bg);
    color: #fff;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-blue), var(--vibrant-purple));
    border-radius: 10px;
}

.navbar {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 102, 255, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.menu-toggle {
    display: none;
}

.navbar-toggler {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    background: transparent;
}

.navbar-toggler-icon {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: all 0.3s ease;
    display: block;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    transform: translateY(-8px);
}

.navbar-toggler-icon::after {
    transform: translateY(5px);
}

.navbar-collapse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--electric-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: #fff !important;
    margin: 0 0.5rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--electric-cyan));
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--electric-cyan) !important;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--vibrant-purple));
    border: none;
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--electric-cyan), var(--neon-pink));
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-gradient:hover::before {
    left: 0;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1f3a 50%, var(--dark-bg) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* account for fixed navbar */
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite 2s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--electric-cyan), var(--primary-blue), var(--vibrant-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    color: #b0b8d0;
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons .btn {
    margin-left: 1rem;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
}

.btn-outline-glow {
    border: 2px solid var(--electric-cyan);
    color: var(--electric-cyan);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-glow:hover {
    background: var(--electric-cyan);
    color: var(--dark-bg);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.6);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services {
    padding: 100px 0;
    background: var(--dark-bg);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--electric-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 217, 255, 0.1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(147, 51, 234, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.3);
    border-color: var(--electric-cyan);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--electric-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.service-card p {
    color: #b0b8d0;
    line-height: 1.8;
}

.projects {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--dark-bg), #0f1528);
}

.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
    height: 300px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.9), rgba(147, 51, 234, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay h4 {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay h4 {
    transform: translateY(0);
}

.about {
    padding: 100px 0;
    background: var(--dark-bg);
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.3);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--electric-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content p {
    color: #b0b8d0;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--electric-cyan);
    margin-left: 1rem;
}

.team {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--dark-bg), #0f1528);
}

.team-card {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 217, 255, 0.1);
    margin-bottom: 2rem;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(147, 51, 234, 0.3);
    border-color: var(--vibrant-purple);
}

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--electric-cyan);
    overflow: hidden;
    transition: all 0.4s ease;
}

.team-card:hover .team-image {
    border-color: var(--vibrant-purple);
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.6);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.team-card p {
    color: var(--electric-cyan);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.1);
    color: var(--electric-cyan);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--electric-cyan);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.5);
}

.testimonials {
    padding: 100px 0;
    background: var(--dark-bg);
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    border-color: var(--electric-cyan);
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.2);
}

.testimonial-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--electric-cyan);
    overflow: hidden;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    color: #b0b8d0;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 700;
    color: var(--electric-cyan);
}

.contact {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--dark-bg), #0f1528);
}

.contact-form {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(0, 217, 255, 0.1);
}

.form-label {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    color: #fff;
    border-radius: 10px;
    padding: 0.8rem;
    transition: all 0.3s ease;
    /* form styling */
}

.form-control:focus,
.form-select:focus {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--electric-cyan);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.form-control::placeholder {
    color: #6b7280;
}

.contact-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.3);
    height: 100%;
    min-height: 400px;
}

.contact-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-social {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.contact-social a {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--vibrant-purple));
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.contact-social a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.5);
}

.footer {
    background: linear-gradient(180deg, #0a0e27, #050815);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--electric-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.footer p {
    color: #b0b8d0;
    line-height: 1.8;
}

.footer-links h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #b0b8d0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--electric-cyan);
    padding-right: 10px;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
    text-align: center;
    color: #6b7280;
}

@media (max-width: 991px) {
    .navbar .container {
        position: relative;
    }
    
    .navbar-toggler {
        display: flex;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .menu-toggle:checked ~ .navbar-collapse {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem;
        box-shadow: 0 4px 30px rgba(0, 102, 255, 0.2);
        margin-top: 10px;
        z-index: 1000;
    }
    
    .menu-toggle:not(:checked) ~ .navbar-collapse {
        display: none;
    }
    
    .menu-toggle:checked ~ .navbar-toggler .navbar-toggler-icon {
        background: transparent;
    }
    
    .menu-toggle:checked ~ .navbar-toggler .navbar-toggler-icon::before {
        transform: translateY(0) rotate(45deg);
    }
    
    .menu-toggle:checked ~ .navbar-toggler .navbar-toggler-icon::after {
        transform: translateY(-3px) rotate(-45deg);
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .nav-item {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        text-align: right;
    }
    
    .navbar-collapse .btn-gradient {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .testimonials-container {
        grid-template-columns: 1fr;
    }
}


.glow-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--electric-cyan), transparent);
    margin: 2rem 0;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}