@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;800&display=swap');
@import url('https://fonts.loli.net/css?family=Noto+Sans+SC:wght@300;400;700&display=swap');

@layer base {
  :root {
    --color-primary: #2c3e50;
    --color-secondary: #34495e;
    --color-accent: #c0392b;
    --color-olive: #556b2f;
    --color-burgundy: #800020;
    --color-metallic: #b8b8b8;
    --color-ivory: #fffff0;
    --color-oatmeal: #f5f5dc;
  }

  * {
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
  }

  p {
    font-weight: 300;
  }
}

@layer components {
  .glass-nav {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .fade-in {
    animation: fadeIn 1.2s ease-in-out forwards;
  }

  .slide-up {
    animation: slideUp 1s ease-out forwards;
  }

  .hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  }

  .text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .image-overlay {
    position: relative;
    overflow: hidden;
  }

  .image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .image-overlay:hover::after {
    opacity: 1;
  }

  .tag-badge {
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    color: white;
  }
}

@layer utilities {
  .animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
  }

  .animate-slide-up {
    animation: slideUp 0.6s ease-out;
  }
}

@keyframes fadeIn {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .glass-nav {
    background-color: rgba(255, 255, 255, 0.95);
  }
}