/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    line-height: 1.6;
    color: #ffffff;
    background: #000000;
    overflow-x: hidden;
    cursor: default;
}

#starry-sky {
    position: fixed; /* أو absolute إذا كان الـ body هو الحاوية الرئيسية */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* مهم جداً لوضع الـ canvas خلف المحتوى الآخر */
}

.content {
    position: relative; /* لضمان أن المحتوى فوق الـ canvas */
    z-index: 1;
    text-align: center;
    padding: 50px;
    padding-top: 100px; /* مسافة من الأعلى لإظهار النجوم */
}

/* يمكنك إضافة تنسيقات أخرى لمحتواك هنا */
.content h1 {
    font-size: 3em;
}

.content p {
    font-size: 1.2em;
}
/* Header Styles */
.header {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #000;
    overflow: hidden;
    z-index: 1;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.8)),
                url('./digital-agency/hero-bg.webp') center/cover;
    z-index: 2;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
    pointer-events: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    position: relative;
    z-index: 1001;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #00a8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    margin: 0;
    padding: 0;
}

.logo h1:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #ffffff 20%, #00a8ff 80%);
    -webkit-background-clip: text;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 1000;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(135deg, #00a8ff, #0056b3);
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-links a:hover {
    color: #00a8ff;
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    width: 100%;
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    color: white;
    position: relative;
}

.language-switch {
    display: flex;
    gap: 0.5rem;
    position: relative;
    z-index: 1000;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: linear-gradient(135deg, #00a8ff, #0056b3);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media screen and (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 999;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        margin: 1rem 0;
    }

    .hero {
        position: relative;
        z-index: 10;
        width: 100%;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem 5%;
        margin-top: -60px; /* Reduced from -80px */
    }

    .hero-content {
        position: relative;
        z-index: 15;
        max-width: 800px;
        width: 100%;
        text-align: center;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding: 2.5rem;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

    .hero h1 {
        font-size: 3.5rem;
        font-weight: 800;
        margin-bottom: 1.5rem;
        background: linear-gradient(135deg, #ffffff 0%, #00a8ff 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        line-height: 1.2;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        animation: fadeInUp 1s ease-out;
    }

    .hero p {
        font-size: calc(1rem + 0.5vw);
        margin-bottom: 2rem;
    }

    .hero .cta-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .nav-links.active {
        animation: slideIn 0.3s ease forwards;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* New Hero Animations */
@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes subtitleReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.5; }
}

/* Header Animation Improvements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0 5%;
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0, 168, 255, 0.1) 0%,
        transparent 45%,
        transparent 55%,
        rgba(0, 86, 179, 0.1) 100%
    );
    animation: gradientMove 15s ease infinite;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 15;
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px);
    transition: transform 0.3s ease;
}

.hero-content:hover {
    transform: perspective(1000px) translateZ(30px);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #00a8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleReveal 1s ease forwards;
    background-size: 200% 200%;
    animation: gradientMove 8s ease infinite, fadeInUp 1s ease forwards;
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(0, 168, 255, 0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
    animation: subtitleReveal 1s ease 0.3s forwards;
    opacity: 0;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .cta-btn {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #00a8ff, #0056b3);
    color: white;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    position: relative;
    overflow: hidden;
    display: inline-block;
    animation: buttonReveal 1s ease 0.6s forwards;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.2);
}

.hero .cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0056b3, #00a8ff);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero .cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 168, 255, 0.3);
}

.hero .cta-btn:hover::before {
    opacity: 1;
}

.hero .cta-btn::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: ripple 1.5s ease-out infinite;
}

.btn-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    z-index: -1;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cta-btn:hover .btn-effect {
    transform: rotate(45deg) translateY(-50%);
    opacity: 0.2;
}

@media screen and (max-width: 768px) {
    .hero {
        padding-top: 80px;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero h1 {
        font-size: calc(2rem + 2vw);
        letter-spacing: -0.5px;
    }

    .hero p {
        font-size: calc(1rem + 0.5vw);
        margin-bottom: 2rem;
    }

    .hero .cta-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .nav-links.active {
        animation: slideIn 0.3s ease forwards;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Services Section */
.services {
    padding: 5rem 5%;
    background-color: #000000;
}

.services h2, .about h2, .portfolio h2, .contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    animation: float 6s ease-in-out infinite;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.1), rgba(0, 151, 230, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 168, 255, 0.2);
    border-color: rgba(0, 168, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card:hover .service-image::after {
    opacity: 1;
}

.service-image {
    width: 100%;
    height: 250px;  /* Increased from 200px */
    margin: 0 0 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card h3 {
    color: #00a8ff;
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.service-card:hover p {
    opacity: 1;
}

/* About Section */
.about {
    padding: 5rem 5%;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat h3 {
    font-size: 2.5rem;
    color: #00a8ff;
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 5%;
    background-color: #000000;
}

.portfolio .section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    background: linear-gradient(90deg, #00a8ff, #0056b3, #00a8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
    cursor: grab;
}

.portfolio-grid:active {
    cursor: grabbing;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.overlay-content {
    padding: 2rem;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 168, 255, 0.2);
    position: relative;
    z-index: 2;
}

.portfolio-overlay h3 {
    color: #00a8ff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.portfolio-overlay p {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem;
    border-radius: 8px;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
    opacity: 1;
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    border: 2px solid transparent;
    background: #111111;
    color: #ffffff;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: text;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: #00a8ff;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background-color: #0097e6;
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: #00a8ff;
}

/* Footer */
.footer {
    background-color: #000000;
    color: white;
    padding: 3rem 5%;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-links a:hover {
    background: #00a8ff;
    transform: translateY(-5px);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.3);
}

.footer p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-top: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 5%;
    }
    
    .social-links {
        gap: 1.5rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loader-text {
    color: #fff;
    font-size: 1.2rem;
    font-family: var(--font-primary);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modern Animations and Effects */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(2.5); opacity: 0; }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(0, 168, 255, 0.2); }
    50% { box-shadow: 0 0 20px rgba(0, 168, 255, 0.4); }
    100% { box-shadow: 0 0 5px rgba(0, 168, 255, 0.2); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shine {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.service-card {
    animation: float 6s ease-in-out infinite;
}

.hero h1 {
    background: linear-gradient(90deg, #00a8ff, #0056b3, #00a8ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

.cta-btn {
    background: linear-gradient(45deg, #00a8ff, #0056b3);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation: glow 2s ease-in-out infinite;
}

.cta-btn::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: ripple 1.5s ease-out infinite;
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 168, 255, 0.3);
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0056b3, #00a8ff);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.cta-btn:hover::before {
    opacity: 1;
}

.stat {
    position: relative;
    padding: 2rem;
    background: #000000;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.5s ease;
    color: #ffffff;
}

.stat::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, rgba(0, 168, 255, 0.1), rgba(0, 86, 179, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stat:hover {
    transform: translateY(-10px);
}

.stat:hover::before {
    opacity: 1;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 168, 255, 0.9), rgba(0, 86, 179, 0.9));
    opacity: 0;
    transition: all 0.5s ease;
}

.portfolio-item:hover::after {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1) rotate(3deg);
}

.contact-form input,
.contact-form textarea {
    border: 2px solid transparent;
    background: #111111;
    color: #ffffff;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #00a8ff;
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.1);
    transform: translateY(-2px);
}

.social-links a {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 10px;
    transition: all 0.5s ease;
    cursor: pointer;
}

.social-links a:hover {
    background: #00a8ff;
    transform: translateY(-5px);
}

/* Glass Morphism Effects */
.navbar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.language-switch .lang-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .service-card {
        animation: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .service-card {
        margin-bottom: 2rem;
    }

    .service-image {
        height: 200px;
    }

    .service-card h3 {
        font-size: 1.5rem;
    }

    .service-card p {
        font-size: 1rem;
    }
    
    .services {
        padding: 3rem 3%;
    }
}

/* Language Switcher */
.language-switch {
    display: flex;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: #00a8ff;
    border-color: #00a8ff;
}

[lang="en"] {
    font-family: 'Poppins', sans-serif;
}

/* RTL/LTR Support */
[dir="ltr"] {
    text-align: left;
}

[dir="rtl"] {
    text-align: right;
}

@media (max-width: 768px) {
    .language-switch {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.9);
        padding: 0.5rem;
        border-radius: 0 0 4px 4px;
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.4s; }
.reveal-delay-3 { transition-delay: 0.6s; }

button, a, .service-card, .portfolio-item, .cta-btn, .submit-btn, .social-links a, .nav-links a, .lang-btn {
    cursor: pointer;
}

input[type="text"], input[type="email"], input[type="tel"], textarea {
    cursor: text;
}

button:disabled, input:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Basic cursor styles */
body {
  /* cursor: default; */
  cursor: none;
}
.custom-cursor {
    position: fixed;
    left: 0;
    top: 0;
    width: 30px; /* حجم النقطة الأساسي */
    height: 30px;
    background-color: #00a8ff;
    border-radius: 50%;
    pointer-events: none; /* مهم جداً */
    transform: translate(-50%, -50%); /* للتوسيط الدقيق على مؤشر الماوس */
    z-index: 10000;
    transition: width 0.2s ease-in-out, height 0.2s ease-in-out, background-color 0.2s ease-in-out, border 0.2s ease-in-out;
    will-change: width, height, background-color, border, transform; /* تحسين الأداء */
}

/* شكل المؤشر عند المرور فوق العناصر الجذابة */
.custom-cursor.active {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2); /* يصبح شبه شفاف */
    /* أو يمكنك جعله حلقة: */
    /* background-color: transparent; */
    /* border: 2px solid white; */
}

.content-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* العناصر التي ستجذب المؤشر */
.magnetic-item {
    display: inline-block; /* أو block، مهم لـ transform */
    padding: 20px 40px;
    border: 1px solid white;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-size: 1.2em;
    cursor: none; /* مهم للحفاظ على إخفاء المؤشر الأصلي */
    transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* حركة ناعمة للعنصر نفسه */
    will-change: transform; /* تحسين الأداء */
}

/* يمكنك إضافة بعض التنسيقات الإضافية للعناصر عند المرور إذا أردت */
.magnetic-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
/* Add subtle glow to text for better contrast with particles */
h1, h2, h3, p {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
