@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap");

:root {
  --color-emerald-950: #050b09;
  --color-emerald-900: #0a1612;
  --color-emerald-800: #112a22;
  --color-emerald-700: #184236;
  --color-emerald-600: #1f5e4c;

  --color-gold-300: #e5ca7c;
  --color-gold-400: #d4b35e;
  --color-gold-500: #c9a340;
  --color-gold-600: #b08d32;
  --color-gold-700: #917224;

  --glass-bg: rgba(17, 42, 34, 0.4);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-blur: blur(20px);

  --font-sans: "Plus Jakarta Sans", sans-serif;
  --font-serif: "Cormorant Garamond", serif;
}

/* ─────────────────────────────────────────────
   GLOBAL & RESET
───────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-emerald-950);
  color: #e2e8f0;
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────
   GRADIENT MESH BACKGROUND
───────────────────────────────────────────── */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: mesh-move 20s infinite alternate-reverse;
}

.orb-gold {
  background: radial-gradient(
    circle,
    var(--color-gold-600) 0%,
    transparent 70%
  );
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
}

.orb-emerald {
  background: radial-gradient(
    circle,
    var(--color-emerald-600) 0%,
    transparent 70%
  );
  width: 800px;
  height: 800px;
  bottom: -300px;
  left: -200px;
}

@keyframes mesh-move {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(100px, 50px) scale(1.1);
  }
  100% {
    transform: translate(-50px, 100px) scale(1);
  }
}

/* ─────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────── */
h1,
h2,
h3,
h4,
.font-serif {
  font-family: var(--font-serif);
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--color-gold-300),
    var(--color-gold-500),
    var(--color-gold-700)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─────────────────────────────────────────────
   NAVBAR (BLURRED STICKY)
───────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  background: rgba(10, 22, 18, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(201, 163, 64, 0.1);
  padding: 1rem 0;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--color-gold-400);
}

/* ─────────────────────────────────────────────
   COMPONENTS
───────────────────────────────────────────── */

/* Glassmorphism Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  border-radius: 1.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: rgba(17, 42, 34, 0.6);
  border: 1px solid rgba(201, 163, 64, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px 0 rgba(201, 163, 64, 0.1);
}

/* Modern CTA Buttons */
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-gold-600),
    var(--color-gold-400)
  );
  color: var(--color-emerald-950);
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 9999px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(201, 163, 64, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(201, 163, 64, 0.4);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 1rem 2rem;
  border-radius: 9999px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-gold-400);
  color: var(--color-gold-400);
}

/* ─────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────── */

/* Hero Gradient Animation */
.animated-gradient-text {
  background: linear-gradient(
    -45deg,
    #fff,
    var(--color-gold-400),
    var(--color-gold-600),
    #fff
  );
  background-size: 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: animated-gradient 6s ease infinite alternate;
}

@keyframes animated-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Elements Floating */
.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ─────────────────────────────────────────────
   TEMPLATE CARDS (Bento inspired)
───────────────────────────────────────────── */
.template-card-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 1rem;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.template-card:hover .template-card-img {
  transform: scale(1.05);
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 5rem 0 3rem;
  background: linear-gradient(to bottom, transparent, rgba(10, 22, 18, 0.8));
}

.footer-logo {
  font-family: var(--font-serif);
  font-style: italic;
}

.footer-link {
  color: #94a3b8;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--color-gold-400);
}

/* ─────────────────────────────────────────────
   RESPONSIVE OVERRIDES
───────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }
}
