/* ==========================================================================
   HOMEPAGE REDESIGN - EXTENDED STYLES
   ========================================================================== */

/* These styles extend the global styles.css without breaking existing pages */

/* ==========================================================================
   QUARTER PANEL LAYOUT (2x2 Grid)
   ========================================================================== */

.homepage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 30px;
  padding: 30px 40px;
  background-color: #ffffff;
  max-width: 1100px;
  margin: 0 auto;
}

.quarter-panel {

  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  min-height: 500px;
}

/* Top-left: Case Studies */
.quarter-panel.case-studies {
  background-color: #13204F;
  color: #ffffff;
  grid-column: 1;
  grid-row: 1;
}

/* Top-right: Skills */
.quarter-panel.skills {
  background-color: #E28461;
  color: #ffffff;
  grid-column: 2;
  grid-row: 1;
  margin: 0px 0 0px;
}

/* Bottom-left: Tools */
.quarter-panel.tools {
  background-color: #E28461;
  color: #ffffff;
  grid-column: 1;
  grid-row: 2;
}

/* Bottom-right: Articles */
.quarter-panel.articles {
  background-color: #13204F;
  color: #ffffff;
  grid-column: 2;
  grid-row: 2;
}

/* ==========================================================================
   QUARTER PANEL HEADER
   ========================================================================== */

.quarter-panel h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 30px 0;
  text-align: left;
  color: inherit;
}

/* ==========================================================================
   SKILLS PANEL - PERCENTAGE SCALES
   ========================================================================== */

.skills-list {
  width: 100%;
  max-width: 400px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  text-align: left;
}

.skill-label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: inherit;
}

.skill-bar-container {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-bar {
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  transition: width 0.6s ease;
  position: relative;
}

.skill-percentage {
  font-size: 0.85rem;
  font-weight: 600;
  color: inherit;
  margin-top: 4px;
  text-align: right;
}

/* ==========================================================================
   TOOLS PANEL - DOUGHNUT GRID
   ========================================================================== */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 450px;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tool-chart {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(
    rgba(255, 255, 255, 0.9) calc(var(--percentage) * 1%),
    rgba(255, 255, 255, 0.2) 0
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tool-chart::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 50px;
  background-color: #E28461;
  border-radius: 50%;
}

.tool-chart.tools-panel .tool-chart::after {
  background-color: #E28461;
}

.tool-name {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: inherit;
}

/* ==========================================================================
   CASE STUDIES & ARTICLES TOUTS
   ========================================================================== */

.tout-container {
  width: 100%;
  max-width: 350px;
}

.tout-header {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: inherit;
}

.tout-content {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.95);
}

.tout-metric {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: inherit;
}

.tout-cta {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  transition: border-color 0.3s ease;
}

.tout-cta:hover {
  border-bottom-color: rgba(255, 255, 255, 1);
}

/* ==========================================================================
   ABOUT SECTION - CAROUSEL
   ========================================================================== */

.about-section {
  width: 100vw;
  background-color: #1A3A52;
  color: #ffffff;
  padding: 80px 40px;
  text-align: center;
}

.about-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 40px 0;
}

.carousel-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.carousel-container {
  overflow: hidden;
  position: relative;
  border-radius: 8px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  padding: 60px 40px;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.carousel-slide-content {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.95);
}

.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.carousel-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-arrow:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 1);
}

