:root {
  --accent: #5e81ac;
}

/* ====================
   Base + Reset Styles
==================== */
body {
  background: linear-gradient(135deg, #e8ecf4, #f7f9fb);
  color: #212529;
  font-family: 'Inter', sans-serif;
  margin: 0;
  opacity: 0;
  padding: 0;
  transition: opacity 0.5s ease-in;
}

body.loaded {
  opacity: 1;
}

h1, h2, h3, h4, h5, h6 {
  color: #212529;
  font-family: 'Merriweather', serif;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

main {
  margin-bottom: 4rem;
}

/* ====================
   Layout & Sectioning
==================== */
section {
  border-bottom: 1px solid #dee2e6;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.section-title {
  font-size: 2.2rem;    /* a bit larger than h2 inside cards */
  font-weight: 700;
  margin-bottom: 2rem;  /* space before deck */
  text-align: center;   /* optional: center it */
  color: #333;          /* dark gray for softer look */
}


/* ====================
   Navbar Styling
==================== */
.custom-navbar {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
  align-items: center;
  display: flex;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.navbar-nav .nav-item {
  margin: 0 0.6rem;
}

.navbar-nav .nav-link {
    outline: none !important;
    box-shadow: none !important;
}

.nav-link {
  color: #f8f9fa !important;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.85rem 1.5rem;
  position: relative;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link::after {
  background-color: var(--accent);
  content: '';
  display: block;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
}

.nav-link:hover::after {
    transform: scaleX(1); /* expand only on hover */
}

.nav-link:hover,
.nav-link:focus {
  color: var(--accent) !important;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.navbar-nav .nav-item.dropdown .nav-link {
    color: #f8f9fa !important; /* default color */
}

.navbar-nav .nav-item.dropdown .nav-link:hover::after {
    transform: scaleX(1); /* underline on hover only */
}

.navbar-nav .nav-item.dropdown .nav-link:hover {
    color: var(--accent) !important;
}

/* ====================
   Dropdown Menu
==================== */
.dropdown-menu {
  background-color: #212529;
  border: none;
  border-radius: 0.5rem;
  overflow: hidden;
}

.dropdown-item {
  font-family: 'Inter', sans-serif;
  transition: background-color 0.2s ease-in-out;
}

.dropdown-item:hover {
  background-color: rgba(255, 107, 107, 0.1);
  color: var(--accent);
}

/* ====================
   Branding Elements
==================== */
.brand-icon {
  align-items: center;
  background-color: transparent;
  border: 2px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
  display: flex;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  width: 40px;
}

.brand-icon:hover {
  background-color: var(--accent);
  color: #fff;
}

.brand-name {
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-left: 0.5rem;
  transition: letter-spacing 0.3s ease;
}

.brand-name:hover {
  letter-spacing: 1px;
}

/* ====================
   About Section Revamp
==================== */
#about {
  background: linear-gradient(135deg, #ffffff, #f1f3f5);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}

#about h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

#about p {
  color: #495057;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-top: 1rem;
}

#about img {
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

#featured {
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.05);
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/* ====================
   Cards
==================== */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transform: translateY(-5px);
}

.card-body {
  padding-bottom: 1.5rem;
}

.card-title {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ====================
   Button Styling
==================== */
.btn {
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--accent);
  border: none;
  color: white;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--accent);
  color: white;
}

.btn-outline-primary {
  background-color: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ====================
   Timeline
==================== */
.timeline {
  border-left: 2px solid #adb5bd;
  list-style: none;
  padding-left: 1.2rem;
  position: relative;
}

.timeline::before {
  background-color: #adb5bd;
  content: "";
  height: 0;
  left: 0;
  position: absolute;
  top: 0;
  transition: height 1s ease-in-out;
  width: 2px;
}

.timeline.timeline-visible::before {
  height: 100%;
}

.timeline > div {
  font-size: 1rem;
  margin-bottom: 2rem;
  padding-left: 1rem;
  position: relative;
}

/* ====================
   Modern Footer
==================== */
footer.modern-footer {
  background: #1c1f23;
  color: #dee2e6;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

footer .footer-title {
  color: #ffffff;
  font-family: 'Merriweather', serif;
  font-size: 1.3rem;
  font-weight: 600;
}

footer a {
  color: #dee2e6;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent);
}

footer .icon-btn {
  align-items: center;
  border: 2px solid #dee2e6;
  border-radius: 50%;
  color: #dee2e6;
  display: flex;
  font-size: 1.2rem;
  height: 42px;
  justify-content: center;
  transition: all 0.3s ease;
  width: 42px;
}

footer .icon-btn:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.footer-copy {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
}

/* ====================
   Responsive Fixes
==================== */
@media (max-width: 768px) {
  #about {
    text-align: center;
  }

  #about .row {
    flex-direction: column-reverse;
  }

  #about h1 {
    font-size: 2rem;
  }
}

/* ====================
   Image Carousel
==================== */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem; /* slightly smaller so icons fit nicely */

  border: none;
  cursor: pointer;

  /* FIX: force perfect circle size */
  width: 42px;
  height: 42px;
  padding: 0;

  border-radius: 50%;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background 0.3s ease, transform 0.2s ease;

  opacity: 0;
  pointer-events: none;
}

