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

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #ffffff;
}

.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ── Brand Colors ── */
.text-orange  { color: #ff8c42; }
.bg-orange    { background-color: #ff8c42; }
.bg-dark-custom  { background-color: #2d2d2d; }
.text-dark-custom { color: #2d2d2d; }

/* ── Buttons ── */
.btn-orange {
  background-color: #ff8c42;
  color: #fff;
  border: none;
}
.btn-orange:hover,
.btn-orange:focus {
  background-color: #ff9d5c;
  color: #fff;
}
.btn-circle {
  width: 50px;
  height: 50px;
  background-color: #2d2d2d;
  color: #fff;
  border: none;
  transition: background-color 0.2s;
}
.btn-circle:hover { background-color: #ff8c42; color: #fff; }

/* ── Header ── */
.nav-pill-wrap {
  background-color: #2d2d2d;
  max-width: 1200px;
}
.header-logo {
  width: 44px;
  height: 44px;
  background-color: #ff8c42;
  color: #2d2d2d;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.nav-pill-active {
  background-color: #ff8c42;
  color: #fff;
  transition: all 0.2s;
}
.nav-pill-inactive {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s;
}
.nav-pill-inactive:hover { color: rgba(255, 255, 255, 0.9); }

/* ── Hero ── */
.hello-badge {
  border: 2px solid #2d2d2d;
  color: #2d2d2d;
}
.squiggle-top {
  position: absolute;
  top: -18px;
  right: -18px;
}
.squiggle-headline {
  position: absolute;
  bottom: -50px;
  left: calc(50% - 250px);
}
.hero-avatar {
  width: 480px;
  height: 240px;
  border-radius: 240px 240px 0 0;
  background-color: #feb273;
  padding-top: 40px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 1;
}
.hero-avatar img {
  width: 115%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}
.testimonial-text {
  color: #344054;
  font-size: 16px;
  line-height: 1.5;
}
.star-icon { color: #ff8c42; }
.years-count {
  font-size: 2.5rem;
  color: #2d2d2d;
  line-height: 1;
}

/* ── About Section ── */
.about-section {
  background-color: #1a1a1a;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 140, 66, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(255, 140, 66, 0.08) 0%, transparent 50%);
}
.section-heading { font-size: 2.8rem; }
.about-desc {
  max-width: 600px;
  line-height: 1.6;
}
.about-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: transform 0.3s, background-color 0.3s;
}
.about-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.08);
}
.about-card .btn-circle { bottom: 20%; right: 8%; }
.about-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}
.skill-title {
  font-size: 1.2rem;
  line-height: 1.4;
}

/* ── Work Experience ── */
.work-section-wrap { max-width: 1000px; }
.work-title { font-size: 1.4rem; }
.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 4px solid #fff;
  flex-shrink: 0;
}
.timeline-dot-orange {
  background-color: #ff8c42;
  box-shadow: 0 0 0 3px #ff8c42;
}
.timeline-dot-dark {
  background-color: #2d2d2d;
  box-shadow: 0 0 0 3px #2d2d2d;
}
.timeline-line {
  width: 3px;
  height: 80px;
  background: linear-gradient(to bottom, #ff8c42 0%, transparent 100%);
  margin-top: 6px;
}

/* ── Blog Cards ── */
.blog-card {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}
.blog-card .btn-circle { bottom: 16px; right: 16px; }
.blog-img {
  height: 250px;
  object-fit: cover;
  width: 100%;
}
.blog-badge {
  background-color: #f0f0f0;
  color: #2d2d2d;
}

/* ── Footer ── */
.footer-logo {
  width: 44px;
  height: 44px;
  background-color: #ff8c42;
  color: #2d2d2d;
}
.cta-heading   { font-size: 2.5rem; }
.footer-bio    { line-height: 1.7; }
.footer-hr     { border-color: rgba(255, 255, 255, 0.1) !important; }
.footer-section-title { color: #ff8c42; }
.social-link { transition: color 0.2s; }
.social-link:hover { color: #ff8c42 !important; }
.footer-nav-link { transition: color 0.2s; }
.footer-nav-link:hover { color: #ff8c42 !important; }
.newsletter-input {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border: none;
}
.newsletter-input::placeholder { color: rgba(255, 255, 255, 0.5); }

/* ── Project Cards ── */
.project-card {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}
.project-card .btn-circle { bottom: 16px; right: 16px; }
.project-img {
  height: 220px;
  object-fit: cover;
  width: 100%;
}

/* ── Detail pages (blog-detail / project-detail) ── */
.detail-wrap { max-width: 820px; }
.detail-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* ── Responsive: tablet (md: 768–991px) ── */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-avatar {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    padding-top: 0;
    align-items: center;
    overflow: hidden;
  }
  .hero-avatar img {
    width: 90%;
    object-fit: cover;
    object-position: center top;
  }
  .section-heading { font-size: 2rem; }
  .squiggle-headline { display: none; }
  .years-count { font-size: 2rem; }
}

/* ── Responsive: mobile (sm/xs: ≤ 767px, down to 345px) ── */
@media (max-width: 767.98px) {
  /* Hero */
  .hero-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding-top: 0;
    align-items: center;
    overflow: hidden;
  }
  .hero-avatar img {
    width: 115%;
    object-fit: cover;
    object-position: center top;
  }
  .squiggle-headline { display: none; }
  .squiggle-top { display: none; }
  .years-count { font-size: 1.8rem; }

  /* Section headings */
  .section-heading { font-size: 1.5rem; }
  .cta-heading { font-size: 1.8rem; }

  /* Work experience timeline — dashed line, smaller dot, orange role */
  .timeline-line {
    min-height: 60px;
    background: repeating-linear-gradient(
      to bottom,
      #ff8c42 0px, #ff8c42 4px,
      transparent 4px, transparent 9px
    );
  }
  .timeline-dot {
    width: 14px;
    height: 14px;
    border-width: 2px;
  }
  .timeline-dot-orange {
    background-color: #ffffff;
    border-color: #ff8c42;
    box-shadow: none;
  }
  .timeline-dot-dark {
    background-color: #ffffff;
    border-color: #2d2d2d;
    box-shadow: none;
  }
  .work-role { color: #ff8c42 !important; }

  /* Cards: full width stacking */
  .blog-img  { height: 180px; }
  .about-img { height: 160px; }
}

/* ── Extra small (≤ 399px) ── */
@media (max-width: 399.98px) {
  .section-heading { font-size: 1.25rem; }
  .hero-avatar {
    width: 100%;
    height: 100%;
  }
  .nav-pill-wrap { border-radius: 0.75rem !important; }
}

/* ── CKEditor rendered content ── */
.ck-content { line-height: 1.85; color: #333; }
.ck-content h1,
.ck-content h2,
.ck-content h3 { font-weight: 700; margin-top: 1.6rem; margin-bottom: 0.6rem; color: #2d2d2d; }
.ck-content p   { margin-bottom: 1rem; }
.ck-content img { max-width: 100%; border-radius: 8px; margin: 1rem 0; }
.ck-content blockquote {
  border-left: 4px solid #ff8c42;
  padding-left: 1rem;
  color: #666;
  margin: 1rem 0;
  font-style: italic;
}
.ck-content ul,
.ck-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.ck-content li { margin-bottom: 0.3rem; }
.ck-content pre {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.9rem;
}
.ck-content code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.ck-content a { color: #ff8c42; }
.ck-content table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.ck-content table td,
.ck-content table th { border: 1px solid #dee2e6; padding: 8px 12px; }
.ck-content table th { background: #f8f9fa; font-weight: 600; }