:root{
  --bg: #0b1220;
  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --border: rgba(255,255,255,0.10);
  --shadow: 0 14px 40px rgba(0,0,0,0.25);
  --radius: 18px;
  --radius2: 24px;
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Noto Sans Arabic", "Segoe UI", sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 10% 0%, rgba(86, 164, 255, 0.18), transparent 55%),
    radial-gradient(900px 600px at 90% 10%, rgba(255, 180, 90, 0.14), transparent 55%),
    linear-gradient(180deg, #070b14 0%, #0b1220 65%, #0a1020 100%);
}

a{ color: inherit; text-decoration: none; }
a:hover{ opacity: 0.9; text-decoration: underline; }

.container{ width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 28px 0 28px; }

.topbar{
  position: sticky; top:0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 20, 0.60);
  border-bottom: 1px solid var(--border);
  display:flex; align-items:center; justify-content: space-between;
  padding: 12px 18px;
}

.brand{ font-weight: 800; letter-spacing: 0.2px; }
.nav{ display:flex; gap: 14px; }
.nav a{ opacity: 0.85; }
.nav a:hover{ opacity: 1; text-decoration: none; }

.controls{ display:flex; align-items:center; gap: 10px; }

.lang select{
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 10px;
  border-radius: 12px;
  outline: none;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  box-shadow: none;
  font-weight: 650;
  cursor: pointer;
}
.btn:hover{ background: rgba(255,255,255,0.09); text-decoration: none; }

.btn.primary{
  background: linear-gradient(90deg, rgba(86,164,255,0.95), rgba(160,120,255,0.95));
  border-color: rgba(255,255,255,0.18);
}
.btn.primary:hover{ filter: brightness(1.02); }

.btn.ghost{ background: rgba(255,255,255,0.03); }

.hero{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
  padding: 18px 0 8px;
}
@media (max-width: 920px){
  .hero{ grid-template-columns: 1fr; }
  .nav{ display:none; }
}

.badge{
  display:inline-flex;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  margin: 8px 0 14px;
  color: var(--muted);
  font-weight: 650;
  width: fit-content;
}

h1{ margin: 0 0 12px; font-size: clamp(28px, 3.3vw, 44px); line-height: 1.1; }
.lead{ margin: 0 0 18px; color: var(--muted); font-size: 16.5px; line-height: 1.6; }

.cta{ display:flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 14px; }
.social{ display:flex; gap: 14px; flex-wrap: wrap; color: var(--muted); }
.social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.photo-card {
  width: 260px;
  height: 260px;
  overflow: hidden;
  border-radius: 20px;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card .photo-fallback{
  display:none;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,0.22);
  padding: 18px;
  text-align: center;
}
.photo-card.no-photo .photo-fallback{ display:block; }
.initials{
  width: 82px; height: 82px;
  border-radius: 999px;
  margin: 6px auto 10px;
  display:flex; align-items:center; justify-content:center;
  font-weight: 900; letter-spacing: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
}

.mini-cards{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.card, .panel{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 16px;
}

.card{
  background: rgba(255,255,255,0.03);
}
.card h3{ margin: 0 0 6px; font-size: 14.5px; }
.card p{ margin: 0; color: var(--muted); }

.section{ margin-top: 26px; }
.section h2{ margin: 0 0 12px; font-size: 22px; letter-spacing: 0.2px; }

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 920px){
  .grid{ grid-template-columns: 1fr; }
}

.panel h3{ margin: 0 0 10px; font-size: 16px; }
.panel p{ color: var(--muted); line-height: 1.7; }
.panel ul{ margin: 10px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.75; }
.muted{ color: var(--muted); }
.hint{ color: rgba(255,255,255,0.62); margin-top: 10px; }

.opportunity{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: rgba(255,255,255,0.80);
}

.timeline{ list-style: none; padding: 0; margin: 0; display:flex; flex-direction: column; gap: 12px; }
.timeline li{ display:flex; gap: 12px; align-items:flex-start; }
.dot{
  width: 10px; height: 10px; border-radius: 999px;
  margin-top: 6px;
  background: rgba(86,164,255,0.9);
  box-shadow: 0 0 0 5px rgba(86,164,255,0.12);
}

