/* ====================================
   About Page - Cosmic Journey Theme
   ==================================== */

/* Global Styles for About Page */
.about-page {
  overflow-x: hidden;
  color: #333;
  font-family: 'Arial', sans-serif;
}

.about-page section {
  position: relative;
  padding: 100px 0;
  
}

.section-title {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 40px;
  color: #231651;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #7c23ff, #231651);
  margin: 15px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 50px;
}

.center-title {
  margin: 0 auto 40px;
  max-width: 700px;
}

/* ====================================
   Cosmic Hero Section
   ==================================== */
.cosmic-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  padding-top: 80px; /* Adjust based on your header height */
}

.cosmic-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 25px 5px, white, rgba(255, 255, 255, 0)),
    radial-gradient(1px 1px at 50px 25px, white, rgba(255, 255, 255, 0)),
    radial-gradient(1px 1px at 125px 20px, white, rgba(255, 255, 255, 0)),
    radial-gradient(1.5px 1.5px at 50px 75px, white, rgba(255, 255, 255, 0)),
    radial-gradient(2px 2px at 15px 125px, white, rgba(255, 255, 255, 0)),
    radial-gradient(2.5px 2.5px at 110px 80px, white, rgba(255, 255, 255, 0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: moving-stars 100s linear infinite;
  opacity: 0.6;
}

.cosmic-nebula {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 50%, rgba(124, 35, 255, 0.3), transparent 40%),
    radial-gradient(circle at 70% 50%, rgba(255, 94, 148, 0.3), transparent 40%),
    radial-gradient(circle at 50% 70%, rgba(64, 201, 142, 0.3), transparent 40%);
  filter: blur(40px);
  opacity: 0.6;
}

.cosmic-planet {
  position: absolute;
  width: 200px;
  height: 200px;
  bottom: -50px;
  right: 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 30%, #a67ff3, #5d17de);
  box-shadow: 0 0 50px rgba(124, 35, 255, 0.5);
  animation: planet-float 15s ease-in-out infinite;
}

.cosmic-planet::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 40px;
  border-radius: 50%;
  background: rgba(124, 35, 255, 0.3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(30deg);
}

.cosmic-title {
  font-size: 4.5rem;
  color: white;
  text-shadow: 0 0 15px rgba(124, 35, 255, 0.8);
  margin-bottom: 20px;
  animation: title-glow 4s ease-in-out infinite;
}

.cosmic-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto;
}

.cosmic-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: scroll-indicator 2s ease-in-out infinite;
}

.cosmic-scroll-indicator i {
  margin-top: 8px;
  font-size: 1.2rem;
}

/* ====================================
   Origin Story Section
   ==================================== */
.origin-story {
  background: white;
}

.origin-story .section-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.story-text {
  flex: 1;
}

.reveal-title {
  font-size: 2.5rem;
  color: #231651;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s, transform 0.5s;
}

.reveal-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #555;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s, transform 0.5s;
}

.reveal-text:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal-text:nth-child(3) {
  transition-delay: 0.2s;
}

.revealed .reveal-title,
.revealed .reveal-text {
  opacity: 1;
  transform: translateY(0);
}

.floating-image-container {
  flex: 1;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.floating-image {
  position: relative;
  width: 350px;
  height: 350px;
  transform-style: preserve-3d;
  animation: float-image 6s ease-in-out infinite;
}

.parallax-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(35, 22, 81, 0.2);
  background-color: #f0f2f8;
  background-image: linear-gradient(to right, #f0f2f8 0%, #e3e6f0 20%, #f0f2f8 40%, #f0f2f8 100%);
  background-size: 200% 100%;
  animation: image-loading 1s linear infinite;
}

.image-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.image-particles::before,
.image-particles::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(124, 35, 255, 0.8);
  filter: blur(2px);
  animation: particle-float 4s ease-in-out infinite;
}

.image-particles::before {
  top: 20%;
  left: -20px;
  animation-delay: 0s;
}

.image-particles::after {
  bottom: 30%;
  right: -15px;
  animation-delay: 2s;
}

/* ====================================
   Timeline Section
   ==================================== */
.timeline-section {
  background: #f8f8fc;
  overflow: hidden;
}

