/* =========================
   PREVENT WHITE FLASH ON LOAD
========================= */

html {
  background: #1a1a1a;
}

body {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  margin: 0;
  padding: 0;
  opacity: 0;
  animation: fadeInPage 0.5s ease-out forwards;
}

@keyframes fadeInPage {
  to {
    opacity: 1;
  }
}

/* =========================
   HERO SECTION - SMOOTH LOADING
========================= */

.hero {
  min-height: 100vh;
  background: #1a1a1a; /* Fallback solid color */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  color: #fff;
  padding: 0 30px;
  padding-top: 70px;
  opacity: 0;
  animation: heroFadeIn 1.5s ease-out forwards;
}

/* Hero background image layer */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/hero.webp') no-repeat center center/cover;
  opacity: 0;
  animation: bgImageFadeIn 1.2s ease-out 0.3s forwards;
  z-index: 0;
}

/* Dark overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.7) 0%,
    rgba(0,0,0,0.5) 15%,
    rgba(0,0,0,0.4) 50%,
    rgba(0,0,0,0.5) 100%
  );
  z-index: 1;
  opacity: 0;
  animation: overlayFadeIn 1s ease-out 0.5s forwards;
}

.hero h2, .hero p, .hero a {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 500;
  margin-bottom: 30px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  opacity: 0;
  animation: fadeInDown 1s ease-out 0.8s forwards;
}

.hero p {
  max-width: 750px;
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 40px;
  opacity: 0;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
  animation: fadeInUp 1s ease-out 1.1s forwards;
}

.btn {
  padding: 14px 32px;
  border: 1px solid #c6b08a;
  color: #c6b08a;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: scaleIn 0.6s ease-out 1.4s forwards;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: #c6b08a;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  color: #111315;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(198, 176, 138, 0.4);
}

/* =========================
   KEYFRAME ANIMATIONS
========================= */

@keyframes heroFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bgImageFadeIn {
  from {
    opacity: 0;
    transform: scale(1.1);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =========================
   HEADER ANIMATIONS
========================= */

header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 20px 60px;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  opacity: 0;
  animation: headerSlideDown 0.8s ease-out 0.2s forwards;
}

header.scrolled {
  background: #111;
  padding: 15px 60px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@keyframes headerSlideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.logo a:hover {
  color: #c6b08a; /* Add tan color on hover */
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(198, 176, 138, 0.5); /* Change glow to tan */
}

/* =========================
   HAMBURGER MENU
========================= */

.dropdown {
  position: relative;
}

.hamburger {
  width: 28px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hamburger:hover {
  transform: scale(1.1);
}

.hamburger span {
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Dropdown Menu */
.dropdown-content {
  position: absolute;
  top: 45px;
  right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  min-width: 200px;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.dropdown-content a {
  padding: 16px 22px;
  display: block;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: #111;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dropdown-content a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: #c6b08a;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.dropdown-content a:hover::before {
  transform: scaleY(1);
}

.dropdown-content a:hover {
  background: #f4f4f4;
  padding-left: 30px;
  color: #c6b08a;
}

/* Active page styling */
.dropdown-content a.active {
  background: rgba(198, 176, 138, 0.15);
  color: #c6b08a;
  font-weight: 500;
  border-left: 4px solid #c6b08a;
  padding-left: 18px;
}

.dropdown.show .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* =========================
   FOOTER
========================= */

footer {
  background: #111;
  color: #777;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  opacity: 0;
  animation: footerFadeIn 1s ease-out 1.6s forwards;
}

@keyframes footerFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0 40px;
}

.footer-content p {
  margin: 0;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c6b08a;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.social-icon:hover {
  background: #c6b08a;
  color: #111;
  transform: translateY(-5px) rotate(360deg);
  box-shadow: 0 10px 25px rgba(198, 176, 138, 0.4);
  border-color: #c6b08a;
}

/* =========================
   GENERAL SECTIONS
========================= */

section {
  padding: 120px 80px;
}

section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 30px;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 992px) {
  .hero {
    padding-top: 60px;
  }
  .hero h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }
  header.scrolled {
    padding: 12px 20px;
  }
  .hero {
    padding-top: 55px;
  }
  section {
    padding: 80px 30px;
  }
  .hero h2 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .logo a {
    font-size: 1.5rem;
    letter-spacing: 1px;
    white-space: nowrap;
  }
  .hamburger {
    flex-shrink: 0;
    margin-left: 10px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
  }
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 50px;
  }
  .hero h2 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 0.85rem;
  }
  .btn {
    font-size: 0.8rem;
    padding: 12px 25px;
  }
  .logo a {
    font-size: 1.4rem;
    letter-spacing: 1px;
    white-space: nowrap;
  }
}
