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

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

body {
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #070F1A;
}
::-webkit-scrollbar-thumb {
  background: #1A3447;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C8A961;
}

/* Selection */
::selection {
  background: rgba(200, 169, 97, 0.3);
  color: #fff;
}

/* Navbar */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#navbar.scrolled {
  background: rgba(7, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(200, 169, 97, 0.1);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C8A961;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link:hover {
  color: #C8A961 !important;
}

/* Mobile Menu */
#mobile-menu.open {
  opacity: 1 !important;
  pointer-events: all !important;
}

.mobile-link {
  position: relative;
}
.mobile-link::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: #C8A961;
  transition: width 0.3s ease;
  margin: 4px auto 0;
}
.mobile-link:hover::after {
  width: 80%;
}

/* Hero Animations */
.hero-content {
  opacity: 0;
  transform: translateY(40px);
  animation: heroIn 1s ease forwards;
}
.hero-image {
  opacity: 0;
  transform: translateY(40px);
  animation: heroIn 1s ease 0.3s forwards;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Line Animation */
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.animate-scroll-line {
  animation: scrollLine 2s ease-in-out infinite;
}

/* Section Reveals */
.section-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.section-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Product Card Hover */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Button Ripple Effect */
button, a {
  cursor: pointer;
}

/* Form Focus States */
input:focus, select:focus, textarea:focus {
  border-color: rgba(200, 169, 97, 0.5) !important;
  box-shadow: 0 0 0 1px rgba(200, 169, 97, 0.2) !important;
}

/* Gold Gradient Text Utility */
.text-gold-gradient {
  background: linear-gradient(135deg, #C8A961, #E0CC9A, #C8A961);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Floating Card Animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.floating {
  animation: float 4s ease-in-out infinite;
}

/* Image Parallax Container */
.parallax-container {
  overflow: hidden;
}
.parallax-container img {
  will-change: transform;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 73px;
  }
}

/* Print styles */
@media print {
  #navbar, #mobile-menu-btn {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
}