.carousel-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dot.active {
  background-color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   PREVIOUS EMPLOYERS PANEL (EXTENDED)
   ========================================================================== */

.panel-logos {
  background-color: #D4B5A0;
  width: 100vw;
  padding: 40px 40px;
}

.panel-logos h2 {
  color: #333333;
  margin-bottom: 20px;
}

.logo-grid {
  gap: 20px;
}

.logo-grid img {
  width: 100px;
  height: ;
  filter: brightness(0.95);
  transition: filter 0.3s ease;
}

.logo-grid img:hover {
  filter: brightness(1.1);
}

/* ==========================================================================
   RESPONSIVE - TABLET & MOBILE
   ========================================================================== */

@media (max-width: 1024px) {
  .quarter-panel {
    padding: 50px 30px;
  }

  .quarter-panel h2 {
    font-size: 2rem;
  }

  .tools-grid {
    gap: 25px;
  }

  .tool-chart {
    width: 70px;
    height: 70px;
  }

  .tool-chart::after {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 768px) {
  .homepage-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
  }
/* Mobile: stack quarter panels with NO gaps between modules */
@media (max-width: 768px) {
  .homepage-grid {
    gap: 0;
    /* removes space BETWEEN stacked modules */
    padding: 0;
    /* removes white frame AROUND the stack */
    max-width: none;
    /* let it span full width */
    margin: 0;
    /* ensure no container margin */
  }

  .quarter-panel {
    border-radius: 0;
    /* optional: prevents “rounded corner seams” between panels */
  }
}
  .quarter-panel {
    grid-column: 1 !important;
    grid-row: auto !important;
    padding: 50px 20px;
    min-height: 100vh;
  }

  .quarter-panel h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .skills-list,
  .tout-container,
  .tools-grid {
    width: 100%;
    max-width: 100%;
  }

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

  .tool-chart {
    width: 65px;
    height: 65px;
  }

  .tool-chart::after {
    width: 38px;
    height: 38px;
  }

  .about-section {
    padding: 60px 20px;
  }

  .about-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .carousel-slide {
    padding: 40px 20px;
  }

  .carousel-slide-content {
    font-size: 1rem;
  }

  .panel-logos {
    padding: 60px 20px;
  }

  .logo-grid {
    gap: 15px;
  }

  .logo-grid img {
    width: 70px;
  }
}
/* Mobile order: Case Studies (1), Skills (2), Articles (3), Tools (4) */
.quarter-panel.case-studies {
  order: 1;
}

.quarter-panel.skills {
  order: 2;
}

.quarter-panel.articles {
  order: 3;
}

.quarter-panel.tools {
  order: 4;
}
@media (max-width: 480px) {
  .quarter-panel {
    padding: 40px 15px;
    min-height: 80vh;
  }

  .quarter-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .skill-item {
    margin-bottom: 18px;
  }

  .skill-label {
    font-size: 0.9rem;
  }

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

  .tool-chart {
    width: 60px;
    height: 60px;
  }

  .tool-chart::after {
    width: 35px;
    height: 35px;
  }

  .tool-name {
    font-size: 0.8rem;
  }

  .tout-metric {
    font-size: 2rem;
  }

  .carousel-arrow {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .carousel-nav {
    gap: 15px;
  }
}

/* ==========================================================================
   HOMEPAGE BODY CLASS - DISABLE SCROLL-SNAP
   ========================================================================== */

body.homepage {
  scroll-snap-type: none !important;
}

body.homepage .panel,
body.homepage .quarter-panel,
body.homepage .hero-module,
body.homepage .about-section {
  scroll-snap-align: none !important;
}

/* ==========================================================================
   HERO MODULE (FULL VIEWPORT)
   ========================================================================== */

.hero-module {
  width: 100vw;
  height: 60vh;
  background-image: url('/images/hp-hero-image.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #ffffff;
  max-width: 600px;
  padding: 40px;
}

.hero-headline {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 30px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-cta {
  display: inline-block;
  background-color: #ffffff;
  color: #333333;
  padding: 14px 32px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.hero-cta:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .hero-content {
    padding: 20px;
  }

  .hero-cta {
    padding: 12px 24px;
    font-size: 0.85rem;
  }
}
/* ==========================================================================
   HOMEPAGE: MOBILE STACK (NO GAPS) + CENTER/OVERRIDE TOUT CONTENT
   ========================================================================== */

/* 1) Mobile: remove the spacing between stacked quarter panels */
@media (max-width: 768px) {
  body.homepage .homepage-grid {
    gap: 0;
    padding: 0;
  }

  body.homepage .quarter-panel {
    border-radius: 0;
  }
}

/* 2) Case Studies + Articles: header top-left, injected content centered */
body.homepage .quarter-panel.case-studies,
body.homepage .quarter-panel.articles {
  justify-content: flex-start;
  /* stop centering the H2 + content together */
  padding-top: 44px;
  /* give the header breathing room */
  padding-bottom: 44px;
}

/* Make the panel header align to the left edge of the panel content */
body.homepage .quarter-panel.case-studies>h2,
body.homepage .quarter-panel.articles>h2 {
  width: 100%;
  align-self: flex-start;
  margin-bottom: 18px;
}

/* Center the injected tout block in the remaining panel space */
body.homepage .quarter-panel.case-studies .tout-container,
body.homepage .quarter-panel.articles .tout-container {
  flex: 1;
  width: 100%;
  max-width: 520px;
  /* override your base max-width: 350px */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* vertical centering */
  align-items: center;
  /* horizontal centering */
  text-align: center;
}

/* Hard override: force injected snippet typography to your desired look */
body.homepage .quarter-panel.case-studies .tout-container,
body.homepage .quarter-panel.case-studies .tout-container *,
body.homepage .quarter-panel.articles .tout-container,
body.homepage .quarter-panel.articles .tout-container * {
  color: #ffffff !important;
}

/* Scale up injected tout typography */
body.homepage .quarter-panel.case-studies .tout-container .tout-header,
body.homepage .quarter-panel.articles .tout-container .tout-header {
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  margin-bottom: 18px !important;
}

body.homepage .quarter-panel.case-studies .tout-container .tout-metric,
body.homepage .quarter-panel.articles .tout-container .tout-metric {
  font-size: 3.1rem !important;
  font-weight: 800 !important;
  margin: 10px 0 18px !important;
}

body.homepage .quarter-panel.case-studies .tout-container .tout-content,
body.homepage .quarter-panel.articles .tout-container .tout-content {
  font-size: 1.2rem !important;
  line-height: 1.6 !important;
  margin-bottom: 22px !important;
}

body.homepage .quarter-panel.case-studies .tout-container .tout-cta,
body.homepage .quarter-panel.articles .tout-container .tout-cta {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  border-bottom-color: rgba(255, 255, 255, 0.75) !important;
}
/* Mobile: make touts content-driven (no forced height) */
@media (max-width: 768px) {

  /* Let the panel height be driven by content */
  body.homepage .quarter-panel {
    min-height: 0;
    /* overrides min-height: 520px */
    height: auto;
  }

  /* Let the tout block height be driven by its content */
  body.homepage .quarter-panel.case-studies .tout-container,
  body.homepage .quarter-panel.articles .tout-container {
    flex: 0 0 auto;
    /* overrides flex: 1 */
    height: auto;
  }
}
