
/* Basic Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px; /* Set base font size */
  scroll-behavior: smooth;
  overflow-x: hidden !important; /* Prevent horizontal scroll, allow vertical */
}

body {
  font-family: 'Manrope', sans-serif; /* Changed font */
  background-color: var(--color-bg-dark); /* Dark background */
  color: var(--color-text-light); /* Light text */
  margin: 0;
  padding: 0;
  font-size: 14px; /* Base font size */
  font-weight: 200; /* Base font weight */
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit; /* Remove default blue */
  text-decoration: none; /* Remove underline */
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--theme-focus-outline);
  outline-offset: 2px;
}

ul {
  list-style: none; /* Remove default bullets */
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* CSS Custom Properties (Design Tokens) */
:root,
html[data-theme="dark"] {
  /* Brand Colors */
  --color-primary: #FF3822;
  --color-primary-alpha-40: rgba(255, 56, 34, 0.4);
  --color-secondary: #FF9F22;
  --color-gradient: linear-gradient(135deg, #FF3822, #FF9F22);

  /* Theme surfaces */
  --theme-bg: #101010;
  --theme-bg-alt: #121212;
  --theme-surface: #181818;
  --theme-surface-raised: #ffffff;
  --theme-surface-muted: #2D2D2D;
  --theme-artifact-bg: rgba(255, 255, 255, 0.05);
  --theme-artifact-border: rgba(255, 255, 255, 0.14);
  --theme-chip-bg: #ffffff;
  --theme-chip-text: #101010;
  --theme-footer-bg: #101010;
  --theme-footer-text: #8c8c8c;
  --theme-header-backdrop: rgba(16, 16, 16, 0.74);
  --theme-mobile-overlay-bg: #ffffff;
  --theme-mobile-overlay-text: #1A1A1A;
  --theme-image-well-bg: rgba(255, 255, 255, 0.05);
  --theme-image-well-border: rgba(255, 255, 255, 0.12);

  /* Theme text */
  --theme-text: #ffffff;
  --theme-text-body: #eeeeee;
  --theme-text-muted: #8c8c8c;
  --theme-text-subtle: #666666;
  --theme-text-dim: rgba(255, 255, 255, 0.5);
  --theme-text-faint: rgba(255, 255, 255, 0.4);
  --theme-text-inverse: #101010;
  --theme-text-on-accent: #ffffff;
  --theme-focus-outline: #FF3822;

  /* Legacy compatibility mappings */
  --color-bg-dark: var(--theme-bg);
  --color-bg-dark-alt: var(--theme-bg-alt);
  --color-text-primary: var(--theme-text);
  --color-text-secondary: var(--theme-text-muted);
  --color-text-muted: var(--theme-text-subtle);
  --color-text-light: var(--theme-text-body);

  /* Status */
  --color-error: #ff4444;
  --color-success: #44aa44;

  /* UI */
  --color-border: rgba(255, 255, 255, 0.15);
  --color-border-focus: var(--color-primary);
  --theme-shadow-card: 0 4px 15px rgba(0, 0, 0, 0.1);
  --theme-shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.18);
  --theme-glow-opacity: 1;
  --theme-star-opacity: 1;
}

html[data-theme="light"] {
  color-scheme: light;
  --theme-bg: #F4F4F4;
  --theme-bg-alt: #ffffff;
  --theme-surface: #ffffff;
  --theme-surface-raised: #ffffff;
  --theme-surface-muted: #ececec;
  --theme-artifact-bg: rgba(255, 255, 255, 0.78);
  --theme-artifact-border: rgba(16, 16, 16, 0.12);
  --theme-chip-bg: #ffffff;
  --theme-chip-text: #101010;
  --theme-footer-bg: #F4F4F4;
  --theme-footer-text: #595959;
  --theme-header-backdrop: rgba(244, 244, 244, 0.82);
  --theme-mobile-overlay-bg: #ffffff;
  --theme-mobile-overlay-text: #101010;
  --theme-image-well-bg: rgba(255, 255, 255, 0.72);
  --theme-image-well-border: rgba(16, 16, 16, 0.12);
  --theme-text: #101010;
  --theme-text-body: #222222;
  --theme-text-muted: #595959;
  --theme-text-subtle: #707070;
  --theme-text-dim: rgba(16, 16, 16, 0.52);
  --theme-text-faint: rgba(16, 16, 16, 0.42);
  --theme-text-inverse: #ffffff;
  --theme-text-on-accent: #ffffff;
  --color-border: rgba(16, 16, 16, 0.14);
  --theme-shadow-card: 0 12px 32px rgba(16, 16, 16, 0.08);
  --theme-shadow-soft: 0 16px 48px rgba(16, 16, 16, 0.10);
  --theme-glow-opacity: 0.42;
  --theme-star-opacity: 0.28;
}

/* Basic Layout Container (Optional - adjust as needed) */
.container {
  width: 100%;
  max-width: 94%; /* Adjust max width as needed */
  margin-left: auto;
  margin-right: auto;
}

/* Header styles moved to header.css */

/* Additional header styles moved to header.css */

/* Scrolled header styles moved to header.css */

/* Header navigation layout styles moved to header.css */

/* Header button styles moved to header.css */

/* AI Applications Section - New Design */
.ai-applications-section {
  background-color: var(--color-bg-dark-alt); /* Dark background from image */
  padding: 80px 0;
  color: var(--color-text-primary);
}

.ai-applications-grid {
  display: flex;
  align-items: center; /* Vertically align items if they have different heights */
  gap: 60px; /* Adjust gap as needed */
}

.ai-applications-left {
  flex: 1; /* Takes up more space */
}

.ai-applications-right {
  flex: 1; /* Takes up less space */
  display: flex;
  justify-content: center; /* Center the card if the column is wider */
  align-items: center;
}

.ai-services-tag {
  display: inline-block;
  background-color: var(--color-text-primary);
  color: var(--color-bg-dark-alt);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.ai-applications-title {
  font-size: 48px; /* Adjust as needed */
  font-weight: 500;
  margin-top: 10px;
  color: #ffffff;
  text-align: left;
  line-height: 1.2;
  margin-bottom: 2px;
}

.ai-applications-subtitle {
  font-size: 48px; /* Adjust as needed */
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-primary); /* Fallback color */
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  display: inline-block;
}

.ai-applications-description {
  font-size: 15px;
  color: rgb(255, 255, 255); /* Light grey for description */
  max-width: 600px; /* Constrain width for readability */
  font-weight: 300;
  margin-top: 20px;
}

.new-article-card {
  background-color: #ffffff;
  color: var(--color-bg-dark-alt);
  border-radius: 8px;
  padding: 20px 20px;
  width: 300px; /* Adjust width as needed */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative; /* Ensure card is above the background image */
  z-index: 1;
}

.new-article-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ai-applications-right {
  position: relative; /* Container for absolute positioning */
}

.fading-planet-bg {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0; /* Behind the card */
  width: 100%; /* Adjust size as needed, could be a fixed pixel value too */
  max-width: 600px; /* Example max size */
  opacity: 1; /* Adjust for 'fading' effect */
}

/* Styles for cycling cards */
.ai-applications-right {
  /* Ensure it can contain absolutely positioned cards correctly */
  min-height: 150px; /* Adjust based on card height to prevent collapse */
}

.cycle-card {
  position: absolute;
  top: 0; /* Position all cards at the top of the container */
  left: calc(50% - 150px); /* Center the 300px card */
  width: 300px; /* Explicit width */
  transform: translateY(0); /* Initial Y position */
  opacity: 0; /* Start hidden */
}

.cycle-card.fade-in {
  animation: fadeInUpNew 0.5s ease-out forwards;
}

.cycle-card.fade-out {
  animation: fadeOutNew 0.5s ease-in forwards; 
}

/* Keyframes for animations (New: only Y transform) */
@keyframes fadeInUpNew {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutNew {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px); /* Slide upwards as it fades out */
  }
}

.new-article-header {
  font-size: 18px; /* Adjust as needed */
  font-weight: 500;
}

.new-article-tag-text {
  color: var(--color-primary); /* Reddish-orange for 'New' */
  font-weight: 500;
}

