/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --accent: #a855f7;
  --accent2: #7c3aed;
  --accent-glow: rgba(168, 85, 247, 0.3);
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --card: #16161f;
  --card-border: rgba(168, 85, 247, 0.15);
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #a855f7, #7c3aed);
  --font: 'Cairo', 'Tajawal', sans-serif;
  --radius: 16px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; max-width: 100vw; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
  max-width: 100vw;
  position: relative;
}

/* ===== SPLASH SCREEN ===== */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #07070e;
  overflow: hidden;
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1), visibility 0.9s;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Background orbs */
.splash-bg { position: absolute; inset: 0; pointer-events: none; }
.splash-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.18;
  animation: orbFloat 6s ease-in-out infinite;
}
.orb1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #a855f7, transparent 70%);
  top: -150px; left: -150px;
  animation-delay: 0s;
}
.orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  bottom: -100px; right: -100px;
  animation-delay: -3s;
}
.orb3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #a855f7, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation-delay: -1.5s; opacity: 0.08;
}
@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* Particles */
.splash-particles { position: absolute; inset: 0; }
.splash-particle {
  position: absolute; border-radius: 50%;
  background: var(--accent);
  animation: particleDrift linear infinite;
  opacity: 0;
}
@keyframes particleDrift {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-20px) scale(1); opacity: 0; }
}

/* Main content */
.splash-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  animation: splashFadeUp 0.8s ease both;
}
@keyframes splashFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Ring logo */
.splash-logo-ring {
  position: relative; width: 160px; height: 160px;
  display: flex; align-items: center; justify-content: center;
}
.splash-ring-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.splash-ring-progress {
  transition: stroke-dashoffset 2.5s cubic-bezier(0.4,0,0.2,1);
}
.splash-logo-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 110px; height: 110px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(124,58,237,0.08));
  border: 1px solid rgba(168,85,247,0.25);
  backdrop-filter: blur(10px);
}
.splash-logo-inner { position: relative; overflow: hidden; }

.splash-logo-img {
  width: 84px; height: 84px; object-fit: contain; border-radius: 50%;
  animation:
    emergence 1.3s cubic-bezier(0.16,1,0.3,1) 0.2s both,
    ambientFloat 4s ease-in-out 1.8s infinite;
}
@keyframes emergence {
  0%   { opacity:0; transform:scale(2.8); filter:blur(22px) brightness(8) saturate(0); }
  30%  { opacity:0.75; transform:scale(1.08); filter:blur(5px) brightness(4) saturate(0.4) drop-shadow(0 0 50px rgba(168,85,247,1)); }
  65%  { opacity:0.95; transform:scale(0.96); filter:blur(0) brightness(2) saturate(1.2) drop-shadow(0 0 30px rgba(168,85,247,0.9)); }
  85%  { transform:scale(1.04); filter:brightness(1.4) drop-shadow(0 0 22px rgba(168,85,247,0.7)); }
  100% { opacity:1; transform:scale(1); filter:brightness(1) drop-shadow(0 0 18px rgba(168,85,247,0.55)); }
}
@keyframes ambientFloat {
  0%,100% { transform:translateY(0) scale(1);       filter:drop-shadow(0 6px 20px rgba(168,85,247,0.5)) drop-shadow(0 0 6px rgba(200,130,255,0.3)); }
  33%     { transform:translateY(-9px) scale(1.04);  filter:drop-shadow(0 14px 32px rgba(168,85,247,0.75)) drop-shadow(0 0 18px rgba(200,130,255,0.6)); }
  66%     { transform:translateY(-4px) scale(1.02);  filter:drop-shadow(0 10px 26px rgba(168,85,247,0.6)) drop-shadow(0 0 10px rgba(200,130,255,0.4)); }
}

/* Shimmer sweep */
.splash-logo-shimmer {
  position:absolute; inset:0; border-radius:50%; pointer-events:none;
  background:linear-gradient(110deg, transparent 25%, rgba(255,255,255,0.28) 50%, transparent 75%);
  background-size:300% 300%;
  animation:shimmerLoop 3.5s ease-in-out 2.2s infinite;
}
@keyframes shimmerLoop {
  0%   { background-position:150% 50%; opacity:0; }
  15%  { opacity:1; }
  55%  { background-position:-50% 50%; opacity:0; }
  100% { background-position:-50% 50%; opacity:0; }
}

