/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
select, input, textarea { font-family: inherit; font-size: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #040810; }
::-webkit-scrollbar-thumb { background: #1e3170; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2d438c; }

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}
#navbar.scrolled {
  background: rgba(4, 8, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.08);
}
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C9A84C;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ===== HERO ===== */
.hero-gradient {
  background: linear-gradient(
    135deg,
    #040810 0%,
    #0D1B2A 25%,
    #1a1a3e 50%,
    #0D1B2A 75%,
    #040810 100%
  );
}
.hero-img {
  opacity: 0.35;
  transition: transform 8s ease;
}
#hero:hover .hero-img {
  transform: scale(1.03);
}
.hero-scrim {
  background: linear-gradient(
    to bottom,
    rgba(4, 8, 16, 0.4) 0%,
    rgba(4, 8, 16, 0.2) 40%,
    rgba(4, 8, 16, 0.5) 80%,
    rgba(4, 8, 16, 0.95) 100%
  );
}
.hero-content {
  animation: heroFadeIn 1.2s ease forwards;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  animation: heroFadeIn 1.2s ease 0.2s both;
}
.hero-content h1 {
  animation: heroFadeIn 1.2s ease 0.4s both;
}
.hero-content p {
  animation: heroFadeIn 1.2s ease 0.6s both;
}
.hero-content > div:last-child {
  animation: heroFadeIn 1.2s ease 0.8s both;
}
.scroll-indicator {
  animation: scrollBounce 2s ease infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Default state for reduced motion / no-JS: always visible */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== PRODUCT CARDS ===== */
.product-card {
  background: rgba(13, 27, 42, 0.5);
  border: 1px solid rgba(201, 168, 76, 0.08);
  border-radius: 1rem;
  padding: 0;
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.product-card:hover {
  border-color: rgba(201, 168, 76, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(201, 168, 76, 0.05);
}

/* ===== EXPERIENCE CARDS ===== */
.experience-card {
  background: rgba(13, 27, 42, 0.4);
  border: 1px solid rgba(100, 160, 180, 0.08);
  border-radius: 1rem;
  padding: 2rem;
  transition: border-color 0.4s ease, transform 0.4s ease, background 0.4s ease;
}
.experience-card:hover {
  border-color: rgba(100, 160, 180, 0.2);
  transform: translateY(-2px);
  background: rgba(13, 27, 42, 0.6);
}

/* ===== FORM ===== */
#contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238191ba' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
#contact-form select option {
  background: #0D1B2A;
  color: #f0f4f8;
}
#contact-form input:focus,
#contact-form textarea:focus,
#contact-form select:focus {
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}
#contact-form textarea {
  resize: none;
}

/* ===== DECORATIVE PATTERNS ===== */
.heritage-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(201, 168, 76, 0.3) 1px, transparent 0);
  background-size: 40px 40px;
}

/* ===== GOLD LINE ACCENT ===== */
.products-line {
  opacity: 0.3;
}

/* ===== MOBILE MENU ===== */
.mobile-link {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}
.mobile-link:last-child {
  border-bottom: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.75rem;
    line-height: 1.1;
  }
  .hero-content h1 span {
    display: block;
  }
  .reveal {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .hero-content h1 {
    font-size: 4rem;
  }
}
