/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Saira:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

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

h1,
h2,
h3,
h4 {
  font-family: "Roboto Slab", serif;
}

a {
  text-decoration: none !important;
}

:root {
  --third-font: "Saira", sans-serif;
  --secondary-font: "Kanit", sans-serif;
  --footer-color: linear-gradient(
    90deg,
    rgba(239, 246, 253, 1) 0%,
    rgba(240, 253, 244, 1) 50%
  );
  --primary-color: linear-gradient(
    151deg,
    rgba(93, 156, 245, 1) 0%,
    rgba(44, 170, 154, 1) 60%,
    rgba(35, 195, 101, 1) 100%
  );
  --header-color: linear-gradient(
    90deg,
    rgba(240, 246, 255, 1) 0%,
    rgba(255, 255, 255, 1) 50%
  );
}

.spinner-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 1.5s ease-in-out;
}

.spinner-wrapper .spinner-grow {
  height: 60px;
  width: 60px;
  background: var(--primary-color);
}

/* Nav Section */
#nav {
  backdrop-filter: blur(20px);
  z-index: 1000;
  position: sticky;
  top: 0;
  width: 100%;
}

.nav-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-logo {
  width: 52px;
  height: 52px;
  margin-left: -6px;
  border-radius: 10px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.main-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.bi-stars {
  color: white;
  font-size: 25px;
}

.nav-title {
  background: var(--primary-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 5px;
  font-size: 25px;
  font-weight: 700;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.main-btn {
  width: 80px;
  height: 40px;
  border: none;
  border-radius: 10px;
  font-weight: 400;
  font-size: 16px;
  font-family: var(--secondary-font);
  background-color: white;
  transition: all 0.3s ease-in-out;
}

.main-btn:hover {
  background-color: rgb(240, 240, 240);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.secondary-btn {
  width: 120px;
  height: 40px;
  border: none;
  border-radius: 10px;
  font-weight: 400;
  font-size: 16px;
  font-family: var(--secondary-font);
  background: var(--primary-color);
  color: white;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.secondary-btn a {
  color: white;
}

.secondary-btn:hover {
  filter: brightness(0.9);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  transform: translateY(-3px);
}

.a-login {
  color: black;
}

/* Header Section */
header {
  height: 90.5vh;
  background: var(--header-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 100px;
}

.header-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.header-btn {
  height: 40px;
  background-color: #dbeafe;
  border: none;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  gap: 10px;
  color: #3b4ed8;
  font-size: 15px;
  font-weight: 400;
  font-family: var(--secondary-font);
  width: 270px;
}

.header-btn i {
  font-size: 20px;
  color: #3b4ed8;
  margin-top: 3px;
}

.header-title {
  max-width: 800px;
  font-size: 80px;
}

.header-title span {
  background: var(--primary-color);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-subtitle {
  max-width: 600px;
  font-size: 20px;
  color: #555555;
  font-family: var(--secondary-font);
  font-weight: 400;
}

.header-btn-1 {
  width: 250px;
  font-size: 23px;
  height: 50px;
}

/* Main Section */
main {
  margin-bottom: 100px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-text {
  font-size: 50px;
  font-weight: 600;
  font-family: var(--third-font);
}

.main-subtitle {
  font-size: 20px;
  color: #555555;
  font-family: var(--secondary-font);
  font-weight: 400;
  margin-top: 10px;
}

.main-cards {
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  flex-wrap: wrap;
}

.main-cards .card-1 {
  width: 270px;
  height: 270px;
  border-radius: 20px;
  padding: 20px;
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s ease-in-out;
}

.card-1 .main-logo {
  width: 50px;
  height: 50px;
  color: white;
  font-size: 25px;
}

.card-1 h4 {
  font-size: 22px;
  font-weight: 600;
  font-family: var(--third-font);
}

.card-1 p {
  font-size: 18px;
  color: #555555;
  font-family: var(--secondary-font);
  font-weight: 400;
  margin-top: -20px;
}

.card-1:hover {
  box-shadow: 0 10px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  transform: scale(1.4);
}

/* Team Section */
.team-section {
  margin-bottom: 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.team-cards {
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  flex-wrap: wrap;
}

.team-cards .team-card {
  width: 450px;
  height: 400px;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid #ddd;
  box-shadow: 0px 4px 15px 4px rgba(59, 59, 59, 0.1);
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

.team-card:hover {
  box-shadow: 0 10px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  transform: translateY(-3px);
  box-shadow: 0 20px 12px rgba(0, 0, 0, 0.1) inset;
}

.team-card:hover .contacts {
  transform: translateY(0px);
  transition: all 0.3s ease-in-out;
}

.team-card .person-circle {
  font-size: 100px;
  color: #909192;
}

.team-card h4 {
  font-size: 28px;
  font-weight: 600;
  font-family: var(--third-font);
}

.team-card p {
  font-size: 18px;
  color: red;
  font-family: var(--secondary-font);
  font-weight: 400;
}

.team-card :nth-child(5) {
  color: #555555;
}

.contacts {
  display: flex;
  justify-content: center;
  gap: 10px;
  transform: translateY(-60px);
  transition: all 0.3s ease-in-out;
}

.contacts i {
  font-size: 25px;
  color: #555555;
  margin-right: 15px;
  transition: all 0.3s ease-in-out;
}

.contacts i:hover {
  color: #000000;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

/* Premium Subscription */
.premium-section {
  min-height: 90vh;
  padding-top: 20px;
  padding-bottom: 20px;
  background: var(--footer-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.premium-title {
  font-size: 60px;
  font-weight: 600;
  font-family: var(--third-font);
}

.premium-subtitle {
  font-size: 20px;
  color: #555555;
  font-family: var(--secondary-font);
}

.premium-cards {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  flex-wrap: wrap;
}

.premium-cards .premium-card {
  border-radius: 20px;
  padding: 20px;
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s ease-in-out;
}

.premium-card h3 {
  font-size: 28px;
  font-weight: 600;
  font-family: var(--third-font);
}

.premium-card p {
  font-size: 45px;
  color: #000000;
  font-family: var(--secondary-font);
  font-weight: 400;
  margin-top: -10px;
}

.premium-card .price span {
  font-size: 20px;
  font-family: var(--secondary-font);
  font-weight: 200;
}

.free-time {
  color: #555555;
}

.free {
  background: white;
  width: 500px;
  height: 400px;
}

.premium {
  background: var(--primary-color);
  color: white;
  width: 530px;
  height: 430px;
  box-shadow: 0px 20px 60px 10px rgba(0, 0, 0, 0.1);
}

.premium p {
  color: white;
}

.premium-time {
  color: rgb(234, 234, 234);
}

.premium-card ul {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: -30px;
  margin-top: -20px;
}

.premium-card ul li {
  font-size: 18px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 10px;
}

.premium-card ul li i {
  color: #34d399;
  font-weight: 600;
}

.premium-card .main-btn {
  width: 100%;
  height: 50px;
  font-size: 20px;
}

.premium-card .main-btn:hover {
  transform: scale(1.05);
}

.premium .main-btn {
  color: blue;
  margin-top: 20px;
}

/* Footer */
footer {
  border: 1px solid #ddd;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 50px;
  text-align: center;
  gap: 10px;
}

.footer-left :nth-child(2) {
  color: #6b7280;
  font-size: 15px;
  font-weight: 400;
}
/* Testimonials Section */
.testimonials-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  overflow: hidden;
}

.testimonials-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 15px;
}

.section-header .highlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 18px;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Carousel Container */
.carousel-container {
  position: relative;
  padding: 20px 60px;
  margin-bottom: 40px;
}

/* Testimonials Carousel */
.testimonials-carousel {
  display: flex;
  gap: 30px;
  overflow-x: scroll;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding: 20px 10px;
  scroll-snap-type: x mandatory;
}

.testimonials-carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.testimonials-loading {
  width: 100%;
  text-align: center;
  padding: 60px 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f4f6;
  border-top: 5px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Testimonial Card */
.testimonial-card {
  position: relative;
  background: white;
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  overflow: hidden;
  min-width: 380px;
  max-width: 380px;
  flex-shrink: 0;
  scroll-snap-align: center;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.15);
  border-color: #667eea;
}

.testimonial-card:hover::before {
  opacity: 1;
}

.rating {
  color: #fbbf24;
  font-size: 24px;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.testimonial-title {
  color: #1f2937;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.4;
}

.testimonial-message {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 25px;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 20px;
  border-top: 2px solid #f3f4f6;
}

.author-avatar {
  font-size: 48px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea15, #764ba215);
  border-radius: 50%;
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: 700;
  color: #1f2937;
  font-size: 16px;
  margin-bottom: 4px;
}

.author-date {
  font-size: 14px;
  color: #9ca3af;
}

/* Navigation Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 2px solid #e5e7eb;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #667eea;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: #667eea;
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow-prev {
  left: 0;
}

.carousel-arrow-next {
  right: 0;
}

/* Dots Indicator */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e5e7eb;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  width: 30px;
  border-radius: 6px;
}

.carousel-dot:hover {
  background: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-container {
    padding: 20px 40px;
  }
  
  .testimonial-card {
    min-width: 300px;
    max-width: 300px;
    padding: 25px;
  }
  
  .section-header h2 {
    font-size: 32px;
  }
  
  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .nav-title {
    font-size: 20px;
  }

  .main-logo {
    width: 35px;
    height: 35px;
  }

  .bi-stars {
    font-size: 20px;
  }

  .nav-right {
    gap: 10px;
  }

  .main-btn {
    width: 70px;
    height: 35px;
    font-size: 14px;
    padding: 0 8px;
  }

  .secondary-btn {
    width: 100px;
    height: 35px;
    font-size: 14px;
    padding: 0 10px;
  }

  header {
    height: auto;
    padding: 60px 20px;
    margin-bottom: 60px;
  }

  .header-btn {
    width: 240px;
    font-size: 13px;
    height: 35px;
  }

  .header-title {
    font-size: 40px;
    padding: 0 10px;
  }

  .header-subtitle {
    font-size: 16px;
    padding: 0 10px;
  }

  .header-btn-1 {
    width: 200px;
    font-size: 18px;
    height: 45px;
  }

  main {
    padding: 0 20px;
    margin-bottom: 60px;
  }

  .main-text {
    font-size: 35px;
  }

  .main-subtitle {
    font-size: 16px;
  }

  .main-cards {
    gap: 20px;
    margin-top: 30px;
    padding: 0 10px;
  }

  .main-cards .card-1 {
    width: 100%;
    max-width: 450px;
    height: auto;
    min-height: 220px;
    margin: 0 auto;
  }

  .card-1:hover {
    transform: scale(1.05);
  }

  .team-section {
    padding: 0 15px;
    margin-bottom: 60px;
  }

  .team-title {
    font-size: 35px;
    padding: 0 10px;
  }

  .team-subtitle {
    font-size: 16px;
    padding: 0 10px;
  }

  .team-cards {
    gap: 20px;
    margin-top: 30px;
    padding: 0 10px;
  }

  .team-cards .team-card {
    width: 100%;
    max-width: 450px;
    height: auto;
    min-height: 350px;
    margin: 0 auto;
  }

  .contacts {
    transform: translateY(0px);
  }

  .premium-section {
    padding: 40px 20px;
    min-height: auto;
  }

  .premium-title {
    font-size: 35px;
  }

  .premium-subtitle {
    font-size: 16px;
  }

  .premium-cards {
    gap: 20px;
    margin-top: 20px;
    padding: 0 15px;
  }

  .premium-cards .premium-card {
    width: 100% !important;
    max-width: 450px;
    height: auto !important;
    margin: 0 auto;
  }

  .free {
    width: 100%;
    max-width: 450px;
    height: auto;
    min-height: 400px;
  }

  .premium {
    width: 100%;
    max-width: 450px;
    height: auto;
    min-height: 430px;
  }

  .premium-card p {
    font-size: 35px;
  }

  .premium-card ul li {
    font-size: 16px;
  }

  .footer-container {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .nav-title {
    font-size: 18px;
  }

  .main-logo {
    width: 30px;
    height: 30px;
  }

  .bi-stars {
    font-size: 18px;
  }

  .main-btn {
    width: 60px;
    height: 32px;
    font-size: 12px;
  }

  .secondary-btn {
    width: 140px;
    height: 32px;
    font-size: 12px;
  }

  .header-title {
    font-size: 32px;
  }

  .header-subtitle {
    font-size: 14px;
  }

  .header-btn {
    width: 220px;
    font-size: 12px;
  }

  .main-text {
    font-size: 28px;
  }

  .main-subtitle {
    font-size: 14px;
  }

  .card-1 h4 {
    font-size: 20px;
  }

  .card-1 p {
    font-size: 16px;
  }

  .team-title {
    font-size: 28px;
  }

  .team-card h4 {
    font-size: 24px;
  }

  .team-card p {
    font-size: 16px;
  }

  .premium-title {
    font-size: 28px;
  }

  .premium-card h3 {
    font-size: 24px;
  }

  .premium-card p {
    font-size: 30px;
  }
}