/* Shockwave rings */
.splash-shockwaves { position:absolute; inset:0; pointer-events:none; }
.shockwave {
  position:absolute; inset:0; border-radius:50%;
  border:1.5px solid rgba(168,85,247,0.6);
  animation:shockwave 2.4s cubic-bezier(0,0.5,0.5,1) 0.4s infinite; opacity:0;
}
.sw2 { animation-delay:1s; }
.sw3 { animation-delay:1.7s; }
@keyframes shockwave {
  0%   { transform:scale(0.9); opacity:0.7; }
  100% { transform:scale(2.2); opacity:0; }
}

/* Name */
.splash-name {
  text-align: center;
  animation: splashFadeUp 0.8s 0.2s ease both;
}
.splash-title-ar {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800; color: #fff;
  text-shadow: 0 0 40px rgba(168,85,247,0.4);
  letter-spacing: -0.5px;
}

/* Tagline */
.splash-tagline {
  display: flex; align-items: center; gap: 12px;
  animation: splashFadeUp 0.8s 0.35s ease both;
}
.splash-tag-word {
  font-size: 0.9rem; font-weight: 500;
  color: rgba(255,255,255,0.55); letter-spacing: 2px;
}
.splash-dot-sep { color: var(--accent); font-size: 0.65rem; }

/* Progress bar */
.splash-bar-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 220px;
  animation: splashFadeUp 0.8s 0.5s ease both;
}
.splash-bar-track {
  width: 100%; height: 3px; border-radius: 100px;
  background: rgba(168,85,247,0.15); overflow: hidden;
}
.splash-bar-fill {
  height: 100%; width: 0%; border-radius: 100px;
  background: linear-gradient(90deg, #7c3aed, #a855f7, #c084fc);
  box-shadow: 0 0 12px rgba(168,85,247,0.6);
  transition: width 0.1s linear;
}
.splash-percent {
  font-size: 0.75rem; font-weight: 600;
  color: var(--accent); letter-spacing: 1px;
}

/* Footer */
.splash-footer {
  position: absolute; bottom: 32px;
  font-size: 0.75rem; color: rgba(255,255,255,0.2);
  letter-spacing: 3px; font-weight: 400;
  animation: splashFadeUp 0.8s 0.6s ease both;
}

/* Grid lines decoration */
#preloader::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(168,85,247,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
}

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
span.gradient-text { padding-bottom: 24px; }
.section-label { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: rgba(168,85,247,0.1); border: 1px solid rgba(168,85,247,0.3); padding: 6px 16px; border-radius: 100px; margin-bottom: 16px; letter-spacing: 1px; }
.section-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.section-desc { color: var(--text-muted); font-size: 1.05rem; max-width: 540px; }
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 0 auto; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gradient); color: #fff;
  padding: 14px 32px; border-radius: 100px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  border: none; cursor: pointer; text-decoration: none;
  transition: var(--transition); box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--accent-glow); }
.btn-primary.full-width { width: 100%; justify-content: center; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  padding: 13px 32px; border-radius: 100px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.2); cursor: pointer; text-decoration: none;
  transition: var(--transition);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  padding: 20px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-container { display: flex; align-items: center; gap: 24px; }
