/* Base Styles and Tailwind Configurations */

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --bg-color: #000000;
    --surface-color: #18181b;
    --surface-color-lighter: #27272a;
    --text-color: #f4f4f5;
    --text-muted: #a1a1aa;
    --accent-color: #D4AF37;
    /* Gold */
    --accent-hover: #F3E5AB;
    --border-color: #3f3f46;
  }

  html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
  }

  body {
    /* Anti-aliasing for sharp text */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }
}

@layer components {
  .container {
    @apply max-w-7xl mx-auto px-4 sm:px-6 lg:px-8;
  }

  /* Brutalist Buttons */
  .cta-btn {
    @apply inline-block bg-[#D4AF37] text-black font-bold uppercase tracking-wider px-8 py-4 transition-all duration-300 ease-out border-2 border-transparent hover:bg-transparent hover:text-[#D4AF37] hover:border-[#D4AF37] focus:outline-none focus:ring-2 focus:ring-[#D4AF37] focus:ring-offset-2 focus:ring-offset-black active:scale-95 text-center;
  }

  .cta-btn-outline {
    @apply inline-block bg-transparent text-[#D4AF37] font-bold uppercase tracking-wider px-8 py-4 transition-all duration-300 ease-out border-2 border-[#D4AF37] hover:bg-[#D4AF37] hover:text-black focus:outline-none focus:ring-2 focus:ring-[#D4AF37] focus:ring-offset-2 focus:ring-offset-black active:scale-95 text-center;
  }

  .section-title {
    @apply text-3xl md:text-5xl font-bold uppercase tracking-tight mb-12 text-center text-white;
  }

  /* Brutalist Cards */
  .brutalist-card {
    @apply bg-[#18181b] border border-[#3f3f46] p-8 transition-transform duration-300 hover:border-[#D4AF37] hover:-translate-y-1 relative;
  }
}

/* Layout utilities */
header {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-link {
  position: relative;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-color);
}

/* Underline animation on hover */
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.hamburger {
  cursor: pointer;
  padding: 10px;
  z-index: 60;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--text-color);
  margin: 6px 0;
  transition: 0.4s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

#mobile-menu {
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

#mobile-menu.open {
  max-height: 300px;
  opacity: 1;
}

/* FAQ Accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding-top 0.3s ease-out, padding-bottom 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  /* Adjust as needed */
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.faq-item i {
  transition: transform 0.3s ease;
}

.faq-item.active i {
  transform: rotate(180deg);
  color: var(--accent-color);
}

/* Floating WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .whatsapp-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    font-size: 1.75rem;
  }
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  color: white;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.8s ease-out forwards;
}

.stagger-1 {
  animation-delay: 0.1s;
}

.stagger-2 {
  animation-delay: 0.2s;
}

.stagger-3 {
  animation-delay: 0.3s;
}

/* Image Grayscale Effect for masculine aesthetic */
.masculine-img {
  filter: grayscale(80%) contrast(120%);
  transition: filter 0.5s ease;
}

.masculine-img:hover {
  filter: grayscale(0%) contrast(110%);
}