:root {
  --primary: #f0f0f3;
  --accent: #8ecae6;
  --text: #111111;
  --top-shadow: #f6f1f1;
  --bottom-shadow: #d1d9e6;
  --glow: #1f51ff;
}

body.dark-mode {
  --primary: #1f1f1f;
  --accent: #00c896;
  --text: #ffffff;
  --top-shadow: #2a2a2a;
  --bottom-shadow: #0d0d0d;
  --glow: #39ff14;
  --color: rgba(114, 114, 114, 0.3);
  background-color: #191a1a;
  background-image: linear-gradient(
      0deg,
      transparent 24%,
      var(--color) 25%,
      var(--color) 26%,
      transparent 27%,
      transparent 74%,
      var(--color) 75%,
      var(--color) 76%,
      transparent 77%,
      transparent
    ),
    linear-gradient(
      90deg,
      transparent 24%,
      var(--color) 25%,
      var(--color) 26%,
      transparent 27%,
      transparent 74%,
      var(--color) 75%,
      var(--color) 76%,
      transparent 77%,
      transparent
    );
  background-size: 55px 55px;
  background-attachment: fixed;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--primary);
  color: var(--text);
  --color: #e1e1e1;
  background-color: #f3f3f3;
  background-image: linear-gradient(
      0deg,
      transparent 24%,
      var(--color) 25%,
      var(--color) 26%,
      transparent 27%,
      transparent 74%,
      var(--color) 75%,
      var(--color) 76%,
      transparent 77%,
      transparent
    ),
    linear-gradient(
      90deg,
      transparent 24%,
      var(--color) 25%,
      var(--color) 26%,
      transparent 27%,
      transparent 74%,
      var(--color) 75%,
      var(--color) 76%,
      transparent 77%,
      transparent
    );
  background-size: 55px 55px;
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

body::selection {
  background-color: var(--accent);
  color: var(--text);
}

/* Main Layout */
.about-main {
  position: relative;
  padding-top: 100px;
  min-height: 100vh;
}

/* Background Elements */
.background-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  animation: floatBlob 20s ease-in-out infinite alternate;
  background: var(--accent);
}

.blob-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: -5%;
  animation-duration: 25s;
}

.blob-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: -5%;
  animation-duration: 30s;
  animation-delay: -10s;
}

.blob-3 {
  width: 250px;
  height: 250px;
  bottom: 20%;
  left: 50%;
  animation-duration: 35s;
  animation-delay: -20s;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.about-hero {
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.accent-text {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--accent);
  opacity: 0.9;
  line-height: 1.6;
}

/* Section Title */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text);
  font-weight: 600;
}

/* Story Section */
.story-section {
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}

.story-card {
  background: var(--primary);
  border-radius: 25px;
  padding: 3rem;
  box-shadow: 20px 20px 60px var(--bottom-shadow), -20px -20px 60px var(--top-shadow);
  display: flex;
  align-items: center;
  gap: 3rem;
  transition: all 0.3s ease;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 25px 25px 70px var(--bottom-shadow), -25px -25px 70px var(--top-shadow);
}

.story-icon {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 10px 10px 20px var(--bottom-shadow), inset -10px -10px 20px var(--top-shadow);
  transition: all 0.3s ease;
}

.story-icon .story-icon-icon {
  height: 50%;
  width: 50%;
  color: var(--accent);
}

.story-content h2 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.story-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.story-content p:last-child {
  margin-bottom: 0;
}

/* Features Grid */
.features-grid {
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}

.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-item {
  background: var(--primary);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 15px 15px 40px var(--bottom-shadow), -15px -15px 40px var(--top-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 20px 20px 50px var(--bottom-shadow), -20px -20px 50px var(--top-shadow);
}

.feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.feature-item:hover::before {
  left: 100%;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: inset 8px 8px 16px var(--bottom-shadow), inset -8px -8px 16px var(--top-shadow);
  transition: all 0.3s ease;
}

.feature-icon i {
  font-size: 2rem;
  color: var(--accent);
}

.feature-item h3 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-item p {
  color: var(--text);
  line-height: 1.6;
  opacity: 0.9;
}

/* Mission Section */
.mission-section {
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}

.mission-card {
  background: var(--primary);
  border-radius: 25px;
  padding: 3rem;
  box-shadow: 20px 20px 60px var(--bottom-shadow), -20px -20px 60px var(--top-shadow);
  display: flex;
  align-items: center;
  gap: 3rem;
  transition: all 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-5px);
}

.mission-content {
  flex: 1;
}

.mission-content h2 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.mission-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 2rem;
}

.mission-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--primary);
  border-radius: 15px;
  box-shadow: inset 5px 5px 10px var(--bottom-shadow), inset -5px -5px 10px var(--top-shadow);
  min-width: 120px;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.8;
}

.mission-visual {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 15px 15px 30px var(--bottom-shadow), inset -15px -15px 30px var(--top-shadow);
}

.mission-visual .mission-visual-icon {
  height: 50%;
  width: 50%;
  color: var(--accent);
}

/* Values Section */
.values-section {
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.value-card {
  background: var(--primary);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 15px 15px 40px var(--bottom-shadow), -15px -15px 40px var(--top-shadow);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 20px 20px 50px var(--bottom-shadow), -20px -20px 50px var(--top-shadow);
}

.value-icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: inset 8px 8px 16px var(--bottom-shadow), inset -8px -8px 16px var(--top-shadow);
}