.logo { font-size: 22px; font-weight: 800; color: var(--white); text-decoration: none; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-links a {
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  text-decoration: none; padding: 8px 14px; border-radius: 100px;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active-link { color: var(--white); background: rgba(255,255,255,0.06); }
.btn-hire {
  background: var(--gradient); color: #fff;
  padding: 10px 24px; border-radius: 100px;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  text-decoration: none; transition: var(--transition);
  white-space: nowrap;
}
.btn-hire:hover { opacity: 0.9; transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.mobile-auth { display: none; }

/* ===== NAV ACTIONS / AUTH BUTTONS ===== */
.nav-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.nav-bell {
  position: relative; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 10px;
  background: rgba(168,85,247,0.1); color: var(--accent);
  transition: var(--transition);
}
.nav-bell:hover { background: rgba(168,85,247,0.22); transform: translateY(-1px); }
.bell-badge {
  position: absolute; top: -4px; left: -4px;
  background: #ef4444; color: #fff; font-size: 10px;
  padding: 2px 6px; border-radius: 999px; font-weight: 700;
  min-width: 18px; text-align: center; line-height: 1.4;
}
.nav-user { display: flex; gap: 6px; align-items: center; }
.nav-user-link {
  display: flex; gap: 8px; align-items: center; padding: 8px 14px;
  border-radius: 100px; background: rgba(168,85,247,0.1); color: var(--text);
  font-weight: 600; font-size: 13px; text-decoration: none; max-width: 160px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-user-link i { color: var(--accent); flex-shrink: 0; }
.nav-user-link:hover { background: rgba(168,85,247,0.18); color: var(--white); }
.nav-logout-form { margin: 0; }
.nav-logout-form button {
  width: 38px; height: 38px; border: none; border-radius: 10px;
  background: rgba(239,68,68,0.12); color: #fca5a5; cursor: pointer;
  transition: var(--transition);
}
.nav-logout-form button:hover { background: rgba(239,68,68,0.25); color: #fff; }
.nav-login {
  padding: 9px 18px; border-radius: 100px;
  background: rgba(168,85,247,0.1); color: var(--accent);
  font-weight: 600; font-size: 14px; text-decoration: none;
  transition: var(--transition);
}
.nav-login:hover { background: rgba(168,85,247,0.2); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 60px;
}
#bgCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.4; }
.hero .container { display: flex; align-items: center; gap: 60px; position: relative; z-index: 1; }
.hero-content { flex: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(168,85,247,0.1); border: 1px solid rgba(168,85,247,0.3);
  color: var(--accent); font-size: 13px; font-weight: 600;
  padding: 8px 18px; border-radius: 100px; margin-bottom: 24px;
}
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.3rem; color: var(--text-muted); margin-bottom: 36px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.typed-text { color: var(--accent); font-weight: 600; min-width: 4px; }
.cursor { color: var(--accent); animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat p { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.stat-num { font-size: 2.4rem; font-weight: 800; color: var(--white); }
.stat span:not(.stat-num) { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.stat-divider { width: 1px; height: 50px; background: rgba(255,255,255,0.1); }
.hero-image { flex-shrink: 0; }
.image-frame { position: relative; width: 340px; height: 340px; }
.image-placeholder {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--bg3);
  border: 3px solid rgba(168,85,247,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; color: var(--text-muted);
  overflow: hidden;
}
.image-placeholder img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.circle-badge {
  position: absolute; bottom: -10px; left: -10px;
  width: 120px; height: 120px;
}
.rotating-text { width: 100%; height: 100%; animation: rotateText 10s linear infinite; }
.rotating-text text { font-size: 22px; fill: var(--accent); font-family: var(--font); font-weight: 600; }
@keyframes rotateText { to { transform: rotate(360deg); } }
.badge-arrow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 36px; height: 36px; background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px;
}
.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
}
.scroll-dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  animation: scrollBounce 1.5s ease-in-out infinite;
}
@keyframes scrollBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(12px)} }

/* ===== ABOUT ===== */
.about { background: var(--bg2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  overflow: visible;
  padding: 32px;
}
.about-img-placeholder {
  width: 100%; aspect-ratio: 1;
  background: var(--bg3); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; color: var(--text-muted);
  overflow: hidden;
}
.about-img-placeholder img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 16px; }
.experience-badge {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--gradient); color: #fff;
  padding: 16px 24px; border-radius: 16px;
  text-align: center; box-shadow: 0 8px 32px var(--accent-glow);
}
.exp-num { display: block; font-size: 2rem; font-weight: 800; line-height: 1; }
.exp-text { font-size: 12px; font-weight: 500; opacity: 0.9; }
.about-content { padding-inline-start: 20px; }
.about-text { color: var(--text-muted); margin-bottom: 20px; line-height: 1.9; }
.about-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 32px; }
.info-item { display: flex; flex-direction: column; gap: 4px; }
.info-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.info-item span:not(.info-label) { font-weight: 600; color: var(--text); }
.available { color: #22c55e !important; }

/* ===== RESUME ===== */
.resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 60px; }
.timeline-heading { font-size: 1.3rem; font-weight: 700; margin-bottom: 32px; display: flex; align-items: center; gap: 10px; }
.timeline-heading i { color: var(--accent); }
.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; top: 0; right: 12px; width: 2px; height: 100%; background: rgba(168,85,247,0.2); }
.timeline-item { position: relative; padding-right: 40px; padding-bottom: 40px; }
.timeline-dot { position: absolute; top: 6px; right: 6px; width: 14px; height: 14px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px rgba(168,85,247,0.2); }
.timeline-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px; transition: var(--transition); }
.timeline-card:hover { border-color: var(--accent); transform: translateX(-4px); }
.timeline-date { font-size: 12px; color: var(--accent); font-weight: 600; background: rgba(168,85,247,0.1); padding: 4px 12px; border-radius: 100px; }
.timeline-card h4 { font-size: 1.05rem; font-weight: 700; margin: 12px 0 4px; }
.timeline-company { font-size: 13px; color: var(--text-muted); display: block; margin-bottom: 10px; }
.timeline-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ===== SERVICES ===== */
.services { background: var(--bg2); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
.service-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 36px 28px; transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient); opacity: 0; transition: var(--transition);
}
.service-card:hover { border-color: rgba(168,85,247,0.4); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.service-card:hover::before { opacity: 1; }
.service-icon { width: 56px; height: 56px; background: rgba(168,85,247,0.1); border: 1px solid rgba(168,85,247,0.3); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.service-icon i { font-size: 22px; color: var(--accent); }
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.service-link { color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.service-link:hover { gap: 12px; }

/* ===== SKILLS ===== */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 60px; }
.skill-item {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px; border-radius: 14px;
  border: 1px solid rgba(168,85,247,0.2); background: rgba(168,85,247,0.05);
  color: var(--text); font-size: 15px; font-weight: 600;
  transition: var(--transition);
}
.skill-item:hover { transform: translateY(-2px); border-color: var(--accent); background: rgba(168,85,247,0.1); }
.skill-item i { color: var(--accent); font-size: 18px; flex-shrink: 0; }

/* ===== PROGRAMS/CLIENTS ===== */
.programs-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; justify-content: center; }
.program-tag {
  padding: 10px 22px; border-radius: 100px;
  border: 1px solid rgba(168,85,247,0.2); background: rgba(168,85,247,0.05);
  color: var(--text-muted); font-size: 14px; font-weight: 600;
  transition: var(--transition);
}
.program-tag:hover { border-color: var(--accent); color: var(--accent); background: rgba(168,85,247,0.1); }

/* ===== CERTIFICATES ===== */
.certs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.cert-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition); cursor: pointer;
}
.cert-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); border-color: rgba(168,85,247,0.4); }
.cert-img { aspect-ratio: 16/10; background: var(--bg3); overflow: hidden; }
.cert-img img { width: 100%; height: 100%; object-fit: cover; }
.cert-pdf-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 900; color: var(--accent); background: rgba(168,85,247,0.08); }
.cert-info { padding: 18px; }
.cert-info h3 { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.cert-info p { font-size: 13px; color: var(--text-muted); }
.cert-delete { font-size: 13px; font-weight: 700; color: #ef4444; background: none; border: none; cursor: pointer; margin-top: 10px; padding: 0; font-family: var(--font); transition: var(--transition); }
.cert-delete:hover { color: #dc2626; }
.cert-upload-form {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 32px; margin-top: 40px;
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 16px; align-items: end;
}
.cert-upload-form .form-group { margin-bottom: 0; }
.cert-empty {
  grid-column: 1 / -1; text-align: center; padding: 48px;
  color: var(--text-muted); font-size: 15px;
  background: var(--card); border: 1px dashed var(--card-border); border-radius: var(--radius);
}

/* ===== TESTIMONIALS ===== */
.testimonials-slider { margin-top: 60px; }
.testimonials-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 32px; transition: var(--transition);
}
.testimonial-card:hover { border-color: rgba(168,85,247,0.4); transform: translateY(-4px); }
.quote-icon { font-size: 24px; color: var(--accent); margin-bottom: 16px; opacity: 0.6; }
.testimonial-card p { color: var(--text-muted); font-size: 15px; line-height: 1.9; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--bg3); border: 2px solid rgba(168,85,247,0.3); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--text-muted); overflow: hidden; flex-shrink: 0; }
.testimonial-author strong { display: block; font-weight: 700; font-size: 15px; }
.testimonial-author span { font-size: 13px; color: var(--text-muted); }
.stars { color: #f59e0b; font-size: 16px; letter-spacing: 2px; }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; }
.slider-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--card-border); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.slider-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.slider-dots { display: flex; gap: 8px; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bg3); cursor: pointer; transition: var(--transition); }
.slider-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ===== PODCAST ===== */
.podcast-section { background: var(--bg); }
.podcast-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 36px; align-items: center; margin-top: 56px;
}
.podcast-video {
  position: relative; overflow: hidden; border-radius: 24px;
  border: 1px solid rgba(168,85,247,0.22); background: #050507;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.podcast-video::before {
  content: ''; display: block; aspect-ratio: 16 / 9;
}
.podcast-video iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.podcast-content {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 34px;
}
.podcast-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 13px; font-weight: 700;
  background: rgba(168,85,247,0.1); border: 1px solid rgba(168,85,247,0.24);
  border-radius: 999px; padding: 7px 14px; margin-bottom: 18px;
}
.podcast-content h3 { font-size: 1.45rem; line-height: 1.35; margin-bottom: 12px; }
.podcast-content p { color: var(--text-muted); font-size: 15px; line-height: 1.9; margin-bottom: 24px; }
.podcast-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; margin-top: 60px; align-items: start; }
.contact-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.contact-icon { width: 48px; height: 48px; background: rgba(168,85,247,0.1); border: 1px solid rgba(168,85,247,0.3); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon i { color: var(--accent); font-size: 18px; }
.contact-item h4 { font-size: 14px; color: var(--text-muted); margin-bottom: 4px; }
.contact-item a, .contact-item span { font-weight: 600; color: var(--text); text-decoration: none; transition: var(--transition); }
.contact-item a:hover { color: var(--accent); }
.social-links { display: flex; gap: 12px; margin-top: 32px; }
.social-link { width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--card-border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.social-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }
.contact-form { background: var(--card); border: 1px solid var(--card-border); border-radius: 24px; padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: var(--bg3); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 14px 18px;
  color: var(--text); font-family: var(--font); font-size: 15px;
  transition: var(--transition); outline: none; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #22c55e; padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 14px; font-weight: 600; }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #ef4444; padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 14px; }

/* ===== FOOTER ===== */
.footer { padding: 32px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer p { color: var(--text-muted); font-size: 14px; }
.back-to-top { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: var(--transition); box-shadow: 0 4px 16px var(--accent-glow); }
.back-to-top:hover { transform: translateY(-3px); }

/* ===== MODAL ===== */
.image-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.85); padding: 20px; }
.image-modal.open { display: flex; }
.image-modal img { max-height: 86vh; max-width: 92vw; border-radius: 12px; }
.modal-close { position: absolute; top: 20px; left: 20px; width: 44px; height: 44px; border-radius: 50%; background: #f8f4e8; border: none; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; }

/* ===== ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-track { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .resume-grid { grid-template-columns: 1fr; gap: 40px; }
  .cert-upload-form { grid-template-columns: 1fr 1fr; }
  .podcast-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .hero .container { flex-direction: column; text-align: center; gap: 40px; }
  .hero-btns, .hero-stats { justify-content: center; }
  .hero-image { display: none; }
  .nav-links, .btn-hire, .nav-actions { display: none; }
  .hamburger { display: flex; margin-inline-start: auto; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; inset: 0; top: 70px; background: var(--bg); padding: 32px; gap: 8px; z-index: 9000; overflow-y: auto; }
  .nav-links.open a { font-size: 18px; padding: 14px 20px; border-radius: 12px; }

  /* mobile auth actions inside drawer */
  .nav-links.open .mobile-auth { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(168,85,247,0.18); }
  .mobile-auth-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 18px; border-radius: 12px; font-size: 15px; font-weight: 700;
    text-decoration: none; transition: var(--transition); width: 100%;
  }
  .mobile-auth-btn.primary { background: var(--gradient); color: #fff; }
  .mobile-auth-btn.ghost { background: rgba(168,85,247,0.1); color: var(--white); border: 1px solid rgba(168,85,247,0.2); }
  .mobile-auth-btn.danger { background: rgba(239,68,68,0.1); color: #fca5a5; border: 1px solid rgba(239,68,68,0.25); }

  /* hide decorative elements on mobile */
  .cursor-glow { display: none !important; }
  .services-grid, .certs-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .podcast-content { padding: 26px; }
  .podcast-actions .btn-primary, .podcast-actions .btn-outline { width: 100%; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .about-info-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .cert-upload-form { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card { aspect-ratio: 3/2; }
}

/* ===== NAVBAR LOGO IMAGE ===== */
.logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-size: 1.2rem; font-weight: 700; color: var(--white);
}
.logo em { color: var(--accent); font-style: normal; }
.nav-logo-img {
  width: 38px; height: 38px; object-fit: contain; border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(168,85,247,0.5));
  transition: filter 0.35s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  flex-shrink: 0;
}
.logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 18px rgba(168,85,247,0.9));
  transform: scale(1.15) rotate(8deg);
}
.footer-logo { color: var(--white); }

