/* CSS Variables for Theme Colors */
:root {
  --primary-color: #3f48c7; /* Blue */
  --secondary-color: #b7e31f; /* Green */
  --accent-color: #ff9326; /* Orange for accents */
  --dark-color: #1f2937; /* Dark gray */
  --text-dark: #333;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --company-name: "Infinity Travels";
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  scroll-behavior: smooth;
  font-weight: 400;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--white);
  padding: 1rem 0;
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Container with Image and Text */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo-container:hover {
  transform: scale(1.05);
}

.logo-image {
  height: 50px;
  width: 50px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.logo-infinity {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.logo-travels {
  color: var(--accent-color);
  font-weight: 700;
}

.logo-icon {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-left: 0.5rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Hero Background Image */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4;
  z-index: 1;
}

/* Fallback pattern overlay */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle fill="%23ffffff" opacity="0.1" cx="200" cy="150" r="50"/><circle fill="%23ffffff" opacity="0.1" cx="800" cy="300" r="80"/><circle fill="%23ffffff" opacity="0.1" cx="1000" cy="100" r="60"/><polygon fill="%23ffffff" opacity="0.05" points="0,600 400,200 800,400 1200,100 1200,600"/></svg>');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.hero-content p {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--white);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

.section:nth-child(even) {
  background: var(--bg-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

/* About Section */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  width: 100%;
  height: 100%;
  background-image: url("../images/about_us.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* background: linear-gradient(135deg, var(--secondary-color), var(--accent-color)); */
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--white);
}

.about-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  font-weight: 400;
}

/* Packages Section */
.packages-container {
  position: relative;
  margin-top: 3rem;
  padding: 20px 80px;
}

.packages-slider {
  overflow: hidden;
  border-radius: 15px;
}

.packages-track {
  display: flex;
  transition: transform 0.5s ease;
}

.package-card {
  flex: 0 0 calc(100% / 3 - 1.33rem);
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  margin: 10px;
  transition: transform 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 450px;
  width: 100%;
}

.package-card:hover {
  transform: translateY(-8px);
}

.package-image {
  height: 200px;
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.package-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.package-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.package-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.package-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 400;
  flex-grow: 1;
  line-height: 1.6;
}

.enquire-btn {
  background: var(--primary-color);
  color: var(--white);
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.3s ease;
  margin-top: auto;
  align-self: center;
  min-width: 120px;
}

.enquire-btn:hover {
  background: var(--secondary-color);
  color: var(--dark-color);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: 2px solid var(--primary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-nav:hover {
  background: var(--primary-color);
  color: var(--white);
}

.slider-nav.prev {
  left: 10px;
}

.slider-nav.next {
  right: 10px;
}

.slider-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.slider-nav:disabled:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* Mobile Package Indicators */
.mobile-package-indicators {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 0 2rem;
}

.mobile-package-dots {
  display: flex;
  gap: 0.5rem;
}

.mobile-package-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  transition: background 0.3s ease;
}

.mobile-package-dot.active {
  background: var(--primary-color);
}

/* Custom Packages Section */
.custom-packages {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  text-align: center;
}

.custom-packages .section-title {
  color: var(--white);
  font-weight: 700;
}

.custom-content {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  font-weight: 400;
}

/* Testimonials Section */
.testimonials {
  background: var(--bg-light);
}

.testimonials-container {
  position: relative;
  margin-top: 3rem;
  padding: 20px 80px;
}

.testimonials-slider {
  overflow: hidden;
  border-radius: 15px;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
  align-items: stretch;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 1.33rem);
  background: var(--white);
  padding: 2rem;
  margin: 10px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 350px;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-weight: 400;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.testimonial-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.testimonial-rating {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.testimonials-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background 0.3s ease;
}

.indicator.active {
  background: var(--primary-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-item h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 600;
}

.feature-item p {
  font-weight: 400;
}

/* Clients Section */
.clients {
  background: var(--white);
  padding: 4rem 0;
}

.clients .section-title {
  margin-bottom: 4rem;
}

.clients-container {
  position: relative;
  overflow: hidden;
}

.clients-slider {
  overflow: hidden;
}

.clients-track {
  display: flex;
  animation: scroll 90s linear infinite;
  gap: 2rem;
  flex-wrap: nowrap;
  min-width: max-content;
  align-items: center;
}

.client-logo {
  flex: 0 0 auto;
  height: 120px;
  width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
  border: 2px solid var(--bg_light);
  
}

.client-logo:hover {
  /* transform: translateY(-5px); */
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(63, 72, 199, 0.05);
}

.client-logo img {
  max-height: 100px;
  max-width: 160px;
  object-fit: contain;
  
  transition: filter 0.3s ease;
}

.client-logo:hover img {
  filter: grayscale(0%);
}

.client-placeholder {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
  padding: 0.5rem;
  border: 2px dashed var(--primary-color);
  border-radius: 8px;
  background: rgba(63, 72, 199, 0.05);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause animation on hover */
.clients-track:hover {
  animation-play-state: paused;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  padding: 2rem;
}

.contact-help-content {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  text-align: center;
}

.contact-help-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-help-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 400;
}

.contact-details {
  space-y: 1rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-weight: 400;
}

.contact-detail-item i {
  color: var(--primary-color);
  margin-right: 1rem;
  width: 20px;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.contact-section-title {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.contact-section-title:first-of-type {
  margin-top: 0;
}

.contact-form {
  padding: 2rem;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.form-error {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: var(--secondary-color);
  color: var(--dark-color);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #25d366;
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(63, 72, 199, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.scroll-top-btn:hover {
  background: var(--secondary-color);
  color: var(--dark-color);
  transform: scale(1.1);
}

.scroll-top-btn.show {
  display: flex;
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .packages-container,
  .testimonials-container {
    padding: 20px 60px;
  }

  .package-card,
  .testimonial-card {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem 0;
    gap: 1rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-menu {
    display: flex;
  }

  .packages-container,
  .testimonials-container {
    padding: 20px 60px;
  }

  .package-card,
  .testimonial-card {
    flex: 0 0 calc(50% - 1rem);
  }

  .nav-menu {
    gap: 1.5rem;
  }

  .clients-track {
    gap: 2rem;
  }

  .client-logo {
    height: 60px;
    width: 120px;
  }
}

@media (max-width: 768px) {
  .logo-image {
    height: 40px;
    width: 40px;
  }

  .logo-text {
    font-size: 1.4rem;
  }

  .logo-icon {
    font-size: 1.2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image {
    height: 250px;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile Slider Adjustments */
  .packages-container,
  .testimonials-container {
    padding: 20px 60px;
  }

  .package-card,
  .testimonial-card {
    flex: 0 0 100%;
    min-height: 400px;
    margin: 0;
  }

  .package-card {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0;
  }

  /* Show arrows on mobile for packages when needed */
  .slider-nav {
    display: flex;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .slider-nav.prev {
    left: 10px;
  }

  .slider-nav.next {
    right: 10px;
  }

  .mobile-package-indicators {
    display: flex;
  }

  /* Testimonial mobile adjustments */
  .testimonial-card {
    min-height: 300px;
  }

  .scroll-top-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
    bottom: 90px;
    right: 15px;
  }

  /* Clients mobile adjustments */
  .clients-track {
    gap: 1.5rem;
  }

  .client-logo {
    height: 80px;
    width: 160px;
  }

  .client-placeholder {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .packages-container,
  .testimonials-container {
    padding: 20px 50px;
  }

  .contact-help-content,
  .contact-form {
    padding: 1.5rem;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    bottom: 15px;
    left: 15px;
  }

  .slider-nav {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .slider-nav.prev {
    left: 5px;
  }

  .slider-nav.next {
    right: 5px;
  }

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

  .logo-text {
    font-size: 1.2rem;
  }

  .logo-icon {
    font-size: 1rem;
  }

  .clients-track {
    gap: 1rem;
  }

  .client-logo {
    height: 80px;
    width: 160px;
  }

  .client-placeholder {
    font-size: 0.9rem;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .package-card:hover,
  .testimonial-card:hover,
  .client-logo:hover {
    transform: none;
  }

  .cta-button:hover {
    transform: none;
  }

  .slider-nav:hover {
    background: var(--white);
    color: var(--primary-color);
  }

  .clients-track {
    animation-play-state: running;
  }
}
