/* =========================================================
   GLOBAL & BASE
   ========================================================= */
:root {
  --section-gap: 2.5rem;
  --content-max: 640px;
}

html {
  scroll-behavior: smooth;
}

#wrapper.divided > * + * {
  margin-top: var(--section-gap);
}
#wrapper.divided {
  padding-top: 0;
}

/* =========================================================
   HEADER & INTRO
   ========================================================= */
.page-header {
  background: #f8f8fb !important;
  color: #1f1f2e !important;
  padding: 5rem 1.5rem 4rem !important; 
  border-bottom: 1px solid #e8e8ef;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-header h1,
.page-header p,
.page-header .intro {
  text-align: center !important;
}

.page-header h1 {
  font-size: 3rem !important;
  margin: 0 0 0.5rem !important;
  font-weight: 700 !important;
  color: #1f1f2e !important;
}

.page-header .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem !important;
  color: #4c8bf5 !important;
  font-weight: 700 !important;
  margin: 0 0 1rem !important;
}

.page-header .subtitle {
  font-size: 1.15rem !important;
  color: #555 !important;
  max-width: 600px;
  margin: 0 auto 2rem !important;
  line-height: 1.6;
}

.page-header .intro {
  max-width: 680px;
  margin: 0 auto 2.5rem !important;
  font-size: 1.05rem !important;
  line-height: 1.8 !important;
  color: #444 !important;
  display: block; 
}

/* ===== Navigation Buttons ===== */
.page-header nav,
.page-header .header-nav {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-header .header-nav .button {
  background: #ffffff !important;
  color: #1f1f2e !important;
  border: 1px solid #d0d0d5 !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04) !important;
  padding: 0 1.5rem !important;
  height: 2.5rem !important;
  line-height: 2.5rem !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  font-weight: 600 !important;
  transition: all 0.2s ease;
}

.page-header .header-nav .button:hover {
  background: #f0f4ff !important;
  border-color: #4c8bf5 !important;
  color: #4c8bf5 !important;
}

/* =========================================================
   STATUS UPDATE BADGE
   ========================================================= */
.status-update {
  display: table !important;
  margin: 1rem auto 1.5rem !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #2e7d32 !important; 
  background-color: #e8f5e9 !important; 
  padding: 0.4rem 1.25rem !important;
  border-radius: 999px !important;
  letter-spacing: 0.02em !important;
  text-align: center !important;
}

/* =========================================================
   SECTION HEADINGS & SPOTLIGHTS
   ========================================================= */
.section-heading {
  padding: 3rem 1.5rem 0.5rem;
  max-width: 680px;
  margin: 0 auto;
}
.section-heading h2 {
  margin-bottom: 0.4rem;
}

.spotlight {
  background: #fff;
  border: 1px solid #e8e8ef;
  border-radius: 10px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem; /* Slightly increased padding for a better frame */
  display: flex;   /* Force flex layout */
  gap: 4rem;       /* <--- THIS ADDS THE SPACE BETWEEN TEXT AND IMAGE */
  align-items: center; /* Vertically centers the text and image */
}

/* Mobile adjustment so they stack cleanly */
@media (max-width: 850px) {
  .spotlight {
    flex-direction: column-reverse; /* Image on top, text below */
    gap: 1.5rem; /* Smaller gap on mobile */
    padding: 1.5rem;
  }
}

.spotlight > .content {
  max-width: var(--content-max);
}

.spotlight > .content p {
  margin: 0 0 1.1rem;
  line-height: 1.65;
}

.spotlight > .content h3 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  line-height: 1.25;
}

.spotlight.style1 > .content {
  padding: 1.5rem 0;
}

/* Tech Tags */
.meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.meta .tag {
  display: inline-block;
  background: #f2f2f7;
  border-radius: 999px;
  padding: 0.3em 0.8em;
  font-weight: 600;
  color: #555;
}
.meta .role {
  margin-left: 0.5rem;
  color: #aaa;
}

/* Image column */
.spotlight > .image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.spotlight > .image img {
  box-shadow: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.spotlight > .image:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   BUTTONS & ACTIONS
   ========================================================= */
.spotlight .actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.spotlight .actions li {
  margin: 0 !important;
  padding: 0 !important;
}

.button.alt {
  background: transparent !important;
  box-shadow: inset 0 0 0 2px #d0d0d5 !important;
  color: #555 !important;
}
.button.alt:hover {
  box-shadow: inset 0 0 0 2px #4c8bf5 !important;
  color: #4c8bf5 !important;
}

/* =========================================================
   CASE STUDY ACCORDION
   ========================================================= */
.case-study {
  display: none !important; 
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #f8f8fb;
  border-left: 3px solid #4c8bf5;
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}
.case-study.is-open {
  display: block !important; 
}
.case-study p {
  margin: 0 0 0.75rem 0;
}
.case-study p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   SKILLS SECTION
   ========================================================= */
.skills-container {
  max-width: 1100px;
  margin: 0 auto;
}

.skill-category {
  margin-bottom: 3.5rem;
}

.category-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f1f2e;
  margin-bottom: 1.5rem;
  text-align: center; 
  letter-spacing: 0.02em;
}

.title-icon {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  flex-shrink: 0;
  color: #4c8bf5 !important;
}

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
  gap: 1.5rem; 
}