.new-article-status {
  font-size: 18px;
  color: rgba(0, 0, 0, 0.4); /* Grey for 'Reviewed by Editor' */
  font-weight: 500;
}

/* Responsive adjustments for ai-applications-section */
@media (max-width: 992px) {
  .ai-applications-grid {
    flex-direction: column;
    text-align: center;
  }
  .ai-applications-left,
  .ai-applications-right {
    flex: none;
    width: 100%;
  }
  .ai-applications-description {
    margin-left: auto;
    margin-right: auto;
  }
  .new-article-card {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .ai-applications-title {
    font-size: 36px;
  }
  .ai-applications-subtitle {
    font-size: 26px;
  }
}

/* --- SWOT Analysis Engine Section --- */
.swot-analysis-section {
  padding: 4rem 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.swot-content {
  margin: 0;
  display: flex;
  justify-content: space-between; /* Reverted */
  align-items: center;
  gap: 18rem; /* Reverted */
}

.swot-text-content {
  flex: 1; /* Reverted */
  max-width: 60%; /* Reverted */
}

.tag {
  padding: 8px 15px;
  border-radius: 20px; /* Rounded corners for tags */
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  /* text-align: center; */ /* Text alignment will be handled by tag-title */
  background-color: #fff; /* White background for all tags */
  /* Gradient text properties moved to .tag-title */
  display: flex; /* To help center the span inside */
  justify-content: center;
  align-items: center;
  display: inline-block;
  box-shadow: 0px 0px 5px #0000001f;
}

.tag-title {
  color: var(--color-primary); /* Fallback color */
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  text-align: center; /* Ensure text itself is centered if it wraps */
  font-weight: 500; /* Added font weight */
  margin: 0; /* Remove default p margin if any */
}

.swot-headline {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-align: left;
  margin-top: 5px;
}

.swot-headline .highlight {
  color: #ffffff;
}

.swot-description {
  padding-right: 70px;
  font-size: 14px;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 30px;
  font-weight: 300;
}

.swot-features {
  list-style-type: none;
  padding: 0;
  margin: 8px 0 0 0;
  position: relative;
}

.swot-features li {
  display: flex;
  align-items: flex-start; /* Align items to the top of the flex line */
  margin-bottom: 1rem;
  font-size: 16px; /* Adjusted to match image */
  color: #fff;
  font-weight: 300;
  padding-left: 0; /* Remove old padding, spacing handled by number box */
  position: relative;
  line-height: 1.9; /* Improved readability */
}

.swot-feature-number-box {
  width: 32px; /* Circle size */
  height: 32px; /* Circle size */
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px; /* Space between circle and text */
  flex-shrink: 0; /* Prevent circle from shrinking */
}

.swot-feature-number {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary); /* Fallback color */
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, var(--color-primary), var(--color-secondary));
}

.swot-highlight {
  color: var(--color-primary); /* Fallback color */
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  font-size: 16px; /* Slightly larger */
  font-weight: 500; /* Bolder */
  margin-bottom: 10px; /* Increased margin */
}

.low-op {
  color: rgba(255, 255, 255, 0.5);
}

.swot-dots-visualization {
  flex: 1;
  width: 100%;
  height: 400px;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.col-dots {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 1.1rem;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: white;
}

/* --- Our Approach Section --- */
.approach-section {
  background-color: var(--color-bg-dark);
  padding: 4rem 0 6rem;
  position: relative;
}

.approach-header {
  text-align: center;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.approach-title {
  font-size: 36px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 20px;
}

.approach-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
}

.approach-step {
  flex: 0 0 calc(20% - 1.5rem);
  position: relative;
  padding-bottom: 2rem;
  opacity: 0;
  animation: none;
}

.step-icon {
  width: 58px;
  height: 58px;
  /* background-color: #FF9500; */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.step-icon-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 1rem;
}

.step-description {
  font-size: 14px;
  line-height: 1.6;
  color: #aaa;
  font-weight: 300;
}

/* Dotted line across icons */
.approach-steps::before {
  display: none;
  content: "";
  position: absolute;
  top: 2rem;
  left: calc((100% - 6rem) / 22);  /* half step width */
  right: calc((100% - 6rem) / 5); /* half step width */
  height: 3px;
  background-image: linear-gradient(to right, rgba(255,255,255,0.08) 10px, transparent 10px);
  background-size: 20px 1px;
  background-repeat: repeat-x;
  z-index: 0;
  background-position: -100% 0;
  animation: none;
}

/* Full-width override for container in Our Approach */
.approach-section .container {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

/* Trigger animations when section has .animate */
.approach-section.animate .approach-step {
  animation: stepFadeHorizontal 0.8s ease-out forwards;
}
.approach-section.animate .approach-step:nth-child(1) { animation-delay: 0.2s; }
.approach-section.animate .approach-step:nth-child(2) { animation-delay: 0.4s; }
.approach-section.animate .approach-step:nth-child(3) { animation-delay: 0.6s; }
.approach-section.animate .approach-step:nth-child(4) { animation-delay: 0.8s; }
.approach-section.animate .approach-steps::before {
  animation: dotByDot 1.5s ease-out forwards;
  animation-delay: 0.2s;
}

/* --- Why It Matters Section --- */
.why-it-matters-section {
  background-color: var(--color-bg-dark);
  color: #fff;
  padding: 0;
  position: relative;
}

.why-matters-header {
  text-align: left;
  margin-bottom: 4rem;
}

.why-matters-title {
  font-size: 2.5rem;
  margin-top: 0.5rem;
  color: #fff;
  text-align: left;
  font-weight: 500;
}

.why-matters-flex {
  display: grid;
  grid-template-columns: 35% 65%;
  align-items: center;
  gap: 5%;
  padding-bottom: 130px;
}

@media (max-width: 768px) {
  .why-matters-flex {
    display: flex;
    flex-direction: column;
  }
}

.circles-container {
  position: relative;
  height: 550px;
  margin: 0;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
}

.benefit-circle {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle closest-side at center, rgb(255 58 36 / 4%) 80%, rgb(255 58 36 / 30%) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem;
  color: white;
  text-align: center;
  mix-blend-mode: screen;
  animation: floatBubble 8s ease-in-out infinite;
}

.circles-background-svg {
  position: absolute;
  top: 140px;
  left: 140px;
  width: 50%;
  height: 50%;
  z-index: 0;
  object-fit: contain;
  animation: rotateSVG 6s linear infinite;
}

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

.circle-top-left {
  top: 0;
  left: 25%;
  background: radial-gradient(circle closest-side at center, rgba(0, 0, 0, 0.05) 80%, rgba(255, 255, 255, 0.05) 100%);
  z-index: 1;
  animation-delay: 0s;
  backdrop-filter: blur(100px);
}

.circle-top-right {
  bottom: 20px;
  left: 80px;
  background: radial-gradient(circle closest-side at center, rgba(0, 0, 0, 0.05) 80%, rgba(255, 255, 255, 0.05) 100%);
  z-index: 1;
  animation-delay: 2s;
  backdrop-filter: blur(100px);
}

.circle-bottom {
  bottom: 20px;
  left: 370px;
  background: radial-gradient(circle closest-side at center, rgba(0, 0, 0, 0.05) 80%, rgba(255, 255, 255, 0.05) 100%);
  z-index: 2;
  animation-delay: 1s;
  backdrop-filter: blur(100px);
}

.benefit-circle h3 {
  font-size: 22px;
  margin-bottom: 5px;
  font-weight: 300;
}

.benefit-circle p {
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.4;
}

/* Floating bubble animation 
@keyframes floatBubble {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(5px, -5px);
  }
  50% {
    transform: translate(0, 8px);
  }
  75% {
    transform: translate(-5px, 3px);
  }
  100% {
    transform: translate(0, 0);
  }
}*/

/* Animation for Why It Matters section */
.why-it-matters-section .benefit-circle {
  opacity: 1;
  transition: all 0.8s ease-out;
}

.why-it-matters-section.animate .circle-top-left {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.2s;
}

.why-it-matters-section.animate .circle-top-right {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.4s;
}

.why-it-matters-section.animate .circle-bottom {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  transition-delay: 0.6s;
}

/* --- Hero Section --- */
.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align content to the top */
  align-items: center;
  min-height: 100vh; /* Full viewport height */
  padding-top: 150px; /* Push content down below fixed header + extra space */
  padding-bottom: 4rem;
  text-align: center;
  /* Keep the animated background */
  position: relative;
  overflow: hidden;
}

.hero-section h1 {
  font-size: 48px; /* Specific hero H1 size */
  font-weight: 500; /* Specific hero H1 weight */
  line-height: 1.2;
  margin-bottom: 1.5rem; /* Space below H1 */
  color: rgba(255, 255, 255, 0.5);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section .hero-highlight {
  color: #ffffff; /* Full opacity for key words */
}

.hero-section .hero-gradient {
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-primary); /* Fallback if background-clip unsupported */
  display: inline-block;
  white-space: nowrap;
}

.hero-section .hero-rotator {
  white-space: nowrap;
  border-right: .08em solid;
  padding-right: .06em;
  animation: caret-blink .85s step-end infinite;
}

.hero-section p {
  font-size: 1.1rem;
  color: #bbb; /* Slightly muted text */
  max-width: 500px;
  margin: 0 auto 2rem auto; /* Center and add bottom margin */
}

.hero-section .heading-h1 {
  text-align: center;
}

/* Home first section: plain-language intro, three examples, and the starter offer.
   Left-aligned list inside a centered column so the long example lines stay readable. */
.hero-section .hero-copy {
  width: 100%;
  max-width: 1080px;
  padding: 0 20px 110px; /* bottom room for the absolutely positioned scroll indicator */
  box-sizing: border-box;
}

.hero-section .hero-intro,
.hero-section .hero-start {
  max-width: 640px;
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 300;
  color: var(--color-text-light);
  margin: 1.25rem auto 1.5rem auto;
}

.hero-section .hero-examples-label {
  max-width: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--theme-text-muted);
  margin: 0 auto 0.9rem auto;
}

