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

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

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(192, 96, 58, 0.3);
  color: #F5E6D3;
}

/* ===== Navbar ===== */
#navbar {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
  background: rgba(20, 17, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(245, 230, 211, 0.05);
}

.nav-link {
  position: relative;
}

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

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

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

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

#mobile-menu.open #bar1 {
  transform: translateY(3.5px) rotate(45deg);
}

#mobile-menu.open #bar2 {
  opacity: 0;
}

#mobile-menu.open #bar3 {
  transform: translateY(-3.5px) rotate(-45deg);
  width: 1.5rem;
}

.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #C0603A;
  transition: width 0.3s ease;
}

.mobile-link:hover::after {
  width: 80%;
}

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

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

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.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; }

/* ===== About ===== */
.about-images {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-images.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-text {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-text.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Flavor Cards ===== */
.flavor-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.flavor-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Experience ===== */
.experience-image {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.experience-image.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Contact Form ===== */
#contact-form {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#contact-form.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Gallery Images ===== */
section:nth-of-type(5) img {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.7s ease;
}

section:nth-of-type(5) img.visible {
  opacity: 1;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #141110;
}

::-webkit-scrollbar-thumb {
  background: #C0603A;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #A04E2E;
}

/* ===== Focus Styles ===== */
input:focus, textarea:focus, button:focus {
  outline: none;
}

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

  #hero h1 {
    font-size: 2.75rem;
  }

  .flavor-card {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.25rem;
  }
}
