/* MARKASS SPORT CENTER - Complete CSS */

/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color System */
  --primary: 59 130 246;
  --primary-foreground: 255 255 255;
  --secondary: 251 146 60;
  --secondary-foreground: 0 0 0;
  --accent: 168 85 247;
  --accent-foreground: 255 255 255;
  --destructive: 239 68 68;
  --destructive-foreground: 255 255 255;
  --muted: 107 114 128;
  --muted-foreground: 243 244 246;
  --background: 255 255 255;
  --foreground: 17 24 39;
  --card: 255 255 255;
  --card-foreground: 17 24 39;
  --border: 229 231 235;
  --input: 255 255 255;
  --ring: 59 130 246;

  /* Custom Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    rgb(59, 130, 246) 0%,
    rgb(147, 51, 234) 100%
  );
  --gradient-secondary: linear-gradient(
    135deg,
    rgb(251, 146, 60) 0%,
    rgb(239, 68, 68) 100%
  );
  --gradient-hero: linear-gradient(
    135deg,
    rgb(59, 130, 246) 0%,
    rgb(147, 51, 234) 50%,
    rgb(236, 72, 153) 100%
  );
  --gradient-facility-futsal: linear-gradient(
    135deg,
    rgb(251, 146, 60) 0%,
    rgb(250, 204, 21) 100%
  );
  --gradient-facility-badminton: linear-gradient(
    135deg,
    rgb(34, 197, 94) 0%,
    rgb(16, 185, 129) 100%
  );
  --gradient-facility-billiard: linear-gradient(
    135deg,
    rgb(139, 92, 246) 0%,
    rgb(124, 58, 237) 100%
  );
  --gradient-facility-tenis: linear-gradient(
    135deg,
    rgb(236, 72, 153) 0%,
    rgb(219, 39, 119) 100%
  );

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:
    0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --background: 17 24 39;
    --foreground: 243 244 246;
    --card: 31 41 55;
    --card-foreground: 243 244 246;
    --border: 75 85 99;
    --input: 55 65 81;
    --muted: 75 85 99;
    --muted-foreground: 156 163 175;
    --glass-bg: rgba(0, 0, 0, 0.2);
    --glass-border: rgba(255, 255, 255, 0.1);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: rgb(var(--background));
  color: rgb(var(--foreground));
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(var(--border));
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: bold;
  color: rgb(var(--primary));
  text-decoration: none;
  transition: transform 0.3s ease;
}

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

.logo img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  background: white;
  padding: 8px;
  box-shadow: var(--shadow);
}

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

.nav-links a {
  color: #111;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}
/* NOTIF BADGE BOOKING */
.nav-booking {
  position: relative;
}

.booking-badge {
  position: absolute;
  top: -6px;
  right: -14px;
  background: red;
  color: white;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 50%;
  font-weight: bold;
  animation: pulse 1.2s infinite;
}

/* animasi berkedip */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: rgb(var(--foreground));
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 20px 80px;
}

.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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="50" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="30" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  text-align: center;
  z-index: 1;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  width: 128px;
  height: 128px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 16px;
  margin: 0 auto 2rem;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
  animation: float 3s ease-in-out infinite;
}

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

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

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glass-shadow);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  display: block;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Facilities Section */
.facilities {
  padding: 100px 0;
  background: rgb(var(--background));
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  color: rgb(var(--foreground));
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: rgb(var(--muted-foreground));
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

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

.facility-card {
  background: rgb(var(--card));
  border: 1px solid rgb(var(--border));
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.facility-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
}

.facility-header {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.facility-header.futsal {
  background: var(--gradient-facility-futsal);
}
.facility-header.badminton {
  background: var(--gradient-facility-badminton);
}
.facility-header.billiard {
  background: var(--gradient-facility-billiard);
}
.facility-header.tenis {
  background: var(--gradient-facility-tenis);
}

.facility-icon {
  font-size: 4rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.premium-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: var(--shadow);
}

.facility-content {
  padding: 1.5rem;
}

.facility-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: rgb(var(--foreground));
  margin-bottom: 0.5rem;
}

.facility-type {
  color: rgb(var(--muted-foreground));
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.facility-description {
  color: rgb(var(--foreground));
  line-height: 1.6;
  margin-bottom: 1rem;
}

.facility-features {
  list-style: none;
  margin-bottom: 1rem;
}

.facility-features li {
  padding: 0.25rem 0;
  color: rgb(var(--muted-foreground));
  font-size: 0.9rem;
}

.facility-features li::before {
  content: "✓";
  color: rgb(var(--primary));
  font-weight: bold;
  margin-right: 0.5rem;
}

.facility-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgb(var(--border));
}

.facility-price {
  font-size: 1.25rem;
  font-weight: bold;
  color: rgb(var(--primary));
}

.facility-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-available {
  background: rgba(34, 197, 94, 0.1);
  color: rgb(34, 197, 94);
}

.status-busy {
  background: rgba(239, 68, 68, 0.1);
  color: rgb(239, 68, 68);
}

/* Gallery Section */
.gallery {
  padding: 100px 0;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.05) 0%,
    rgba(147, 51, 234, 0.05) 100%
  );
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid rgb(var(--border));
  background: rgb(var(--card));
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: rgb(var(--foreground));
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgb(var(--card));
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.gallery-image {
  width: 100%;
  height: 250px;
  background: var(--gradient-primary);
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.gallery-category {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: rgb(var(--background));
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  background: rgb(var(--card));
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: rgb(var(--foreground));
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: rgb(var(--muted-foreground));
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.contact-form {
  background: rgb(var(--card));
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: rgb(var(--foreground));
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgb(var(--border));
  border-radius: 10px;
  background: rgb(var(--input));
  color: rgb(var(--foreground));
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgb(var(--primary));
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Footer */
footer {
  background: rgb(17, 24, 39);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: auto;
}

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

.footer-section h3 {
  margin-bottom: 1rem;
  color: white;
}

.footer-section p,
.footer-section ul {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  background: white;
  padding: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-slide-in-top {
  animation: slideInFromTop 0.8s ease-out;
}

.animate-slide-in-bottom {
  animation: slideInFromBottom 0.8s ease-out;
}

.animate-slide-in-left {
  animation: slideInFromLeft 0.8s ease-out;
}

.animate-slide-in-right {
  animation: slideInFromRight 0.8s ease-out;
}

/* Success/Error Messages */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-weight: 500;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  color: rgb(34, 197, 94);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: rgb(239, 68, 68);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgb(var(--background));
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: flex;
  }

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

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

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .facilities-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

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

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 100px 15px 60px;
  }

  .facilities,
  .gallery,
  .contact {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

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

  .gallery-filters {
    justify-content: stretch;
  }

  .filter-btn {
    flex: 1;
    text-align: center;
  }
}
