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

:root {
  --foreground-rgb: 0, 0, 0;
  --background-rgb: 255, 255, 255;
}

body {
  color: rgb(var(--foreground-rgb));
  background: rgb(var(--background-rgb));
  font-family: "Inter", "Helvetica", "Arial", sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Form focus states */
input:focus,
textarea:focus {
  outline: none;
  border-bottom-color: #000 !important;
}

/* Smooth transitions */
* {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Typography improvements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 900;
  letter-spacing: -0.025em;
}

/* Button hover effects */
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Project hover effects */
.group:hover .group-hover\:bg-swiss-red {
  background-color: #e41e26;
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
  .text-8xl {
    font-size: 4rem;
  }

  .text-9xl {
    font-size: 5rem;
  }

  .text-6xl {
    font-size: 3rem;
  }
}

/* Accessible focus outlines for keyboard users */
:focus {
  outline: 3px solid rgba(36, 99, 235, 0.25);
  outline-offset: 3px;
}

/* Ensure inline SVGs inherit color from text classes */
svg[role="img"] {
  color: inherit;
  width: 1.75rem;
  height: 1.75rem;
}

/* Mobile sidebar helpers */
#mobile-overlay {
  backdrop-filter: blur(2px);
}

#mobile-sidebar {
  will-change: transform;
}

/* Prevent body horizontal scroll when sidebar is visible */
body.lock-scroll {
  overflow: hidden;
}

/* Small utility spacing */
.space-y-3 > * + * {
  margin-top: .75rem;
}