.carousel-container:hover .carousel-btn {
  opacity: 1;
  pointer-events: auto;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.prev-btn,
.next-btn {
  top: 50%;
  transform: translateY(-50%);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.prev-btn:hover,
.next-btn:hover {
  transform: translateY(-50%) scale(1.05);
}

.carousel-container .pause-btn {
  top: auto !important;
  bottom: 10px !important;
  left: 10px !important;
  right: auto !important;
  transform: none !important;
  font-size: 1rem;
}

.pause-btn:hover {
  transform: scale(1.05);
}

.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

.aspect-1-1 {
  aspect-ratio: 1 / 1;
}

.aspect-16-9 {
  aspect-ratio: 16 / 9;
}

.carousel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.carousel-img.active {
  z-index: 1;
}

.carousel-img.wipe {
  z-index: 2;
  animation-duration: 0.8s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes wipe-right {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes wipe-left {
  from { clip-path: inset(0 0 0 100%); }
  to   { clip-path: inset(0 0 0 0); }
}

.wipe-right {
  animation-name: wipe-right;
}

.wipe-left {
  animation-name: wipe-left;
}

.carousel-subcaption{
    min-height:3em;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.fade-out { opacity: 0; }
.fade-in  { opacity: 1; }


/* ====================
   SketchFab
==================== */
.sketchfab-embed-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 40%;
  height: 0;
  overflow: hidden;
}

.sketchfab-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ====================
   Code Container
==================== */
.code-container {
  max-height: 200px;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.code-container.expanded {
  max-height: 1030px;
}

/* ====================
   PDF overlay
==================== */
.pdf-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;  
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1050;
}

.pdf-overlay.show {
  opacity: 1;
  visibility: visible;
}

.pdf-overlay-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90vw;
  height: 90vh;
}

.pdf-container {
  position: fixed;
  height: 90vh;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
      top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
      left 0.5s cubic-bezier(0.4, 0, 0.2, 1),
      width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
      height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
      border-radius 0.5s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.4s ease,
      opacity 0.4s ease;
  z-index: 1051;
}

.pdf-container.closing {
  transform: scale(0.85);
  opacity: 0;
}

.pdf-container iframe {
  flex-grow: 1;
  width: 100%;
  border: none;
}

.pdf-container .btn-close-pdf {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(220, 53, 69, 0.9);
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
}

.pdf-container .btn-close-pdf:hover {
  background-color: rgba(220, 53, 69, 1);
}

.btn-small-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-small-group > .btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    height: 32px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    flex: 1 1 45%;
    min-width: unset;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
}

.btn-small-group > .btn i {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.btn-small-group > .btn.flex-grow-1 {
    flex-grow: 0;
    min-width: 130px;
}

@media (max-width: 576px) {
    .btn-small-group > .btn {
        flex: 1 1 100%;
    }
}

/* ====================
   Diagram on Home Page
==================== */
.diagram-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 600;
  user-select: none;
  font-size: 0.85rem;
}

.diagram-horizontal {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  width: 100%;
  max-width: 450px;
}

.sub-node-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 140px;
}

.node {
  background: #e1f5fe;
  border: 2px solid #0288d1;
  border-radius: 20px;
  padding: 12px 25px;
  min-width: 110px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(2, 136, 209, 0.2);
  cursor: default;
  transition: background 0.3s ease;
}

.node-sm {
  background: #e3f2fd;
  border: 2px solid #1976d2;
  border-radius: 15px;
  padding: 6px 12px;
  width: 140px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(25, 118, 210, 0.3);
  cursor: default;
}

.connector-vertical, .connector-diagonal {
  overflow: visible;
}

.connector-vertical line, .connector-diagonal line {
  stroke-linecap: round;
  stroke: #333;
  stroke-width: 2;
}

.connector-vertical polygon, .connector-diagonal polygon {
  fill: #333;
}

/* ====================
   Image Block
==================== */
.image-block {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.3rem;
  text-align: center;
}

.image-block img {
  max-height: 300px;
  max-width: 300px;
  object-fit: cover;
}

.image-block p {
  max-width: 80%;
  flex-shrink: 0;
}

/* ====================
   Week Deck of Cards
==================== */
.week-deck-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.week-deck {
  position: relative;
  flex: 1 1 600px;
  min-width: 300px;
  perspective: 1200px;
  overflow: visible;
  height: 600px; /* temporary initial space */
  transition: height 0.5s ease;
  max-width: 100%;
}

.week-deck.loading .week-card {
  visibility: hidden;
}

.week-deck.ready .week-card {
  visibility: visible;
}

.week-card {
  position: absolute;
  width: 100%;
  height: auto;        /* adapt to content */
  min-height: auto;    /* ensures tall enough for inner flex */
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 0.7s ease, opacity 0.7s ease, box-shadow 0.7s ease;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(0 round 1rem);

  display: flex;
  flex-direction: column; /* so we can push progress down */
  box-sizing: border-box;
}

/* Active card */
.week-card.active {
  opacity: 1;
  z-index: 10;
  transform: translateX(0) scale(1) rotateY(0deg) translateZ(0);
  pointer-events: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2); /* elevated shadow for active card */
}

