/* ===== Base & Utilities ===== */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #99f6e4;
  color: #042f2e;
}

/* ===== Navbar ===== */
#navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-logo-text,
#navbar.scrolled .nav-link {
  color: #1e293b;
}

#navbar.scrolled .btn-primary-nav {
  background: #0d9488;
  color: white;
}

#navbar.scrolled .btn-primary-nav:hover {
  background: #0f766e;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
}

.nav-link:hover {
  color: white;
}

.btn-primary-nav {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.btn-primary-nav:hover {
  background: white;
  color: #0d9488;
}

/* ===== Hero ===== */
.hero-bg {
  will-change: transform;
}

.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.65) 0%,
    rgba(2, 6, 23, 0.50) 50%,
    rgba(2, 6, 23, 0.75) 100%
  );
}

.hero-badge {
  animation: fadeInDown 0.8s ease forwards;
}

.hero-badge span:first-child {
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* Hero buttons */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  background: #0d9488;
  color: white;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.4);
}

.btn-hero-primary:hover {
  background: #0f766e;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13, 148, 136, 0.5);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero text animation */
#hero h1,
#hero p {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

#hero h1 {
  animation-delay: 0.2s;
}

#hero p {
  animation-delay: 0.4s;
}

#hero .flex {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

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

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

/* ===== Features ===== */
.feature-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Menu Tabs ===== */
.menu-tab {
  background: white;
  color: #64748b;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

.menu-tab:hover {
  color: #0d9488;
  border-color: #99f6e4;
}

.menu-tab.active {
  background: #0d9488;
  color: white;
  border-color: #0d9488;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.menu-tab.active:hover {
  background: #0f766e;
  border-color: #0f766e;
  color: white;
}

/* ===== Menu Cards ===== */
.menu-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Gallery ===== */
.gallery-item {
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 148, 136, 0);
  transition: background 0.3s ease;
  border-radius: inherit;
}

.gallery-item:hover::after {
  background: rgba(13, 148, 136, 0.1);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Back to Top ===== */
#back-to-top {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
}

/* ===== Mobile Menu ===== */
.mobile-nav-link {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.75rem;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.75rem;
  }

  #hero h1 br {
    display: none;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .menu-tab {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  #hero h1 {
    font-size: 3.5rem;
  }
}
