:root {
  --background-light: #F8F5F2;
  --text-light: #1a1a1a;
  --primary-light: #FF6B35;
  --primary-hover-light: #E05A2D;
  --card-bg-light: #FFFFFF;

  --background-dark: #121212;
  --text-dark: #EAEAEA;
  --primary-dark: #FF7A49;
  --primary-hover-dark: #FF6B35;
  --card-bg-dark: #1E1E1E;
  --background-card-dark: #1E1E1E;

  --font-body: 'Poppins', sans-serif;
  --font-heading: 'Playfair Display', serif;
}

html.dark {
  --background-light: var(--background-dark);
  --text-light: var(--text-dark);
  --primary-light: var(--primary-dark);
  --primary-hover-light: var(--primary-hover-dark);
  --card-bg-light: var(--card-bg-dark);
}

body {
  font-family: var(--font-body);
  background-color: var(--background-light);
  color: var(--text-light);
  transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

.bg-background { background-color: var(--background-light); }
html.dark .bg-background { background-color: var(--background-card-dark); }
.bg-primary { background-color: var(--primary-light); }
.hover\:bg-primary-hover:hover { background-color: var(--primary-hover-light); }
.text-primary { color: var(--primary-light); }
.border-primary { border-color: var(--primary-light); }
.bg-card { background-color: var(--card-bg-light); }
.text-main { color: var(--text-light); }

.cta-button {
  @apply inline-block bg-primary text-white font-bold uppercase tracking-widest text-sm px-8 py-4 rounded-full transition-all duration-300 transform hover:scale-105 hover:shadow-lg hover:bg-primary-hover;
}

.section-title {
  @apply text-4xl md:text-5xl font-bold mb-4 text-center;
}

.section-subtitle {
  @apply text-lg text-primary font-semibold uppercase tracking-wider mb-8 text-center;
}

/* Dynamic Header Styling */
header {
  transition: background-color 0.4s ease-out, box-shadow 0.4s ease-out, backdrop-filter 0.4s ease-out;
}
header:not(.scrolled) {
  background-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: blur(0px) !important;
}

/* Make nav links white on transparent header, unless active */
header:not(.scrolled) .nav-link:not(.active),
header:not(.scrolled) .header-icon {
  color: white;
}
header:not(.scrolled) .nav-link:hover {
    color: #ffffffb3; /* A slightly transparent white for hover */
}

/* Active Nav Link Style */
.nav-link.active {
    color: var(--primary-light);
    font-weight: 700;
}
/* Ensure active link stays colored on transparent header */
header:not(.scrolled) .nav-link.active {
    color: var(--primary-light);
}


/* Image Tilt Effect */
.image-tilt {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.image-tilt:hover {
  transform: rotate(2deg) scale(1.05);
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
