/* =========================================================
   founderayub.com — Dark animated theme
   Layout follows the current site: fixed left sidebar with
   profile + menu, full-screen hero, then content sections.
   ========================================================= */
:root {
  --bg: #05070d;
  --bg-alt: #080c16;
  --sidebar: #040b14;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e6ebf5;
  --muted: #9aa6bd;
  --accent: #149ddd;      /* same blue as current site */
  --accent-2: #7c4dff;
  --accent-3: #00e5c3;
  --grad: linear-gradient(135deg, #149ddd 0%, #7c4dff 55%, #00e5c3 100%);
  --radius: 18px;
  --sidebar-w: 300px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Raleway", "Poppins", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .3s; }
a:hover { color: #5cc8ff; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1em; color: var(--muted); }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; margin-top: 40px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 9999; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 3px; }

/* ---------- Scroll progress + cursor glow ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 1000; box-shadow: 0 0 12px var(--accent); }
.cursor-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(20,157,221,.13), transparent 65%);
  transform: translate(-50%, -50%); left: -500px; top: -500px; transition: opacity .3s;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- Sidebar header ---------- */
.header {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w);
  background: linear-gradient(180deg, #040b14 0%, #061224 100%);
  border-right: 1px solid var(--border);
  padding: 30px 18px; overflow-y: auto; z-index: 997;
  transition: transform .45s cubic-bezier(.7,0,.2,1);
}
.header::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(20,157,221,.18), transparent 55%);
}
.profile { text-align: center; position: relative; z-index: 1; }
.profile-ring {
  width: 128px; height: 128px; margin: 0 auto 14px; border-radius: 50%; padding: 4px; position: relative;
  background: conic-gradient(from 0deg, #149ddd, #7c4dff, #00e5c3, #149ddd);
  animation: spin 6s linear infinite;
}
.profile-img, .profile-fallback {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid #040b14;
  animation: spin 6s linear infinite reverse;
}
.profile-fallback { display: none; place-items: center; background: #0b1730; font-weight: 700; font-size: 32px; color: #fff; }
.profile-img.img-missing { display: none; }
.profile-img.img-missing + .profile-fallback { display: grid; }
.profile-name { font-size: 24px; margin: 0; }
.profile-name a { color: #fff; }
.profile-role { font-size: 13px; color: var(--muted); margin: 2px 0 14px; letter-spacing: .5px; }
.social-links { display: flex; justify-content: center; gap: 8px; }
.social-links a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: #212431; color: #fff; font-size: 17px; transition: all .3s;
}
.social-links a:hover { background: var(--accent); transform: translateY(-3px); box-shadow: 0 6px 18px rgba(20,157,221,.5); }

.navmenu { margin-top: 28px; position: relative; z-index: 1; }
.navmenu a {
  display: flex; align-items: center; gap: 14px; padding: 11px 15px; margin-bottom: 6px;
  color: #a8a9b4; font-size: 15px; border-radius: 10px; position: relative; overflow: hidden;
}
.navmenu a i { font-size: 20px; color: #6f7180; transition: color .3s; }
.navmenu a::before {
  content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .35s; z-index: -1;
}
.navmenu a:hover, .navmenu a.active { color: #fff; }
.navmenu a:hover i, .navmenu a.active i { color: #fff; }
.navmenu a.active::before { opacity: .9; }
.navmenu a:hover::before { opacity: .25; }

.mobile-nav-toggle {
  display: none; position: fixed; right: 16px; top: 16px; z-index: 9998;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 26px; box-shadow: 0 4px 16px rgba(20,157,221,.5);
}

.main, .footer { margin-left: var(--sidebar-w); position: relative; z-index: 1; overflow-x: clip; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; position: relative; display: flex; align-items: center; overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background: linear-gradient(120deg, rgba(5,7,13,.92) 0%, rgba(5,7,13,.75) 50%, rgba(5,7,13,.95) 100%),
              url("img/hero-bg.jpg") center/cover no-repeat, #05070d;
  animation: kenburns 24s ease-in-out infinite alternate;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: -1; animation: float 14s ease-in-out infinite; }
.blob-1 { width: 420px; height: 420px; background: #149ddd; top: -120px; right: -80px; }
.blob-2 { width: 360px; height: 360px; background: #7c4dff; bottom: -120px; left: 10%; animation-delay: -5s; }
.blob-3 { width: 260px; height: 260px; background: #00e5c3; top: 40%; right: 30%; opacity: .25; animation-delay: -9s; }

.hero-content { position: relative; min-width: 0; }
.eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 99px; font-size: 13px; letter-spacing: .5px;
  border: 1px solid rgba(20,157,221,.4); background: rgba(20,157,221,.1); color: #9fdcff;
}
.hero-title { overflow-wrap: break-word; font-size: clamp(34px, 6.4vw, 76px); font-weight: 800; color: #fff; margin: 18px 0 8px; font-family: var(--font); letter-spacing: -1px; }
.glitch { position: relative; display: inline-block; background: linear-gradient(90deg, #fff, #bfe8ff, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shine 5s linear infinite; }
.hero-typed { font-size: clamp(20px, 2.6vw, 28px); color: #fff; margin: 0 0 10px; }
.typed { color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; font-weight: 600; }
.typed-cursor { color: var(--accent); animation: blink .8s step-end infinite; margin-left: 2px; }
.hero-tagline { font-size: 17px; max-width: 560px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.scroll-down { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.4); border-radius: 20px; }
.scroll-down span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.6s ease-in-out infinite; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 50px;
  font-weight: 500; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: all .3s; font-family: inherit;
  position: relative; overflow: hidden;
}
.btn-primary { background: var(--grad); background-size: 200% auto; color: #fff; box-shadow: 0 8px 24px rgba(20,157,221,.35); }
.btn-primary:hover { color: #fff; background-position: right center; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(124,77,255,.45); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(8px); }
.btn-ghost:hover { color: #fff; border-color: var(--accent); background: rgba(20,157,221,.15); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; background: rgba(20,157,221,.12); color: #8fd6ff; border-color: rgba(20,157,221,.35); }
.btn-sm:hover { background: var(--accent); color: #fff; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.25), transparent); transition: left .6s;
}
.btn:hover::after { left: 130%; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-alt::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 100% 0%, rgba(124,77,255,.07), transparent 50%); }
.section-title { margin-bottom: 44px; max-width: 820px; }
.section-title h2 { font-size: clamp(28px, 3.4vw, 38px); color: #fff; position: relative; padding-bottom: 18px; margin-bottom: 18px; }
.section-title h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 3px; border-radius: 3px; background: var(--grad); animation: grow 2.5s ease-in-out infinite alternate; }

.glass {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

#intro { padding-top: 70px; padding-bottom: 0; }
.intro-card { padding: 34px; position: relative; overflow: hidden; }
.intro-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.intro-card p { font-size: 17px; color: #c3cbdb; }
.intro-card p:last-child { margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.img-frame { position: relative; border-radius: var(--radius); padding: 3px; background: var(--grad); background-size: 200% 200%; animation: gradmove 6s ease infinite; }
.img-frame img { border-radius: calc(var(--radius) - 3px); width: 100%; aspect-ratio: 4/5; object-fit: cover; background: #0b1730; }
.frame-fallback { display: none; }
.img-frame.img-missing img { display: none; }
.img-frame.img-missing .frame-fallback { display: grid; place-items: center; aspect-ratio: 4/5; border-radius: calc(var(--radius) - 3px); background: #0b1730; color: #fff; font-size: 28px; font-weight: 700; text-align: center; }
.about-text p { color: #b9c2d4; }
.vision { display: flex; gap: 24px; padding: 34px; margin-top: 50px; }
.vision h3 { font-size: 24px; color: #fff; }
.vision-icon { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; color: #fff; background: var(--grad); animation: pulse 3s ease-in-out infinite; }
.vision p:last-child { margin: 0; }

/* Projects */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter { background: transparent; border: 1px solid var(--border); color: var(--muted); padding: 8px 20px; border-radius: 50px; cursor: pointer; font-family: inherit; font-size: 14px; transition: all .3s; }
.filter:hover { color: #fff; border-color: var(--accent); }
.filter.active { background: var(--grad); color: #fff; border-color: transparent; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.project-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: border-color .4s, box-shadow .4s, opacity .4s, transform .4s;
  transform-style: preserve-3d;
}
.project-card:hover { border-color: rgba(20,157,221,.5); box-shadow: 0 20px 50px rgba(20,157,221,.18); }
.project-card.hide { display: none; }
.project-visual {
  height: 180px; position: relative; display: grid; place-items: center; overflow: hidden; font-size: 64px; color: #fff;
  background-size: 200% 200%; animation: gradmove 8s ease infinite;
}
.project-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; animation: gridmove 12s linear infinite; }
.project-visual i, .project-visual .gamma { position: relative; filter: drop-shadow(0 8px 20px rgba(0,0,0,.4)); animation: float 6s ease-in-out infinite; }
.project-visual .gamma { font-size: 84px; font-weight: 800; font-family: var(--font); }
.project-num { position: absolute; top: 14px; right: 18px; font-size: 14px; font-weight: 700; letter-spacing: 2px; opacity: .7; }
.v-zama { background-image: linear-gradient(135deg, #0a4a8a, #149ddd, #ff6a3d); }
.v-brands { background-image: linear-gradient(135deg, #3a1c71, #7c4dff, #d76d77); }
.v-gamma { background-image: linear-gradient(135deg, #0f2027, #2c5364, #00e5c3); }
.v-bol { background-image: linear-gradient(135deg, #1d0b3a, #6a11cb, #00c6ff); }
.v-sudagir { background-image: linear-gradient(135deg, #2b1a00, #f7971e, #ffd200); }
.voice-wave { display: flex; align-items: center; gap: 6px; height: 70px; position: relative; }
.voice-wave span { width: 7px; border-radius: 4px; background: #fff; animation: wave 1.1s ease-in-out infinite; }
.voice-wave span:nth-child(1) { animation-delay: -.9s; } .voice-wave span:nth-child(2) { animation-delay: -.7s; }
.voice-wave span:nth-child(3) { animation-delay: -.5s; } .voice-wave span:nth-child(4) { animation-delay: -.3s; }
.voice-wave span:nth-child(5) { animation-delay: -.5s; } .voice-wave span:nth-child(6) { animation-delay: -.7s; }
.voice-wave span:nth-child(7) { animation-delay: -.9s; }
.project-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 20px; color: #fff; }
.project-body p { font-size: 15px; }
.project-body .focus { font-size: 14px; color: #8f9ab0; }
.project-body .focus strong { color: #cfd6e4; }
.project-body .btn { margin-top: auto; align-self: flex-start; }
.tag { display: inline-block; font-size: 12px; padding: 4px 12px; border-radius: 50px; margin-bottom: 12px; background: rgba(20,157,221,.12); color: #8fd6ff; border: 1px solid rgba(20,157,221,.3); align-self: flex-start; }
.tag-warn { background: rgba(255,193,7,.1); color: #ffd36b; border-color: rgba(255,193,7,.3); }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.skill-group { padding: 26px; transition: border-color .3s, transform .3s; }
.skill-group:hover { border-color: rgba(124,77,255,.45); transform: translateY(-4px); }
.skill-wide { grid-column: 1 / -1; }
.skill-group h3 { font-size: 18px; color: #fff; display: flex; align-items: center; gap: 10px; }
.skill-group h3 i { color: var(--accent); font-size: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 13.5px; padding: 7px 14px; border-radius: 50px; color: #c9d1e0;
  background: rgba(255,255,255,.04); border: 1px solid var(--border); transition: all .3s;
}
.chips li:hover { color: #fff; border-color: var(--accent); background: rgba(20,157,221,.15); transform: translateY(-2px); }
.chips-tech li { font-weight: 600; color: #9fdcff; }

/* Achievements timeline */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent); }
.timeline-item { position: relative; margin-bottom: 26px; }
.timeline-dot { position: absolute; left: -40px; top: 22px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 15px; box-shadow: 0 0 0 6px rgba(20,157,221,.15); animation: pulse 3s ease-in-out infinite; }
.timeline-card { padding: 24px 26px; }
.timeline-card h3 { font-size: 20px; color: #fff; }
.year { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent-3); margin-bottom: 6px; letter-spacing: .5px; }
.link { font-weight: 500; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.link i { transition: transform .3s; }
.link:hover i { transform: translate(3px, -3px); }

/* Articles */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.article-card { padding: 26px; display: flex; flex-direction: column; transition: transform .35s, border-color .35s, box-shadow .35s; position: relative; overflow: hidden; }
.article-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s; }
.article-card:hover { transform: translateY(-6px); border-color: rgba(20,157,221,.4); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.article-card:hover::before { transform: scaleX(1); }
.article-card h3 { font-size: 17.5px; color: #fff; }
.article-card p { font-size: 14.5px; }
.article-card .link { margin-top: auto; }

/* Certifications */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cert-card { padding: 28px; transition: transform .35s, border-color .35s; }
.cert-card:hover { transform: translateY(-5px); border-color: rgba(0,229,195,.4); }
.cert-card > i { font-size: 34px; display: inline-block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.cert-card h3 { font-size: 17px; color: #fff; }
.cert-card p { margin: 0; font-size: 14px; }
.languages { padding: 28px; margin-top: 26px; }
.languages h3 { font-size: 20px; color: #fff; display: flex; gap: 10px; align-items: center; }
.languages h3 i { color: var(--accent); }
.lang-list { display: grid; gap: 18px; }
.lang { display: grid; grid-template-columns: 110px 1fr; gap: 4px 18px; align-items: center; }
.lang-name { font-weight: 600; color: #fff; }
.lang-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.07); overflow: hidden; }
.lang-bar span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 8px; transition: width 1.6s cubic-bezier(.2,.8,.2,1); }
.lang.visible .lang-bar span, .languages.visible .lang-bar span { width: var(--w); }
.lang-level { grid-column: 2; font-size: 13px; color: var(--muted); }

/* Interests */
.interests-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.interest-card { padding: 28px 24px; transition: border-color .35s, box-shadow .35s; transform-style: preserve-3d; }
.interest-card:hover { border-color: rgba(124,77,255,.5); box-shadow: 0 18px 40px rgba(124,77,255,.15); }
.interest-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; color: #fff; margin-bottom: 18px; }
.interest-card:hover .interest-icon { animation: wobble .8s ease; }
.i-tech { background: linear-gradient(135deg, #149ddd, #00e5c3); }
.i-game { background: linear-gradient(135deg, #7c4dff, #ff3d81); }
.i-fashion { background: linear-gradient(135deg, #ff6a3d, #ffd200); }
.i-learn { background: linear-gradient(135deg, #00b09b, #96c93d); }
.interest-card h3 { font-size: 18px; color: #fff; }
.interest-card p { font-size: 14.5px; margin: 0; }

/* Find me online */
.online-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.online-link { padding: 22px; display: grid; grid-template-columns: 46px 1fr; gap: 2px 14px; align-items: center; color: #fff; transition: all .35s; }
.online-link i { grid-row: span 2; font-size: 30px; color: var(--accent); transition: transform .35s; }
.online-link span { font-weight: 600; }
.online-link small { color: var(--muted); }
.online-link:hover { color: #fff; border-color: var(--accent); transform: translateY(-4px); background: rgba(20,157,221,.08); }
.online-link:hover i { transform: scale(1.15) rotate(-6deg); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 26px; }
.contact-side { padding: 34px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.big-icon { font-size: 64px; color: var(--accent); margin-bottom: 10px; animation: float 5s ease-in-out infinite; }
.contact-side h3 { color: #fff; }
.contact-form { padding: 30px; display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; color: #c9d1e0; }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; color: #fff; background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(20,157,221,.15); }
.contact-form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
.privacy-note { font-size: 13px; margin: 0; }
.form-status { margin: 0; font-size: 14px; min-height: 1.4em; }
.form-status.ok { color: var(--accent-3); }
.form-status.err { color: #ff7a8a; }

/* Footer */
.footer { padding: 50px 0 30px; text-align: center; border-top: 1px solid var(--border); background: #03050a; }
.footer h3 { color: #fff; font-size: 24px; margin-bottom: 4px; }
.footer-role { color: var(--accent); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 18px 0; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: #fff; }
.copyright { font-size: 13px; margin-top: 20px; }

.back-to-top { position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 28px; z-index: 996; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .4s; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes shine { to { background-position: 200% center; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes grow { from { width: 40px; } to { width: 110px; } }
@keyframes gradmove { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes gridmove { to { background-position: 28px 28px; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(20,157,221,.45); } 50% { box-shadow: 0 0 0 12px rgba(20,157,221,0); } }
@keyframes wave { 0%,100% { height: 12px; } 50% { height: 64px; } }
@keyframes wobble { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-10deg) scale(1.08); } 75% { transform: rotate(8deg) scale(1.08); } }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .mobile-nav-toggle { display: grid; place-items: center; }
  .header { transform: translateX(-100%); }
  body.nav-open .header { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.6); }
  .main, .footer { margin-left: 0; }
  .interests-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-img { max-width: 340px; }
  .projects-grid, .skills-grid { grid-template-columns: 1fr; }
  .cert-grid, .online-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 70px 0; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .cert-grid, .online-grid, .interests-grid, .form-row { grid-template-columns: 1fr; }
  .vision { flex-direction: column; padding: 26px; }
  .intro-card, .contact-form, .contact-side { padding: 24px; }
  .lang { grid-template-columns: 1fr; }
  .lang-level { grid-column: 1; }
  .blob { opacity: .35; }
  .eyebrow { font-size: 12px; line-height: 1.5; }
  .hero { padding: 90px 0 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Real images (from previous site) ---------- */
.project-visual.has-img { background: #0b1730; }
.project-visual.has-img::before { z-index: 1; opacity: .5; }
.project-visual.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.project-visual.has-img::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 40%, rgba(5,7,13,.75)); }
.project-visual.has-img .project-num { z-index: 2; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.project-card:hover .project-visual.has-img img { transform: scale(1.08); }
.project-visual.has-img { height: 220px; }

.timeline-card.has-gallery { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; }
.award-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.award-gallery.single { grid-template-columns: 1fr; }
.award-gallery a { display: block; border-radius: 12px; overflow: hidden; position: relative; border: 1px solid var(--border); }
.award-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; filter: saturate(.9); }
.award-gallery a::after { content: "\F62C"; font-family: "bootstrap-icons"; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(5,7,13,.7); color: #fff; opacity: 0; transition: opacity .4s; }
.award-gallery a:hover img { transform: scale(1.08); filter: saturate(1.1); }
.award-gallery a:hover::after { opacity: 1; }
.award-meta { margin: 0 0 14px; display: grid; gap: 6px; }
.award-meta li { font-size: 13.5px; color: #c3cbdb; display: flex; gap: 8px; align-items: flex-start; }
.award-meta i { color: var(--accent-3); margin-top: 2px; }

.lightbox-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(3,5,10,.92); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox-overlay img { max-width: min(1100px, 100%); max-height: 86vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: scale(.94); transition: transform .4s; }
.lightbox-overlay.open img { transform: none; }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 20px; cursor: pointer; }

@media (max-width: 991px) {
  .timeline-card.has-gallery { grid-template-columns: 1fr; }
}


/* ---------- Home text placement (chosen by Ayub: 80% size, 20px right, 203px down on 1440x900) ---------- */
@media (min-width: 1200px) {
  .hero-content { transform: translate(20px, 203px) scale(.8); transform-origin: 0 0; }
}
