/* جميع الأنماط الحالية تبقى كما هي */
:root {
    --primary: #0a0a1a;
    --secondary: #121230;
    --accent-blue: #00b4ff;
    --accent-cyan: #00ffea;
    --accent-purple: #9d4edd;
    --accent-magenta: #ff2a6d;
    --text-light: #f0f0f0;
    --text-gray: #a0a0c0;
    --glass-bg: rgba(16, 18, 27, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
}

.light-mode {
    --primary: #f0f2f5;
    --secondary: #ffffff;
    --accent-blue: #0077cc;
    --accent-cyan: #00a896;
    --accent-purple: #7b2cbf;
    --accent-magenta: #c9184a;
    --text-light: #1a1a2e;
    --text-gray: #4a4a6a;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
}

.light-mode::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 180, 255, 0.05) 2px, transparent 0),
        radial-gradient(circle at 75% 75%, rgba(0, 255, 234, 0.05) 2px, transparent 0);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
  overflow-x: hidden !important;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
    position: relative;
}

.neon-text {
    text-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor;
}

.light-mode .neon-text {
    text-shadow: 0 0 3px currentColor, 0 0 6px currentColor;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glow-border {
    border: 1px solid rgba(0, 180, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 180, 255, 0.3), inset 0 0 10px rgba(0, 180, 255, 0.1);
}

.light-mode .glow-border {
    border: 1px solid rgba(0, 119, 204, 0.3);
    box-shadow: 0 0 8px rgba(0, 119, 204, 0.2), inset 0 0 8px rgba(0, 119, 204, 0.05);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 180, 255, 0.3);
}

.light-mode .btn-primary:hover {
    box-shadow: 0 10px 20px rgba(0, 119, 204, 0.2);
}

.btn-glow {
    box-shadow: 0 0 15px rgba(0, 180, 255, 0.5);
}

.light-mode .btn-glow {
    box-shadow: 0 0 10px rgba(0, 119, 204, 0.3);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.cursor-light {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 234, 0.4) 0%, rgba(0, 255, 234, 0) 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

/* أيقونة X الجديدة */
.x-icon {
    font-weight: bold;
    font-size: 1.1rem;
}

/* تحسينات التصميم المتجاوب */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
}