:root {
  --customer-dark: #030045;
  --customer-light: #aea2ff;
  --customer-medium: rgb(255, 255, 255);
  --customer-accent: #f67d84;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #030045;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
  z-index: 9999;
  padding: 1rem 0;
  max-height: 75px;
}

.header.scrolled {
  background-color: #030045;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header.scrolled .nav a {
  color: white;
}

.header.scrolled .logo {
  color: #ffffff;
}

.header-left {
  display: flex;
  align-items: center;
  padding-left: 100px;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: bold;
}

.logo img {
  width: 24px;
  height: 24px;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--customer-medium);
  cursor: pointer;
  margin-left: auto;
  padding-right: 20px;
  z-index: 1000;
  position: relative;
}

/* Navigation menu - Full screen mobile navigation */
.nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--customer-dark);
  padding: 2rem;
  gap: 2rem;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1001;
  justify-content: center;
  align-items: center;
}

.nav.active {
  transform: translateY(0);
  display: flex;
}

.nav a {
  color: var(--customer-medium);
  text-decoration: none;
  font-size: 2rem;
  transition: color 0.2s ease-in-out;
}

.nav a:hover {
  color: #f67d84;
}

.header.scrolled .nav a:hover {
  color: #f67d84;
}

/* Close button for mobile menu */
.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--customer-medium);
  cursor: pointer;
}

/* Keep desktop styles */
@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }

  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    width: auto;
    height: auto;
    background-color: transparent;
    padding: 0;
    gap: 1.8rem;
    transform: translateY(0);
    z-index: auto;
    padding-left: 70px;
  }

  .nav a {
    font-size: 1rem;
  }

  .close-btn {
    display: none;
  }

  .header-left {
    padding-left: 100px;
  }
}

/* Visual Workflow Builder Section */
.workflow-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.workflow-container {
  text-align: center;
  max-width: 900px;
  max-height: 300px;
  margin: 0 auto;
}

.workflow-title {
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 1rem;
  margin-right: 0;
  line-height: 1.2;
}

.workflow-description {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.workflow-button {
  background-color: #0029d2;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border: 2px solid var(--primary-medium);
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.workflow-button:hover {
  background-color: transparent;
  color: var(--primary-medium);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Case Stories Section */
.case-stories-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 200vh;
}

.case-stories-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 600;
  color: #1e3a8a;
  background: linear-gradient(135deg, #0029d2 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.stories-wrapper {
  position: relative;
  height: 200vh;
}

.story-card {
  position: sticky;
  top: 5vh;
  width: 100%;
  height: 90vh;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.story-card:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

#story-2 {
  transform: translateY(100vh);
  opacity: 0;
  z-index: 1;
}

#story-1 {
  z-index: 2;
}

.story-background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.story-card:hover .background-image {
  transform: scale(1.05);
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(30, 58, 138, 0.85) 0%,
      rgba(59, 130, 246, 0.7) 50%,
      rgba(255, 255, 255, 0.3) 100%);
  z-index: 2;
}

.story-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 3rem;
  color: white;
  overflow: hidden;
}

.story-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.story-text {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: calc(100% - 120px);
  justify-content: space-evenly;
}

.text-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-text h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #93c5fd;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.story-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  text-align: justify;
}

/* Our Approach Section */
.our-approach-section {
  background-color: white;
  padding: 4rem 2rem;
  position: relative;
}

.approach-content-wrapper {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100%;
}

.approach-text-container {
  padding-left: 70px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  min-height: 100%;
}

.approach-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #000000;
  background: linear-gradient(to bottom, transparent 50%, #f67d84 50%);
}

.approach-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: #000000;
}

.approach-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #000000;
}

/* Footer Styles */
.footer *,
.footer *::before,
.footer *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.footer {
  width: 100%;
  background-color: #030045;
  color: #ffffff;
  padding-top: 4rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
  
}

.footer-column img {
  width: 1250px;
  height: auto;
  max-width: 100%;
}

.footer-content-container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-top: 3rem;
  padding-bottom: 5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .footer-content-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer .logo {
  margin-bottom: 0rem;
}

.description-text {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.column-heading {
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.heading-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 0.1875rem;
  background-color: #2563eb;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 1rem;
}

.link-item {
  color: inherit;
  text-decoration: none;
}

.link-item:hover {
  text-decoration: underline;
}

.contact-info {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 1rem;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 0rem;
}

.social-icon-link {
  color: white;
  font-size: 1.5rem;
  transition: color 0.2s ease-in-out;
}

.social-icon-link:hover {
  color: var(--customer-light);
}

/* Responsive Styles */
@media (min-width: 768px) {
  .header {
    padding: 1.5rem 2.5rem;
  }

  .nav {
    display: flex;
  }

  .workflow-title {
    font-size: 3rem;
  }

  .workflow-description {
    font-size: 1.25rem;
  }

  .footer-content-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .approach-text-container {
    padding-left: 70px;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .header {
    padding: 1.5rem 5rem;
  }

  .workflow-title {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 4rem;
  }

  .story-title {
    font-size: 3rem;
  }
}

@media (max-width: 767px) {
  .workflow-title {
    font-size: 2rem;
  }

  .workflow-description {
    font-size: 1rem;
  }

  .workflow-section {
    padding: 6rem 1rem 3rem;
  }

  .case-stories-section {
    padding: 2rem 1rem;
    min-height: 180vh;
  }

  .stories-wrapper {
    height: auto;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .story-card {
    height: auto;
    min-height: 80vh;
    position: relative;
    margin-bottom: 2rem;
    top: auto;
  }

  .story-content {
    /* These styles are the key to making all text visible. */
    height: auto;
    display: block;
    padding: 2rem 1rem;
  }

  .story-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .story-text {
    /* Adjusted styles to allow all text to appear */
    display: block;
    /* Changes flex to a natural flow */
    height: auto;
    /* Ensures container expands to fit content */
    margin: 0 auto;
    max-width: 900px;
  }

  .text-section {
    /* Adjusted styles to ensure text is fully visible */
    flex: none;
    /* Removes flex property */
    display: block;
    /* Allows natural content flow */
    text-align: left;
    margin-bottom: 1rem;
    /* Adds space between sections */
  }

  .story-text h4 {
    font-size: 1.25rem;
    text-align: left;
    margin-bottom: 0.5rem;
  }

  .story-text p {
    font-size: 1rem;
    text-align: left;
  }

  #story-2 {
    transform: none;
    opacity: 1;
    z-index: 1;
    position: relative;
  }

  #story-1 {
    transform: none;
    opacity: 1;
    z-index: 2;
  }

  .approach-text-container {
    padding-left: 0;
    text-align: center;
  }
}