.timeline {
  position: relative;
  margin: 60px auto;
  max-width: 1000px;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, rgba(124, 35, 255, 0.3), rgba(93, 23, 222, 0.8));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.timeline-item.revealed {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:nth-child(even) {
  left: 50%;
  transform: translateX(50px);
}

.timeline-item:nth-child(even).revealed {
  transform: translateX(0);
}

.timeline-item::after {
  content: attr(data-year);
  position: absolute;
  width: 100px;
  height: 30px;
  background: #7c23ff;
  color: white;
  top: 20px;
  text-align: center;
  line-height: 30px;
  border-radius: 5px;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(124, 35, 255, 0.3);
}

.timeline-item:nth-child(odd)::after {
  right: -60px;
}

.timeline-item:nth-child(even)::after {
  left: -60px;
}

.timeline-content {
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(35, 22, 81, 0.1);
  position: relative;
}

.timeline-content h3 {
  margin-top: 0;
  color: #231651;
  font-size: 1.4rem;
}

.timeline-content p {
  margin-bottom: 0;
  line-height: 1.6;
  color: #555;
}

.timeline-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 5px 15px rgba(35, 22, 81, 0.2);
  top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c23ff;
  font-size: 1.5rem;
}

.timeline-item:nth-child(odd) .timeline-icon {
  right: -25px;
}

.timeline-item:nth-child(even) .timeline-icon {
  left: -25px;
}

/* ====================================
   Vision & Values Section
   ==================================== */
.vision-values {
  background: linear-gradient(135deg, #ffffff, #f0f2ff);
  overflow: hidden;
}

.orbital-values {
  position: relative;
  width: 100%;
  height: 600px;
  margin: 50px auto;
}

.orbital-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #7c23ff, #231651);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(124, 35, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.planet-core {
  color: white;
  font-weight: 700;
  font-size: 1.4rem;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.orbital-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  animation: orbit 60s linear infinite;
}

.value-orb {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(35, 22, 81, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.value-orb:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 15px 30px rgba(35, 22, 81, 0.25);
}

.value-orb i {
  font-size: 2rem;
  margin-bottom: 8px;
  color: #7c23ff;
}

.value-orb h3 {
  margin: 0;
  font-size: 1rem;
  color: #231651;
}

.value-tooltip {
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(35, 22, 81, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
}

.value-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent white transparent;
}

.value-tooltip p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555;
}

.value-orb:hover .value-tooltip {
  opacity: 1;
  visibility: visible;
  top: 110%;
}

/* ====================================
   Team Section
   ==================================== */
.team-section {
  background: white;
}

.team-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.team-member {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.team-member.revealed {
  opacity: 1;
  transform: translateY(0);
}

.member-avatar {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 25px;
}

.avatar-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  height: 95%;
  border-radius: 50%;
  background: linear-gradient(45deg, #7c23ff, #231651);
  filter: blur(20px);
  opacity: 0.3;
  z-index: 1;
  transition: all 0.3s ease;
}

.member-avatar img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 2;
  transition: all 0.3s ease;
}

.team-member:hover .avatar-aura {
  opacity: 0.5;
  width: 105%;
  height: 105%;
}

.team-member:hover img {
  transform: scale(1.05);
}

.team-member h3 {
  font-size: 1.4rem;
  color: #231651;
  margin-bottom: 5px;
}

.member-title {
  color: #7c23ff;
  font-weight: 600;
  margin-bottom: 15px;
}

.member-quote {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  margin-bottom: 15px;
  padding: 0 20px;
}

.member-social {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.member-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: #f0f2ff;
  color: #7c23ff;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.member-social a:hover {
  background: #7c23ff;
  color: white;
  transform: translateY(-3px);
}

/* ====================================
   Experience Section
   ==================================== */
.experience-section {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: white;
  text-align: center;
}

.experience-title {
  color: white;
  margin-bottom: 60px;
}