.contact-list{ display:flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.callout{
  background: linear-gradient(180deg, rgba(86,164,255,0.12), rgba(160,120,255,0.10));
}

.footer{
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display:flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* Arabic RTL support */
html[dir="rtl"] body{ direction: rtl; }
html[dir="rtl"] .nav{ flex-direction: row-reverse; }
html[dir="rtl"] .cta{ justify-content: flex-start; }
html[dir="rtl"] .panel ul{ padding-left: 0; padding-right: 18px; }

.headline{
  margin: 8px 0 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.3px;
}/* === Limitless Accent Theme === */
:root{
  --limitless-ink:#0b1220;
  --limitless-accent:#19d3ff;
  --limitless-accent2:#7c3aed;
  --limitless-glow: rgba(25, 211, 255, 0.28);
  --limitless-grad: linear-gradient(135deg, var(--limitless-accent), var(--limitless-accent2));
}

/* Primary button with subtle gradient */
.btn.primary{
  background: var(--limitless-grad) !important;
  border: none !important;
  box-shadow: 0 14px 30px var(--limitless-glow);
}
.btn.primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 40px var(--limitless-glow);
}

/* Headline accent underline */
.headline{
  position: relative;
}
.headline::after{
  content:"";
  display:block;
  width: 120px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--limitless-grad);
  opacity: .9;
}

/* Clean icon buttons */
.social-icons{
  display:flex;
  gap: 12px;
  align-items:center;
  flex-wrap: wrap;
}
.icon-btn{
  width: 42px;
  height: 42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(8px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.icon-btn svg{
  width: 20px;
  height: 20px;
  fill: currentColor;
  opacity: .92;
}
.icon-btn:hover{
  transform: translateY(-2px);
  border-color: rgba(25, 211, 255, 0.45);
  box-shadow: 0 14px 30px rgba(25, 211, 255, 0.16);
  background: rgba(25, 211, 255, 0.08);
}
.icon-btn:active{
  transform: translateY(0px);
}

/* Contact icons align nicely */
.contact-list.social-icons{
  margin-top: 12px;
}

/* === Fix language dropdown option visibility (Windows/Chrome) === */
.lang select,
#langSelect{
  color: var(--text, #e7eefc);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
}

.lang select:focus,
#langSelect:focus{
  outline: none;
  border-color: rgba(25, 211, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(25, 211, 255, 0.12);
}

/* Options render in OS/native UI; force readable colors */
.lang select option,
#langSelect option{
  color: #0b1220;
  background: #ffffff;
}

/* Photo framing fix */
.photo-card{
  width: 260px;
  height: 260px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.18);
}
.photo-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}
/* Social links with icon + text */
.social-links{
  display:flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.social-link{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.social-link:hover{
  transform: translateY(-2px);
  border-color: rgba(25, 211, 255, 0.45);
  box-shadow: 0 14px 30px rgba(25, 211, 255, 0.16);
  background: rgba(25, 211, 255, 0.08);
}
.social-ico{
  width: 34px;
  height: 34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}
.social-ico svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: .95;
}
.social-text{
  font-weight: 600;
}
/* Gallery placeholders */
.gallery-thumb{
  height: 160px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(25,211,255,.10), rgba(124,58,237,.10));
  border: 1px dashed rgba(255,255,255,.18);
}

