* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Tajawal', sans-serif; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { background: #05070f; color: #f1f5f9; line-height: 1.7; overflow-x: hidden; }

#stars { position: fixed; inset: 0; z-index: -2; background: radial-gradient(circle at 50% 0%, #111836, #05070f 75%); }

.nav { position: fixed; top: 15px; left: 50%; transform: translateX(-50%); width: 92%; max-width: 920px; padding: 12px 24px; background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.08); border-radius: 50px; display: flex; justify-content: space-between; align-items: center; z-index: 100; }
.brand { font-weight: 800; font-size: 1.15rem; color: #fff; text-decoration: none; }
.links { display: flex; gap: 18px; }
.links a { color: #cbd5e1; text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: 0.3s; position: relative; padding-bottom: 3px; }
.links a::after { content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 2px; background: #38bdf8; transition: 0.3s; }
.links a:hover { color: #38bdf8; }
.links a:hover::after { width: 100%; }

main { width: 90%; max-width: 1050px; margin: auto; }
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-top: 110px; padding-bottom: 40px; }
.pill { display: inline-block; padding: 5px 16px; border-radius: 50px; background: rgba(56,189,248,0.12); border: 1px solid rgba(56,189,248,0.3); color: #38bdf8; font-size: 0.85rem; font-weight: 700; margin-bottom: 12px; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; background: linear-gradient(to left, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px; }
.lead { font-size: 1.2rem; color: #38bdf8; font-weight: 500; margin-bottom: 30px; }

.hero-certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; width: 100%; max-width: 720px; margin-bottom: 30px; text-align: right; }
.desc { max-width: 780px; color: #cbd5e1; font-size: 1.05rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); padding: 22px; border-radius: 20px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.actions a, .btn { padding: 11px 26px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 0.95rem; transition: 0.3s; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.actions a:hover, .btn:hover { border-color: #38bdf8; background: rgba(56,189,248,0.1); transform: translateY(-3px); }

.sec { padding: 70px 0; }
h2 { font-size: 1.8rem; font-weight: 800; text-align: center; margin-bottom: 32px; }
.sub { font-size: 1.2rem; color: #38bdf8; margin: 45px 0 20px; text-align: center; }

.grid-3 { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.grid-3 > * { flex: 1 1 280px; max-width: 340px; }

.card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); backdrop-filter: blur(10px); border-radius: 20px; padding: 22px; transition: 0.35s; }
.card:hover { transform: translateY(-5px); border-color: rgba(56,189,248,0.4); background: rgba(255,255,255,0.05); }
.card h3 { color: #38bdf8; font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: #94a3b8; font-size: 0.95rem; }

.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tags span { padding: 10px 20px; border-radius: 50px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); font-size: 0.95rem; transition: 0.3s; }
.tags span:hover { border-color: #38bdf8; color: #38bdf8; transform: translateY(-3px); }

.media { padding: 0; overflow: hidden; cursor: pointer; }
.media img { width: 100%; height: 220px; object-fit: cover; transition: 0.4s; display: block; }
.media img.fit { height: 190px; object-fit: contain; background: #0a0f1d; padding: 10px; }
.media:hover img { transform: scale(1.05); }
.media div { padding: 16px; }
.media h4 { font-size: 1.02rem; margin-bottom: 4px; color: #f8fafc; }

.pdf { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #f1f5f9; font-weight: 700; font-size: 0.98rem; }
.pdf:hover span { color: #38bdf8; }

.contact-card { text-align: center; padding: 45px 20px; max-width: 680px; margin: auto; }
.contact-card h2 { margin-bottom: 8px; }
.contact-card p { color: #94a3b8; margin-bottom: 24px; }

.modal { position: fixed; inset: 0; background: rgba(5,7,15,0.92); backdrop-filter: blur(8px); display: none; flex-direction: column; justify-content: center; align-items: center; z-index: 200; padding: 20px; }
.modal.open { display: flex; }
.modal img { max-width: 92%; max-height: 80vh; border-radius: 16px; border: 1px solid rgba(255,255,255,0.15); }
.close-btn { position: absolute; top: 20px; right: 25px; background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.2); padding: 8px 18px; border-radius: 50px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: 0.3s; z-index: 210; }
.close-btn:hover { background: #ef4444; border-color: #ef4444; }

@media (max-width: 650px) {
    .nav { padding: 10px 16px; border-radius: 20px; flex-direction: column; gap: 8px; }
    .links { gap: 12px; flex-wrap: wrap; justify-content: center; }
    .hero { padding-top: 145px; }
}
