/* ===== Custom Styles for Dynasty of Livonia ===== */

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Geometric background shapes */
.geo-shape {
  position: absolute;
  pointer-events: none;
}

.shape-circle-1 {
  top: 15%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.shape-triangle {
  top: 60%;
  right: 5%;
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(13, 148, 136, 0.06);
  animation: float 10s ease-in-out infinite reverse;
}

.shape-dots {
  top: 40%;
  left: 10%;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(circle, rgba(45, 212, 191, 0.15) 1px, transparent 1px);
  background-size: 16px 16px;
  animation: float 6s ease-in-out infinite;
}

.shape-ring {
  bottom: 20%;
  right: 15%;
  width: 80px;
  height: 80px;
  border: 3px solid rgba(13, 148, 136, 0.12);
  border-radius: 50%;
  animation: float 7s ease-in-out infinite reverse;
}

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

/* Clip diagonal for about section */
.clip-diagonal {
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

/* Navbar */
#navbar {
  background: rgba(8, 15, 29, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

#navbar.scrolled {
  background: rgba(8, 15, 29, 0.92);
  border-bottom-color: rgba(13, 148, 136, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2dd4bf, #14b8a6);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
.mobile-nav-link {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #2dd4bf 100%);
  color: #fff;
  padding: 12px 28px;
  border-radius: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3), inset 0 1px 0 rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13, 148, 136, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span,
.btn-primary svg,
.btn-primary * {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(148, 163, 184, 0.08);
  color: #e2e8f0;
  padding: 12px 28px;
  border-radius: 1rem;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.15);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(45, 212, 191, 0.3);
  color: #2dd4bf;
  transform: translateY(-2px);
}

/* Menu tabs */
.menu-tab {
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(148, 163, 184, 0.06);
  color: #94a3b8;
  transition: all 0.3s ease;
}

.menu-tab:hover {
  border-color: rgba(45, 212, 191, 0.3);
  color: #2dd4bf;
  background: rgba(45, 212, 191, 0.08);
}

.menu-tab.active {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

/* Menu cards */
.menu-card {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease;
}

.menu-card.hidden {
  display: none;
}

.menu-card:hover {
  border-color: rgba(45, 212, 191, 0.3);
  box-shadow: 0 8px 40px rgba(13, 148, 136, 0.12);
  transform: translateY(-4px);
}

/* Input fields */
.input-field {
  width: 100%;
  padding: 12px 16px;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.6);
  color: #f1f5f9;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  outline: none;
}

.input-field::placeholder {
  color: #64748b;
}

.input-field:hover {
  border-color: rgba(148, 163, 184, 0.25);
}

.input-field:focus {
  border-color: rgba(45, 212, 191, 0.5);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.input-field option {
  background: #1e293b;
  color: #f1f5f9;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  .shape-circle-1 {
    width: 250px;
    height: 250px;
  }

  .shape-triangle {
    display: none;
  }

  .shape-dots {
    width: 80px;
    height: 80px;
  }

  .shape-ring {
    display: none;
  }

  h1 {
    font-size: 3rem !important;
  }

  h1 br {
    display: none;
  }
}
