/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body and page layout */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  background: black;
  color: white;
  overflow-x: hidden;
}

/* Container wrapping all page content */
#pageContent {
  flex: 1;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 1s ease;
}

#pageContent.visible {
  opacity: 1;
}

/* Footer */
footer {
  margin-top: auto; /* Push footer to bottom */
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
}

footer .social-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  margin: 0 10px;
  transition: color 0.3s ease;
}

footer .social-links a:hover {
  color: #8a2be2;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.navbar .logo-container {
  display: flex;
  align-items: center;
}

.navbar .logo {
  width: 40px;
  margin-right: 10px;
}

.navbar .text {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  color: white;
}

.navbar .nav-links {
  display: flex;
  list-style: none;
}

.navbar .nav-links li {
  margin: 0 15px;
}

.navbar .nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
  color: #8a2be2;
}

/* Stars Effect */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  background: black;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: floatStar 10s linear infinite, blinkStar 2s infinite alternate ease-in-out;
}

@keyframes floatStar {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100vh);
  }
}

@keyframes blinkStar {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

/* Preloader Overlay Styles */
.preloader-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1s ease;
  opacity: 1;
  pointer-events: all;
}

.preloader-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-logo {
  width: 150px;
  margin-bottom: 20px;
  animation: fadeIn 1.5s ease forwards;
}

.preloader-title {
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem;
  color: white;
  margin-top: 20px;
  white-space: nowrap;
  border-right: 3px solid white;
  min-height: 3rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main content container */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 20px 40px;
}

.content h1 {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  margin-bottom: 20px;
}

.content h1 .highlight{
  color: #8a2be2;
}

.content p {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  color: #ccc;
  margin: 5px 0;
}

.image-container img {
  width: 100%;
  height: auto;
  max-width: 300px; /* example */
}

/* Loading bar for page transitions */
.loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: #8a2be2;
  z-index: 9999;
  display: none; /* Hidden by default */
  transition: none; /* Reset transition */
}

/* Services page title without glow */
.page-title {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 600;
  text-align: center;
  color: #fff;
  margin-top: 120px; /* Space for fixed navbar */
  margin-bottom: 30px;
  text-shadow: none !important;
  animation: none !important;
}

/* Services container and cards */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 50px auto;
  padding: 20px;
}

.service-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.service-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  z-index: -1;
  transition: all 0.4s ease-in-out;
}

.service-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3), 0 0 30px rgba(138, 43, 226, 0.8);
}

.service-card:hover:before {
  left: 100%;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #8a2be2;
  font-family: 'Inter', sans-serif;
}

.service-description {
  font-size: 1rem;
  color: #ccc;
  font-family: 'Inter', sans-serif;
}



/* Here for the service cards in home page  */
/* Services section styles for home page */

.services-highlight-home {
  text-align: center;
  padding: 120px 20px 100px;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.services-highlight-home:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: #8a2be2;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 50px;
}

.service-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 40px 25px;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(138, 43, 226, 0.2);
  border-color: rgba(138, 43, 226, 0.3);
}

.service-item:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #8a2be2, transparent);
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.service-item:hover:after {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  color: #8a2be2;
  transition: all 0.3s ease;
}

.service-item:hover .service-icon svg {
  color: #b06af9;
  transform: scale(1.1);
}

.service-item h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #fff;
  font-weight: 600;
}

.service-item p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
}

.cta-container {
  margin-top: 60px;
  text-align: center;
}

.cta-button-services {
  display: inline-block;
  background: #8a2be2;
  color: white;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.cta-button-services:hover {
  background: #9d4edd;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
}

.cta-button-services .arrow {
  display: inline-block;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.cta-button-services:hover .arrow {
  transform: translateX(5px);
}

/* Animation keyframes */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation delays for items */
.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }

/* Media queries for responsiveness */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
  }
  
  .service-item {
    padding: 30px 20px;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto 40px;
  }
  
  .services-highlight-home {
    padding: 80px 15px 70px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
  }
}
/* Css for services section on home page ends here */

/* Css for team members */


.team-section {
  padding: 120px 20px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
  position: relative;
  overflow: hidden;
  text-align: center;
}

.team-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.team-container {
  max-width: 1200px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 50px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.team-member.visible {
  opacity: 1;
  transform: translateY(0);
}

.team-member:nth-child(even) {
  flex-direction: row-reverse;
  text-align: right;
}

.member-image {
  flex: 0 0 220px;
  position: relative;
}

.image-container {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.team-member:hover .image-container {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(138, 43, 226, 0.3);
}

.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #8a2be2, #4a0082);
}

.image-border {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 10px;
  border: 2px solid #8a2be2;
  z-index: 1;
  transition: transform 0.5s ease 0.1s;
}

.team-member:hover .image-border {
  transform: scale(1.1);
}

.member-info {
  flex: 1;
  position: relative;
  max-width: 600px;
}

.member-info h3 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 5px;
  position: relative;
  display: inline-block;
}

.member-info h3:after {
  content: '';
  position: absolute;
  width: 30px;
  height: 3px;
  background: #8a2be2;
  bottom: -7px;
  left: 0;
  transition: width 0.3s ease;
}