.value-icon i {
  font-size: 2rem;
  color: var(--accent);
}

.value-card h3 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}

.value-card p {
  color: var(--text);
  line-height: 1.6;
  opacity: 0.9;
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-card {
  background: var(--primary);
  border-radius: 25px;
  padding: 3rem;
  text-align: center;
  box-shadow: 20px 20px 60px var(--bottom-shadow), -20px -20px 60px var(--top-shadow);
  transition: all 0.3s ease;
  width: 100%;
}

.cta-card:hover {
  transform: translateY(-5px);
}

.cta-card h2 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}

.cta-card p {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 8px 8px 20px var(--bottom-shadow), -8px -8px 20px var(--top-shadow);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 12px 12px 25px var(--bottom-shadow), -12px -12px 25px var(--top-shadow);
}

.cta-btn.primary {
  background: var(--accent);
  color: var(--text);
}

.cta-btn.secondary {
  background: var(--primary);
  color: var(--text);
}

.cta-btn.secondary:hover {
  box-shadow: inset 8px 8px 20px var(--bottom-shadow), inset -8px -8px 20px var(--top-shadow);
}

/* Animations */
@keyframes floatBlob {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  25% {
    transform: translate(30px, -20px) scale(1.1) rotate(5deg);
  }
  50% {
    transform: translate(-20px, 15px) scale(0.95) rotate(-3deg);
  }
  75% {
    transform: translate(15px, 25px) scale(1.05) rotate(2deg);
  }
  100% {
    transform: translate(-10px, -15px) scale(1) rotate(-2deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-main {
    padding-top: 80px;
  }

  .container {
    padding: 0 1rem;
  }

  .about-hero {
    padding: 2rem 1rem;
  }

  .story-card,
  .mission-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    gap: 2rem;
  }

  .story-icon,
  .mission-visual {
    width: 100px;
    height: 100px;
  }

  .story-icon .story-icon-icon,
  .mission-visual .mission-visual-icon {
    height: 50%;
    width: 50%;
  }

  .features-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-item {
    padding: 2rem;
  }

  .mission-stats {
    justify-content: center;
    gap: 1rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .background-elements {
    display: none;
  }
}

@media (max-width: 480px) {
  .story-card,
  .mission-card,
  .cta-card {
    padding: 1.5rem;
  }

  .feature-item,
  .value-card {
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .story-content h2,
  .mission-content h2,
  .cta-card h2 {
    font-size: 2rem;
  }
}

/* Horizontal Scroll Sections */
.horizontal-scroll-section {
  padding: 4rem 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: fit-content;
}

.scroll-section-header {
  position: sticky;
  top: 20px;
  z-index: 10;
  background: var(--primary);
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-radius: 15px;
  box-shadow: 5px 5px 15px var(--bottom-shadow), -5px -5px 15px var(--top-shadow);
}

.scroll-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  color: var(--text);
  font-weight: 600;
  margin: 0;
  padding: 1rem 2rem;
}

.horizontal-scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--primary);
}

.horizontal-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
  background: var(--primary);
  border-radius: 10px;
  box-shadow: inset 2px 2px 4px var(--bottom-shadow), inset -2px -2px 4px var(--top-shadow);
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
  box-shadow: 2px 2px 4px var(--bottom-shadow), -2px -2px 4px var(--top-shadow);
}

.horizontal-cards {
  display: flex;
  gap: 2rem;
  padding: 0 2rem;
  min-width: max-content;
}

.horizontal-card {
  flex: 0 0 350px;
  background: var(--primary);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 15px 15px 40px var(--bottom-shadow), -15px -15px 40px var(--top-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.horizontal-card:hover {
  transform: translateY(-10px);
  box-shadow: 20px 20px 50px var(--bottom-shadow), -20px -20px 50px var(--top-shadow);
}

.horizontal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.horizontal-card:hover::before {
  left: 100%;
}

.card-icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: inset 8px 8px 16px var(--bottom-shadow), inset -8px -8px 16px var(--top-shadow);
  transition: all 0.3s ease;
}

.card-icon i {
  font-size: 2rem;
  color: var(--accent);
}

.horizontal-card h3 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}

.horizontal-card p {
  color: var(--text);
  line-height: 1.6;
  opacity: 0.9;
}

/* Mobile Responsive for Horizontal Sections */
@media (max-width: 768px) {
  .horizontal-scroll-section {
    height: fit-content;
    padding: 2rem 0;
  }

  .scroll-section-header {
    position: static;
    margin-bottom: 1rem;
    box-shadow: none;
    background: transparent;
  }

  .scroll-section-title {
    font-size: 1.8rem;
    padding: 0.5rem 1rem;
  }

  .horizontal-cards {
    flex-direction: column;
    padding: 0 1rem;
    min-width: auto;
  }

  .horizontal-card {
    flex: none;
    width: 100%;
    padding: 2rem;
  }

  .horizontal-scroll-container {
    overflow-x: visible;
  }
}

@media (max-width: 480px) {
  .horizontal-card {
    padding: 1.5rem;
  }

  .scroll-section-title {
    font-size: 1.5rem;
  }
}
