body {
    font-family: 'Cairo', sans-serif;
    background-color: #050505;
    color: #ffffff;
    overflow-x: hidden;
}

/* --- تخصيص شريط التمرير --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
    border: 2px solid #050505;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}



.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    /* Slightly reduced from 80px for performance */
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
    will-change: transform, filter;
    /* Optimize for mobile/slow CPUs */
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8B5CF6 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #06B6D4 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #F59E0B 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

[x-cloak] {
    display: none !important;
}

/* Loading Screen */
#loader {
    position: fixed;
    inset: 0;
    background-color: #050505;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loader-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.loader-icon {
    font-size: 2.5rem;
    color: #ffffff;
    position: relative;
    z-index: 10;
    animation: loader-pulse 2s ease-in-out infinite;
}

/* Glassy Shimmer Effect */
.shimmer-wrapper {
    position: relative;
    overflow: hidden;
}

.shimmer-wrapper::after {
    content: '';
    position: absolute;
    inset: -100%;
    background: linear-gradient(45deg,
            transparent 45%,
            rgba(255, 255, 255, 0.1) 48%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0.1) 52%,
            transparent 55%);
    animation: shimmer 2.5s infinite;
    z-index: 20;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }

    100% {
        transform: translateX(100%) translateY(100%);
    }
}

@keyframes loader-pulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    }
}

.loader-circle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(from 0deg, transparent, #ffffff, transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: spin 2s linear infinite;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #333;
    border-radius: 50%;
    display: inline-block;
    margin: 0 4px;
    animation: loader-dots 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loader-dots {

    0%,
    80%,
    100% {
        transform: scale(0);
        background-color: #333;
    }

    40% {
        transform: scale(1);
        background-color: #fff;
    }
}

/* Nav & Shared Styles */
.nav-link {
    position: relative;
    color: #D1D5DB;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-link:hover {
    color: white;
}

/* Button with Animated Border */
.btn-consult {
    position: relative;
    padding: 1px;
    border-radius: 9999px;
    overflow: hidden;
    display: inline-flex;
    text-decoration: none;
    transition: transform 0.2s;
    isolation: isolate;
    cursor: pointer;
    border: none;
}

.btn-consult::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(255, 255, 255, 0.8) 25%, transparent 50%);
    animation: rotate 3s linear infinite;
    z-index: -1;
}

.btn-consult span {
    position: relative;
    background-color: #050505;
    color: white;
    padding: 12px 32px;
    border-radius: 9999px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.btn-consult:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

/* Footer CTA Button */
.btn-cta-glow {
    position: relative;
    padding: 1px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    display: inline-flex;
    overflow: hidden;
}

.btn-cta-glow span {
    background: #111;
    color: white;
    padding: 10px 32px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-cta-glow:hover span {
    background: #1a1a1a;
}

.btn-cta-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    filter: blur(10px);
    z-index: -1;
    opacity: 0.7;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* General UI Elements */
.badge-new {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tech-box {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    font-size: 0.8rem;
    color: #6B7280;
    transition: all 0.3s;
}

.tech-box:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

.bento-card {
    background-color: #0A0A0C;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: #0e0e10;
}

.progress-bar-fill {
    width: 0;
    transition: width 1.5s ease-out;
}

[data-aos].aos-animate .progress-bar-fill {
    width: var(--target-width);
}

.glass-nav {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-link {
    color: #9CA3AF;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: inline-block;
}

.footer-link:hover {
    color: #10b981;
}

/* Auth Form Styles */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-field {
    width: 100%;
    background-color: #0A0A0C;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    padding-right: 45px;
    color: white;
    outline: none;
    transition: all 0.3s;
}

.input-field:focus {
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7280;
}

.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-top: 100px;
}

/* Utility to hide/show pages */
.page-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.page-section.active {
    display: block;
}

/* Background Particles */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
    animation: particle-float 10s linear infinite;
    top: -10px;
    will-change: transform;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 3s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 4s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: 5s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: 6s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: 7s;
}

.particle:nth-child(9) {
    left: 90%;
    animation-delay: 8s;
}

@keyframes particle-float {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(110vh);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}