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

body {
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(212, 160, 23, 0.3);
  color: #fff;
}

/* === NAV === */
#mainNav {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#mainNav.scrolled {
  background: rgba(13, 21, 41, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d4a017;
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: #e8b828 !important;
}

/* Mobile menu */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.open .mobile-link {
  animation: fadeUp 0.4s ease forwards;
  opacity: 0;
}

#mobileMenu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(6) { animation-delay: 0.3s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hamburger */
.menu-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#menuBtn.active .menu-line:nth-child(3) {
  width: 1.25rem;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* === HERO GEOMETRIC SHAPES === */
.geo-shape {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}

.geo-circle-1 {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,0.12) 0%, transparent 70%);
  top: 10%;
  right: -8%;
  animation: float1 8s ease-in-out infinite;
}

.geo-circle-2 {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,0.08) 0%, transparent 70%);
  bottom: 15%;
  left: -4%;
  animation: float2 10s ease-in-out infinite;
}

.geo-square-1 {
  width: 120px;
  height: 120px;
  background: rgba(212,160,23,0.06);
  border: 1px solid rgba(212,160,23,0.15);
  top: 25%;
  left: 8%;
  transform: rotate(45deg);
  animation: spin 20s linear infinite;
}

.geo-triangle-1 {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 86px solid rgba(212,160,23,0.07);
  top: 60%;
  right: 10%;
  animation: float3 7s ease-in-out infinite;
}

.geo-ring-1 {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(212,160,23,0.1);
  bottom: 25%;
  right: 5%;
  animation: float1 9s ease-in-out infinite reverse;
}

.geo-dots-1 {
  width: 80px;
  height: 80px;
  top: 35%;
  left: 15%;
  background-image: radial-gradient(circle, rgba(212,160,23,0.25) 1px, transparent 1px);
  background-size: 12px 12px;
  animation: float2 11s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(20px) rotate(5deg); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(10deg); }
}

@keyframes spin {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}

/* === HERO BADGE === */
.hero-badge {
  animation: fadeInDown 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.3s;
}

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

/* Hero text */
h1 {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  animation-delay: 0.5s;
}

h1 + p {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  animation-delay: 0.7s;
}

h1 + p + div {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  animation-delay: 0.9s;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === MENU TABS === */
.menu-tab {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-tab:hover {
  background: rgba(212,160,23,0.1);
  border-color: rgba(212,160,23,0.3);
  color: #e8b828;
}

.menu-tab.active {
  background: #d4a017;
  color: #0d1529;
  border-color: #d4a017;
  font-weight: 700;
}

.menu-tab.active:hover {
  background: #e8b828;
  border-color: #e8b828;
  color: #0d1529;
}

/* Menu items */
.menu-content {
  animation: fadeIn 0.4s ease;
}

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

/* === GALLERY === */
.gallery-item {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  z-index: 2;
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .geo-circle-1 { width: 280px; height: 280px; }
  .geo-circle-2 { width: 180px; height: 180px; }
  .geo-square-1 { width: 80px; height: 80px; }
  .geo-triangle-1 { border-left-width: 35px; border-right-width: 35px; border-bottom-width: 60px; }
  .geo-ring-1 { width: 120px; height: 120px; }
  .geo-dots-1 { width: 50px; height: 50px; }
}

/* === SMOOTH SCROLL OFFSET === */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
