/* UI layer — loaded after style.css. Design tokens + component styles. */
:root {
  --brand: #0BCEAF;
  --brand-deep: #087f73;
  --ink: #10232b;
  --muted: #5b6b73;
  --surface: #f4f8f9;
  --line: #e1eaed;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(16, 35, 43, 0.06);
  --shadow-md: 0 14px 34px rgba(16, 35, 43, 0.12);
}

body {
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

p { color: var(--muted); line-height: 1.75; }

a:focus-visible, .btn:focus-visible, .nav-link:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn-outline-primary {
  color: var(--brand-deep);
  border-color: var(--brand-deep);
}
.btn-outline-primary:hover,
.btn-outline-primary:not(:disabled):not(.disabled).active,
#portfolio-flters .btn.active {
  color: #fff;
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}
.btn-brand {
  color: #fff;
  background: var(--brand-deep);
  border: 1px solid var(--brand-deep);
}
.btn-brand:hover { color: #fff; background: #066258; border-color: #066258; }
.btn-sm { padding: 7px 18px; font-size: 0.85rem; }

/* ---------- Navbar ---------- */
.navbar {
  border-bottom: 1px solid var(--line);
  box-shadow: none !important;
}
.navbar-light .navbar-nav .nav-link { position: relative; }
.navbar-light .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 16px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform .3s ease;
}
.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after { transform: scaleX(1); }
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active { color: var(--brand-deep); }
@media (max-width: 991.98px) {
  .navbar-light .navbar-nav .nav-link::after { display: none; }
}

/* ---------- Hero ---------- */
#home { min-height: 82vh !important; display: flex; align-items: center; margin-bottom: 0 !important; }
#home > .container { width: 100%; }
#home h1 {
  -webkit-text-stroke: 0 !important;
  color: #fff !important;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 6vw, 4rem);
}
#home .typed-text-output { font-size: clamp(1.2rem, 2.4vw, 1.7rem); }
#home .typed-cursor { font-size: inherit; }
.hero-description { margin-left: auto; margin-right: auto; }
.hero-badges span { backdrop-filter: blur(6px); }
.hero-metrics div { flex: 1 1 0; min-width: 110px; max-width: 170px; align-items: flex-start; }
.hero-metrics strong { line-height: 1.1; }
@media (min-width: 992px) {
  .hero-description { margin-left: 0; }
  .hero-badges, .hero-metrics { justify-content: flex-start; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--surface); }
@media (max-width: 767.98px) { .section { padding: 64px 0; } }

.section-head { text-align: center; margin-bottom: 3.2rem; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.section-title {
  margin: 0.4rem 0 0;
  font-weight: 900;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-title::after {
  content: "";
  display: block;
  width: 56px; height: 4px;
  margin: 1rem auto 0;
  border-radius: 4px;
  background: var(--brand);
}
.sub-title { font-size: 1.35rem; margin-bottom: 1.6rem; color: var(--ink); }
.sub-title i { color: var(--brand-deep); margin-right: 10px; }

/* ---------- About ---------- */
.about-title { font-size: 1.5rem; margin-bottom: 1.2rem; color: var(--ink); }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 1.8rem 0;
}
.info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
a.info-card:hover { text-decoration: none; border-color: var(--brand); }
.info-card i {
  flex: none;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(11, 206, 175, 0.14);
  color: var(--brand-deep);
}
.info-card small { display: block; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; }
.info-card span { display: block; font-weight: 500; overflow-wrap: anywhere; }
.about-photo {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  opacity: .25;
}
.about-photo img {
  position: relative;
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow-md);
}

/* ---------- Timeline ---------- */
.timeline {
  margin-left: 24px;
  padding-left: 36px;
  border-left: 2px solid var(--line);
}
.timeline-item {
  position: relative;
  margin-bottom: 20px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.timeline-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.timeline-logo {
  position: absolute;
  top: 18px;
  left: -61px;
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
}
.timeline-item h5 { font-size: 1.05rem; color: var(--ink); }
.timeline-item p { margin-bottom: .5rem; font-size: .93rem; }
.timeline-item p:last-child, .timeline-item ul:last-child { margin-bottom: 0; }
.timeline-item .timeline-meta { color: var(--ink); }
.timeline-item .timeline-meta small { color: var(--muted); }
.timeline-list { padding-left: 1.1rem; color: var(--muted); font-size: .93rem; line-height: 1.7; }

/* ---------- Skills ---------- */
.skill-card {
  height: 100%;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.skill-card h3 { font-size: 1.1rem; margin-bottom: 1.6rem; color: var(--ink); }
.skill-card h3 i {
  width: 38px; height: 38px;
  margin-right: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(11, 206, 175, 0.14);
  color: var(--brand-deep);
  font-size: .95rem;
}
.skill h6 { font-size: .92rem; color: var(--ink); }
.skill h6:last-child { color: var(--muted); font-weight: 500 !important; }
.skill .progress { height: 8px; background: #e8f0f2; }
.progress-bar.bg-brand { background: linear-gradient(90deg, var(--brand), var(--brand-deep)); }

/* ---------- Portfolio ---------- */
#portfolio-flters .btn { cursor: pointer; }
.portfolio-item { padding-left: 15px; padding-right: 15px; }
.portfolio-item:hover { box-shadow: none; }
.portfolio-item::after { display: none; }
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card:hover .project-thumb img { transform: scale(1.05); }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.project-body h3 { font-size: 1.1rem; margin-bottom: .5rem; color: var(--ink); }
.project-body p {
  font-size: .9rem;
  margin-bottom: 1rem;
  min-height: 4.5em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.1rem; }
.project-tags span {
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(11, 206, 175, 0.14);
  color: var(--brand-deep);
  font-size: .75rem;
  font-weight: 700;
}
.project-actions { display: flex; gap: 10px; margin-top: auto; }

/* ---------- Testimonials ---------- */
.testimonial-carousel .text-center {
  margin: 4px;
  padding: 40px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.testimonial-carousel .fa-quote-left { font-size: 1.8rem; color: var(--brand) !important; }
.testimonial-carousel h4 {
  font-size: 1.1rem;
  line-height: 1.8;
  font-weight: 400 !important;
  color: var(--ink);
}
.testimonial-carousel h5 { color: var(--ink); }
.testimonial-carousel span { color: var(--muted); font-size: .9rem; }
.testimonial-carousel img { border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.testimonial-carousel .owl-dot.active { background: var(--brand-deep); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 28px;
  background: #0d1f26;
  text-align: center;
  color: rgba(255, 255, 255, .7);
}
.site-footer p { color: rgba(255, 255, 255, .6); margin: .6rem 0 0; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: #fff; font-weight: 700; font-size: 1.15rem;
}
.footer-brand:hover { color: #fff; text-decoration: none; }
.site-footer .btn-social { margin: 1.6rem .3rem 0; }
.footer-copy { margin-top: 2rem !important; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }

/* ---------- Floating buttons ---------- */
.back-to-top {
  width: 44px; height: 44px;
  padding: 0;
  line-height: 42px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-md);
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Language switch ---------- */
.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.lang-toggle button {
  min-width: 44px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lang-toggle button:hover { color: var(--brand-deep); }
.lang-toggle button.active { background: var(--brand-deep); color: #fff; }
.lang-toggle button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