/* Three example cards: side by side on wide screens, stacked on narrow ones */
.hero-section .hero-examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0 auto 1.5rem auto;
  padding: 0;
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--color-text-light);
}

.hero-section .hero-examples li {
  background: var(--theme-artifact-bg);
  border: 1px solid var(--theme-artifact-border);
  border-radius: 12px;
  padding: 18px 20px 20px;
}

.hero-section .hero-example-tag {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

/* On the light theme the orange label is too faint on a pale card */
html[data-theme="light"] .hero-section .hero-example-tag {
  color: var(--theme-text-muted);
}

/* The starter offer: one bordered row with the next step and its button */
.hero-section .hero-starter {
  display: flex;
  align-items: center;
  gap: 24px;
  text-align: left;
  border: 1px solid var(--color-primary-alpha-40);
  border-radius: 12px;
  padding: 18px 20px;
}

.hero-section .hero-starter .hero-start {
  flex: 1;
  max-width: none;
  margin: 0;
  font-size: 1rem;
}

.hero-section .hero-starter .hero-start strong {
  font-weight: 500;
  color: var(--color-text-primary);
}

.hero-section .hero-starter .btn-primary {
  margin-top: 0;
  flex-shrink: 0;
}

@media (max-width: 899px) {
  .hero-section .hero-examples {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-section .hero-starter {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
}

/* The rotating word changes the h1 between two and three lines on narrow screens.
   Reserve three lines so the text below it does not shift while the word types. */
@media (max-width: 799px) {
  .hero-section h1.heading-h1 {
    min-height: 3.6em;
  }
}

.swot-highlight a,
.service-box-title-area h3 a {
  color: inherit;
}

/* --- CTA Button Styles --- */
.btn-primary { /* Assuming .btn-primary is the primary button */
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  background-size: 200% auto;
  color: var(--color-text-primary) !important; /* White text, !important to override generic link color */
  padding: 10px 20px;
  border: none;
  border-radius: 9999px; /* Fully rounded */
  font-weight: 500; /* Bolder */
  text-decoration: none; /* Ensure no underline if it's an <a> tag */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  transition: 0.5s ease;
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  background-position: right center;
}

/* Apply CTA style to the hero button as well */
.hero-section .btn-primary {
  margin-top: 2rem; /* Existing margin */
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  background-size: 200% auto;
  color: var(--color-text-primary) !important;
  position: relative;
  overflow: hidden;
  padding: 1rem 2rem;
  border: none;
  border-radius: 9999px;
  font-weight: 300;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: 0.5s ease;
}

.hero-section .btn-primary:hover {
  background-position: right center;
  color: #ffffff !important;
}

/* --- General Section Styling --- */
main section {
  padding: 4rem 0; /* Vertical spacing between sections */
  width: 94%; /* Use container width */
  /* max-width: 94%; */
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px); /* Start slightly lower */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

main section.is-visible {
  opacity: 1;
  transform: translateY(0); /* Move to original position */
}

main section h2 {
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 2.5rem;
}

/* --- Basic Grid Layouts --- */
/* About Page Styles */
.about-wrapper {
  position: relative;
  overflow: hidden;
  padding-bottom: 80px;
}

.about-hero-team-bg-img {
  position: relative; /* For positioning child elements */
  /* Height will be determined by its content (.about-hero) */
}

/* Remove old #tail-img styles as it's no longer used for the background */
/* #tail-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1; 
  opacity: 0;
  transform: rotate(10deg) translateX(50px);
  animation: fadeRotateIn 1.5s ease-out 0.5s forwards;
} */

/* @keyframes fadeRotateIn {
  0% {
    opacity: 0;
    transform: rotate(40deg) translateX(50px);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) translateX(0);
  }
} */

.hero-background-image-element {
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  object-fit: cover; /* Ensures the image covers the area, maintaining aspect ratio */
  object-position: center; /* Centers the image */
  z-index: 1; /* Behind .about-hero which has z-index: 2 */
  opacity: 0; /* Start with opacity 0, animation will bring it to 0.8 */
  animation: fadeInUp 1s ease-out 0.8s forwards; /* Apply the animation with 0.8s delay */
}

.about-hero {
  display: grid;
  grid-template-columns: 80% 20%;
  gap: 5%;
  padding: 8% 3%;
  position: relative;
  margin: 0 auto;
  z-index: 2;
  background-color: transparent;
}

.about-hero-column {
  height: 100%;
}

.about-hero-main {
  flex: 0 0 80%;
}

.about-hero-empty {
  flex: 0 0 20%;
}

.about-heading {
  font-size: 46px;
  font-weight: 400;
  margin: 0;
  font-family: 'Manrope', sans-serif;
  line-height: 1.2;
  color: var(--theme-text-dim); /* was 0.4 white: under 3:1 on the dark background while a word is still fading in */
}

.text-gray {
  color: #888888;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.text-white {
  color: #ffffff;
  font-weight: 500;
  position: relative;
  display: inline-block;
  letter-spacing: -0.02em;
}

.text-accent {
  color: var(--color-primary);
}

/* Word-by-word animation styles */
.animate-text {
  opacity: 0;
  display: inline-block;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.215, 0.61, 0.355, 1), 
              transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1),
              color 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  color: var(--theme-text-dim); /* was 0.4 white: under 3:1 on the dark background while a word is still fading in */
}

.animate-text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Color transitions */
.animate-text.visible.text-white {
  color: #ffffff;
}

.animate-text.visible.text-accent {
  color: var(--color-primary);
}

/* Initially hide color differences */
.no-color {
  color: var(--theme-text-dim) !important; /* Match the about-heading color */
}

.about-cta-container {
  margin-top: 40px;
}

/* Scroll Indicator Styles */
.scroll-indicator-container {
  position: absolute;
  bottom: 20px; /* Adjust as needed */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  background-color: white;
  width: 60px;
  height: 80px;
  border-radius: 40px;
}

.scroll-mouse-icon {
  margin-top: 10px;
  width: 16px; /* Adjust size as needed */
  height: auto;
}

.scroll-indicator-content {
  position: absolute;
  top: 40px; /* Adjust to position text and arrow inside the mouse icon */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-text {
  color: var(--color-primary); /* Red text color */
  font-size: 12px; /* Adjust font size as needed */
  font-weight: 500;
  margin-bottom: 2px; /* Space between text and arrow */
}

.scroll-down-arrow {
  width: 10px; /* Adjust arrow size as needed */
  height: auto;
}

/* End of Hero Section Styles */

/* Team Section Styles */
.team-section {
  background-color: transparent;
  padding: 0;
  width: 100%;
  position: relative;
  z-index: 2;
}

.team-container {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 20% 68%; /* Updated for two equal columns */
  gap: 12%; /* Updated for 10% gap */
  padding: 0 3% 10%;
}

.team-column {
  height: 100%;
}

.team-title-column {
  display: flex;
  align-items: flex-start;
}

.section-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-primary);
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: -webkit-linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.team-members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6%;
}

