@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --accent: #6366f1;
  --content-width: 960px;
  --team-content-width: 1800px;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --border-radius: 16px;
  --image-border-radius: 4px;
  --divider-color: rgba(176, 176, 176, 0.25);
}

/* Hide scrollbar while maintaining functionality */
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

::-webkit-scrollbar {
  display: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  padding-top: 100px;
  font-size: 1.05rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.team-container {
  max-width: var(--team-content-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

h1,
h2 {
  font-weight: 700;
  line-height: 1.2;
}

.super-heading {
  font-size: 6rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Home page specific spacing */
.home-super-heading {
  margin-bottom: 0rem;
}

.home-h1 {
  margin-top: -0.5rem;
  padding-top: 0.5rem; 
  margin-bottom: 2rem;
}

h1 {
  font-size: 2rem;
  margin-top: var(--spacing-md);
  margin-bottom: 0.3rem;
  padding-top: 1.25rem;
}

h1.section-divider {
  padding-top: 0.75rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: var(--spacing-md);
  margin-bottom: 0.5rem;
  padding-top: 1.2rem;
  color: var(--text-secondary);
}

/* Style h2 elements in update pages to match solution page h2 color */
.container > section > h2 {
  color: var(--text-primary);
}

.section-divider,
.section-divider-alt {
  border-top: 2px solid var(--divider-color);
}

p {
  margin-bottom: var(--spacing-md);
  font-weight: 300;
  font-size: 1.15rem;
}

/* Problem section styling */
.problem-section p + ul {
  margin-top: -1.5rem;
}

.problem-section ul {
  margin-bottom: 0.5rem;
  margin-top: 0;
  padding-left: 1.5rem;
  list-style-position: outside;
}

.problem-section li {
  margin-bottom: 0;
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1.6;
}

.problem-section img {
  max-width: 100%;
  border-radius: var(--image-border-radius);
  margin: calc(var(--spacing-md) * 0.5) 0;
}

.problem-section {
  margin-bottom: var(--spacing-md);
}

/* Image and text layout */
.image-text-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: 0.3rem;
}

.images-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

@media (min-width: 768px) {
  .image-text-container {
    flex-direction: row;
    align-items: flex-start;
  }

  .images-wrapper {
    max-width: 40%;
    order: 2;
  }

  .image-text-container > div:not(.images-wrapper) {
    max-width: 55%;
    order: 1;
    margin-top: 0.5rem;
  }

  .image-text-container img {
    max-width: 100%;
    margin-top: 0;
  }
}

/* Solution page styling */
.top-image-container,
.bottom-image-container {
  margin: 2rem 0;
  text-align: center;
}

.full-width-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--image-border-radius);
  object-fit: cover;
}

.centered-image {
  max-width: 80%;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: var(--image-border-radius);
}

.image-caption {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
  font-weight: 300;
}

.solution-layout {
  display: flex;
  gap: var(--spacing-md);
  margin: 2rem 0;
}

.solution-column {
  flex: 1;
}

.solution-column h2 {
  margin-top: 0;
  padding-top: 0;
  color: var(--text-primary);
}

.solution-column p + ul {
  margin-top: -1.5rem;
}

.solution-column ul {
  margin-bottom: 0.5rem;
  margin-top: 0;
  padding-left: 1.5rem;
  list-style-position: outside;
}

.solution-column li {
  margin-bottom: 0;
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Add consistent list styling for tutorials and update pages */
.container ul {
  margin-bottom: 0.5rem;
  margin-top: 0;
  padding-left: 1.5rem;
  list-style-position: outside;
}

.container li {
  margin-bottom: 0;
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1.6;
}

.container p + ul {
  margin-top: -1.5rem;
}

@media (max-width: 768px) {
  .solution-layout {
    flex-direction: column;
  }

  .centered-image {
    max-width: 100%;
  }
}

/* Team styling */
.team-layout {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
  justify-content: center;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

.team-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  position: relative;
  width: calc(50% - (var(--spacing-md) / 2));
  max-width: 400px;
}

.team-card {
  flex: 0 0 auto;
  padding: 1.5rem 1.5rem 2rem;
  text-align: center;
  opacity: 0;
  will-change: opacity;
  backface-visibility: hidden;
  width: 100%;
}

.team-card img {
  width: 100%;
  height: auto;
  border-radius: var(--image-border-radius);
  margin-bottom: var(--spacing-sm);
}

.team-card h1 {
  margin-top: 0;
  padding-top: 0;
}

.team-info {
  text-align: left;
}

.team-info h2 {
  margin-top: var(--spacing-sm);
  margin-bottom: 0.5rem;
  padding-top: 0;
}

.team-info p {
  margin-bottom: 0.5rem;
}

.divider-card {
  position: relative;
  padding-bottom: var(--spacing-md);
}

.divider-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--divider-color);
}