.experience-title::after {
  background: linear-gradient(90deg, #7c23ff, #5d17de);
}

.flavor-portal {
  max-width: 400px;
  height: 400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.portal-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.portal-ring {
  position: absolute;
  border-radius: 50%;
  border: 4px solid transparent;
  animation: ring-rotate 20s linear infinite;
}

.portal-ring.outer {
  width: 300px;
  height: 300px;
  border-color: rgba(124, 35, 255, 0.4);
  box-shadow: 0 0 20px rgba(124, 35, 255, 0.4), inset 0 0 20px rgba(124, 35, 255, 0.4);
  animation-duration: 60s;
}

.portal-ring.middle {
  width: 220px;
  height: 220px;
  border-color: rgba(255, 94, 148, 0.4);
  box-shadow: 0 0 15px rgba(255, 94, 148, 0.4), inset 0 0 15px rgba(255, 94, 148, 0.4);
  animation-direction: reverse;
  animation-duration: 40s;
}

.portal-ring.inner {
  width: 140px;
  height: 140px;
  border-color: rgba(64, 201, 142, 0.4);
  box-shadow: 0 0 10px rgba(64, 201, 142, 0.4), inset 0 0 10px rgba(64, 201, 142, 0.4);
  animation-duration: 30s;
}

.portal-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.portal-content p {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.portal-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  background: linear-gradient(90deg, #7c23ff, #5d17de);
  color: white;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(124, 35, 255, 0.3);
}

.portal-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(124, 35, 255, 0.5);
}

.portal-button i {
  transition: transform 0.3s ease;
}

.portal-button:hover i {
  transform: translateX(5px);
}

/* ====================================
   Testimonial Section
   ==================================== */
.testimonial-cosmos {
  position: relative;
  background: linear-gradient(135deg, #231651, #0f0c29);
  color: white;
  overflow: hidden;
}

.cosmos-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 25px 5px, white, rgba(255, 255, 255, 0)),
    radial-gradient(1px 1px at 50px 25px, white, rgba(255, 255, 255, 0)),
    radial-gradient(1px 1px at 125px 20px, white, rgba(255, 255, 255, 0)),
    radial-gradient(1.5px 1.5px at 50px 75px, white, rgba(255, 255, 255, 0)),
    radial-gradient(2px 2px at 15px 125px, white, rgba(255, 255, 255, 0)),
    radial-gradient(2.5px 2.5px at 110px 80px, white, rgba(255, 255, 255, 0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: moving-stars 100s linear infinite;
  opacity: 0.4;
}

.section-title.light {
  color: white;
}

.section-title.light::after {
  background: linear-gradient(90deg, #7c23ff, #5d17de);
}

.testimonial-orbit {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  height: 300px;
}

.testimonial-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-item.active {
  opacity: 1;
  visibility: visible;
}

.testimonial-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.testimonial-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-author span {
  font-weight: 600;
  margin-bottom: 5px;
}

.testimonial-stars {
  color: #ffcb45;
  letter-spacing: 2px;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.testimonial-nav {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-nav:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.testimonial-indicators {
  display: flex;
  gap: 10px;
}

.testimonial-indicators span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-indicators span.active {
  background: white;
  transform: scale(1.2);
}

/* ====================================
   Future Vision Section
   ==================================== */
.future-vision {
  background: white;
}

.vision-content {
  max-width: 800px;
  margin: 0 auto;
}

.vision-statement {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 50px;
}

.future-flavors {
  margin-top: 40px;
}

.future-flavors h3 {
  font-size: 1.6rem;
  color: #231651;
  text-align: center;
  margin-bottom: 30px;
}

.flavor-previews {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.flavor-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.preview-orb {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(35, 22, 81, 0.15);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.preview-orb:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(35, 22, 81, 0.25);
}

.preview-orb.vanilla {
  background: linear-gradient(135deg, #ffedbc, #ed4264);
}

.preview-orb.chocolate {
  background: linear-gradient(135deg, #b79891, #5e2563);
}

.preview-orb.mystery {
  background: linear-gradient(135deg, #00c6fb, #005bea);
}

.flavor-preview span {
  font-weight: 600;
  color: #333;
}

/* ====================================
   Cosmic CTA
   ==================================== */
.cosmic-cta {
  position: relative;
  background: url('../images/cosmic-bg.jpg') no-repeat center/cover;
  text-align: center;
  color: white;
  padding: 100px 0;
  overflow: hidden;
}

.cosmic-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(35, 22, 81, 0.8);
}

.cosmic-cta .container {
  position: relative;
  z-index: 1;
}

.cosmic-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.cosmic-cta p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.cta-button {
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button.primary {
  background: linear-gradient(90deg, #7c23ff, #5d17de);
  color: white;
  box-shadow: 0 10px 20px rgba(124, 35, 255, 0.3);
}

.cta-button.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-button.primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(124, 35, 255, 0.5);
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

/* ====================================
   Animations
   ==================================== */
@keyframes moving-stars {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 200px 200px;
  }
}

@keyframes title-glow {
  0%, 100% {
    text-shadow: 0 0 15px rgba(124, 35, 255, 0.8);
  }
  50% {
    text-shadow: 0 0 25px rgba(124, 35, 255, 0.8), 0 0 35px rgba(124, 35, 255, 0.6);
  }
}

@keyframes scroll-indicator {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(10px);
    opacity: 0.8;
  }
}

@keyframes planet-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes float-image {
  0%, 100% {
    transform: translateY(0) rotateZ(0deg);
  }
  50% {
    transform: translateY(-20px) rotateZ(2deg);
  }
}

@keyframes particle-float {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-10px) scale(1.2);
    opacity: 1;
  }
}

@keyframes orbit {
  from {
    transform: rotate(0deg) translateX(200px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(200px) rotate(-360deg);
  }
}

@keyframes ring-rotate {
  0% {
    transform: rotateZ(0deg) rotateY(60deg) rotateX(30deg);
  }
  100% {
    transform: rotateZ(360deg) rotateY(60deg) rotateX(30deg);
  }
}

/* ====================================
   Responsive Styles
   ==================================== */
@media (max-width: 1200px) {
  .orbital-values {
    height: 500px;
  }
}

@media (max-width: 992px) {
  .cosmic-title {
    font-size: 3.5rem;
  }
  
  .cosmic-subtitle {
    font-size: 1.3rem;
  }
  
  .origin-story .section-content {
    flex-direction: column;
    gap: 40px;
  }
  
  .floating-image-container {
    height: 300px;
  }
  
  .orbital-values {
    height: 450px;
  }
  
  .value-orb {
    width: 100px;
    height: 100px;
  }
  
  .team-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-page section {
    padding: 70px 0;
  }
  
  .cosmic-hero {
    min-height: 500px;
  }
  
  .cosmic-title {
    font-size: 2.8rem;
  }
  
  .cosmic-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item::after {
    left: 15px !important;
    right: auto !important;
  }
  
  .timeline-item:nth-child(odd) .timeline-icon,
  .timeline-item:nth-child(even) .timeline-icon {
    left: 5px;
  }
  
  .orbital-values {
    height: 350px;
  }
  
  .value-orb {
    width: 80px;
    height: 80px;
  }
  
  .value-orb i {
    font-size: 1.5rem;
  }
  
  .value-orb h3 {
    font-size: 0.8rem;
  }
  
  .orbital-center {
    width: 120px;
    height: 120px;
  }
  
  .planet-core {
    font-size: 1.1rem;
  }
  
  .team-gallery {
    gap: 30px;
  }
  
  .portal-wrapper {
    width: 250px;
    height: 250px;
  }
  
  .portal-ring.outer {
    width: 250px;
    height: 250px;
  }
  
  .portal-ring.middle {
    width: 180px;
    height: 180px;
  }
  
  .portal-ring.inner {
    width: 120px;
    height: 120px;
  }
  
  .flavor-previews {
    gap: 20px;
  }
  
  .preview-orb {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 576px) {
  .cosmic-title {
    font-size: 2.2rem;
  }
  
  .cosmic-subtitle {
    font-size: 1rem;
    padding: 0 20px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .timeline-content {
    padding: 20px;
  }
  
  .orbital-values {
    height: 300px;
  }
  
  @keyframes orbit {
    from {
      transform: rotate(0deg) translateX(150px) rotate(0deg);
    }
    to {
      transform: rotate(360deg) translateX(150px) rotate(-360deg);
    }
  }
  
  .value-tooltip {
    width: 160px;
    padding: 10px;
  }
  
  .team-gallery {
    grid-template-columns: 1fr;
  }
  
  .testimonial-content {
    padding: 20px;
  }
  
  .testimonial-content p {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 250px;
    margin: 0 auto;
  }
  
  .cosmic-cta h2 {
    font-size: 2rem;
  }
  
  .cosmic-cta p {
    font-size: 1rem;
  }
}

/* ====================================
   Missing Star and Particle Animations
   ==================================== */

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: white;
  border-radius: 50%;
  opacity: 0;
  animation: star-pulse 5s ease-in-out infinite;
}

@keyframes star-pulse {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(124, 35, 255, 0.8), rgba(124, 35, 255, 0));
  pointer-events: none;
  z-index: 2;
  animation: particle-float-about 4s ease-in-out infinite;
}

@keyframes particle-float-about {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.5;
  }
  25% {
    transform: translateY(-15px) translateX(10px);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-25px) translateX(0);
    opacity: 1;
  }
  75% {
    transform: translateY(-15px) translateX(-10px);
    opacity: 0.8;
  }
}

/* Optimized animation for orbital movement */
@keyframes orbit {
  from {
    transform: rotate(0deg) translateX(200px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(200px) rotate(-360deg);
  }
}

/* Apply hardware acceleration for smoother animations */
.orbital-value,
.portal-ring,
.floating-image,
.cosmic-title,
.team-member:hover .avatar-aura,
.team-member:hover img,
.preview-orb:hover,
.portal-button:hover,
.cta-button.primary:hover,
.cta-button.secondary:hover {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Fix for Safari compatibility */
@supports (-webkit-overflow-scrolling: touch) {
  .cosmic-hero {
    background-attachment: scroll;
  }
  
  .timeline::before {
    left: calc(50% - 2px);
  }
  
  .orbital-value {
    transform-style: flat;
  }
}

/* Ensure all images have proper placeholders while loading */
.parallax-image,
.member-avatar img,
.preview-orb {
  background-color: #f0f2f8;
  background-image: linear-gradient(to right, #f0f2f8 0%, #e3e6f0 20%, #f0f2f8 40%, #f0f2f8 100%);
  background-size: 200% 100%;
  animation: image-loading 1s linear infinite;
}

@keyframes image-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Additional responsive fixes */
@media (max-width: 480px) {
  .cosmic-title {
    font-size: 2rem;
  }
  
  .cosmic-subtitle {
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .team-member {
    padding: 0 10px;
  }
  
  .member-avatar {
    width: 150px;
    height: 150px;
  }
  
  .testimonial-content {
    padding: 15px;
  }
  
  .testimonial-content p {
    font-size: 0.9rem;
  }
  
  .orbital-values {
    height: 280px;
  }
  
  @keyframes orbit {
    from {
      transform: rotate(0deg) translateX(120px) rotate(0deg);
    }
    to {
      transform: rotate(360deg) translateX(120px) rotate(-360deg);
    }
  }
  
  .value-orb {
    width: 70px;
    height: 70px;
  }
  
  .value-orb i {
    font-size: 1.2rem;
  }
  
  .value-orb h3 {
    font-size: 0.7rem;
  }
  
  .portal-ring.outer {
    width: 200px;
    height: 200px;
  }
  
  .portal-ring.middle {
    width: 150px;
    height: 150px;
  }
  
  .portal-ring.inner {
    width: 100px;
    height: 100px;
  }
}

/* Prevent content overlap with header */
.cosmic-hero {
  padding-top: 80px; /* Adjust based on your header height */
}

/* Ensure proper z-index stacking */


.cosmic-hero {
  position: relative;
  z-index: 1;
}

/* Enhance touch interactions for mobile */
@media (pointer: coarse) {
  .value-orb,
  .team-member .member-avatar,
  .portal-button,
  .cta-button,
  .testimonial-nav,
  .testimonial-indicators span,
  .preview-orb {
    min-height: 44px;
    min-width: 44px;
  }
  
  .value-tooltip {
    display: none;
  }
  
  .value-orb:active .value-tooltip {
    display: block;
    opacity: 1;
    visibility: visible;
  }
}

/* Improve focus states for accessibility */
.portal-button:focus,
.cta-button:focus,
.testimonial-nav:focus,
.testimonial-indicators span:focus,
.orbital-value:focus .value-orb,
.team-member:focus .member-avatar,
.preview-orb:focus {
  outline: 2px solid #7c23ff;
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .cosmic-stars,
  .cosmic-nebula,
  .cosmic-planet,
  .cosmic-scroll-indicator,
  .floating-image,
  .image-particles::before,
  .image-particles::after,
  .orbital-value,
  .portal-ring,
  .particle,
  .star {
    animation: none !important;
  }
}
  