/* Variables */
:root {
    --bg-color: #050A14;
    --bg-alt: #0A1525;
    --primary-orange: #FF6B00;
    --primary-cyan: #00F0FF;
    --primary-purple: #9D4EDD;
    --text-white: #F0F4F8;
    --text-gray: #A0AAB5;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { font-family: 'Cairo', sans-serif; background-color: var(--bg-color); color: var(--text-white); overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; }
ul { list-style: none; }

/* Background Effects */
.bg-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
    background-image: linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px; pointer-events: none;
}
.bg-glow {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
    background: radial-gradient(circle at 10% 10%, rgba(255, 107, 0, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 90%, rgba(0, 240, 255, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 50% 50%, rgba(157, 78, 221, 0.05) 0%, transparent 50%);
}

/* Container & Layout */
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 2rem; max-width: 1400px; margin: 0 auto; }
.section-alt { background: rgba(10, 21, 37, 0.5); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 2rem; }
.text-gray { color: var(--text-gray); }
.text-gradient { background: linear-gradient(45deg, var(--primary-orange), var(--primary-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Navbar */
header { background: rgba(5, 10, 20, 0.8); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-bottom: 1px solid var(--glass-border); position: sticky; top: 0; z-index: 1000; transition: all 0.3s ease; }
nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; max-width: 1400px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text-white); }
.logo-icon { width: 45px; height: 45px; background: linear-gradient(135deg, var(--primary-orange), var(--primary-purple)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; box-shadow: 0 0 15px rgba(255, 107, 0, 0.4); }
.logo-text h1 { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.logo-text span { font-size: 0.7rem; color: var(--primary-cyan); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links a { color: var(--text-gray); text-decoration: none; font-size: 0.9rem; transition: 0.3s; font-weight: 600; }
.nav-links a:hover { color: var(--primary-cyan); text-shadow: 0 0 10px rgba(0, 240, 255, 0.5); }
.nav-cta { display: flex; gap: 1rem; align-items: center; }
.menu-toggle { display: none; font-size: 1.5rem; background: none; border: none; color: white; cursor: pointer; }

/* Buttons */
.btn { padding: 0.8rem 1.5rem; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 0.9rem; transition: 0.3s; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary { background: linear-gradient(45deg, var(--primary-orange), #FF8C00); color: white; box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 107, 0, 0.6); }
.btn-outline { background: transparent; border: 1px solid var(--primary-cyan); color: var(--primary-cyan); }
.btn-outline:hover { background: rgba(0, 240, 255, 0.1); box-shadow: 0 0 15px rgba(0, 240, 255, 0.3); }
.btn-block { width: 100%; margin-top: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }

/* Badges */
.badge { background: rgba(0, 240, 255, 0.1); color: var(--primary-cyan); padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; border: 1px solid rgba(0, 240, 255, 0.3); font-weight: 600; display: inline-block; margin-bottom: 0.5rem; }
.badge-orange { background: rgba(255, 107, 0, 0.1); color: var(--primary-orange); border-color: rgba(255, 107, 0, 0.3); }
.badge-purple { background: rgba(157, 78, 221, 0.1); color: var(--primary-purple); border-color: rgba(157, 78, 221, 0.3); }
.badge-cyan { background: rgba(0, 240, 255, 0.1); color: var(--primary-cyan); border-color: rgba(0, 240, 255, 0.3); }

/* Section Title */
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; background: linear-gradient(90deg, var(--text-white), var(--primary-cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-title p { color: var(--text-gray); max-width: 700px; margin: 0 auto; }

/* Glass Cards */
.glass-card { background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); border-radius: 16px; padding: 2rem; transition: all 0.3s ease; position: relative; overflow: hidden; height: 100%; }
.glass-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--primary-orange), var(--primary-cyan)); opacity: 0; transition: opacity 0.3s; }
.glass-card:hover { transform: translateY(-5px); border-color: rgba(0, 240, 255, 0.3); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.glass-card:hover::before { opacity: 1; }

/* Icons */
.card-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1rem; }
.icon-orange { background: rgba(255, 107, 0, 0.1); color: var(--primary-orange); }
.icon-cyan { background: rgba(0, 240, 255, 0.1); color: var(--primary-cyan); }
.icon-purple { background: rgba(157, 78, 221, 0.1); color: var(--primary-purple); }

/* Hero Section */
.hero { padding: 4rem 2rem 2rem; position: relative; }
.hero-container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; min-height: 70vh; }
.hero-content h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 1.5rem; font-weight: 900; }
.hero-content .subtitle { font-size: 1.2rem; color: var(--primary-cyan); margin-bottom: 1rem; font-weight: 600; }
.hero-content .text { color: var(--text-gray); margin-bottom: 2rem; font-size: 1.05rem; }
.hero-buttons { display: flex; gap: 1rem; }
.hero-visual { position: relative; height: 400px; display: flex; justify-content: center; align-items: center; }
.visual-ring { width: 350px; height: 350px; border-radius: 50%; border: 1px solid var(--glass-border); position: absolute; animation: rotate 20s linear infinite; }
.visual-ring::before { content: ''; position: absolute; top: -10px; right: 50%; width: 20px; height: 20px; background: var(--primary-orange); border-radius: 50%; box-shadow: 0 0 20px var(--primary-orange); transform: translateX(50%); }
.visual-ring::after { content: ''; position: absolute; bottom: -10px; left: 50%; width: 20px; height: 20px; background: var(--primary-cyan); border-radius: 50%; box-shadow: 0 0 20px var(--primary-cyan); transform: translateX(-50%); }
.visual-core { width: 200px; height: 200px; background: rgba(5, 10, 20, 0.8); border: 1px solid var(--primary-purple); border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 0 50px rgba(157, 78, 221, 0.3); z-index: 2; }
.visual-core i { font-size: 4rem; color: var(--text-white); position: absolute; }
.visual-core i:nth-child(1) { color: var(--primary-orange); animation: pulse 3s infinite; }
.visual-core i:nth-child(2) { color: var(--primary-cyan); animation: pulse 3s infinite 1s; }
.visual-core i:nth-child(3) { color: var(--primary-purple); animation: pulse 3s infinite 2s; }

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }

.hero-cards { display: flex; gap: 1rem; margin-top: 3rem; flex-wrap: wrap; justify-content: center; }
.mini-card { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 0.8rem 1.5rem; border-radius: 50px; display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-gray); transition: 0.3s; }
.mini-card:hover { border-color: var(--primary-cyan); color: var(--text-white); box-shadow: 0 0 15px rgba(0, 240, 255, 0.2); }
.mini-card i { color: var(--primary-orange); }

/* Lists */
.list-custom li { font-size: 0.9rem; color: var(--text-gray); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 8px; }
.list-custom li i { color: var(--primary-cyan); font-size: 0.7rem; }
.list-2-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Course Cards */
.course-card { display: flex; flex-direction: column; }
.course-header { margin-bottom: 1rem; }
.course-objectives { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--glass-border); font-size: 0.85rem; color: var(--text-gray); }
.course-objectives strong { color: var(--text-white); display: block; margin-bottom: 0.5rem; }
.course-objectives ul { padding-right: 1rem; }
.course-objectives li { list-style: disc; margin-bottom: 0.3rem; }
.course-meta { display: flex; justify-content: space-between; margin-top: 1rem; font-size: 0.8rem; color: var(--text-gray); }

/* Sub Features */
.sub-features { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.sub-features span { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.85rem; color: var(--text-gray); }
.sub-features i { color: var(--primary-orange); margin-left: 5px; }

/* Highlight Card */
.highlight-card { border-color: var(--primary-orange); background: linear-gradient(135deg, rgba(255, 107, 0, 0.05), rgba(0,0,0,0)); }
.highlight-card .card-icon { font-size: 2rem; width: 60px; height: 60px; }
.highlight-card p { font-size: 1.1rem; line-height: 1.8; }

/* Project Meta */
.project-meta { display: flex; justify-content: space-between; margin: 1rem 0; font-size: 0.8rem; color: var(--primary-cyan); }

/* Resources */
.resource-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 1.5rem; text-align: center; transition: 0.3s; }
.resource-card:hover { border-color: var(--primary-purple); transform: translateY(-5px); }
.resource-card i { font-size: 2.5rem; color: var(--primary-purple); margin-bottom: 1rem; }
.resource-card h4 { margin-bottom: 1rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item { height: 250px; background: var(--bg-alt); border: 1px solid var(--glass-border); border-radius: 12px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; }
.gallery-item i { font-size: 4rem; color: var(--text-gray); opacity: 0.3; transition: 0.3s; z-index: 1; }
.gallery-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 1rem; background: linear-gradient(to top, rgba(5,10,20,0.9), transparent); transform: translateY(100%); transition: 0.3s; }
.gallery-overlay h3 { color: white; font-size: 1.1rem; }
.gallery-item:hover { border-color: var(--primary-cyan); }
.gallery-item:hover i { color: var(--primary-cyan); opacity: 1; transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { transform: translateY(0); }

/* Program */
.program-card { position: relative; }
.program-num { position: absolute; top: 1rem; left: 1rem; font-size: 3rem; font-weight: 900; color: rgba(255, 255, 255, 0.05); line-height: 1; }
.program-card h3 { margin-bottom: 1rem; color: var(--primary-orange); }

/* Comparison */
.comparison-grid { align-items: start; }
.comparison-box { padding: 2rem; border-radius: 16px; height: 100%; }
.comparison-box h3 { text-align: center; margin-bottom: 1.5rem; font-size: 1.5rem; }
.old { background: rgba(100, 100, 100, 0.05); border: 1px solid rgba(255,255,255,0.05); }
.old h3 { color: #777; }
.old ul li { margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; color: var(--text-gray); }
.old ul li i { color: #555; }
.new { background: rgba(0, 240, 255, 0.05); border: 1px solid rgba(0, 240, 255, 0.2); box-shadow: 0 0 20px rgba(0, 240, 255, 0.1); }
.new h3 { color: var(--primary-cyan); }
.new ul li { margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }
.new ul li i { color: var(--primary-cyan); }

/* Forms */
.contact-form { max-width: 800px; margin: 0 auto; background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 2rem; border-radius: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 0; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-gray); font-size: 0.9rem; }
.form-control { width: 100%; padding: 0.8rem 1rem; background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); border-radius: 8px; color: white; font-family: 'Cairo', sans-serif; transition: 0.3s; }
.form-control:focus { outline: none; border-color: var(--primary-cyan); box-shadow: 0 0 10px rgba(0,240,255,0.2); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* Footer */
footer { background: #02050A; padding: 4rem 2rem 2rem; border-top: 1px solid var(--glass-border); margin-top: 4rem; }
.footer-container { max-width: 1400px; margin: 0 auto; text-align: center; }
.footer-logo { justify-content: center; margin-bottom: 1.5rem; }
.footer-text { color: var(--text-gray); max-width: 500px; margin: 0 auto 2rem; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.footer-links a { color: var(--text-gray); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary-orange); }
.footer-note { padding-top: 2rem; border-top: 1px solid var(--glass-border); color: #555; font-size: 0.8rem; }

/* Back to Top */
.back-top { position: fixed; bottom: 30px; left: 30px; width: 50px; height: 50px; background: var(--primary-orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; box-shadow: 0 0 20px rgba(255, 107, 0, 0.5); opacity: 0; visibility: hidden; transition: 0.3s; z-index: 999; }
.back-top.active { opacity: 1; visibility: visible; }

/* Reveal Animation */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-visual { display: none; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .menu-toggle { display: block; }
    .hero-content h1 { font-size: 2.2rem; }
    .section-title h2 { font-size: 1.8rem; }
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .list-2-cols { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-links { flex-direction: column; gap: 1rem; }
    
    .nav-links.active { display: flex; flex-direction: column; position: absolute; top: 100%; right: 0; width: 100%; background: #050A14; padding: 2rem; gap: 1.5rem; border-bottom: 1px solid var(--glass-border); }
}