:root {
  --bg-dark: #050505;
  --text-main: #ffffff;
  --text-muted: #d1d1d1;
  --accent-cyan: #4fd1c5;
  --gradient-streak: linear-gradient(115deg, transparent 20%, rgba(88, 50, 200, 0.3) 40%, rgba(40, 20, 100, 0.1) 60%, transparent 80%);
}

.challenges-section {
  background-color: var(--bg-dark);
  background-image: var(--gradient-streak); /* Recreates the purple light streak */
  color: var(--text-main);
  padding: 80px 20px;
  font-family: 'Inter', sans-serif; /* A clean sans-serif is best here */
  display: flex;
  justify-content: center;
  min-height: 600px;
}

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

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 20px;
}

h1 {
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 30px;
}

.highlight {
  color: #31bad8;
}

.description p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 550px;
}

.image-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-card-challenges img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 30px;
  
}

/* Responsive for Tablets/Phones */
@media (max-width: 992px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    text-align: left;
  }
  
  h1 {
    font-size: 2.2rem;
  }
}



/* Collapsing cards */
.agn-interactive-showcase {
  --agn-bg: #000;
  --agn-border: rgba(255, 255, 255, 0.1);
  --agn-cyan: #4cc9f0;
  
  background-color: var(--agn-bg);
  background-image: radial-gradient(circle at 0% 50%, rgba(80, 50, 200, 0.3), transparent 50%);
  color: #fff;
  padding: 80px 20px;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

.agn-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.agn-main-header {
  text-align: center;
  margin-bottom: 60px;
}

.agn-eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 20px;
}

.agn-title {
  font-size: 2.5rem;
  line-height: 1.2;
}

.agn-cyan-text { color: var(--agn-cyan); }

/* Accordion Logic */
.agn-accordion-container {
  display: flex;
  gap: 15px;
  height: 550px;
  align-items: stretch;
}

.agn-card {
  position: relative;
  flex: 0.6; /* The "collapsed" width */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--agn-border);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s ease;
}

.agn-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.agn-card.agn-is-expanded {
  flex: 4; /* The "expanded" width */
  background: rgba(255, 255, 255, 0.1);
  cursor: default;
}

/* Content visibility toggle */
.agn-card-content {
  padding: 40px;
  opacity: 0; /* Hidden when collapsed */
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap; /* Prevents text jumping during animation */
}

.agn-is-expanded .agn-card-content {
  opacity: 1;
  pointer-events: auto;
  white-space: normal;
}

.agn-card-number {
  font-size: 3.5rem;
  font-weight: 900;
  display: block;
  margin-bottom: 20px;
}

.agn-card-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  max-width: 400px;
}

.agn-card-description {
  max-width: 450px;
  color: #ccc;
  line-height: 1.6;
}

.agn-card-bold-text {
  margin-top: 15px;
  color: #fff;
  font-weight: 600;
}

/* Watermark */
.agn-watermark {
  position: absolute;
  bottom: -30px;
  right: 10px;
  font-size: 15rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.2);
  z-index: 0;
  line-height: 1;
}

/* Mobile: Stack them vertically */
@media (max-width: 768px) {
  .agn-accordion-container {
    flex-direction: column;
    height: auto;
  }
  .agn-card {
    flex: none !important;
    height: 100px;
  }
  .agn-card.agn-is-expanded {
    height: auto;
  }
  .agn-watermark { display: none; }
}



/* Final Section */
/* Container and Background */
.kc-hero-section {
  background-color: #000000;
  color: #ffffff;
  padding: 80px 40px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

/* Background "Swoosh" Effect */
.kc-hero-section::before {
  content: "";
  position: absolute;
  top: 10%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
  transform: rotate(-15deg);
  z-index: 1;
}

.kc-container {
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 150px;
  position: relative;
  z-index: 2; /* Sits above the glow */
}

/* Heading Styling */
.kc-header-box {
  flex: 1;
  min-width: 300px;
}

.kc-main-title {
  font-size: 3.4vw;
  font-weight: 700;
  line-height: 0.95;
  margin: 0;
  letter-spacing: -2px;
}

/* List Styling */
.kc-content-box {
  flex: 1.5;
  min-width: 350px;
}

.kc-capability-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kc-capability-list li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 22px;
  position: relative;
  padding-left: 20px;
  color: #e0e0e0;
}

/* Bullet Point Dots */
.kc-capability-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ffffff;
}

.kc-capability-list li strong {
  color: #ffffff;
  font-weight: 600;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .kc-main-title {
    font-size: 56px;
    margin-bottom: 30px;
  }
  .kc-hero-section {
    padding: 40px 20px;
  }
}





/* --- Mobile Only Fix (Max-width 991px) --- */
@media (max-width: 991px) {
    
    /* 1. Watermark: Show only the large number in the center by default */
    .agn-card .agn-watermark {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        font-size: 160px !important; /* Extra large font for the number */
        font-weight: 900;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: rgba(255, 255, 255, 0.1) !important;
        z-index: 1;
        transition: all 0.4s ease;
    }

    /* 2. Hide Title, Description, and small number in default state */
    .agn-card .agn-card-content,
    .agn-card .agn-card-title,
    .agn-card .agn-card-description,
    .agn-card .agn-card-numberx {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none;
    }

    /* 3. The Expanded State: Reveal content on hover or when card has .agn-is-expanded */
    .agn-card:hover,
    .agn-card.agn-is-expanded {
       
        z-index: 5;
    }

    /* 4. Ensure all text inside the expanded cyan card is visible and white */
    .agn-card:hover .agn-card-content,
    .agn-card.agn-is-expanded .agn-card-content,
    .agn-card:hover .agn-card-title,
    .agn-card.agn-is-expanded .agn-card-title,
    .agn-card:hover .agn-card-description,
    .agn-card.agn-is-expanded .agn-card-description {
        opacity: 1 !important;
        visibility: visible !important;
        color: #ffffff !important;
        pointer-events: auto;
    }

    /* 5. Fade the watermark number when details are shown for better legibility */
    .agn-card:hover .agn-watermark,
    .agn-card.agn-is-expanded .agn-watermark {
        opacity: 0.05 !important;
    }

    /* 6. Remove any dark overlays or background gradients that dim the color */
    .agn-card::before {
        display: none !important; 
    }

    /* 7. Card Container Reset for Mobile */
    .agn-card {
        min-height: 320px;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin-bottom: 20px;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 30px;
        transition: background 0.3s ease;
    }
}



