/* =========================================================
   components.css — Shared Components (navbar/footer/cards)
   Used on ALL pages
   ========================================================= */

/* ---- Background Effects (global) ---- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 520px;
  height: 520px;
  filter: blur(45px);
  opacity: .55;
  transform: translate3d(0,0,0);
  animation: float 10s ease-in-out infinite;
}

.blob--1 {
  left: -140px;
  top: -120px;
  background:
    radial-gradient(circle at 30% 30%, var(--brand-1), transparent 60%),
    radial-gradient(circle at 70% 70%, var(--brand-2), transparent 55%);
}

.blob--2 {
  right: -180px;
  bottom: -150px;
  background:
    radial-gradient(circle at 30% 30%, var(--brand-2), transparent 60%),
    radial-gradient(circle at 70% 70%, var(--brand-3), transparent 55%);
  animation-delay: -3s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(circle at 50% 10%, rgba(0,0,0,.9), transparent 70%);
  opacity: .25;
}

html[data-theme="light"] .grid-overlay {
  opacity: 0.05;
}


.noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  opacity: .06;
  mix-blend-mode: overlay;
}

html[data-theme="light"] .noise {
  opacity: 0.02;
}


@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(25px, -18px) scale(1.03); }
}

/* ---- Header / Navbar (global) ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg), transparent 65%);
  border-bottom: 1px solid color-mix(in srgb, var(--border), transparent 35%);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .2px;
}

/* Logo support (place logo at: assets/img/logo.svg or assets/img/logo.png) */
.brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255,255,255,.06);
  border: 1px solid color-mix(in srgb, var(--border), transparent 25%);
  padding: 6px;
}

/* Fallback mark (keep for now; we will update HTML next) */
.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad-brand);
  box-shadow: 0 10px 30px rgba(124,58,237,.25);
}

.brand__text {
  font-size: 16px;
  line-height: 1.1;
  white-space: nowrap;
  font-weight: 900;
  display: flex;
  align-items: center;
}

/* BE part */
.brand__be {
  background: linear-gradient(135deg, #0A4B78, #0FB9B1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 6 part */
.brand__six {
  margin-left: 1px;
  background: linear-gradient(135deg, #0FB9B1, #6BCF63);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  font-size: 18px;
}

/* Technologies part */
.brand__tech {
  margin-left: 4px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}


/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__link {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  position: relative;
  padding: 8px 2px;
  transition: color var(--t-med);
}

.nav__link:hover {
  color: var(--text);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-2), var(--brand-1));
  transition: width var(--t-med);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link.is-active {
  color: var(--text);
}
.nav__link.is-active::after {
  width: 100%;
}

/* Theme toggle button */
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--t-fast), border-color var(--t-med), background var(--t-med);
}
.icon-btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--border), white 22%);
}

/* Mobile toggle button */
.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}
.nav__toggle-lines {
  display: block;
  width: 18px;
  height: 2px;
  background: color-mix(in srgb, var(--text), transparent 15%);
  margin: 0 auto;
  position: relative;
}
.nav__toggle-lines::before,
.nav__toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: color-mix(in srgb, var(--text), transparent 15%);
  transition: transform var(--t-med), top var(--t-med), opacity var(--t-med);
}
.nav__toggle-lines::before { top: -6px; }
.nav__toggle-lines::after  { top:  6px; }

/* ---- Page header block (title + subtitle area) ---- */
.page-head {
  padding: 54px 0 22px;
}
.page-head__inner {
  display: grid;
  gap: 12px;
}
.breadcrumb {
  color: var(--muted);
  font-size: 13px;
}
.page-head__title {
  margin: 0;
}
.page-head__subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 75ch;
}

/* ---- Grids / cards (global reusable) ---- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Card polish to fix “cramped” look in screenshots */
.card {
  padding: 22px;
  border-radius: var(--r-3);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  transition: transform var(--t-med), border-color var(--t-med), background var(--t-med), box-shadow var(--t-med);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
}

html[data-theme="light"] .card,
html[data-theme="light"] .work-card,
html[data-theme="light"] .surface {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.12);
}


.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--border), white 22%);
  background: color-mix(in srgb, var(--surface), white 6%);
  box-shadow: var(--shadow-2);
}

.card__icon {
  font-size: 22px;
  line-height: 1;
}

.card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  word-break: normal;
}

