@font-face {
  font-family: 'Cairo';
  src: url('assets/fonts/Cairo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('assets/fonts/Cairo-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('assets/fonts/Cairo-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('assets/fonts/Cairo-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('assets/fonts/Cairo-Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}

:root {
  --stone: #F3F4EE;
  --stone-2: #E6E8DE;
  --white: #FFFFFF;
  --dark: #1B1F19;
  --dark-card: #242921;
  --dark-border: #333A2F;
  --lime: #C5F82A;
  --lime-hover: #B4EA19;
  --ink: #141713;
  --muted: #575D53;
  --dark-muted: #9FA69A;
  --border: #E0E3D7;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  background-color: var(--stone);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: clip;
  max-width: 100%;
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: 'Consolas', 'Courier New', monospace;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  font-size: 1.12rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
  transition: color 0.16s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

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

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-size: 1.15rem;
  cursor: pointer;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 24px 18px;
  border-top: 1px solid var(--border);
  background: var(--stone);
}

.mobile-menu a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  padding: 8px 4px;
}

/* Buttons & Pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.94rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-nav {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
}

.btn-lime:hover {
  background: var(--lime-hover);
}

.btn-white {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost-light {
  background: transparent;
  color: var(--ink);
  border-color: #C9CEC0;
}

.btn-full {
  width: 100%;
  margin-top: 14px;
}

.lime-pill {
  display: inline-block;
  background: var(--lime);
  color: var(--ink);
  font-weight: 900;
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: 999px;
}

/* Hero */
.hero-section {
  padding: 52px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 900;
  line-height: 1.18;
  margin: 16px 0 18px;
  color: var(--ink);
}

.hero-desc {
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}

.hero-photo-wrap {
  min-width: 0;
}

.photo-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(165deg, #D8DBD3 0%, #B8BEB2 100%);
  aspect-ratio: 4 / 4.6;
  max-width: 420px;
  margin-inline-start: auto;
  box-shadow: 0 24px 60px rgba(20, 23, 19, 0.12);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.photo-card img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  object-position: bottom center;
}

.photo-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(27, 31, 25, 0.82);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
}

/* Dark Resources Section */
.dark-section {
  background: var(--dark);
  color: var(--white);
  padding: 68px 0;
}

.section-head-center {
  text-align: right;
  margin-bottom: 26px;
}

.eyebrow-lime {
  display: inline-block;
  color: var(--lime);
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.section-head-center h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 8px;
}

.section-head-center p {
  color: var(--dark-muted);
  font-size: 0.96rem;
  font-weight: 600;
}

.dark-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--dark-card);
  border: 1.5px solid var(--dark-border);
  border-radius: 14px;
  padding: 8px 14px;
  margin-bottom: 16px;
}

.dark-search:focus-within {
  border-color: var(--lime);
}

.search-icon {
  font-size: 1rem;
  opacity: 0.7;
}

.dark-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  outline: none;
}

.btn-search {
  background: #333A2F;
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 6px 14px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-pill {
  background: var(--dark-card);
  color: var(--dark-muted);
  border: 1.5px solid var(--dark-border);
  border-radius: 999px;
  padding: 7px 18px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.dark-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.res-card {
  background: var(--dark-card);
  border: 1.5px solid var(--dark-border);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.res-card:hover {
  transform: translateY(-2px);
  border-color: var(--lime);
}

.res-card.featured {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.res-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.res-kw {
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--lime);
}

.res-card.featured .res-kw {
  background: var(--ink);
  color: var(--lime);
}

.res-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--dark-muted);
}

.res-card.featured .res-badge {
  color: #363E31;
}

.res-lesson {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark-muted);
  margin-top: 10px;
}

.res-card.featured .res-lesson {
  color: #3F4739;
}

.res-card h3 {
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.4;
  margin-top: 4px;
}

.res-summary {
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--dark-muted);
  margin-top: 8px;
}

.res-card.featured .res-summary {
  color: #2B3127;
}

.res-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.res-card.featured .res-foot {
  border-top-color: rgba(20, 23, 19, 0.14);
}

.res-action {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--lime);
  text-decoration: none;
  cursor: pointer;
}

