/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: #FDF6EC;
  color: #1C1517;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
#navbar {
  background: rgba(253, 246, 236, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(28, 21, 23, 0.06);
}

#navbar.scrolled {
  background: rgba(253, 246, 236, 0.95);
  box-shadow: 0 4px 30px rgba(28, 21, 23, 0.08);
}

.nav-logo-text {
  transition: color 0.3s;
}

.nav-link {
  position: relative;
}

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

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

/* ===== MOBILE MENU ===== */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

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

#mobile-menu.open .menu-line:nth-child(2) {
  opacity: 0;
}

#mobile-menu.open .menu-line:nth-child(3) {
  width: 5rem;
  margin-left: 0;
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-link {
  transition: color 0.3s, transform 0.3s;
}

.mobile-link:hover {
  color: #d94518;
  transform: scale(1.05);
}

/* ===== HERO SHAPES ===== */
.hero-shape {
  position: absolute;
  pointer-events: none;
}

.shape-circle-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 176, 74, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(217, 69, 24, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  bottom: 10%;
  left: 5%;
  animation: float-slow 10s ease-in-out infinite reverse;
}

.shape-rect-1 {
  width: 120px;
  height: 120px;
  background: rgba(217, 69, 24, 0.06);
  border-radius: 24px;
  top: 20%;
  right: 15%;
  transform: rotate(15deg);
  animation: float-slow 6s ease-in-out infinite;
}

.shape-rect-2 {
  width: 80px;
  height: 80px;
  background: rgba(228, 200, 111, 0.15);
  border-radius: 16px;
  bottom: 25%;
  right: 25%;
  transform: rotate(-10deg);
  animation: float-slow 7s ease-in-out infinite reverse;
}

.shape-tri {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 100px solid rgba(212, 176, 74, 0.08);
  top: 40%;
  left: 3%;
  animation: float-slow 9s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-20px) rotate(var(--rot, 0deg)); }
}

.shape-rect-1 { --rot: 15deg; }
.shape-rect-2 { --rot: -10deg; }

/* ===== MARQUEE ===== */
.marquee-track {
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-section {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-shape {
    animation: none;
  }
  .marquee-track {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===== SCROLL REVEAL (JS-enhanced) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal-section {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== BUTTONS ===== */
a, button {
  cursor: pointer;
}

/* ===== FOCUS STATES ===== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #d94518;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(217, 69, 24, 0.2);
  color: #1C1517;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF6EC;
}
::-webkit-scrollbar-thumb {
  background: rgba(217, 69, 24, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(217, 69, 24, 0.5);
}