.team-member-card {
  background-color: rgba(255, 255, 255, 1);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 14px;
  overflow: hidden;
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  height: fit-content;
}

.team-member-photo {
  width: 100%;
  border-radius: 8px;
  height: fit-content;
  position: relative;
  overflow: hidden;
  box-shadow: 1px 0px 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  filter: grayscale(100%);
}

.team-member-photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.team-member-info {
  padding: 10px 0;
}

.team-member-name {
  font-size: 15px;
  font-weight: 500;
  color: color-mix(in srgb, var(--theme-chip-text) 70%, transparent); /* 0.4 was 2.84:1 on the white card */
  margin: 0;
  font-family: 'Manrope', sans-serif;
}

.team-member-role {
  font-size: 15px;
  font-weight: 500;
  color: rgb(0, 0, 0);
  margin: 0;
  font-family: 'Manrope', sans-serif;
}

.team-member-bio {
  font-size: 13px;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.7);
  margin: 8px 0 0 0;
  font-family: 'Manrope', sans-serif;
  line-height: 1.5;
}

/* Animation for team member cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.team-member-card.animate {
  animation: fadeInUp 0.8s ease forwards;
}

.team-member-card:nth-child(2).animate {
  animation-delay: 0.2s;
}

.team-member-card:nth-child(3).animate {
  animation-delay: 0.4s;
}

.partnerships-section {
  padding: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background-color: var(--color-bg-dark);
  width: 100%;
  margin: 150px auto;
}

.what-sets-us-apart-section {
  padding: 0;
  min-height: 70vh;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background-color: var(--color-bg-dark);
  align-items: left;
  width: 100%;
}

.what-sets-us-apart-heading {
  font-size: 42px;
  font-weight: 400;
  margin: 0 0 6rem 3%;
  font-family: 'Manrope', sans-serif;
  line-height: 1.4;
  color: var(--theme-text-dim); /* was 0.4 white: under 3:1 on the dark background while a word is still fading in */
  text-align: left;
  max-width: 80%;
}

/* Sets Apart Grid Styles */
.sets-apart-grid-container {
  display: flex;
  gap: 12%; /* Adjusted gap to 12% */
  width: 94%;
  margin: 0 auto;
  align-items: flex-start;
}

.sets-apart-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--color-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  margin-bottom: 0;
  line-height: 1.3;
}

.sets-apart-content-column {
  flex-basis: 68%; /* Adjusted flex-basis to 68% */
}

.sets-apart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  row-gap: 4rem;
}

.sets-apart-item {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.sets-apart-item.show {
  opacity: 1;
  transform: translateY(0);
}

.item-number {
  flex: 0 0 5%;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
  margin: 0;
  font-family: 'Manrope', sans-serif;
}

.item-content {
  flex: 1;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  color: white;
  font-family: 'Manrope', sans-serif;
  margin: 0;
}

.sets-apart-section {
  padding: 80px 0;
  background-color: var(--color-bg-dark-alt); /* Dark background for the section */
}

.sets-apart-container {
  display: flex;
  gap: 40px;
  width: 90%;
  margin: 0 auto;
  align-items: flex-start;
}

.sets-apart-title-column {
  flex-basis: 20%;
  top: 100px;
}

.sets-apart-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--color-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  margin-bottom: 0;
  line-height: 1.3;
}

.sets-apart-content-column {
  flex-basis: 80%;
}

.sets-apart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns as per image */
  gap: 50px;
}

.sets-apart-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background-color: transparent;
}

.wsua-step-number-box {
  background-color: white;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.wsua-step-number {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  line-height: 1;
}

.wsua-step-description-box {
  background-color: #2D2D2D; /* Dark grey to match the provided image */
  padding: 12px 18px;
  border-radius: 8px;
  flex-grow: 1;
}

.wsua-step-description-box p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: #E0E0E0;
  margin-bottom: 0;
}

/* Responsive adjustments for What Sets Us Apart section */
@media (max-width: 992px) { /* Tablet */
  .sets-apart-grid-container {
    flex-direction: column;
    gap: 30px; /* Fixed gap for stacked layout, can be adjusted if needed */
  }
  .sets-apart-title-column {
    position: static;
    flex-basis: auto;
    text-align: center;
    margin-bottom: 20px;
  }
  .sets-apart-content-column {
    flex-basis: auto;
  }
  .sets-apart-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) { /* Mobile */
  .sets-apart-grid {
    grid-template-columns: 1fr;
  }
  .wsua-step-number-box {
    width: 35px;
    height: 35px;
    padding: 8px;
  }
  .wsua-step-number {
    font-size: 13px;
  }
  .wsua-step-description-box {
    padding: 10px 15px;
  }
  .wsua-step-description-box p {
    font-size: 13px;
  }
}

