/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
  --primary: #4f46e5;
  --secondary: #ec4899;
  --dark: #1e293b;
  --light: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background: #f0f4f8;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  margin-left: 2rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-login {
  background: var(--dark);
  color: white !important;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4rem 5%;
  min-height: 80vh;
  gap: 2rem;
  background: radial-gradient(circle at top right, #e0e7ff, #f3e8ff, #ffffff);
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, #111827, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-image img {
  width: 100%;
  max-width: 600px;
  animation: float 6s ease-in-out infinite;
  display: block;
  margin: 0 auto;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Tabs System */
.tryout-section {
  padding: 4rem 5%;
  background: white;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  background: #f1f5f9;
  padding: 0.5rem;
  border-radius: 50px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  padding: 0.75rem 2rem;
  border: none;
  background: transparent;
  width: 15rem;
  border-radius: 40px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  color: #64748b;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cards Grid */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.package-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f1f5f9;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.package-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

.package-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.package-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.package-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.package-subtitle {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Zone List inside Modal/Expand */
.zone-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.zone-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.btn-tryout {
  background: var(--primary);
  color: white;
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-tryout:hover {
  background: #4338ca;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 24px;
  width: 90%;
  max-width: 500px;
  transform: scale(0.9);
  transition: transform 0.3s;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-active {
  display: flex;
  opacity: 1;
}

.modal-active .modal-content {
  transform: scale(1);
}

.close-modal {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {

  /* Adjust Hero */
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 5% 0;
    /* Reduced padding top/bottom */
    text-align: center;
    gap: 2rem;
    min-height: auto;
  }

  .hero-content {
    order: 1;
    /* Text first */
  }

  .hero-image {
    order: 2;
    /* Image second */
    margin-bottom: 2rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 1rem;
    margin: 0 auto 1.5rem;
  }

  .hero-image img {
    max-width: 80%;
    /* Smaller image on mobile */
  }

  /* Adjust Tabs */
  .tryout-section {
    padding: 2rem 1rem;
    /* Less padding on side */
    border-radius: 30px 30px 0 0;
  }

  .tabs {
    justify-content: flex-start;
    /* Align start */
    overflow-x: auto;
    /* Scroll horizontally */
    white-space: nowrap;
    /* Don't wrap */
    width: 100%;
    max-width: 100%;
    padding: 0.5rem;
    margin-bottom: 2rem;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE */
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  /* Hide scrollbar Chrome */

  .tab-btn {
    width: auto;
    /* Auto width based on text */
    flex-shrink: 0;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Adjust Grid */
  .packages-grid {
    grid-template-columns: 1fr;
    /* 1 column on mobile */
    gap: 1.5rem;
  }

  .package-card {
    padding: 1.5rem;
    /* Slightly compact */
  }

  /* Adjust Modal */
  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }

  .zone-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .zone-item>div:last-child {
    width: 100%;
  }

  .btn-tryout {
    display: block;
    text-align: center;
    width: 100%;
  }
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #94a3b8;
}