/* ===== FLYING IMAGE TRANSITION ===== */
#flying-img {
  position: fixed;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
  will-change: left, top, width, height, border-radius, opacity;
}
#flying-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.4,0,0.2,1), transform 0.75s cubic-bezier(0.4,0,0.2,1);
}
[data-reveal="up"]    { transform: translateY(48px); }
[data-reveal="down"]  { transform: translateY(-32px); }
[data-reveal="left"]  { transform: translateX(-56px); }
[data-reveal="right"] { transform: translateX(56px); }
[data-reveal="zoom"]  { transform: scale(0.82); }
[data-reveal].revealed { opacity: 1; transform: translate(0) scale(1); }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }
[data-delay="6"] { transition-delay: 0.48s; }

/* ===== CERTIFICATES GALLERY ===== */
.upload-toggle-wrap { text-align: center; margin: 36px 0 0; }
.upload-toggle-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--accent);
  border: 1.5px solid rgba(168,85,247,0.4); padding: 11px 28px;
  border-radius: 100px; font-family: var(--font); font-size: 14px;
  font-weight: 600; cursor: pointer; transition: var(--transition);
}
.upload-toggle-btn:hover {
  background: rgba(168,85,247,0.1); border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(168,85,247,0.2);
}
.cert-upload-panel {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease;
  opacity: 0;
}
.cert-upload-panel.open { max-height: 400px; opacity: 1; margin-top: 20px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px; margin-top: 40px;
}
.gallery-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--card-border);
  cursor: pointer; aspect-ratio: 4/3;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.45s ease, border-color 0.45s ease;
}
.gallery-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(168,85,247,0.5);
  box-shadow: 0 28px 64px rgba(168,85,247,0.22), 0 0 0 1px rgba(168,85,247,0.25);
}
.gallery-thumb { width: 100%; height: 100%; }
.gallery-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.gallery-card:hover .gallery-thumb img { transform: scale(1.12); }
.gallery-pdf-icon {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(124,58,237,0.04));
}
.gallery-pdf-icon i { font-size: 3.5rem; color: var(--accent); opacity: 0.75; }
.gallery-pdf-icon span { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 3px; text-transform: uppercase; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,7,14,0.97) 0%, rgba(7,7,14,0.55) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; opacity: 0; transition: opacity 0.38s ease;
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 3px; line-height: 1.3; }
.gallery-overlay p  { font-size: 0.78rem; color: var(--accent); margin-bottom: 12px; }
.gallery-actions { display: flex; gap: 8px; align-items: center; }
.gallery-view-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gradient); color: #fff; border: none;
  padding: 6px 16px; border-radius: 100px;
  font-family: var(--font); font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.gallery-view-btn:hover { transform: scale(1.06); box-shadow: 0 4px 16px rgba(168,85,247,0.4); }
