:root {
    --primary: #00d2ff; 
    --secondary: #3a7bd5; 
    --background-dark: #07090f; 
    --text-light: #e0e0e0; 
    --text-medium: #a0a0a0; 
    --text-dark: #606060; 
    --glass-bg: rgba(255, 255, 255, 0.03); 
    --glass-hover-bg: rgba(255, 255, 255, 0.08); 
    --header-bg-transparent: rgba(7, 9, 15, 0.85); 
    --card-shadow: 0 5px 20px rgba(0,0,0,0.2); 
    --card-hover-shadow: 0 15px 40px rgba(0,210,255,0.2); 
    --border-color: rgba(255,255,255,0.08); 
    --input-bg: rgba(255,255,255,0.03);
    --input-border: rgba(255,255,255,0.1);
    --input-placeholder: rgba(255,255,255,0.4);
    --primary-rgb: 0, 210, 255; 
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); 
    --border-radius-geom: 8px; /* شكل هندسي مربع بحواف ناعمة جداً */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    background: var(--background-dark); 
    color: var(--text-light); 
    font-family: 'Tajawal', sans-serif; 
    overflow-x: hidden;
    line-height: 1.6;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: 'Cairo', sans-serif; color: var(--text-light); line-height: 1.2; }
p { color: var(--text-medium); }
a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--secondary); }
.section-padding { padding: 100px 5%; max-width: 1400px; margin: 0 auto; position: relative; z-index: 1; }

section h2 {
    font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; margin-bottom: 70px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text; 
    background-clip: text;
    -webkit-text-fill-color: transparent; 
    text-align: center;
}

/* Custom Cursor */
#cursor {
    position: fixed; width: 40px; height: 40px; border: 2px solid var(--primary);
    border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%);
    z-index: 9999; transition: width 0.3s, height 0.3s, border-color 0.3s;
    background: transparent; will-change: left, top; display: none; 
}

#progress-bar { position: fixed; top: 0; left: 0; height: 5px; background: linear-gradient(to right, var(--primary), var(--secondary)); width: 0%; z-index: 9998; pointer-events: none; }

.animated-lines-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: -1; pointer-events: none; }
.animated-line { position: absolute; background: linear-gradient(to right, rgba(var(--primary-rgb), 0), rgba(var(--primary-rgb), 0.3)); height: 1px; width: 100%; animation: moveLine 15s linear infinite; pointer-events: none; }
@keyframes moveLine {
    0% { transform: translateX(-100%) scaleX(0.5); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateX(100%) scaleX(1); opacity: 0; }
}

.video-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; overflow: hidden; pointer-events: none; background-color: var(--background-dark); }
.video-container video { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.3) contrast(1.2); pointer-events: none; }
.overlay-gradient { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, transparent 0%, var(--background-dark) 90%); z-index: -1; pointer-events: none; }

