/* Custom styles that complement Tailwind */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: rgba(212, 168, 67, 0.3);
  color: #FDF8F0;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #D4A843;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Image loading placeholder */
img {
  background-color: rgba(10, 31, 23, 0.5);
}

/* Subtle text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Gold gradient border effect for cards */
.gold-border-card {
  position: relative;
  background: #0A1F17;
}

.gold-border-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212,168,67,0.3), rgba(212,168,67,0.05), rgba(212,168,67,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Subtle pulse for the hero decorative circles */
@keyframes pulse-slow {
  0%, 100% { opacity: 0.05; }
  50% { opacity: 0.1; }
}

.hero-gradient .rounded-full {
  animation: pulse-slow 6s ease-in-out infinite;
}

.hero-gradient .rounded-full:nth-child(2) {
  animation-delay: 2s;
}

.hero-gradient .rounded-full:nth-child(3) {
  animation-delay: 4s;
}

/* Mobile menu transition */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

#mobileMenu.open {
  max-height: 400px;
  opacity: 1;
}

/* Ensure all interactive elements have pointer cursor */
a, button {
  cursor: pointer;
}

/* Form styles for contact */
input, textarea {
  background: rgba(10, 31, 23, 0.6);
  border: 1px solid rgba(212, 168, 67, 0.2);
  color: #FDF8F0;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

input:focus, textarea:focus {
  outline: none;
  border-color: rgba(212, 168, 67, 0.5);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

input::placeholder, textarea::placeholder {
  color: rgba(253, 248, 240, 0.3);
}

/* Success message */
.success-message {
  display: none;
  background: rgba(5, 150, 105, 0.15);
  border: 1px solid rgba(5, 150, 105, 0.3);
  color: #6EE7B7;
  padding: 16px 20px;
  border-radius: 12px;
  margin-top: 16px;
  text-align: center;
  font-size: 0.95rem;
}

.success-message.show {
  display: block;
  animation: fadeIn 0.4s ease;
}

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