.card__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.chip {
  font-size: 12px;
  color: color-mix(in srgb, var(--text), transparent 20%);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface), transparent 10%);
  padding: 6px 10px;
  border-radius: var(--r-pill);
}

/* ---- Footer (global) ---- */
.footer {
  padding: 28px 0 40px;
  border-top: 1px solid color-mix(in srgb, var(--border), transparent 35%);
  color: var(--muted);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.to-top {
  color: color-mix(in srgb, var(--text), transparent 15%);
}
.to-top:hover { text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .card { min-height: auto; }
}

@media (max-width: 760px) {
  .nav__toggle { display: block; }

  .nav__menu {
    position: absolute;
    right: 0;
    top: 56px;
    width: min(280px, calc(100vw - 40px));
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: var(--r-3);
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg), transparent 25%);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-2);
  }

  .nav__menu.is-open { display: flex; }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===============================
   Light Mode Modal Improvements
   =============================== */

html[data-theme="light"] .course-modal::backdrop {
  background: rgba(15, 23, 42, 0.35);
}

html[data-theme="light"] .course-modal__panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 24px 60px rgba(15,23,42,0.18);
  color: #0f172a;
}

html[data-theme="light"] .course-block {
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,0.08);
}

html[data-theme="light"] .course-h {
  color: #0f172a;
  font-weight: 700;
}

html[data-theme="light"] .course-list li {
  color: #334155;
}

/* ===============================
   Laptop Support Highlight Box
   =============================== */

.course-laptop {
  display: flex;
  gap: 18px;
  padding: 18px 20px;
  margin-top: 20px;

  background: linear-gradient(
    135deg,
    rgba(124,58,237,0.12),
    rgba(6,182,212,0.12)
  );

  border: 1px solid color-mix(in srgb, var(--brand-2), var(--border) 70%);
  border-radius: 18px;

  align-items: flex-start;
}

/* Icon */
.laptop-icon {
  font-size: 32px;
  line-height: 1;
}

/* Content */
.laptop-content {
  flex: 1;
}

.laptop-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.laptop-text {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.laptop-list {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.laptop-list li {
  color: color-mix(in srgb, var(--text), transparent 10%);
}

/* Light mode adjustment */
html[data-theme="light"] .course-laptop {
  background: linear-gradient(
    135deg,
    rgba(124,58,237,0.08),
    rgba(6,182,212,0.08)
  );

  border-color: rgba(15,23,42,0.12);
}

/* ===============================
   Leadership Quotes
   =============================== */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.leader-quote {
  padding: 28px 26px;
  border-radius: 22px;
  border: 1px solid var(--border);

  box-shadow: var(--shadow-1);
}

.leader-quote h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
}

.leader-quote span {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.leader-quote p {
  margin: 0;
  line-height: 1.7;
  font-size: 15px;
}

/* Light quote (theme aware) */
.leader-quote.light {
  background: var(--surface);
  color: var(--text);
}


.leader-quote.dark {
  background: linear-gradient(135deg, #0f172a, #020617);
  color: rgba(255,255,255,0.95);
}


.leader-quote.dark span {
  color: rgba(255,255,255,0.7);
}

/* Light mode quote tuning */
html[data-theme="light"] .leader-quote.light {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.12);
}



/* ===============================
   Partner Slider
   =============================== */

.partner-slider {
  margin-top: 28px;
  overflow: hidden;
}

.partner-track {
  display: flex;
  gap: 28px;
  padding: 14px 0;
  white-space: nowrap;
}

.partner-track span {
  padding: 10px 20px;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;

  font-size: 14px;
  font-weight: 600;

  min-width: 140px;
  text-align: center;

  box-shadow: var(--shadow-1);
}

/* Animation */
.track-left {
  animation: scroll-left 22s linear infinite;
}

.track-right {
  animation: scroll-right 24s linear infinite;
}

/* Pause on hover */
.partner-slider:hover .partner-track {
  animation-play-state: paused;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes scroll-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}


/* ===============================
   Responsive
   =============================== */

@media (max-width: 760px) {

  .quote-grid {
    grid-template-columns: 1fr;
  }

}

/* ===============================
   Services Page Alignment Fix
   =============================== */

.service-block {
  align-items: start;
}

/* Left/Right text columns */
.service-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Normalize service headings */
.service-text h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

/* Normalize service subtitles */
.service-text .lead {
  margin-top: 0;
  margin-bottom: 14px;
}