/* --- HEADER & LOGIN BUTTON --- */
header {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%); width: 95%; max-width: 1300px; padding: 15px 30px;
    background: var(--glass-bg); 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color); 
    border-radius: var(--border-radius-geom); /* تعديل لشكل هندسي */
    display: flex; justify-content: space-between; align-items: center; z-index: 1000; transition: var(--transition); box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.logo h2 { font-weight: 900; letter-spacing: -1px; font-size: 1.6rem; background: linear-gradient(to right, var(--text-light), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 25px; list-style: none; }
.nav-links a { color: var(--text-light); font-weight: 700; font-size: 0.95rem; letter-spacing: 1px; text-transform: uppercase; position: relative; padding-bottom: 5px; transition: color 0.5s ease; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 15px; }
.login-btn { display: flex; align-items: center; gap: 8px; color: var(--text-light); font-weight: 700; font-size: 0.95rem; padding: 10px 20px; border: 1px solid var(--primary); border-radius: var(--border-radius-geom); transition: var(--transition); background: rgba(0, 210, 255, 0.05); }
.login-btn:hover { background: var(--primary); color: #000; box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4); transform: translateY(-2px); }
.login-btn i { font-size: 1.2rem; }

.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 6px; z-index: 1001; }
.hamburger .bar { width: 28px; height: 3px; background-color: var(--text-light); transition: all 0.3s ease-in-out; border-radius: 2px; }

/* Mobile Menu */
.mobile-nav { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--header-bg-transparent); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 999; display: flex; align-items: center; justify-content: center; transform: translateX(100%); transition: transform 0.5s ease-in-out; }
.mobile-nav.active { transform: translateX(0); }
.mobile-nav ul { list-style: none; text-align: center; padding: 0; }
.mobile-nav ul li { margin: 30px 0; }
.mobile-nav ul li a { color: var(--text-light); font-size: 2rem; font-weight: 700; text-transform: uppercase; transition: color 0.3s ease; }
.mobile-nav ul li a:hover, .mobile-nav ul li a.active { color: var(--primary); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- FOOTER --- */
footer {
    background: var(--glass-bg); 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); 
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-geom); 
    padding: 40px 5%; max-width: 1200px; 
    margin: 50px auto 20px auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3); 
    position: relative; z-index: 50; 
}
.footer-wrapper {
    display: grid; grid-template-columns: 1.5fr 1.2fr auto;
    align-items: start; gap: 40px; max-width: 1100px; margin: 0 auto; text-align: left;
}
.footer-logo h3 { font-size: 1.4rem; margin-bottom: 8px; background: linear-gradient(to right, var(--text-light), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.footer-links h4, .footer-language h4 { font-size: 0.9rem; margin-bottom: 14px; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }
.footer-links ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 8px 24px; }
.footer-links ul li a { color: var(--text-medium); font-size: 0.88rem; transition: 0.3s; }
.footer-links ul li a:hover { color: var(--primary); padding-left: 5px; }

/* --- Language Dropdown --- */
.custom-dropdown { position: relative; display: inline-block; z-index: 60; }
.dropdown-trigger { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 20px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); border-radius: var(--border-radius-geom); color: var(--text-light); font-size: 0.95rem; cursor: pointer; transition: all 0.3s ease; }
.dropdown-trigger:hover { background: rgba(255,255,255,0.1); border-color: var(--primary); }
.dropdown-trigger .arrow-icon { font-size: 0.8rem; transition: transform 0.3s ease; }
.custom-dropdown.open .dropdown-trigger .arrow-icon { transform: rotate(180deg); }
.dropdown-menu { 
    position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(15px); 
    background: #0f172a; border: 1px solid var(--border-color); border-radius: var(--border-radius-geom); 
    box-shadow: 0 -10px 30px rgba(0,0,0,0.6); list-style: none; padding: 5px; min-width: 140px; 
    opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    z-index: 9999; pointer-events: none; 
}
.custom-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.dropdown-menu li a { display: block; padding: 10px 15px; color: var(--text-medium); border-radius: 4px; transition: all 0.2s ease; }
.dropdown-menu li a:hover { background: rgba(var(--primary-rgb), 0.15); color: var(--primary); }

.footer-bottom { 
    margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border-color); 
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px;
}
.footer-bottom-social a { font-size: 1.3rem; color: var(--text-medium); transition: color 0.3s; padding: 10px; display: inline-block; }
.footer-bottom-social a:hover { color: var(--primary); }

/* Responsive Media Queries */
@media (max-width: 1024px) {
    header { max-width: 95%; padding: 15px 25px; top: 15px; }
    .nav-links { gap: 15px; }
    .section-padding { padding: 80px 4%; }
    .footer-wrapper { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-logo { grid-column: 1 / -1; text-align: center; }
}

@media (max-width: 768px) {
    #cursor { display: none !important; } 
    header { width: 100%; max-width: 100%; top: 0; border-radius: 0; border-left: none; border-right: none; border-top: none; padding: 15px 20px; }
    .logo h2 { font-size: 1.3rem; }
    .nav-links { display: none; }
    .login-btn .login-text { display: none; } 
    .login-btn { padding: 8px 12px; }
    
    .hamburger { display: flex; }
    .hero { height: auto; min-height: 80vh; padding-top: 120px; }
    footer { margin: 30px auto 15px auto; padding: 25px 4%; border-radius: 0; }
    .footer-wrapper { grid-template-columns: 1fr; text-align: center; }
    .footer-links ul { justify-content: center; }
    .custom-dropdown { width: 100%; text-align: center; }
    .dropdown-trigger { justify-content: center; }
    .footer-bottom { flex-direction: column; align-items: center; }
}