.gallery-del-btn {
  background: rgba(239,68,68,0.12); color: #f87171;
  border: 1px solid rgba(239,68,68,0.28); padding: 6px 12px;
  border-radius: 100px; font-size: 0.78rem; cursor: pointer;
  transition: var(--transition); font-family: var(--font);
}
.gallery-del-btn:hover { background: rgba(239,68,68,0.24); }

/* ===== CURSOR GLOW ===== */
.cursor-glow {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.5), transparent 70%);
  position: fixed; pointer-events: none; z-index: 99998;
  transform: translate(-50%,-50%);
  transition: transform 0.08s ease, width 0.25s ease, height 0.25s ease, opacity 0.3s ease;
  mix-blend-mode: screen; opacity: 0;
}
body:hover .cursor-glow { opacity: 1; }

/* ===== ENHANCED CARD HOVER ===== */
.service-card {
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.4s ease, border-color 0.4s ease;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(168,85,247,0.18), 0 0 0 1px rgba(168,85,247,0.25);
}
.service-card:hover .service-icon {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 12px rgba(168,85,247,0.6));
}
.service-icon { transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), filter 0.4s ease; }

/* ===== TIMELINE CARD HOVER ===== */
.timeline-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.timeline-card:hover {
  transform: translateX(-6px);
  box-shadow: 0 12px 40px rgba(168,85,247,0.15);
  border-color: rgba(168,85,247,0.4);
}