.about-content-text {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 800px;
  margin-bottom: 2rem;
  font-family: 'Manrope', sans-serif;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.about-intro {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

.about-mission,
.about-team,
.about-approach {
  margin-bottom: 50px;
}

.about-mission h2,
.about-team h2,
.about-approach h2,
.about-cta h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #fff;
  background: linear-gradient(90deg, #FF5F6D, #FFC371);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.about-mission p,
.about-team p,
.about-approach p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.about-approach-list {
  margin-top: 20px;
}

.about-approach-list li {
  margin-bottom: 15px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.about-approach-list .feature-icon {
  margin-right: 15px;
  font-size: 1.5rem;
}

.about-cta {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  margin-top: 60px;
}

.about-cta h2 {
  margin-bottom: 30px;
}

.about-cta .btn-primary {
  display: inline-block;
  margin-top: 20px;
}

.link-style.active {
  color: var(--color-primary);
  font-weight: 300;
}

@media (max-width: 768px) {
  .about-hero-section {
    padding: 100px 0 40px;
  }
  
  .about-intro {
    font-size: 1.2rem;
  }
  
  .about-mission h2,
  .about-team h2,
  .about-approach h2,
  .about-cta h2 {
    font-size: 1.7rem;
  }
  
  .about-cta {
    padding: 30px 20px;
  }
}

/* Apply to .categories-grid, .features-grid, .testimonials-grid */
.categories-grid,
.features-grid,
.testimonials-grid {
  display: grid;
  gap: 1.5rem; /* Spacing between grid items */
  /* Define columns - adjust based on design */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* --- Refined Card/Grid Item Styles --- */
.collection-card, /* Renamed for specificity */
.feature-item,    /* Renamed for specificity */
.testimonial-card /* Renamed for specificity */ {
  background-color: rgba(34, 34, 34, 0.8);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex; /* Use flexbox for content alignment */
  flex-direction: column; /* Stack content vertically */
}

/* Hover effect for cards */
.collection-card:hover,
.feature-item:hover,
.testimonial-card:hover {
  transform: translateY(-5px);
  background-color: rgba(51, 51, 51, 0.9);
}

/* --- Collection Card Specific Styles --- */
.collection-card .card-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #fff; /* Brighter title */
}

.collection-card .card-description {
  font-size: 0.9rem;
  color: #bbb;
  margin-bottom: 1rem;
  flex-grow: 1; /* Push link to bottom if card heights vary */
}

.collection-card .card-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a90e2; /* Link color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.collection-card .card-link:hover {
  color: #6aaaff; /* Lighter link on hover */
}

/* --- Feature Item Specific Styles --- */
.feature-item h4 {
  font-size: 1.1rem; /* Slightly smaller than collection title */
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #fff;
}

.feature-item p {
  font-size: 0.9rem;
  color: #bbb;
}

/* --- Testimonial Card Specific Styles --- */
.testimonial-card .testimonial-quote {
  font-size: 1rem;
  font-style: italic;
  color: #ddd;
  margin-bottom: 1rem;
  border-left: 3px solid rgba(255, 255, 255, 0.2); /* Subtle quote indicator */
  padding-left: 1rem;
  flex-grow: 1;
}

.testimonial-card .testimonial-author {
  font-size: 0.9rem;
  text-align: right;
}

.testimonial-card .author-name {
  display: block;
  font-weight: 500;
  color: #fff;
}

.testimonial-card .author-handle {
  font-size: 0.8rem;
  color: #888;
}

/* --- Grain Texture Overlay --- */
body::before {
  content: "";
  position: fixed; /* Or absolute, depending on context */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1; /* Adjust opacity for subtlety */
  z-index: -1; /* Place behind content */
  pointer-events: none; /* Allow interaction with elements below */
}

/* --- Typewriter caret for hero audience rotator --- */
@keyframes caret-blink {
  0%, 100% { border-right-color: transparent; }
  50% { border-right-color: currentColor; }
}

/* --- Signup Form Styling --- */
.signup-section form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.signup-section input[type="email"] {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  color: #eee;
  border-radius: 6px;
  min-width: 250px; /* Give it some base width */
  font-size: 1rem;
}

.signup-section input[type="email"]::placeholder {
  color: #888;
}

.signup-section button[type="submit"] {
  /* Use CTA styles */
  background-color: var(--color-primary);
  color: white;
  padding: 0.8rem 1.5rem;
  border: none; /* Remove default border */
  border-radius: 6px;
  font-weight: 500; /* Match CTA */
  transition: background-color 0.3s ease, transform 0.2s ease; /* Match CTA */
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: 0.5s ease;
}

.signup-section button[type="submit"]:hover {
  background-color: #e6321e; /* Match CTA hover */
  transform: scale(1.03); /* Match CTA hover */
}

/* --- General Button Hover (remove or adjust if CTA covers all) --- */
/* button:hover { ... } */ /* Commented out - CTA style is more specific */

/* --- Footer --- */
.site-footer {
  background-color: var(--color-bg-dark);
  color: #aaa;
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.footer-container {
  display: grid;
  grid-template-columns: 38.5% 32% 19.5%;
  gap: 5%;
  padding: 0;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 80px;
}

.footer-column {
  max-width: 90%;
}

.footer-cta-heading {
  font-size: 36px;
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
}

.footer-cta-link h2 {
  font-size: 36px;
  font-weight: 500;
  color: var(--color-primary);
  margin: 0;
  padding: 0 0 4px 0;
  text-decoration: none;
  display: inline;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, padding-bottom 0.2s;
}

.footer-cta-link h2:hover {
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 8px;
}

.footer-cta-link {
  text-decoration: none;
  display: inline-block;
  margin-top: 8px;
}

.footer-cta-button {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  padding: 12px 25px;
  border-radius: 0;
  font-weight: 400;
  font-size: 16px;
  transition: background-color 0.3s ease;
  text-transform: none;
}

.footer-cta-button:hover {
  background-color: #ff5500;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-logo-column {
  grid-column: 1;
}

.footer-services-column {
  grid-column: 2;
}

.footer-projects-column {
  grid-column: 3;
}

.footer-nav-column {
  grid-column: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: auto;
  display: block;
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1rem;
}

.footer-heading {
  font-size: 14px;
  color: #ffffff3a;
  font-weight: 300;
  margin-bottom: 5px;
  text-transform: none;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 5px;
}

.footer-links a {
  color: #fff;
  transition: color 0.2s ease;
  font-size: 14px;
  font-weight: 300;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-legal {
  display: grid;
  grid-template-columns: 38.5% 32% 19.5%;
  gap: 5%;
  align-items: center;
  padding-bottom: 25px;
  border-bottom: 1px solid rgb(255 255 255 / 4%);
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1400px;
  margin: 25px auto 0 auto;
  font-size: 14px;
  color: #fff;
  background: transparent;
}

.footer-legal {
  margin-bottom: 24px;
}

.footer-legal-col {
  display: flex;
  align-items: center;
}

.footer-legal-links {
  display: flex;
  gap: 1rem;
}

.footer-legal a,
.footer-legal .footer-nav-link {
  color: #fff;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-legal a:hover,
.footer-legal .footer-nav-link:hover {
  color: var(--color-primary);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 300;
}

.footer-nav-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  transition: color 0.2s ease;
}

.footer-nav-link:hover {
  color: #fff;
}

.footer-nav-link.active {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-legal-links {
    order: 2;
  }
  
  .footer-copyright {
    order: 1;
  }
}

@media (max-width: 576px) {
  .footer-bottom .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo-column,
  .footer-services-column,
  .footer-projects-column,
  .footer-nav-column {
    grid-column: 1;
  }
  
  .footer-logo-column {
    grid-row: 1;
  }
  
  .footer-services-column {
    grid-row: 2;
  }
  
  .footer-projects-column {
    grid-row: 3;
  }
  
  .footer-nav-column {
    grid-row: 4;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }
  
  .footer-links {
    align-items: center;
  }
}

/* --- Other Styles --- */

/* Footer styles updated to new design with columns */

/* Footer bottom section with line and copyright */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 94%;
  margin: 0 auto;
  padding: 1.5rem 0;
}

.footer-bottom .container {
  display: grid;
  grid-template-columns: 50% 25% 25%;
  align-items: center;
  padding: 0;
  margin: 0;
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-nav-links {
  display: flex;
  gap: 2rem;
}

.footer-nav-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-nav-link:hover {
  color: #ffffff;
}

@media (max-width: 576px) {
  .footer-bottom .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-copyright {
    order: 2;
  }
  
  .footer-nav-links {
    order: 1;
    justify-content: center;
  }
}

/* --- Responsive adjustments */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem; /* Slightly smaller headline */
  }

  main section h2 {
    font-size: 1.8rem;
  }

  /* Adjust grid columns for smaller screens */
  .categories-grid,
  .features-grid,
  .testimonials-grid {
    /* Change to 1 or 2 columns */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .site-header nav {
    /* Adjust layout for smaller screens if needed */
    /* Example: maybe stack or use a burger menu later */
    flex-wrap: wrap; /* Allow wrapping if needed */
    justify-content: center; /* Center items when wrapped */
    gap: 1rem;
  }

  .site-header .nav-left,
  .site-header .nav-right {
    /* Center the lists when stacked below logo */
    width: 100%;
    justify-content: center;
  }

  .site-header .nav-logo {
    order: -1; /* Ensure logo stays visually prominent */
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  html {
    font-size: 14px; /* Keep mobile slightly smaller or adjust */
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  main section {
    padding: 3rem 0;
  }

  main section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .categories-grid,
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 1rem;
  }

  .signup-section form {
    flex-direction: column; /* Stack form elements */
    align-items: center;
  }

  .signup-section input[type="email"] {
    width: 90%; /* Make input wider */
    min-width: unset;
  }

  .signup-section button[type="submit"] {
    width: 90%; /* Make button wider */
  }
}

/* --- AI Applications Section --- */
.ai-applications-section {
  background-color: var(--color-bg-dark);
  padding: 14rem 0 20rem;
  position: relative;
  overflow: hidden;
}

.ai-applications-section .fullwidth-container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.ai-applications-section {
  padding-left: 0;
  padding-right: 0;
}

.section-header {
  text-align: left;
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end;
  gap: 2rem;
}

.header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.header-right {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.heading-h1, h1.heading-h1, .ai-app-title {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  margin: 0;
  padding: 0;
  text-transform: none;
  max-width: 800px;
  align-self: flex-start;
  text-align: left;
}

@media (max-width: 900px) {
  .section-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .header-right {
    justify-content: flex-start;
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  .heading-h1, h1.heading-h1, .ai-app-title {
    font-size: 2rem;
  }
}

.section-subheading {
  font-size: 1.1rem;
  line-height: 1.5;
  max-width: 400px;
  margin: 0;
  padding: 0;
  text-align: left;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
}

.section-headline-subheading {
 font-size: 48px;
 font-weight: 500;
 line-height: 1.2;
 color: rgba(255, 255, 255, 0.3);
 margin: 0;
 padding: 0;
 text-transform: none;
 text-align: left;
}

/* Custom: align box right, text left */
.section-subheading {
  float: right;
  text-align: left;
  font-size: 14px;
}

.success-cards { display: none !important; }

/* --- Content Type Loop Section --- */
.content-type {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
}
.cards-track {
  display: flex;
  gap: 2rem;
  width: max-content;

}

.success-card {
  flex: 0 0 auto;
  width: 250px;
  height: 350px;
  padding: 15px;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.success-card:hover {
  background-color: rgba(255, 255, 255, 1);
}

.content-type:hover .cards-track {
  animation-play-state: paused;
}

.card-title {
  color: #000;
  font-size: 16px;
  font-weight: 500;
}

.card-image {
  height: 266px;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  margin-top: auto;
}

.articles-image {
  background-image: url('/public/images/Articles.svg');
}

.blog-posts-image {
  background-image: url('/public/images/Blog Posts.svg');
}

.white-papers-image {
  background-image: url('/public/images/White Papers.svg');
}

.strategy-documents-image {
  background-image: url('/public/images/Strategy Documents.svg');
}

.client-deliverables-image {
  background-image: url('/public/images/Client Deliverables.svg');
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .section-headline {
    font-size: 3rem;
  }
  
  .section-subheading {
    margin-left: 0;
  }
  
  .success-cards {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 576px) {
  .ai-applications-section {
    padding: 4rem 0;
  }
  
  .section-headline {
    font-size: 2.5rem;
  }
  
  .success-cards {
    grid-template-columns: 1fr;
  }
}

/* --- Online Education Section --- */
.online-education-section {
  background-color: #fff;
  height: 110vh;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden; /* Changed from visible to hidden to contain gradient images */
  max-width: none;
}

/* Gradient background images */

/* Left gradient background image */
.bg-gradient-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  z-index: 0; /* Behind all content */
  pointer-events: none; /* Allow clicks to pass through */
  opacity: 0;
  animation: gradientFadeInLeft 2.5s ease-out forwards;
}

/* Right gradient background image */
.bg-gradient-right {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 90%;
  z-index: 0; /* Behind all content */
  pointer-events: none; /* Allow clicks to pass through */
  opacity: 0;
  animation: gradientFadeInRight 2.5s ease-out forwards;
  animation-delay: 0.5s;
}

.education-two-columns {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1; /* Above the background images */
}

.education-left-column,
.education-right-column {
  width: 50%;
  position: relative;
  padding: 140px 40px;
}

.education-titles {
  margin-bottom: 50px;
}

.service-label {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 500;
}

.online-education-title {
  color: #000;
  font-size: 68px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  padding: 0;
}

.education-services {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.education-service-item {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  border-bottom: 1px solid rgb(230 230 230);
  padding-bottom: 15px;
  font-size: 36px;
  cursor: pointer;
}

.service-number {
  color: rgba(0, 0, 0, 0.2);
  font-size: 36px;
  font-weight: 500;
  min-width: 40px;
}

.service-title {
  color: #000;
  font-size: 36px;
  font-weight: 500;
  margin: 0;
}

.education-case-study {
  background-color: white;
  width: 80%;
  color: rgba(0, 0, 0, 0.5);
  padding: 40px;
  border-radius: 10px;
  display: none; /* Hide by default */
  flex-direction: column;
  margin-top: 60px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.08);
}

.education-case-study p {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 30px;
}

.key-elements h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
}

.key-elements ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.key-elements li {
  font-size: 16px;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.key-elements li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

/* Gradient animation keyframes */
@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Gradient entry animations */
@keyframes gradientFadeInLeft {
  0% { 
    opacity: 0; 
    transform: rotate(-15deg) translateY(-20%);
  }
  100% { 
    opacity: 1; 
    transform: rotate(0deg) translateY(0);
  }
}

@keyframes gradientFadeInRight {
  0% { 
    opacity: 0; 
    transform: rotate(15deg) translateX(20%);
  }
  100% { 
    opacity: 1; 
    transform: rotate(0deg) translateX(0);
  }
}

/* --- Interactions and animations */

.base-text-50 {
  color: rgba(255, 255, 255, 0.5);
}

/* --- Logo Slideshow */
.education-left-column .row-logo .logo-slideshow {
  position: static;
  height: auto;
  margin-bottom: 0;
}

/* Feature list styling */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9vw;
}

.feature-list li {
  margin-bottom: 12px;
  line-height: 1.4;
  display: block;
}

@media (max-width: 768px) {
  .feature-list {
    font-size: 1.2vw;
  }
}

@media (max-width: 576px) {
  .feature-list {
    font-size: 3.5vw;
  }
}

/* Ensure Manrope font for all table text */
.education-projects-header,
.education-projects-row,
.feature-list {
  font-family: 'Manrope', sans-serif;
}

/* Align font for description and feature list items */
.column-description p,
.feature-list li {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
}

/* Logo Slideshow */
.logo-slideshow {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding-top: 60px;
}

.logo-track {
  display: flex;
  gap: 50px;
  width: max-content;

  position: relative;
  transform: translateY(-50%);
}

.logo-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: transparent;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-circle img {
  max-width: 72px;
  max-height: 72px;
  object-fit: contain;
}



/* --- Approach Section Animations --- */
@keyframes stepFadeHorizontal {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes dotByDot {
  from { 
    background-position: -100% 0;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  to { 
    background-position: 0% 0;
    opacity: 1;
  }
}

/* Footer background image overlay */
.footer-bg-image {
  background-image: url('/public/images/thinkfox-footer.svg');
  background-repeat: no-repeat;
  background-size: 100% 140%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 94%;
  max-width: 1400px;
  height: 200px;
  display: block;
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

.site-footer {
  position: relative;
}

.education-rows {
  display: flex;
  flex-direction: column;
  justify-content: space-between;  /* Evenly space rows */
  gap: 80px;  /* Add gap between rows for better spacing */
}

.row-logo, .row-services {
  width: 100%;
}

.service-icon {
  width: 30px;
  height: auto;
  margin-left: auto;
  align-self: center;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.education-service-item:hover .service-title {
  color: var(--color-primary);
}

.education-service-item:hover .service-icon {
  opacity: 1;
  transform: translateX(0);
  filter: brightness(0) saturate(100%);
}

/* Wrapper for Hero & SWOT sections */
.hero-swot-wrapper {
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(0deg,var(--color-bg-dark) 50%, #3F0E08 100%);
  height: 100%;
  width: 100%;
}

.hero-swot-wrapper .bg-image {
  position: absolute;
  top: 0;
  width: auto;
  height: auto;
  object-fit: contain;
  z-index: -1;
  transition: transform 0.5s ease-out;
}

.hero-swot-wrapper .bg-image-left {
  left: 0;
  transform: translateX(-10%);
  animation: slide-in-left-move 4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards, 
             slide-in-left-fade 1.2s ease-out forwards;
  opacity: 0.3;
  animation-delay: 0s, 0s;
}

.hero-swot-wrapper .bg-image-right {
  right: 0;
  opacity: 0.3;
  transform: translateX(10%);
  animation: slide-in-right-move 4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards,
             slide-in-right-fade 1.2s ease-out forwards;
  animation-delay: 0s, 0s;
}

@keyframes slide-in-left-move {
  from {
    transform: translateX(-10%);
  }
  to {
    transform: translateX(0%);
  }
}

@keyframes slide-in-left-fade {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-in-right-move {
  from {
    transform: translateX(10%);
  }
  to {
    transform: translateX(0%);
  }
}

@keyframes slide-in-right-fade {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 0.8;
  }
}

/* Stars animation for hero-swot-wrapper - emulating CodePen style */
.hero-swot-wrapper {
  z-index: 0;
}

/* Adding stars using pseudo-elements */
/* Hero background image animations */
.bg-image {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.bg-image.animate-in {
  animation: none;
}

.bg-image-left.animate-in {
  animation: heroImageFadeInLeft 2.5s ease-out forwards;
}

.bg-image-right.animate-in {
  animation: heroImageFadeInRight 2.5s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes heroImageFadeInLeft {
  0% { 
    opacity: 0; 
    transform: rotate(-8deg) translateY(-15%);
  }
  100% { 
    opacity: 1; 
    transform: rotate(0deg) translateY(0);
  }
}

@keyframes heroImageFadeInRight {
  0% { 
    opacity: 0; 
    transform: rotate(8deg) translateY(-15%);
  }
  100% { 
    opacity: 1; 
    transform: rotate(0deg) translateY(0);
  }
}

.star {
  position: absolute;
  width: 1px;
  height: 1px;
  background: transparent;
  box-shadow: 
    700px 214px #FFF, 1622px 1584px #FFF, 763px 370px #FFF,
    1745px 911px #FFF, 503px 1008px #FFF, 1460px 632px #FFF,
    380px 869px #FFF, 1883px 80px #FFF, 513px 140px #FFF,
    1165px 893px #FFF, 1175px 175px #FFF, 555px 1699px #FFF,
    555px 343px #FFF, 54px 1457px #FFF, 1200px 830px #FFF,
    23px 1083px #FFF, 1299px 1205px #FFF, 1078px 812px #FFF,
    1521px 729px #FFF, 1400px 933px #FFF, 1255px 1218px #FFF,
    1285px 760px #FFF, 1430px 1379px #FFF, 756px 214px #FFF,
    1093px 1767px #FFF, 1074px 289px #FFF, 1549px 1108px #FFF,
    1481px 1504px #FFF, 908px 1051px #FFF, 1296px 899px #FFF,
    356px 225px #FFF, 1806px 403px #FFF, 1269px 550px #FFF,
    1799px 466px #FFF, 1096px 1398px #FFF, 1847px 1692px #FFF,
    146px 387px #FFF, 49px 1309px #FFF, 1011px 1497px #FFF,
    1881px 240px #FFF, 34px 1109px #FFF, 254px 208px #FFF,
    1117px 1778px #FFF, 102px 438px #FFF, 1607px 195px #FFF,
    1903px 19px #FFF, 1446px 765px #FFF, 707px 1782px #FFF,
    1609px 951px #FFF, 1879px 1370px #FFF, 1940px 1402px #FFF;
}

.star-medium {
  position: absolute;
  width: 2px;
  height: 2px;
  background: transparent;
  box-shadow: 
    709px 606px #FFF, 1215px 1165px #FFF, 500px 270px #FFF,
    1700px 500px #FFF, 300px 400px #FFF, 1200px 300px #FFF,
    200px 700px #FFF, 1800px 200px #FFF, 400px 100px #FFF,
    1100px 800px #FFF, 1000px 200px #FFF, 500px 1600px #FFF,
    500px 350px #FFF, 50px 1400px #FFF, 1000px 800px #FFF,
    25px 1000px #FFF, 1200px 1100px #FFF, 1000px 800px #FFF,
    1500px 700px #FFF, 1300px 900px #FFF, 1200px 1200px #FFF,
    1200px 700px #FFF, 1300px 1300px #FFF, 700px 200px #FFF,
    1000px 1700px #FFF, 1000px 300px #FFF, 1500px 1100px #FFF;
}

.star-large {
  position: absolute;
  width: 3px;
  height: 3px;
  background: transparent;
  box-shadow: 
    700px 600px #FFF, 1200px 1100px #FFF, 500px 300px #FFF,
    1700px 500px #FFF, 300px 400px #FFF, 1200px 300px #FFF,
    200px 700px #FFF, 1800px 200px #FFF, 400px 100px #FFF,
    1100px 800px #FFF, 1000px 200px #FFF, 500px 1600px #FFF;
}

/* Animation for stars */
.star {
  animation: animStar 25s linear infinite;
}

.star:after {
  content: " ";
  position: absolute;
  top: -2000px; /* Match the animation distance */
  width: 1px;
  height: 1px;
  background: transparent;
  box-shadow: 
    700px 214px #FFF, 1622px 1584px #FFF, 763px 370px #FFF,
    1745px 911px #FFF, 503px 1008px #FFF, 1460px 632px #FFF,
    380px 869px #FFF, 1883px 80px #FFF, 513px 140px #FFF,
    1165px 893px #FFF, 1175px 175px #FFF, 555px 1699px #FFF,
    555px 343px #FFF, 54px 1457px #FFF, 1200px 830px #FFF,
    23px 1083px #FFF, 1299px 1205px #FFF, 1078px 812px #FFF,
    1521px 729px #FFF, 1400px 933px #FFF, 1255px 1218px #FFF,
    1285px 760px #FFF, 1430px 1379px #FFF, 756px 214px #FFF,
    1093px 1767px #FFF, 1074px 289px #FFF, 1549px 1108px #FFF,
    1481px 1504px #FFF, 908px 1051px #FFF, 1296px 899px #FFF,
    356px 225px #FFF, 1806px 403px #FFF, 1269px 550px #FFF,
    1799px 466px #FFF, 1096px 1398px #FFF, 1847px 1692px #FFF,
    146px 387px #FFF, 49px 1309px #FFF, 1011px 1497px #FFF,
    1881px 240px #FFF, 34px 1109px #FFF, 254px 208px #FFF,
    1117px 1778px #FFF, 102px 438px #FFF, 1607px 195px #FFF,
    1903px 19px #FFF, 1446px 765px #FFF, 707px 1782px #FFF,
    1609px 951px #FFF, 1879px 1370px #FFF, 1940px 1402px #FFF;
}

.star-medium {
  animation: animStar 15s linear infinite;
}

.star-medium:after {
  content: " ";
  position: absolute;
  top: -2000px;
  width: 2px;
  height: 2px;
  background: transparent;
  box-shadow: 
    709px 606px #FFF, 1215px 1165px #FFF, 500px 270px #FFF,
    1700px 500px #FFF, 300px 400px #FFF, 1200px 300px #FFF,
    200px 700px #FFF, 1800px 200px #FFF, 400px 100px #FFF,
    1100px 800px #FFF, 1000px 200px #FFF, 500px 1600px #FFF,
    500px 350px #FFF, 50px 1400px #FFF, 1000px 800px #FFF,
    25px 1000px #FFF, 1200px 1100px #FFF, 1000px 800px #FFF,
    1500px 700px #FFF, 1300px 900px #FFF, 1200px 1200px #FFF,
    1200px 700px #FFF, 1300px 1300px #FFF, 700px 200px #FFF,
    1000px 1700px #FFF, 1000px 300px #FFF, 1500px 1100px #FFF;
}

.star-large {
  animation: animStar 10s linear infinite;
}

.star-large:after {
  content: " ";
  position: absolute;
  top: -2000px;
  width: 3px;
  height: 3px;
  background: transparent;
  box-shadow: 
    700px 600px #FFF, 1200px 1100px #FFF, 500px 300px #FFF,
    1700px 500px #FFF, 300px 400px #FFF, 1200px 300px #FFF,
    200px 700px #FFF, 1800px 200px #FFF, 400px 100px #FFF,
    1100px 800px #FFF, 1000px 200px #FFF, 500px 1600px #FFF;
}

@keyframes animStar {
  from {
    transform: translateY(-2000px);
  }
  to {
    transform: translateY(2000px);
  }
}

/* Adding shooting stars for extra effect */
.shooting-star {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 2px;
  background: linear-gradient(-45deg, #5f91ff, rgba(0, 0, 255, 0));
  border-radius: 999px;
  filter: drop-shadow(0 0 6px #699bff);
  animation: shoot 3s ease-in-out infinite;
  opacity: 0;
}

.shooting-star:nth-child(1) {
  left: 25%;
  top: 20%;
  animation-delay: 1s;
}

.shooting-star:nth-child(2) {
  left: 65%;
  top: 35%;
  animation-delay: 3s;
}

@keyframes shoot {
  0% {
    transform: rotate(215deg) translateX(0);
    width: 0;
    opacity: 0;
  }
  5% {
    width: 50px;
    opacity: 1;
  }
  10% {
    transform: rotate(215deg) translateX(-200px);
    width: 0;
    opacity: 0;
  }
  100% {
    transform: rotate(215deg) translateX(-200px);
    width: 0;
    opacity: 0;
  }
}

/* General Styles for Animated Page Titles */
.letter-animation, .letter-animation-fast {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px); /* Initial position for animation */
}

.letter-animation {
    animation: fadeInLetter 0.3s forwards;
}

.letter-animation-fast {
    animation: fadeInLetter 0.15s forwards; /* 2x faster */
}

@keyframes fadeInLetter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional global styles can go here */

/* --- New Education Service Boxes --- */
.service-boxes-wrapper {
  display: flex;
  gap: 12%; /* Adjust gap as needed */
  margin-top: 10px; /* Space below titles or above logos */
}

.education-service-box {
  flex: 1; /* Each box takes equal space */
  border-radius: 8px;
  overflow: hidden; /* To ensure child corners are clipped by parent's border-radius */
  display: flex;
  flex-direction: column;
  position: relative; /* Added for absolute positioning of child SVG */
}

.service-box-title-area {
  padding: 30px;
  color: #1E1E1E; /* Dark text for light background */
}

.service-box-title-area h3 {
  margin: 0;
  font-size: 20px; /* Adjust as needed */
  font-weight: 500;
  line-height: 1.3;
}

.service-box-description-area {
  background-color: rgba(0, 0, 0, 0.05); /* Dark grey/black */
  padding: 30px;
  color: rgba(0, 0, 0, 0.8); 
  font-weight: 300;
  flex-grow: 1; /* Ensures this area fills available space if titles are different heights */
}

.service-box-description-area p {
  margin: 0;
  font-size: 14px; /* Adjust as needed */
  line-height: 1.6;
  opacity: 0.8; /* Slightly lighter text for description */
}

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

.service-box-bg-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Or 'contain' if preferred */
  z-index: -1;
  opacity: 1; /* Adjust as needed for subtlety */
  border-radius: 8px; /* Match parent's border-radius */
  animation: spin 10s linear infinite; /* Adjust duration as needed */
}

.service-box-content-wrapper {
  position: relative; /* To ensure it's above the absolute positioned SVG */
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.4); /* Fallback, though children will cover it */
  backdrop-filter: blur(30px);
}

/* Contact page styles are in contact.css */

/* Theme compatibility layer */
html[data-theme="light"] body,
html[data-theme="light"] main {
  background-color: var(--theme-bg);
  color: var(--theme-text-body);
}

html[data-theme="light"] .hero-swot-wrapper,
html[data-theme="light"] .ai-applications-section,
html[data-theme="light"] .about-hero-team-bg-img,
html[data-theme="light"] .sets-apart-section,
html[data-theme="light"] .approach-section,
html[data-theme="light"] .online-education-section,
html[data-theme="light"] .ai-content-studio-section {
  background-color: var(--theme-bg);
  color: var(--theme-text-body);
}

html[data-theme="light"] .bg-image,
html[data-theme="light"] .bg-gradient-left,
html[data-theme="light"] .bg-gradient-right,
html[data-theme="light"] .fading-planet-bg,
html[data-theme="light"] .circles-background-svg,
html[data-theme="light"] .hero-background-image-element {
  opacity: var(--theme-glow-opacity);
}

html[data-theme="light"] .star,
html[data-theme="light"] .star-medium,
html[data-theme="light"] .star-large,
html[data-theme="light"] .shooting-star {
  opacity: var(--theme-star-opacity);
}

html[data-theme="light"] .heading-h1,
html[data-theme="light"] .swot-headline,
html[data-theme="light"] .about-heading,
html[data-theme="light"] .about-title,
html[data-theme="light"] .section-heading,
html[data-theme="light"] .services-heading,
html[data-theme="light"] .project-section-title,
html[data-theme="light"] .ai-applications-title,
html[data-theme="light"] .contact-heading {
  color: var(--theme-text-dim);
}

html[data-theme="light"] .hero-highlight,
html[data-theme="light"] .swot-headline .highlight,
html[data-theme="light"] .text-white,
html[data-theme="light"] .no-color,
html[data-theme="light"] .collection-title,
html[data-theme="light"] .team-member-role,
html[data-theme="light"] .footer-col h4 {
  color: var(--theme-text) !important;
  -webkit-text-fill-color: var(--theme-text);
}

html[data-theme="light"] .base-text-50,
html[data-theme="light"] .about-heading .animate-text,
html[data-theme="light"] .what-sets-us-apart-heading .animate-text,
html[data-theme="light"] .about-title,
html[data-theme="light"] .services-subtitle,
html[data-theme="light"] .project-description,
html[data-theme="light"] .page-hero-intro,
html[data-theme="light"] .contact-subtitle,
html[data-theme="light"] .swot-description,
html[data-theme="light"] .approach-description,
html[data-theme="light"] .section-description {
  color: var(--theme-text-muted);
}

html[data-theme="light"] .tag,
html[data-theme="light"] .swot-feature-number-box,
html[data-theme="light"] .approach-step-number,
html[data-theme="light"] .circle-number,
html[data-theme="light"] .service-number-badge {
  background-color: var(--theme-chip-bg);
  box-shadow: var(--theme-shadow-card);
}

html[data-theme="light"] .tag-title {
  color: var(--theme-chip-text);
}

html[data-theme="light"] .collection-card,
html[data-theme="light"] .team-member-card,
html[data-theme="light"] .why-matters-card,
html[data-theme="light"] .content-card,
html[data-theme="light"] .contact-form-container,
html[data-theme="light"] .service-box-content-wrapper {
  background-color: var(--theme-surface-raised);
  color: var(--theme-text);
  border-color: var(--theme-artifact-border);
  box-shadow: var(--theme-shadow-card);
}

html[data-theme="light"] .sets-apart-description,
html[data-theme="light"] .benefit-description,
html[data-theme="light"] .service-box-description-area {
  background-color: var(--theme-surface-muted);
  color: var(--theme-text-body);
}

html[data-theme="light"] .team-member-name,
html[data-theme="light"] .team-member-bio,
html[data-theme="light"] .article-card-title,
html[data-theme="light"] .cycle-card-title {
  color: var(--theme-text);
}

html[data-theme="light"] .team-member-name,
html[data-theme="light"] .cycle-card-subtitle,
html[data-theme="light"] .team-member-bio {
  opacity: 1;
}

html[data-theme="light"] .logo-circle,
html[data-theme="light"] .project-display-left,
html[data-theme="light"] .article-visual,
html[data-theme="light"] .article-figure,
html[data-theme="light"] .article-image-frame {
  background: var(--theme-image-well-bg);
  border-color: var(--theme-image-well-border);
  box-shadow: var(--theme-shadow-card);
}

html[data-theme="light"] .lab-starfield-canvas {
  opacity: 0.22;
}

html[data-theme="light"] .logo-img-white-v2,
html[data-theme="light"] .logo-img-white-desktop {
  display: none !important;
}

html[data-theme="light"] .logo-img-black-v2,
html[data-theme="light"] .logo-img-black-desktop {
  display: block !important;
}

html[data-theme="light"] .swot-features li,
html[data-theme="light"] .benefit-circle,
html[data-theme="light"] .benefit-circle h3,
html[data-theme="light"] .benefit-circle p,
html[data-theme="light"] .item-content {
  color: var(--theme-text-body);
}

html[data-theme="light"] .approach-title,
html[data-theme="light"] .step-title,
html[data-theme="light"] .why-it-matters-section,
html[data-theme="light"] .why-matters-title {
  color: var(--theme-text);
}

html[data-theme="light"] .what-sets-us-apart-heading {
  color: var(--theme-text-muted);
}

html[data-theme="light"] .item-number {
  color: var(--theme-text-dim);
}

/* mix-blend-mode: screen would render circle text invisible on the light surface */
html[data-theme="light"] .benefit-circle {
  mix-blend-mode: normal;
}

html[data-theme="light"] .hero-section .hero-gradient {
  /* Gradient text washes out against the light hero glow; use solid dark text */
  background: none;
  color: var(--theme-text);
  -webkit-text-fill-color: var(--theme-text);
}

html[data-theme="light"] .new-article-card {
  color: var(--theme-text);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* About: founder bio and ThinkFox story read as one column of prose, not a card grid */
.founder-bio-section .sets-apart-grid {
  display: block;
  max-width: 680px;
}

.founder-bio-section .sets-apart-item p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 1.2rem 0;
}

.founder-bio-section .sets-apart-grid-container + .sets-apart-grid-container {
  margin-top: 3rem;
}

/* Home services boxes carry a title only (the openings live on /services.html),
   so give the title area the height the description used to provide. */
.online-education-section .service-box-title-area {
  min-height: 170px;
  box-sizing: border-box;
}