/* Actions stacked (landing page) */
.actions.stack{
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

/* Hero contact widget on right */
.hero-contact{
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* Contact page layout */
.stack-panels{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-bottom{
  margin-top: 18px;
}

/* Contact links in a single row */
.contact-row{
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 12px;
}
.contact-row .social-link{
  flex-direction: row;
}

/* Certificates: top row layout */
.cert-top-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
}
@media (max-width: 900px){
  .cert-top-grid{
    grid-template-columns: 1fr;
  }
}

/* === Page layout: keep footer at bottom on short pages === */
html, body { height: 100%; }

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* main contains footer in this site; make main a flex column so footer can push down */
main.container{
  flex: 1;
  display: flex;
  flex-direction: column;
}

.footer{
  margin-top: auto;
}


/* Certificates: make cards consistently wide */
.cert-page .grid,
#certificates .grid{
  grid-template-columns: 1fr !important;
}
.cert-card{
  width: 100%;
}

/* Prevent "banding"/contrast blocks from appearing behind short content */
main.container{
  background: transparent;
}

/* Landing banner */
.hero-banner{
  width: 100%;
  max-width: 1200px;
  margin: 18px auto 0;
  padding: 0 18px;
}
.hero-banner img{
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}

/* Swap hero layout: photo left, content right */
.hero-inner.hero-swap{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 26px;
  align-items: start;
}
.hero-media{
  display: flex;
  justify-content: flex-start;
}
.hero-content{
  display: flex;
  flex-direction: column;
}
.role{
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: .2px;
  opacity: .9;
}

/* CTA + Contact footer */
.cta-stack{
  margin-top: 12px;
}
.hero-footer{
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* Social links horizontal row on landing footer */
.social-row{
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 820px){
  .hero-inner.hero-swap{
    grid-template-columns: 1fr;
  }
  .hero-banner img{ height: 140px; }
}

/* Landing social row override */
.hero-footer .social-row{
  display: flex;
  flex-direction: row !important;
  align-items: center;
}

/* === Landing page symmetry tweaks === */
.hero{
  margin-top: 18px;
}
.hero-card{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 18px 60px rgba(0,0,0,0.28);
}

.hero-inner.hero-swap{
  grid-template-columns: 1fr 1.35fr;
  gap: 30px;
  align-items: center;
}

.hero-media{
  justify-content: center;
}
.photo-card{
  width: 320px;
  height: 320px;
}

.hero-content{
  max-width: 680px;
}

.hero-content h1{
  margin-top: 10px;
}

.hero-footer{
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-footer .btn.primary{
  align-self: flex-start;
}

@media (max-width: 920px){
  .hero-inner.hero-swap{
    grid-template-columns: 1fr;
    align-items: start;
  }
  .hero-media{ justify-content: flex-start; }
  .photo-card{ width: 260px; height: 260px; }
}

/* Reduce background banding */
body{ background-attachment: fixed; }


/* ===== CLEAN PREMIUM LANDING HERO ===== */


.clean-hero{
  max-width: 1100px;
  margin: 15px auto;
  padding: 40px;
  border-radius: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}


.hero-grid{
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 70px;
  align-items: center;
}

.large-photo{
  width: 340px;
  height: 340px;
  margin: 0 auto;
}

.main-quote{
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.15;
  font-weight: 700;
  margin: 12px 0 18px;
  max-width: 600px;
}

.hero-sub{
  opacity: .8;
  margin-bottom: 26px;
  font-size: 16px;
  letter-spacing: .3px;
}

.hero-actions{
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

@media (max-width: 980px){
  .hero-grid{
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .large-photo{
    width: 260px;
    height: 260px;
  }
  .main-quote{
    font-size: 34px;
  }
}


/* ===== Compact Quote Under Banner ===== */


.hero-quote{
  max-width: 1100px;
  margin: 10px auto 10px;  /* symmetric spacing */
  padding: 0 18px;
  text-align: center;
}



.compact-quote{
  font-size: 27px;   /* increased ~70% from 16px */
  opacity: .85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.hero-banner{ margin-bottom: 8px !important; }

.side-quote{
  margin-top: 18px;
  font-size: clamp(15px, 1.8vw, 20px);
  line-height: 1.4;
  opacity: .85;
  max-width: 320px;
}
.main-role{
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 18px;
}

/* Landing quote under banner (single line) */
.hero-quote{
  max-width: 1100px;
  margin: 10px auto 6px;
  padding: 0 18px;
  text-align: center;
}
.compact-quote{
  font-size: 16px;
  opacity: .85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Role under photo */
.role.under-photo{
  margin: 14px auto 0;
  max-width: 360px;
  text-align: center;
  font-size: 14px;
  opacity: .85;
  line-height: 1.35;
}

/* Connect card aligned with photo height */
.hero-grid{
  align-items: center;
}
.connect-card{
  height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.connect-links{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.connect-link{
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.connect-link:hover{
  transform: translateY(-2px);
  border-color: rgba(25, 211, 255, 0.45);
  box-shadow: 0 14px 30px rgba(25, 211, 255, 0.16);
  background: rgba(25, 211, 255, 0.08);
}

/* Mobile: allow quote to wrap */
@media (max-width: 680px){
  .compact-quote{
    white-space: normal;
  }
  .connect-card{
    height: auto;
  }
}

/* === Quote sizing + spacing override (force) === */
.hero-quote{
  margin: 10px auto 10px !important; /* same gap above & below */
}
.compact-quote{
  font-size: 27px !important; /* +~70% */
}
/* Reduce gap between quote and hero widget */
.clean-hero{
  margin-top: 10px !important;
}


/* === v22 Single Gap Spacing System === */

.hero-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.banner-section {
    margin-bottom: 0 !important;
}

.hero-quote {
    margin: 0 !important;
    text-align: center;
    font-size: 27px;
}

.clean-hero {
    margin-top: 0 !important;
}


/* === v23 Visual Adjustments === */

.hero-quote {
    color: #7fd3ff !important;   /* light blue */
    padding-left: 40px !important;  /* slight right shift */
}

.clean-hero {
    margin-top: -20px !important;  /* lift whole hero widget up */
}


/* === v24 Fine Shift Adjustments === */

.hero-quote {
    padding-left: 120px !important;   /* approx 3 tab shift */
}

.clean-hero {
    margin-top: -35px !important;   /* lift additional ~1.5cm */
}


/* Landing split layout */
.landing-split {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  align-items: stretch;
}

.split-left,
.split-right {
  flex: 1;
  display: flex;
}

.split-left .hero {
  width: 100%;
}

.split-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 900px) {
  .landing-split {
    flex-direction: column;
  }
}


/* ===== v26 Refinement: two widgets under banner (hero + quote card) ===== */
.landing-row{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* slightly wider hero, less forced symmetry */
  gap: 28px;
  align-items: stretch;
  padding-top: 18px;
}

.landing-col{
  display: flex;
  min-width: 0;
}

/* Let hero fill the column */
.landing-col-hero .hero{
  width: 100%;
}

/* Quote widget card styled like a widget */
.quote-card{
  width: 100%;
  border-radius: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 60px rgba(0,0,0,0.28);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Make the card stretch to match hero column height */
.landing-col-quote{
  align-items: stretch;
}
.landing-col-quote .quote-card{
  height: 100%;
}

/* Image inside the widget */
.quote-image{
  width: 100%;
  height: 100%;
  object-fit: contain; /* keep text readable, no cropping */
  border-radius: 16px;
}

/* Slightly reduce hero outer spacing so the row looks intentional */
.landing-col-hero .hero{
  margin-top: 0;
}

/* Responsive: stack on smaller screens */
@media (max-width: 980px){
  .landing-row{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .landing-col-quote .quote-card{
    min-height: 320px; /* give the image breathing room when stacked */
  }
}


/* ===== v27 Fix: make quote image fill the right widget (no top gap) ===== */
.quote-card{
  padding: 0 !important;
  overflow: hidden;
  align-items: stretch !important;
  justify-content: stretch !important;
}

.quote-image{
  width: 100%;
  height: 100%;
  object-fit: cover !important; /* fills card, removes empty bands */
  display: block;
  border-radius: 22px; /* match card rounding feel */
}


/* ===== v28 Fix: true top alignment + equal card heights + HTML quote overlay ===== */
.landing-row{
  align-items: stretch;
}

.landing-col{
  height: 100%;
}

.landing-col-hero,
.landing-col-quote{
  height: 100%;
}

.landing-col-hero .hero{
  height: 100%;
  display: flex;
}

.landing-col-hero .hero-card{
  height: 100%;
}

/* Quote widget uses galaxy background image */
.quote-card{
  position: relative;
  height: 100%;
  padding: 44px !important;
  overflow: hidden;
  background: url('galaxy.jpg') center/cover no-repeat;
}

/* Darken slightly for readability */
.quote-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 35%, rgba(0,0,0,0.35), rgba(0,0,0,0.70));
}

.quote-content{
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.quote-text{
  white-space: pre-line;
  font-size: clamp(26px, 2.4vw, 44px);
  line-height: 1.25;
  font-weight: 600;
  color: rgba(170, 225, 255, 0.95);
  max-width: 18ch;
  position: relative;
  }

.quote-author{
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.4px;
  color: rgba(170, 225, 255, 0.80);
}

/* Mobile: keep padding comfortable */
@media (max-width: 980px){
  .quote-card{
    padding: 28px !important;
    min-height: 360px;
  }
  .quote-text{
    max-width: 24ch;
  }
}


/* ===== v29 Fix: remove old negative lift that breaks row alignment ===== */
.landing-row .clean-hero{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.landing-row{
  align-content: start;
}


/* ===== v30 Height Sync: allow JS to set quote card height precisely ===== */
.landing-col-quote .quote-card{
  height: auto !important;
}


/* ===== v31 Fix: consistent quote line spacing ===== */
.quote-content{
  gap: 10px !important; /* reduce uneven vertical spacing */
}

.quote-text{
  line-height: 1.22 !important; /* tighter consistent line spacing */
  display: block;
}



/* ===== v32 Fix: proper spaces + consistent line breaks ===== */
.quote-text{
  line-height: 1.20 !important;
  letter-spacing: 0.2px;
}

.quote-text br{
  line-height: 1.20; /* keep breaks consistent */
}

.quote-content{
  gap: 14px !important; /* balanced space between quote and author */
}


/* ===== v33 Fix: 5-line quote with inline opening/closing marks (no pseudo-elements) ===== */
.quote-text{
  white-space: normal !important;
  line-height: 1.18 !important;
  padding-left: 0 !important;
  max-width: 22ch; /* keeps the 5-line poster look */
}

.quote-text br{
  content: "";
}



/* ===== v34: balanced 3-line quote layout ===== */
.quote-text{
  max-width: 28ch !important; /* wider for 3-line balance */
  line-height: 1.2 !important;
  text-align: left;
}


/* ===== v35 Premium Navbar Logo Upgrade ===== */
.topbar {
  padding: 12px 22px; /* balanced spacing */
  align-items: center;
}

.logo-brand {
  display: flex;
  align-items: center;
}

.logo-brand img {
  height: 46px;
  width: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 4px rgba(0,120,255,0.35));
}

/* Subtle premium hover */
.logo-brand img:hover {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 0 10px rgba(0,150,255,0.7));
}

/* Responsive scaling */
@media (max-width: 768px) {
  .logo-brand img {
    height: 40px;
  }
}



/* ===== v38 Fix: proper spacing before footer on Certificates page ===== */
.certificates-page .footer,
body .footer {
  margin-top: 60px;
}


/* ===== v40 Share Icon + Tooltip Upgrade ===== */
.share-icon-btn {
  position: relative;
  padding: 10px 12px;
}

.share-icon {
  font-size: 18px;
  transition: transform 0.25s ease;
}

.share-icon-btn:hover .share-icon {
  transform: scale(1.15);
}

/* Tooltip */
.tooltip {
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 30, 50, 0.95);
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  white-space: nowrap;
}

.share-icon-btn:hover .tooltip {
  opacity: 1;
}



/* ===== v41.3 Subtle Footer Spacer (Education + Contact only) ===== */
.footer-spacer {
  height: 80px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(10,20,40,0.6) 100%);
}



/* ===== v41.4 Animated spacer + faint glow line above footer ===== */
/* Applies only on pages where .footer-spacer exists */
.footer-spacer{
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg,
    rgba(0,0,0,0) 0%,
    rgba(40,120,255,0.06) 35%,
    rgba(10,20,40,0.60) 70%,
    rgba(0,0,0,0) 100%);
  background-size: 220% 100%;
  animation: footerSpacerFlow 10s ease-in-out infinite;
}

/* soft moving sheen */
.footer-spacer::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%,
    rgba(120,200,255,0.10) 0%,
    rgba(120,200,255,0.00) 55%);
  opacity: 0.8;
  animation: footerSpacerSheen 8s ease-in-out infinite;
}

@keyframes footerSpacerFlow{
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes footerSpacerSheen{
  0%   { transform: translateX(-8%); opacity: 0.55; }
  50%  { transform: translateX(8%);  opacity: 0.90; }
  100% { transform: translateX(-8%); opacity: 0.55; }
}

/* faint glow line above footer */
.footer{
  position: relative;
}

.footer::before{
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(0,0,0,0) 0%,
    rgba(90,170,255,0.45) 30%,
    rgba(255,255,255,0.10) 50%,
    rgba(90,170,255,0.45) 70%,
    rgba(0,0,0,0) 100%);
  box-shadow: 0 0 12px rgba(90,170,255,0.20);
  opacity: 0.9;
  pointer-events: none;
}


/* ===== v41.5 Executive Tech Founder Polish ===== */

/* 1) AAA Logo: subtle breathing glow */
.logo-brand img{
  animation: aaaBreath 7.5s ease-in-out infinite;
  will-change: filter, transform;
}
@keyframes aaaBreath{
  0%, 100%{
    transform: translateY(0);
    filter: drop-shadow(0 0 3px rgba(0,120,255,0.25));
  }
  50%{
    transform: translateY(-1px);
    filter: drop-shadow(0 0 10px rgba(0,160,255,0.55));
  }
}

/* 2) Nav underline micro animation */
.nav a{
  position: relative;
  text-decoration: none !important;
}
.nav a::after{
  content:"";
  position:absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg,
    rgba(0,0,0,0),
    rgba(90,170,255,0.55),
    rgba(255,255,255,0.14),
    rgba(90,170,255,0.55),
    rgba(0,0,0,0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
  opacity: 0.95;
  pointer-events: none;
}
.nav a:hover::after,
.nav a:focus-visible::after{
  transform: scaleX(1);
}

/* 3) Premium hover lift on cards/panels */
.panel, .card, .connect-card, .quote-card{
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
  will-change: transform;
}
.panel:hover, .card:hover{
  transform: translateY(-4px);
  border-color: rgba(90,170,255,0.28);
  box-shadow: 0 18px 55px rgba(0,0,0,0.28), 0 0 0 1px rgba(90,170,255,0.08);
}

/* Keep hero widgets stable (no lift) */
.hero-card:hover, .connect-card:hover, .quote-card:hover{
  transform: none;
}

/* 4) Scroll reveal (CSS part) */
.reveal{
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .logo-brand img{ animation: none; }
  .reveal{ opacity: 1; transform: none; transition: none; }
  .panel, .card, .connect-card, .quote-card{ transition: none; }
  .nav a::after{ transition: none; }
}


/* ===== v41.5.1 What I Do section (under banner) ===== */
.what-i-do{
  margin-top: 26px;
  margin-bottom: 14px;
}

.what-title{
  font-size: 1.35rem;
  letter-spacing: 0.4px;
  margin: 0 0 10px 0;
}

.what-sub{
  margin: 0 0 18px 0;
  opacity: 0.82;
  max-width: 68ch;
}

.what-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.what-card{
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 60px rgba(0,0,0,0.22);
  padding: 16px 16px 14px;
}

.what-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(90,170,255,0.10);
  border: 1px solid rgba(90,170,255,0.18);
  margin-bottom: 10px;
  font-size: 18px;
}

.what-card h3{
  margin: 0 0 8px 0;
  font-size: 1.02rem;
  letter-spacing: 0.2px;
}

.what-card p{
  margin: 0;
  opacity: 0.82;
  line-height: 1.35;
  font-size: 0.95rem;
}

@media (max-width: 1100px){
  .what-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px){
  .what-grid{ grid-template-columns: 1fr; }
}


/* ===== v41.5.2 What-I-Do cards: match Skills widgets polish ===== */
.what-card{
  position: relative;
  overflow: hidden;
}

/* faint animated glow line on top edge */
.what-card::before{
  content:"";
  position:absolute;
  top:0;
  left:-40%;
  width:180%;
  height:2px;
  background: linear-gradient(90deg,
    rgba(0,0,0,0) 0%,
    rgba(90,170,255,0.55) 25%,
    rgba(255,255,255,0.20) 50%,
    rgba(90,170,255,0.55) 75%,
    rgba(0,0,0,0) 100%);
  opacity: 0.35;
  animation: whatGlowLine 8.5s ease-in-out infinite;
  pointer-events:none;
}

/* subtle moving sheen on hover */
.what-card::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 20% 30%,
    rgba(120,200,255,0.12) 0%,
    rgba(120,200,255,0.00) 55%);
  opacity: 0;
  transform: translateX(-10%);
  transition: opacity 260ms ease, transform 260ms ease;
  pointer-events:none;
}

.what-card:hover::after{
  opacity: 0.9;
  transform: translateX(10%);
}

@keyframes whatGlowLine{
  0%   { transform: translateX(-10%); opacity: 0.20; }
  50%  { transform: translateX(10%);  opacity: 0.42; }
  100% { transform: translateX(-10%); opacity: 0.20; }
}

/* Slightly stronger border + shadow on hover to match other widgets */
.what-card:hover{
  border-color: rgba(90,170,255,0.22);
  box-shadow: 0 18px 60px rgba(0,0,0,0.24), 0 0 0 1px rgba(90,170,255,0.08);
}


/* ===== v41.5.8 Mobile nav hamburger (file:// safe) ===== */
.nav-toggle{
  display:none;
  margin-left: 10px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  align-items:center;
  justify-content:center;
}

@media (max-width: 920px){
  .topbar{ flex-wrap: wrap; gap: 10px; }
  .nav-toggle{ display:inline-flex; }

  /* nav is hidden by existing rule; show only when header is open */
  .topbar.nav-open .nav{
    display:flex !important;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 60px rgba(0,0,0,0.22);
  }
  .nav a{
    padding: 10px 10px;
    border-radius: 12px;
  }
  .nav a:hover{ background: rgba(90,170,255,0.08); }

  .controls{ width: 100%; display:flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
  .controls .lang{ margin-left: 0; }
}


/* ===== v41.6 Executive Visual Polish (Desktop + Mobile) ===== */

/* Cleaner focus states (keyboard-friendly, subtle) */
:focus-visible{
  outline: 2px solid rgba(90,170,255,0.55);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Slightly smoother global type rhythm */
body{
  line-height: 1.55;
}

/* Desktop: tighten headings just a touch */
h1, h2{
  letter-spacing: 0.2px;
}

/* Buttons: micro polish */
.btn{
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.22);
}

/* Cards: consistent hover (gentle) */
.card, .panel{
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.card:hover, .panel:hover{
  transform: translateY(-3px);
  border-color: rgba(90,170,255,0.22);
  box-shadow: 0 18px 55px rgba(0,0,0,0.26), 0 0 0 1px rgba(90,170,255,0.06);
}

/* Mobile nav: smooth dropdown animation (works even when opened via file://) */
@media (max-width: 920px){
  /* Ensure nav can animate (override any display:none rules) */
  .nav{
    display: flex !important;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 60px rgba(0,0,0,0.22);

    /* closed state */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    pointer-events: none;

    transition: max-height 280ms ease, opacity 220ms ease, transform 220ms ease;
  }

  .topbar.nav-open .nav{
    max-height: 520px; /* enough for all links */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Better tap targets on mobile */
  .nav a{
    padding: 12px 12px;
  }

  /* Burger: nicer press feel */
  .nav-toggle:active{
    transform: scale(0.98);
  }

  /* Slightly larger text on mobile for readability */
  main, .panel, .card{
    font-size: 1rem;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .btn, .card, .panel, .nav{
    transition: none !important;
  }
}