.team-member:nth-child(even) .member-info h3:after {
  left: auto;
  right: 0;
}

.team-member:hover .member-info h3:after {
  width: 100%;
}

.member-info h4 {
  color: #8a2be2;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 20px;
  opacity: 0.9;
}

.member-info p {
  color: #ddd;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: left;
}

.team-member:nth-child(even) .member-info p {
  text-align: right;
}

.member-fun-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.team-member:nth-child(even) .member-fun-facts {
  justify-content: flex-end;
}

.member-fun-facts span {
  background: rgba(138, 43, 226, 0.1);
  border: 1px solid rgba(138, 43, 226, 0.3);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #ddd;
  transition: all 0.3s ease;
}

.member-fun-facts span:hover {
  background: rgba(138, 43, 226, 0.3);
  transform: translateY(-3px);
}

.member-quote {
  font-style: italic;
  color: #aaa;
  font-size: 1.1rem;
  position: relative;
  padding: 0 20px;
  margin-top: 25px;
}

.member-quote:before,
.member-quote:after {
  content: '"';
  font-size: 2rem;
  color: #8a2be2;
  opacity: 0.5;
  position: absolute;
  line-height: 0;
}

.member-quote:before {
  left: 0;
  top: 10px;
}

.member-quote:after {
  right: 0;
  bottom: 0;
}

/* Animation variations */
.team-member[data-animation="fade-right"].visible {
  animation: fadeInRight 1s ease forwards;
}

.team-member[data-animation="fade-left"].visible {
  animation: fadeInLeft 1s ease forwards;
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive styles */
@media (max-width: 900px) {
  .team-member, 
  .team-member:nth-child(even) {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .member-info h3:after,
  .team-member:nth-child(even) .member-info h3:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .member-info p,
  .team-member:nth-child(even) .member-info p {
    text-align: center;
  }
  
  .member-fun-facts,
  .team-member:nth-child(even) .member-fun-facts {
    justify-content: center;
  }
  
  .image-container, 
  .image-border {
    width: 180px;
    height: 180px;
  }
  
  .placeholder-img {
    font-size: 4rem;
  }
}

@media (max-width: 480px) {
  .team-container {
    gap: 60px;
  }
  
  .member-info h3 {
    font-size: 1.8rem;
  }
  
  .member-info h4 {
    font-size: 1rem;
  }
  
  .member-fun-facts {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  
  .image-container, 
  .image-border {
    width: 150px;
    height: 150px;
  }
}

/* Css for team members ends here */

/* Css for Review Section */
/* Testimonial Section Styles */
.testimonial-section {
  padding: 120px 20px 80px;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.testimonial-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* Testimonial Carousel */
.testimonial-carousel {
  max-width: 900px;
  margin: 50px auto 40px;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.testimonial-carousel:before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 120px;
  color: rgba(138, 43, 226, 0.1);
  font-family: serif;
  line-height: 0;
}

.testimonial-container {
  position: relative;
  overflow: hidden;
  height: 320px; /* Adjust based on content size */
}

.testimonial-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.testimonial-content {
  padding: 20px;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Star Rating */
.testimonial-rating {
  margin-bottom: 10px;
}

.testimonial-rating .star {
  color: #8a2be2;
  font-size: 24px;
  margin: 0 2px;
  display: inline-block;
}

/* Testimonial Text */
.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #eee;
  margin-bottom: 20px;
  position: relative;
  font-style: italic;
}

/* Author Info */
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(138, 43, 226, 0.5);
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8a2be2, #4a0082);
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.author-info {
  text-align: left;
}

.author-info h4 {
  color: white;
  font-size: 1.1rem;
  margin: 0 0 3px 0;
}

.author-info p {
  color: #bbb;
  font-size: 0.9rem;
  margin: 0;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  gap: 20px;
}

.carousel-control {
  background: transparent;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.carousel-control:hover {
  opacity: 1;
  background: rgba(138, 43, 226, 0.3);
  transform: scale(1.1);
}

.carousel-control svg {
  width: 20px;
  height: 20px;
}

.carousel-indicators {
  display: flex;
  gap: 10px;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #8a2be2;
  transform: scale(1.2);
}

/* CTA Button */
.testimonial-cta-container {
  margin-top: 40px;
  text-align: right;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button-testimonials {
  display: inline-block;
  background: #8a2be2;
  color: white;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.cta-button-testimonials:hover {
  background: #9d4edd;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
}

.cta-button-testimonials .arrow {
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.cta-button-testimonials:hover .arrow {
  transform: translateX(5px);
}

/* Responsive styles */
@media (max-width: 768px) {
  .testimonial-section {
    padding: 80px 15px 60px;
  }
  
  .testimonial-carousel {
    padding: 20px;
  }
  
  .testimonial-container {
    height: 420px; /* Adjust for mobile */
  }
  
  .testimonial-text {
    font-size: 1rem;
  }
  
  .testimonial-cta-container {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .testimonial-container {
    height: 480px; /* Adjust for smaller mobile */
  }
  
  .testimonial-content {
    padding: 10px;
  }
  
  .author-avatar {
    width: 50px;
    height: 50px;
  }
  
  .carousel-controls {
    flex-wrap: wrap;
  }
}