.res-card.featured .res-action {
  color: var(--ink);
}

.res-share {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark-muted);
  cursor: pointer;
  text-decoration: none;
}

.res-card.featured .res-share {
  color: #2B3127;
}

.dark-empty {
  text-align: center;
  padding: 32px;
  border: 1.5px dashed var(--dark-border);
  border-radius: 16px;
  color: var(--dark-muted);
}

.dark-bottom-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--dark-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark-muted);
}

.lime-link {
  color: var(--lime);
  text-decoration: none;
  font-weight: 900;
}

/* Light Sections */
.light-section {
  padding: 68px 0;
}

.pt-0 {
  padding-top: 0;
}

.eyebrow-muted {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 6px;
}

.section-head {
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 900;
  line-height: 1.25;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.28;
  margin-bottom: 14px;
}

.about-text p {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.about-sign {
  margin-top: 16px;
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--ink);
}

.quote-box {
  background: var(--stone-2);
  border-radius: 20px;
  padding: 28px;
}

.quote-mark {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--muted);
  margin-bottom: 8px;
}

.quote-box blockquote {
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 12px;
}

.quote-sub {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

/* 4-Column White Cards (Skills & Socials) */
.four-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.white-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.card-num {
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--muted);
}

.white-card h3 {
  font-size: 1.06rem;
  font-weight: 900;
  color: var(--ink);
}

.white-card p {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  background: var(--stone);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px 9px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
}

.card-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  font-size: 0.88rem;
  margin-top: 4px;
}

/* Experience & Certs */
.exp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.exp-main-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  min-width: 0;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.exp-header h3 {
  font-size: 1.25rem;
  font-weight: 900;
}

.exp-company {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.exp-pill {
  background: var(--stone);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.exp-summary {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.projects-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.proj-chip {
  background: var(--stone);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink);
}

.cert-side-card {
  background: var(--stone-2);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.cert-side-card h3 {
  font-size: 1.12rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.certs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.certs-list li {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.certs-list li::before {
  content: "✓";
  color: #166534;
  font-weight: 900;
}

/* Stone Band & Lime CTA */
.stone-band {
  background: var(--stone-2);
  padding: 64px 0 48px;
}

.cta-banner {
  margin-top: 34px;
  background: var(--lime);
  border-radius: 22px;
  padding: 32px 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cta-banner-text h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 900;
  color: var(--ink);
}

.cta-banner-text p {
  color: #2B3127;
  font-weight: 700;
  font-size: 0.96rem;
  margin-top: 4px;
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cta-email {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

/* Footer */
.footer {
  background: var(--stone);
  border-top: 1px solid var(--border);
  padding: 22px 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 700;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Modal & Toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 23, 0.72);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 80;
}

.modal-card {
  width: 100%;
  max-width: 620px;
  background: var(--white);
  color: var(--ink);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-head h3 {
  font-size: 1.15rem;
  font-weight: 900;
  margin-top: 8px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--stone);
  cursor: pointer;
  font-weight: 900;
}

.modal-pre {
  background: var(--dark);
  color: #F8FAFC;
  border-radius: 14px;
  padding: 16px;
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  text-align: right;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 50vh;
  overflow-y: auto;
  margin-bottom: 16px;
}

.modal-foot {
  display: flex;
  gap: 10px;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: var(--lime);
  border: 1.5px solid var(--lime);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.9rem;
  z-index: 95;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.hidden {
  display: none !important;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .dark-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .four-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .exp-grid,
  .about-grid,
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .photo-card {
    margin: 0 auto;
    max-width: 360px;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .menu-btn {
    display: grid;
    place-items: center;
  }
  .container {
    padding: 0 16px;
  }
  .hero-section {
    padding: 28px 0 42px;
  }
  .hero-text {
    text-align: center;
  }
  .hero-desc {
    margin-inline: auto;
  }
  .hero-actions,
  .hero-meta {
    justify-content: center;
  }
  .dark-cards-grid,
  .four-grid,
  .projects-tags {
    grid-template-columns: minmax(0, 1fr);
  }
  .cta-banner {
    padding: 24px 20px;
  }
  .cta-banner-actions {
    align-items: flex-start;
    width: 100%;
  }
}
