@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

@import "tailwindcss";

@layer base {
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Inter', 'Open Sans', sans-serif;
    background-color: #F9FAFB;
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Focus styles for accessibility */
  *:focus-visible {
    outline: 2px solid #D4693D;
    outline-offset: 2px;
    border-radius: 4px;
  }

  /* Smooth transitions */
  button,
  a {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
  }
}

@layer components {
  /* Modern Button styles */
  .btn-primary {
    background: linear-gradient(135deg, #D4693D 0%, #E07A4A 100%);
    color: white;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(212, 105, 61, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
  }

  .btn-primary:hover::before {
    left: 100%;
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 105, 61, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
  }

  .btn-primary:active {
    transform: translateY(0);
  }

  .btn-secondary {
    background: linear-gradient(135deg, #1E3A6D 0%, #2B4B7C 100%);
    color: white;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(30, 58, 109, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 109, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
  }

  .btn-outline {
    border: 2px solid #D4693D;
    color: #D4693D;
    font-weight: 600;
    padding: 0.875rem 2.25rem;
    border-radius: 12px;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .btn-outline:hover {
    background: linear-gradient(135deg, #D4693D 0%, #E07A4A 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 105, 61, 0.3);
  }

  /* Modern Card styles with glassmorphism */
  .card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 
                0 10px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1), 
                0 20px 40px rgba(0, 0, 0, 0.12);
  }

  /* Modern Section heading with gradient */
  .section-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1E3A6D 0%, #2B4B7C 50%, #D4693D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
  }

  .section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #D4693D 0%, #E07A4A 100%);
    margin: 1.5rem auto 0;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(212, 105, 61, 0.3);
  }

  /* Glassmorphism container */
  .glass-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }

  /* Gradient text */
  .gradient-text {
    background: linear-gradient(135deg, #D4693D 0%, #E07A4A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Badge modern */
  .badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(30, 58, 109, 0.1) 0%, rgba(30, 58, 109, 0.05) 100%);
    border: 1px solid rgba(30, 58, 109, 0.2);
    font-weight: 600;
    font-size: 0.875rem;
    color: #1E3A6D;
    backdrop-filter: blur(10px);
  }

  /* Accessibility utilities */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border-width: 0;
  }

  /* Floating animation */
  .floating {
    animation: floating 3s ease-in-out infinite;
  }

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

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.zalo-button {
  animation: pulse 2s infinite;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.zalo-button:hover {
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.5);
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Shimmer effect */
.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}