:root {
    --primary-glow: #00d4ff;
    --secondary-glow: #ff0080;
    --accent-glow: #00ff88;
    --dark-bg: #0a0a0f;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #a0a0ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

/* Cyber Grid Background */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: gridMove 20s linear infinite;
    z-index: -2;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

/* Particle System */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-glow);
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Loading Screen - Holographic */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0a0a0f, #1a0033, #001a33);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: loadingFadeOut 2s ease-in-out 5s forwards;
}

.hologram-logo {
    position: relative;
    text-align: center;
}

.hologram-logo h1 {
    font-family: 'Orbitron', monospace;
    font-size: 5rem;
    font-weight: 900;
    color: transparent;
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow), var(--accent-glow));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: hologramPulse 2s ease-in-out infinite, gradientShift 3s ease-in-out infinite;
    text-shadow: 0 0 30px var(--primary-glow);
    position: relative;
}

.hologram-logo h1::before {
    content: 'IT VALLEY';
    position: absolute;
    top: 0;
    left: 0;
    color: var(--primary-glow);
    opacity: 0.3;
    animation: glitch 0.3s ease-in-out infinite alternate;
}

.hologram-logo .tagline {
    font-size: 1.5rem;
    color: var(--accent-glow);
    margin-top: 1rem;
    animation: typewriter 3s steps(30) 1s both;
    overflow: hidden;
    white-space: nowrap;
    border-left: 2px solid var(--accent-glow);
}

@keyframes hologramPulse {
    0%, 100% { transform: scale(1) rotateX(0deg); }
    50% { transform: scale(1.1) rotateX(5deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glitch {
    0% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
    100% { transform: translateX(0); }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes loadingFadeOut {
    to { opacity: 0; visibility: hidden; }
}

/* Floating Tech Elements */
.tech-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.tech-icon {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.15;
    color: var(--primary-glow);
    animation: techFloat 8s ease-in-out infinite;
}

.code-bracket { color: var(--primary-glow); animation-delay: 0s; }
.gear-icon { color: var(--secondary-glow); animation-delay: 1s; animation: techRotate 6s linear infinite; }
.laptop-icon { color: var(--accent-glow); animation-delay: 2s; }
.camera-icon { color: #ffd700; animation-delay: 3s; }
.server-icon { color: #ff6b6b; animation-delay: 4s; }

@keyframes techFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.15; }
    50% { transform: translateY(-50px) rotate(180deg); opacity: 0.3; }
}

@keyframes techRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Glassmorphism Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-glow), var(--accent-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px var(--primary-glow);
}

.cyber-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    border-radius: 25px;
}

.nav-link:hover {
    color: var(--primary-glow);
    border-color: var(--primary-glow);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

/* Hero Section - Futuristic */
.hero-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: heroSlideIn 1s ease-out 6s both;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow), var(--accent-glow));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px var(--primary-glow);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-button {
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-bg);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.5);
}

@keyframes heroSlideIn {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Neon Service Cards */
.services-section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-glow);
    text-shadow: 0 0 20px var(--primary-glow);
}

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

.neon-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: hidden;
}

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

.neon-card:hover::before {
    left: 100%;
}

.neon-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-glow);
    box-shadow: 
        0 20px 40px rgba(0, 212, 255, 0.2),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    text-align: center;
}

.card-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-glow);
    margin-bottom: 1rem;
    text-align: center;
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: center;
}

/* Cyber Footer */
.cyber-footer {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.9) 0%, rgba(26, 0, 51, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 212, 255, 0.3);
    padding: 3rem 2rem 1rem;
    margin-top: 5rem;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-glow);
    font-size: 1.5rem;
    margin-bottom: 1rem; /* قللنا المسافة تحت العنوان */
    text-shadow: 0 0 10px var(--primary-glow);
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1.6; /* قللنا التباعد بين السطور */
    margin: 0.3rem 0; /* مسافة بسيطة بين كل عنصر */
    transition: color 0.3s ease;
    display: block; /* يجعل الرابط ياخد سطر خاص زي الفقرة */
}

.footer-section a:hover {
    color: var(--accent-glow);
}


.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-icon {
    color: var(--accent-glow);
    font-size: 1.3rem;
}

.map-container {
    background: var(--glass-bg);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-glow);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hologram-logo h1 { font-size: 3rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.4rem; }
    .section-title { font-size: 2rem; }
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    .cyber-nav {
        gap: 1rem;
    }
    .nav-link {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}

.neon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* يتجاوب تلقائيًا */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.neon-card {
    background-color: #111; /* مثال */
    border: 1px solid var(--primary-glow);
    border-radius: 1rem;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.neon-card:hover {
    transform: scale(1.03);
}

/* للهواتف */
@media (max-width: 768px) {
    .neon-grid {
        gap: 1rem;
        padding: 1rem;
    }
}
.footer-section {
    padding: 1rem;
    color: var(--text-secondary);
    font-family: 'Orbitron', monospace;
}

.footer-section h3 {
    font-size: 1.5rem;
    color: var(--primary-glow);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--primary-glow);
}

.map-container {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 200px;
    }
}
