@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Lato:wght@300;400;700;900&family=Outfit:wght@100..900&display=swap');

:root {
  --primary: #953F30;
  --primary-glow: rgba(149, 63, 48, 0.4);
  --secondary: #C29676;
  --accent: #eea941;
  --accent-light: #ffcc00;
  --bg: #F8F5F1;
  --bg-dark: #12100e;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5a483c;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.85);
  --glass-dark: rgba(0, 0, 0, 0.6);
  --glass-border: rgba(149, 63, 48, 0.1);
  --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-sm: 0 4px 10px rgba(0,0,0,0.05);
  --shadow-md: 0 20px 40px rgba(0,0,0,0.1);
  --shadow-lg: 0 30px 60px rgba(149, 63, 48, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Outfit', 'Lato', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-bricolage {
  font-family: 'Bricolage Grotesque', sans-serif;
  letter-spacing: -0.02em;
}

.font-playfair {
  font-family: 'Playfair Display', serif;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

section {
  padding: 10rem 0;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

/* --- Components --- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.2rem 2.5rem;
  border-radius: 100px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--primary-glow);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(26, 26, 26, 0.1);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--text);
  color: var(--white);
}

/* Floating Navbar */
nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 0.8rem 2rem;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav.scrolled {
  top: 0;
  width: 100%;
  max-width: none;
  border-radius: 0;
  padding: 1.2rem 4rem;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 2px solid var(--primary);
}

.logo-text {
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  opacity: 0.6;
}

.nav-links a:hover, .nav-links a.active {
  opacity: 1;
  color: var(--primary);
}

/* --- Hero --- */
.hero {
  height: 100vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  color: var(--white);
  position: relative;
  background: var(--bg-dark);
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-video-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transform: scale(1.1);
  transition: transform 10s ease-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, var(--bg-dark));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.2rem;
  background: var(--glass-dark);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 0.95;
  font-weight: 900;
  margin-bottom: 2rem;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  opacity: 0.9;
  max-width: 600px;
  margin-bottom: 3.5rem;
}

input {
  font-family: inherit;
  transition: var(--transition);
}

input:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 20px var(--primary-glow) !important;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 3rem;
}

.card {
  background: var(--surface);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.03);
  position: relative;
}

.card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-glow);
}

.card-img-wrapper {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.card:hover .card-img-wrapper img {
  transform: scale(1.1);
}

.card-tag {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  z-index: 5;
}

.card-body {
  padding: 2.5rem;
}

/* --- Masonry Gallery --- */
.gallery-wrapper {
  columns: 3 300px;
  column-gap: 2rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 2rem;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.8);
}

/* --- Notification System --- */
.notification-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notification {
  background: var(--bg-dark);
  color: white;
  padding: 1.2rem 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 300px;
  transform: translateX(120%);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.notification.active {
  transform: translateX(0);
}

/* --- Dashboard Badge --- */
.hub-badge {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1000;
  background: var(--primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition);
}

.hub-badge:hover {
  transform: scale(1.1) rotate(-2deg);
  background: var(--text);
}

/* --- Footer --- */
footer {
  background: var(--bg-dark);
  color: white;
  padding: 10rem 0 4rem;
  border-radius: 60px 60px 0 0;
  margin-top: 10rem;
}

footer .logo-text {
  color: white;
  margin-bottom: 2rem;
  justify-content: center;
}

footer p {
  opacity: 0.5;
  font-size: 0.85rem;
  max-width: 500px;
  margin: 0 auto;
}

footer a {
  color: white;
  opacity: 0.8;
}

footer a:hover {
  opacity: 1;
  color: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  nav { padding: 0.8rem 1.5rem; width: 95%; }
  .hero h1 { font-size: 3rem; }
  section { padding: 6rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* --- Animations --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1.2s cubic-bezier(0.2, 1, 0.2, 1);
}

[data-reveal].active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-stagger.active > * {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.2, 1, 0.2, 1);
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.4s; }