.skill-card {
  background: #fff;
  border: 1px solid #e8e8ef;
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  flex: 0 0 280px;
  max-width: 100%;
}

.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  border-color: #d0d0d5;
}

.skill-card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f0f4ff; 
  color: #4c8bf5;      
  margin-bottom: 1.25rem;
}

.skill-card .icon svg {
  width: 24px;
  height: 24px;
}

.skill-card h3 {
  font-size: 1.05rem;
  color: #111827; /* Darker, richer text */
  margin-bottom: 0.5rem;
  line-height: 1.3;
  font-weight: 700; /* Added to make them stand out even more */
}

.skill-card p {
  font-size: 0.85rem;
  color: #444; 
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Certifications (4.2) */
.skill-card .cert {
  margin-top: auto;
  font-size: 0.75rem; 
  line-height: 1.6;
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f5; 
}

.skill-card .cert a {
  font-weight: 600;
  color: #4c8bf5;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.skill-card .cert a:hover {
  text-decoration: underline;
}

.skill-card .cert a.org {
  color: #555; 
  font-weight: 500;
  margin-bottom: 0;
}
.skill-card .cert a.org:hover {
  color: #1f1f2e;
}

/* Skills Without Certs (4.3) */
.skills-extra {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  margin-top: 3rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px dashed #d0d0d5;
  border-radius: 10px;
}

/* =========================================================
   BACK TO TOP BUTTON
   ========================================================= */
.back-to-top-wrapper {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 2rem;
}
.back-to-top {
  border-radius: 999px !important; 
  padding: 0.6rem 1.5rem !important;
}

/* =========================================================
   MOBILE ADJUSTMENTS
   ========================================================= */
@media (max-width: 600px) {
  .skill-card {
    flex: 1 1 100%; 
    padding: 1.25rem;
  }
}

/* =========================================================
   SKILLS EXTRA (TAGS)
   ========================================================= */
.skills-extra {
  text-align: center;
  margin-top: 3.5rem;
  padding: 2rem;
  background: #fff;
  border: 1px dashed #d0d0d5;
  border-radius: 10px;
}

.skills-extra h3 {
  font-size: 1.1rem;
  color: #1f1f2e;
  margin-bottom: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.extra-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.extra-tags .tag {
  display: inline-block;
  background: #f8f8fb;
  border: 1px solid #e8e8ef;
  border-radius: 999px;
  padding: 0.4em 1em;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  transition: all 0.2s ease;
}

.extra-tags .tag:hover {
  background: #f0f4ff;
  border-color: #4c8bf5;
  color: #4c8bf5;
}

/* =========================================================
   FAQ ACCORDION SECTION
   ========================================================= */
.faq-section {
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
  padding: 4rem 1rem;
  width: 100% !important;
  display: block !important; /* Changed from flex to block to prevent shrinking */
  border-top: 1px solid #e8e8ef;
}

.faq-section * {
  box-sizing: border-box;
}

.faq-section .faq-container {
  max-width: 820px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.faq-section .faq-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-section .faq-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f1f2e;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.faq-section .faq-header p {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.faq-section .accordion {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  width: 100% !important;
}

.faq-section .accordion-item {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  width: 100% !important; /* Forces card to full width */
  max-width: 100% !important;
}

.faq-section .accordion-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.faq-section .accordion-item.active {
  border-color: #94a3b8;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.faq-section .accordion-trigger {
  width: 100% !important;
  box-sizing: border-box !important;
  background: transparent !important;
  padding: 1.25rem 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  cursor: pointer;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  height: auto !important;
  text-align: left;
  
  font-family: inherit !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: #1f1f2e !important;
  line-height: 1.4 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.faq-section .accordion-trigger:hover {
  background: #f8fafc !important;
}

.faq-section .accordion-trigger:focus-visible {
  outline: 2px solid #4c8bf5;
  outline-offset: -2px;
}

/* Ensures text takes up all available space, pushing the icon to the right */
.faq-section .faq-trigger-text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  display: block !important;
}

.faq-section .faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.2s ease;
  color: #475569;
}

.faq-section .accordion-item.active .faq-icon {
  transform: rotate(180deg);
  background: #e2e8f0;
  color: #1f1f2e;
}

.faq-section .faq-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.faq-section .accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-section .accordion-item.active .accordion-panel {
  max-height: 2000px;
  padding: 0 1.5rem 1.25rem;
}

.faq-section .accordion-panel p {
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0 0 0.75rem 0;
}

.faq-section .accordion-panel p:last-child {
  margin-bottom: 0;
}

.faq-section .accordion-panel strong {
  color: #1f1f2e;
  font-weight: 600;
}

.faq-section .accordion-panel ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.5rem;
}

.faq-section .accordion-panel ul li {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  padding-left: 1.1rem;
  position: relative;
}

.faq-section .accordion-panel ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .faq-section { padding: 2.5rem 0.75rem; }
  .faq-section .faq-header h2 { font-size: 1.5rem; }
  .faq-section .faq-header p { font-size: 0.95rem; }
  .faq-section .accordion-trigger { padding: 1rem 1.15rem !important; font-size: 0.98rem !important; }
  .faq-section .accordion-panel { padding: 0 1.15rem; }
  .faq-section .accordion-item.active .accordion-panel { padding: 0 1.15rem 1rem; }
  .faq-section .accordion-panel ul { grid-template-columns: 1fr; }
}
