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

:root {
  --primary: #0f766e; /* teal-700 */
  --primary-light: #5eead4; /* teal-300 */
  --primary-content: #ffffff;
  --secondary: #334155; /* slate-700 */
  --base-50: #ffffff; /* bright background for cleaner look */
  --base-100: #f5f5f4; /* stone-100 */
  --base-200: #e7e5e4; /* stone-200 */
  --base-300: #d6d3d1; /* stone-300 */
  --base-400: #a8a29e; /* stone-400 */
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--base-50);
  color: var(--secondary);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--secondary);
}

p {
  line-height: 1.6;
  margin-bottom: 1em;
}

.text-xl {
  line-height: 1.5;
}

.text-3xl, .text-4xl, .text-5xl {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.text-5xl {
  line-height: 1.25; /* Improved readability for large headers */
}

/* Custom section spacing */
.section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* Custom animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Custom utility classes */
.animate-fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

.transition-smooth {
  transition: all 0.3s ease-in-out;
}

.custom-focus:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--base-200);
}

::-webkit-scrollbar-thumb {
  background: var(--base-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--base-400);
}

/* Custom selection */
::selection {
  background: var(--primary);
  color: var(--primary-content);
}

/* Custom text styles */
.text-balance {
  text-wrap: balance;
}

.text-muted {
  color: color-mix(in srgb, var(--secondary) 80%, transparent);
}

/* Custom container padding for mobile */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Custom card hover effects */
.card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  background-color: var(--base-100);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Custom button styles */
.btn {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem; /* rounded-md */
  font-size: 1.125rem; /* text-lg */
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  transition: box-shadow 0.3s ease;
}

.btn:hover {
  box-shadow: 0 6px 12px -2px rgb(0 0 0 / 0.15);
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
  pointer-events: none;
}

.btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Optional header border utility */
.header-border {
  border-bottom: 1px solid var(--base-300);
}

/* Styled link utility */
.link {
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}
.link:hover {
  text-decoration: underline;
}