/* Cards before active slide slightly left */
.week-card.before {
  opacity: 0;
  z-index: 0;
  transform: translateX(-60%) scale(0.85) rotateY(-30deg) translateZ(-80px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1); /* subtle shadow */
}

/* Cards after active slide slightly right */
.week-card.after {
  opacity: 0;
  z-index: 0;
  transform: translateX(60%) scale(0.85) rotateY(30deg) translateZ(-80px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.deck-controls {
  display: flex;
  flex-direction: column;   /* stack vertically */
  align-items: center;      /* center align items */
  gap: 1rem;
  position: sticky;
  top: 2rem;
  background: rgba(255, 255, 255, 0.9); 
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  flex: 0 0 150px;
}

.deck-indicators-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.indicator-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
}

.deck-indicators {
  display: flex;
  flex-direction: column;   /* stack spans vertically */
  gap: 0.5rem;
  align-items: center;
}

.deck-indicators span {
  min-width: 60px;
  height: 34px;
  padding: 0 0.6rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.deck-indicators span:hover {
  transform: scale(1.05);
}

.deck-indicators span.active {
  background: var(--accent, #ff6b6b);
  color: #fff;
}

.week-prev-btn,
.week-next-btn {
  background: var(--accent, #ff6b6b);
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  cursor: pointer;
  font-weight: bold;
  min-width: 80px; /* lock size so it doesn’t shrink */
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Disabled state: fade + shrink, but keep space */
.week-prev-btn[disabled],
.week-next-btn[disabled] {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.week-card-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.week-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.week-description {
    font-size: 1rem;
    line-height: 1.5;
    flex: 0 0 auto;
}

.week-progress {
    flex: 0 0 auto;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent, #ff6b6b);
    width: 0; /* adjust per week */
    transition: width 0.5s ease;
}

@media (max-width: 992px) {
  .week-deck-wrapper {
    flex-direction: column;
  }

  .week-deck {
    width: 100%;
    min-width: 0;   /* remove 300px restriction */
    flex: none;     /* stop flex behavior so it sizes like a block */
  }
  
  .deck-controls {
    position: static; /* no sticky */
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
  }

  .deck-indicators-wrapper {
    width: 100%; /* span full container */
  }

  .deck-indicators {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
  }

  .deck-indicators span {
    flex: 1 1 auto;       /* allow buttons to grow */
    text-align: center;
  }
}

/* ======================================================
   AURA SPLIT LAYOUT
====================================================== */

.aura-split {
    display: flex;
    min-height: 85vh;
    gap: 40px;
    padding: 60px;
    background: #f8fafc;
    align-items: stretch;
}

.aura-hero-side {
    flex: 0.9;
    display: flex;
    justify-content: center;
}

.aura-problem-side {
    flex: 1.4;
    display: flex;
    justify-content: center;
}

.aura-hero-side,
.aura-problem-side {
    align-items: flex-start;
}

/* sticky behavior for left panel */

.aura-hero-side .aura-panel {
    position: sticky;
    top: 80px; /* distance from top while scrolling */
}

/* ======================================================
   FLOATING PANEL (USED BY BOTH SIDES)
====================================================== */

.aura-panel {
    width: 100%;
    max-width: 620px;
    padding: 50px;
    border-radius: 24px;

    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(14px);

    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 25px 70px rgba(0,0,0,0.06);

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* subtle floating interaction */

.aura-panel:hover {
    transform: translateY(-6px);
    box-shadow: 0 35px 90px rgba(0,0,0,0.08);
}

/* center hero panel content */

.aura-panel-center {
    text-align: center;
}


/* ======================================================
   AURA DEVICE
====================================================== */

.aura-device-wrapper {
    text-align: center;
    margin-bottom: 35px;
}

.aura-device {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto;
}

/* glowing core */

.aura-core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #60a5fa, #2563eb);
    box-shadow:
        0 0 60px rgba(37,99,235,0.35),
        0 0 120px rgba(37,99,235,0.15);
    animation: pulse 3s infinite ease-in-out;
}

/* signal rings */

.signal-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(37,99,235,0.25);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring1 { width: 220px; height: 220px; animation: wave 3s infinite; }
.ring2 { width: 260px; height: 260px; animation: wave 3s infinite 1s; }
.ring3 { width: 300px; height: 300px; animation: wave 3s infinite 2s; }


/* ======================================================
   HERO TEXT
====================================================== */

.aura-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.aura-tagline {
    color: #64748b;
    font-size: 1.1rem;
    margin: 18px 0 28px;
}

.aura-capabilities {
    font-weight: 600;
    color: #2563eb;
}

.capability { display: none; }
.capability.active { display: block; }


/* ======================================================
   STATUS
====================================================== */

.aura-status {
    margin-top: 18px;
    font-weight: 500;
    color: #334155;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
    animation: blink 1.5s infinite;
}


/* ======================================================
   PROBLEM SECTION
====================================================== */

.problem-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 22px;
}

.problem-intro {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.problem-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.problem-item {
    padding-left: 20px;
    border-left: 2px solid #e2e8f0;
    transition: border-color 0.2s ease;
}

.problem-item:hover {
    border-color: #2563eb;
}

.problem-item h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.problem-item p {
    margin: 6px 0 0;
    color: #64748b;
    line-height: 1.6;
}

.problem-impact {
    margin-top: 45px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    color: #1e293b;
    line-height: 1.7;
}


/* ======================================================
   ANIMATIONS
====================================================== */

@keyframes pulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes wave {
    0% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); }
}

@keyframes blink {
    0%,100% { opacity: 1; }
    50% { opacity: 0.4; }
}


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 900px) {
    .aura-split {
        flex-direction: column;
        padding: 40px 20px;
    }
}

/* ======================================================
AURA CAPABILITIES SECTION
====================================================== */

.aura-capabilities-section{
  padding:120px 60px;
}

/* ======================================================
SPLIT LAYOUT
====================================================== */

.capabilities-split{
  display:flex;
  gap:80px;
  align-items:center;
}

.capabilities-left{
  flex:.8;
  max-width:420px;
}

.capabilities-left h2{
  font-size:2.8rem;
  font-weight:700;
}

.capabilities-left p{
  margin-top:20px;
  color:#64748b;
}

.interaction-hint{
  margin-top:20px;
  color:#64748b;
  font-size:.9rem;
}

/* ======================================================
STAGE
====================================================== */

.capabilities-stage{
  flex:1.4;
  position:relative;
  height:clamp(420px, 55vw, 520px);
}

/* ======================================================
GRID
====================================================== */

.capabilities-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    grid-template-rows:repeat(2, minmax(0, 1fr)); /* 🔥 prevents growth */
    gap:25px;
    height:100%;
}

/* ======================================================
CARDS
====================================================== */

.feature-card{
  position:relative;
  padding:35px;
  border-radius:22px;
  background:rgba(255,255,255,.75);
  backdrop-filter:blur(14px);
  border:1px solid rgba(0,0,0,.04);
  box-shadow:0 25px 70px rgba(0,0,0,.06);
  cursor:pointer;
  transition:transform .3s ease, box-shadow .3s ease;
  height:100%;
  min-height:0; /* 🔥 prevents content from stretching grid */
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.feature-card.placeholder{
  visibility:hidden;
}

.feature-card-clone{
  pointer-events:auto;
  box-shadow:0 60px 140px rgba(0,0,0,.14);
  box-sizing:border-box;
  overflow:hidden;
}

.feature-card:hover:not(.placeholder):not(.feature-card-clone){
  transform:translateY(-8px);
  box-shadow:0 40px 90px rgba(0,0,0,.08);
}

/* ======================================================
HEADER
====================================================== */

.feature-header{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:10px;
}

/* ======================================================
TEXT HIERARCHY
====================================================== */

.feature-preview{
  color:#64748b;
  margin-bottom:10px;
  flex-shrink: 0;
}

.feature-description{
  color:#475569;
  margin-bottom:18px;
  line-height:1.6;
}

.feature-section{
  margin-top:16px;
}

.feature-section h4{
  font-size:.9rem;
  font-weight:600;
  margin-bottom:8px;
  color:#0f172a;
}

.feature-section ul{
  padding-left:18px;
  color:#475569;
}

.feature-section li{
  margin-bottom:6px;
}

/* ======================================================
DETAILS — controlled by JS
====================================================== */

.feature-details{
  max-height:0;
  opacity:0;
  overflow:hidden;
  transition:all .45s ease;
}

.feature-card-clone.content-visible .feature-details{
    max-height:100%;
    opacity:1;
    overflow-y:auto;   /* 🔥 KEY FIX */
    margin-top:20px;
    padding-right:8px;
}

/* ======================================================
MINIMIZE
====================================================== */

.card-minimize{
  position:absolute;
  top:18px;
  right:18px;
  width:34px;
  height:34px;
  border-radius:10px;
  border:none;
  background:#f1f5f9;
  font-size:18px;
  cursor:pointer;
  display:none;
}

.feature-card-clone.content-visible .card-minimize{
  display:block;
}

/* ======================================================
SENSOR BARS
====================================================== */

.sensor{margin-bottom:14px;}

.sensor span{
  font-size:.9rem;
  color:#64748b;
}

.bar{
  height:8px;
  border-radius:10px;
  background:#e2e8f0;
  margin-top:6px;
  overflow:hidden;
}

.fill{
  height:100%;
  background:linear-gradient(90deg,#60a5fa,#2563eb);
  animation:sensorPulse 3s infinite ease-in-out;
}

@keyframes sensorPulse{
  0%,100%{width:40%;}
  50%{width:85%;}
}

/* ======================================================
TREND CHART
====================================================== */

.trend-chart{
  display:flex;
  gap:6px;
  align-items:flex-end;
  height:60px;
  margin-top:10px;
}

.trend-chart span{
  width:12px;
  background:#2563eb;
  border-radius:6px;
  animation:grow 2s infinite alternate;
}

.trend-chart span:nth-child(1){height:30%;}
.trend-chart span:nth-child(2){height:60%;}
.trend-chart span:nth-child(3){height:40%;}
.trend-chart span:nth-child(4){height:80%;}
.trend-chart span:nth-child(5){height:55%;}

.trend-label{
  font-size:.9rem;
  color:#64748b;
  margin-top:8px;
}

@keyframes grow{
  from{transform:scaleY(.6);}
  to{transform:scaleY(1);}
}

/* ======================================================
MOBILE
====================================================== */

@media(max-width:900px){

  .capabilities-split{
    flex-direction:column;
    gap:50px;
  }

  .capabilities-stage{height:auto;}

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

/* ================================
ARCHITECTURE SECTION
================================ */

.architecture-section{
  padding:140px 40px;
  text-align:center;
}

.architecture-header{
  max-width:700px;
  margin:0 auto 70px auto;
}

.architecture-header h2{
  font-size:3rem;
  font-weight:700;
}

.architecture-header p{
  color:#64748b;
  margin-top:15px;
}

/* ================================
ROOT VARIABLES
================================ */
:root{
  --core-size:120px;
  --node-size:100px;
  --orbit-radius:140px;
  --rotation-speed:20s;
}

/* ================================
CENTERING INSIDE col-md-6
================================ */
.architecture-container{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
}

/* ================================
MAIN CIRCLE
================================ */
.architecture-circle{
  position:relative;
  width:400px;
  height:400px;
  display:flex;
  justify-content:center;
  align-items:center;
}

/* ================================
CORE
================================ */
.circle-core{
  position:absolute;
  width:var(--core-size);
  height:var(--core-size);
  border-radius:50%;

  background:rgba(255,255,255,.95);
  display:flex;
  justify-content:center;
  align-items:center;

  font-weight:600;
  color:#1e293b;

  box-shadow:0 20px 60px rgba(0,0,0,.1);
  z-index:10;
}

/* ================================
ROTATING ORBIT RING
================================ */
.orbit-track{
  position:absolute;
  width:calc(var(--orbit-radius) * 2);
  height:calc(var(--orbit-radius) * 2);

  border-radius:50%;
  border:2px dashed rgba(37,99,235,.4);

  animation:rotate var(--rotation-speed) linear infinite;
}

/* ================================
NODES
================================ */
.arch-node{
  position:absolute;

  width:var(--node-size);
  height:var(--node-size);
  border-radius:50%;

  display:flex;
  justify-content:center;
  align-items:center;

  background:white;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 20px 60px rgba(0,0,0,.08);

  top:50%;
  left:50%;

  margin-top:calc(var(--node-size) / -2);
  margin-left:calc(var(--node-size) / -2);

  cursor:pointer;
}

/* PERFECT TRIANGLE (same as working code) */
.node-device{
  transform: rotate(0deg) translate(var(--orbit-radius)) rotate(0deg);
}

.node-backend{
  transform: rotate(120deg) translate(var(--orbit-radius)) rotate(-120deg);
}

.node-model{
  transform: rotate(240deg) translate(var(--orbit-radius)) rotate(-240deg);
}

/* ================================
TEXT STAYS UPRIGHT
================================ */
.arch-node span{
  font-weight:600;
  color:#1e293b;
  animation:counterRotate var(--rotation-speed) linear infinite;
}

/* ================================
ANIMATIONS
================================ */
@keyframes rotate{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}

@keyframes counterRotate{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(-360deg); }
}

/* ================================
HOVER + ACTIVE
================================ */
.arch-node:hover{
  scale:1.05;
}

.arch-node.active{
  background:#eff6ff;
  border:1px solid rgba(37,99,235,.25);
  box-shadow:0 30px 90px rgba(37,99,235,.25);
}

.arch-node.active span{
  color:#1d4ed8;
}

/* ================================
RESPONSIVE
================================ */
@media(max-width:900px){

  :root{
    --orbit-radius:100px;
    --node-size:70px;
    --core-size:90px;
  }

  .architecture-circle{
    width:300px;
    height:300px;
  }
}

/* ================================
INFO PANEL
================================ */

.architecture-info{
  width:100%;
  max-width:420px; /* keeps your design */
  min-height:300px;
  padding:40px;

  border-radius:24px;
  background:rgba(255,255,255,.8);
  backdrop-filter:blur(16px);

  box-shadow:0 40px 100px rgba(0,0,0,.08);
  text-align:left;
}

.architecture-info h3{
  margin-bottom:15px;
}

.architecture-info ul{
  margin:0;
  padding-left:18px;
  color:#475569;
}

.info-content{
  opacity:1;
  transform:translateY(0);
  transition:opacity .8s ease, transform .8s ease;
}

.info-content.fade-out{
  opacity:0;
  transform:translateY(10px);
}


/* ===============================
INTELLIGENCE & LEARNING SECTION
=============================== */

.aura-intelligence{
    padding:120px 8%;
}

.intelligence-container{
    max-width:1200px;
    margin:auto;
}

/* HEADER */

.intelligence-header{
  text-align:center;
  max-width:700px;
  margin:0 auto 20px auto;
}

.intelligence-header h2{
  font-size:3rem;
  font-weight:700;
}

.intelligence-header p{
  color:#64748b;
  margin-top:15px;
}

/* MAIN LAYOUT */

.intelligence-layout{
    display:grid;
    grid-template-columns:1.2fr 1fr;
    gap:60px;
    align-items:center;
}

.ml-stage{
    margin-bottom:20px;
}

/* ===============================
SERPENTINE ML DIAGRAM
=============================== */

.serpentine-container{
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:45px;
    margin-top:25px;
}

/* rows */

.serp-row{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:90px;
    width:100%;
    position:relative;
}

/* reverse row for serpentine */

.serp-row-2{
    flex-direction:row-reverse;
}

/* nodes */

.serp-step{

    background:linear-gradient(
        145deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.01)
    );

    border:1px solid rgba(255,255,255,0.12);

    border-radius:14px;

    width:210px;
    min-height:110px;

    padding:22px 22px;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    text-align:center;

    position:relative;

    backdrop-filter:blur(6px);

    box-shadow:
        0 6px 18px rgba(0,0,0,0.25),
        inset 0 0 0 1px rgba(255,255,255,0.02);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border .25s ease;
}

/* hover */

.serp-step:hover{

    transform:translateY(-6px) scale(1.02);

    border:1px solid rgba(37,99,235,0.45);

    box-shadow:
        0 10px 30px rgba(37,99,235,0.15),
        inset 0 0 0 1px rgba(255,255,255,0.03);
}

/* title */

.serp-step h4{
    font-size:1rem;
    font-weight:600;
    margin-bottom:6px;
}

/* text */

.serp-step p{
    font-size:.82rem;
    opacity:.75;
    line-height:1.35;
}

/* ===============================
HORIZONTAL FLOW ARROWS
=============================== */

.serp-row-1 .serp-step:not(:last-child)::after{

    content:"➜";

    position:absolute;

    right:-60px;
    top:50%;

    transform:translateY(-50%);

    font-size:28px;

    color:#3b82f6;

    opacity:.85;

    filter:drop-shadow(0 0 6px rgba(37,99,235,0.5));
}

/* reverse arrows */

.serp-row-2 .serp-step:not(:last-child)::after{

    content:"➜";

    position:absolute;

    left:-60px;
    top:50%;

    transform:translateY(-50%) rotate(180deg);

    font-size:28px;

    color:#3b82f6;

    opacity:.85;

    filter:drop-shadow(0 0 6px rgba(37,99,235,0.5));
}

/* ===============================
VERTICAL CONNECTOR
=============================== */

.serp-row-1 .serp-step:last-child::before{

    content:"➜";

    position:absolute;

    bottom:-55px;
    left:50%;

    transform:translateX(-50%) rotate(90deg);

    font-size:28px;

    color:#3b82f6;

    opacity:.9;

    filter:drop-shadow(0 0 6px rgba(37,99,235,0.5));
}

/* ===============================
RESPONSIVE
=============================== */

@media (max-width:768px){

.serp-row{
    gap:40px;
}

.serp-step{
    width:160px;
    min-height:95px;
}

.serp-row-1 .serp-step:not(:last-child)::after{
    right:-30px;
}

.serp-row-2 .serp-step:not(:last-child)::after{
    left:-30px;
}

}

.ml-description{
  margin-top:0;
}

/* ====================
   Eng Deck of Cards
==================== */
.eng-deck-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.eng-deck {
  position: relative;
  flex: 1 1 600px;
  min-width: 300px;
  perspective: 1200px;
  overflow: visible;
  height: 600px;
  transition: height 0.5s ease;
  max-width: 100%;
}

.eng-deck.loading .eng-card {
  visibility: hidden;
}

.eng-deck.ready .eng-card {
  visibility: visible;
}

.eng-card {
  position: absolute;
  width: 100%;
  height: auto;
  min-height: auto;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 0.7s ease, opacity 0.7s ease, box-shadow 0.7s ease;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(0 round 1rem);

  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.eng-card.active {
  opacity: 1;
  z-index: 10;
  transform: translateX(0) scale(1) rotateY(0deg) translateZ(0);
  pointer-events: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.eng-card.before {
  opacity: 0;
  z-index: 0;
  transform: translateX(-60%) scale(0.85) rotateY(-30deg) translateZ(-80px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.eng-card.after {
  opacity: 0;
  z-index: 0;
  transform: translateX(60%) scale(0.85) rotateY(30deg) translateZ(-80px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.eng-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 2rem;
  background: rgba(255, 255, 255, 0.9); 
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  flex: 0 0 150px;
}

.eng-indicators-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eng-indicators {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.eng-indicators span {
  min-width: 60px;
  height: 34px;
  padding: 0 0.6rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.eng-indicators span:hover {
  transform: scale(1.05);
}

.eng-indicators span.active {
  background: var(--accent, #ff6b6b);
  color: #fff;
}

.eng-prev-btn,
.eng-next-btn {
  background: var(--accent, #ff6b6b);
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  cursor: pointer;
  font-weight: bold;
  min-width: 80px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.eng-prev-btn[disabled],
.eng-next-btn[disabled] {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.eng-card-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.eng-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.eng-description {
    font-size: 1rem;
    line-height: 1.5;
    flex: 0 0 auto;
}


@media (max-width: 992px) {
  .eng-deck-wrapper {
    flex-direction: column;
  }

  .eng-deck {
    width: 100%;
    min-width: 0;
    flex: none;
  }
  
  .deck-controls {
    position: static;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
  }

  .eng-indicators-wrapper {
    width: 100%;
  }

  .eng-indicators {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
  }

  .eng-indicators span {
    flex: 1 1 auto; 
    text-align: center;
  }
}