.centered-column {
  justify-content: center;
  position: relative;
  padding: var(--spacing-md) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-wrapper {
  position: relative;
  padding: var(--spacing-md) 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.card-wrapper::before,
.card-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--divider-color);
  width: 100%;
}

.card-wrapper::before {
  top: 0;
}

.card-wrapper::after {
  bottom: 0;
}

.team-heading-container {
  position: absolute;
  top: -2rem;
  right: 0;
  text-align: left;
  padding: 1rem;
  z-index: 1;
}

/* Button styling */
.button-container {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  position: relative;
}

/* Center button container on home page */
body:has(h1.home-super-heading) .button-container {
  justify-content: center;
}

.button-container-with-line {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  position: relative;
}

.button-container-with-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  width: calc(
    100% - 830px
  ); /* Increased from 770px to prevent clipping into "Our Team" button */
  background-color: var(--divider-color);
}

.vertical-button-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.gradient-button {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  min-width: 170px;
  text-align: center;
  background: linear-gradient(135deg, #3730a3 0%, #4f46e5 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1.125rem;
  border: none;
  box-shadow: 0 4px 6px rgba(99, 102, 241, 0.25);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.gradient-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -200%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    #6366f1e6 0%,
    #818cf8e6 50%,
    #a5b4fce6 75%,
    #a5b4fc00 100%
  );
  transition: left 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: -1;
}

.gradient-button:hover::before {
  left: 0;
}

.gradient-button:hover {
  box-shadow: 0 7px 14px rgba(99, 102, 241, 0.3);
}

.gradient-button:active {
  box-shadow: 0 5px 10px rgba(99, 102, 241, 0.4);
}

.arrow-button {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 0;
  min-width: auto;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--text-primary);
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.arrow-button::after {
  content: "❯";
  margin-left: 0.5rem;
  display: inline-block;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  font-size: 0.9em;
  line-height: 0;
  position: relative;
  top: 0.01em;
}

.arrow-button:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
}

.arrow-button:hover::after {
  transform: translateX(5px);
  color: #e2e5ff;
  text-shadow: 0 0 10px rgba(99, 102, 241, 1), 0 0 15px rgba(99, 102, 241, 0.9),
    0 0 20px rgba(99, 102, 241, 0.8);
}

/* Viewport Warning Styles */
.viewport-warning {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  backdrop-filter: none;
  z-index: 2000;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.warning-content {
  padding: 2rem;
  max-width: 90%;
}

.warning-content h2 {
  color: var(--text-primary);
  font-size: 1.6rem;
  margin: 0;
  padding: 0;
}

@media (max-width: 1200px) {
  .viewport-warning {
    display: flex;
  }
}

/* General utility classes */
.text-center {
  text-align: center;
}

img {
  border-radius: var(--image-border-radius);
  border: 2px solid var(--text-primary);
}

/* Image Carousel Styles */
.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 2.5rem 0;
  gap: 1.5rem;
}

.carousel-content {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
}

.carousel-images {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: var(--image-border-radius);
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: var(--image-border-radius);
  border: 2px solid var(--text-primary);
}

.carousel-image.active {
  opacity: 1;
}

/* Add this rule to fix carousel image clipping in .problem-section */
.problem-section .carousel-image {
  margin: 0; /* Reset margin that might be inherited from .problem-section img */
}

.carousel-arrow {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  font-weight: 500;
}

.carousel-arrow:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
}

.carousel-arrow:focus {
  outline: none;
}

.carousel-prev {
  margin-right: 0.5rem;
}

.carousel-next {
  margin-left: 0.5rem;
}

.carousel-caption {
  text-align: center;
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  .carousel-images {
    height: 300px;
  }
  
  .carousel-arrow {
    font-size: 1.2rem;
  }
}

/* Media queries */
@media (max-width: 768px) {
  .team-layout {
    flex-direction: column;
    align-items: center;
  }

  .team-column {
    width: 100%;
    max-width: 400px;
  }

  .team-card {
    margin-bottom: var(--spacing-md);
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .button-container {
    flex-direction: column;
    gap: 0.7rem;
  }

  .gradient-button {
    width: 100%;
  }
}

/* Add styles for the updates page */
.updates-list {
  margin-top: 2rem;
}

.updates-list ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.updates-list li {
  margin-bottom: 1.25rem;
}

.update-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.update-link:hover {
  color: var(--accent);
}