/* ===== SOCIAL LINK HOVER ===== */
.social-link {
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.social-link:hover {
  transform: translateY(-6px) scale(1.12);
  box-shadow: 0 8px 24px rgba(168,85,247,0.35);
}

/* ===== PROGRAM TAG HOVER ===== */
.program-tag { transition: var(--transition); cursor: default; }
.program-tag:hover {
  background: rgba(168,85,247,0.18);
  border-color: rgba(168,85,247,0.5);
  transform: translateY(-3px);
  color: #fff;
}

/* ===== SECTION DIVIDER GLOW ===== */
.section::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.25), transparent);
  margin-bottom: 36px;
}
.section-no-divider::before {
  display: none;
}

/* ===== COURSES SECTION ===== */
.courses-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  position: relative;
}
.courses-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 20% 30%, rgba(168,85,247,0.08), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(124,58,237,0.06), transparent 50%);
}
.course-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.course-card::before {
  content: ''; position: absolute; top: 0; inset-inline-start: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s ease;
}
.course-card:hover {
  border-color: rgba(168,85,247,0.45);
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.35), 0 0 30px rgba(168,85,247,0.15);
}
.course-card:hover::before { transform: scaleX(1); }
.course-card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--gradient);
  display: grid; place-items: center;
  font-size: 24px; color: #fff; margin-bottom: 18px;
  box-shadow: 0 10px 25px rgba(168,85,247,0.25);
}
.course-card h3 {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--white);
}
.course-card > p {
  color: var(--text-muted); font-size: 14px; line-height: 1.8; margin-bottom: 16px;
}
.course-tiers {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px;
}
.course-tier {
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.25);
  color: #d8b4fe;
  padding: 5px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
}
.course-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 18px; padding-top: 14px;
  border-top: 1px solid rgba(168,85,247,0.1);
  font-size: 13px; color: var(--text-muted);
}
.course-meta i { margin-inline-end: 4px; }
.course-meta .course-open { color: #6ee7b7; }
.course-meta .course-closed { color: #fca5a5; }
.course-card .service-link { margin-top: auto; }

/* ===== COURSES INDEX PAGE ===== */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  background: radial-gradient(circle at center top, rgba(168,85,247,0.15), transparent 60%);
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 14px;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }
.page-content { padding: 30px 0 80px; }
.crumbs {
  font-size: 14px; color: var(--text-muted); margin-bottom: 26px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.crumbs a { color: var(--accent); }
.crumbs i { font-size: 11px; }

/* ===== COURSE DETAILS PAGE ===== */
.course-detail-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start;
}
.course-detail-main, .course-detail-side {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
}
.course-detail-main h1 {
  font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; color: var(--white);
}
.course-detail-main .lead {
  color: var(--text-muted); font-size: 1rem; line-height: 1.9; margin-bottom: 22px;
}
.course-info-list {
  list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 22px;
}
.course-info-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: rgba(168,85,247,0.06);
  border: 1px solid rgba(168,85,247,0.15);
  border-radius: 10px;
}
.course-info-list i { color: var(--accent); }
.course-detail-side h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 16px; }

@media (max-width: 900px) {
  .course-detail-grid { grid-template-columns: 1fr; }
}
