/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #b9b893;
  --primary-light: #d4d3b8;
  --primary-lighter: #e8e7d4;
  --primary-dark: #a4a376;
  --secondary: #6f6e50;
  --secondary-dark: #4a4933;
  --accent: #8a896b;
  --hero-dark: #2c2b20;
  --footer-dark: #33322a;
  --text-dark: #1a1a1a;
  --text-body: #4a4a4a;
  --text-light: #6b7280;
  --bg-light: #fafaf7;
  --bg-section: #f5f5f0;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Segoe UI', sans-serif;
}

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

/* Selection */
::selection {
  background: var(--primary);
  color: white;
}

/* Loading Skeleton */
.skeleton {
  background: #eee;
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  border-radius: 5px;
  background-size: 200% 100%;
  animation: 1.5s shine linear infinite;
}
@keyframes shine {
  to {
    background-position-x: -200%;
  }
}

/* Hero Overlay */
.hero-overlay {
  position: relative;
  overflow: hidden;
}
.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74, 73, 51, 0.85) 0%, rgba(111, 110, 80, 0.7) 100%);
  z-index: 1;
}
.hero-overlay > * {
  position: relative;
  z-index: 2;
}

/* Glassmorphism Navbar */
.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(185, 184, 147, 0.2);
}

/* Section Divider */
.section-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 99px;
  margin: 0 auto 1.5rem;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: white;
  color: var(--text-dark);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards, fadeOut 0.4s 3s ease forwards;
  min-width: 280px;
}
.toast.success {
  border-left: 4px solid #10b981;
}
.toast.error {
  border-left: 4px solid #ef4444;
}

@keyframes slideIn {
  to { transform: translateX(0); }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateX(120%); visibility: hidden; }
}

/* Base Modal Styling */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}
.modal-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-content {
  transform: scale(1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Fade-in animation for hero text */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-fade-up {
  animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-fade-up-delay {
  opacity: 0;
  animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}
.hero-fade-up-delay2 {
  opacity: 0;
  animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

/* Navbar active link */
nav a.active {
  color: var(--secondary);
  font-weight: 700;
}

/* Card hover elevate (Anti-glow) */
.card-glow {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-glow:hover {
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.08);
}

/* Gradient text utility */
.text-gradient {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Button shine effect */
.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}
.btn-shine:hover::after {
  left: 100%;
}

/* Floating shapes decoration */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}
.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* Pulse ring for CTA */
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(185, 184, 147, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(185, 184, 147, 0); }
  100% { box-shadow: 0 0 0 0 rgba(185, 184, 147, 0); }
}
.pulse-ring {
  animation: pulseRing 2s infinite;
}

/* Input focus transition */
.input-modern {
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
}
.input-modern:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(185, 184, 147, 0.15);
}
