@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&display=swap');

[x-cloak] {
  display: none !important;
}

:root {
  --color-red: #e53935;
  --color-red-hover: #c62828;
  --color-grey-light: #f8f9fa;
  --color-grey-dark: #1a1a1a;
  --color-border: #e53935;
  --font-main: 'League Spartan', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-grey-light);
  color: #1a1a1a;
  line-height: 1.5;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

h1 {
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  h1 {
    font-size: 4.25rem;
  }
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  h2 {
    font-size: 3rem;
  }
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.text-red {
  color: var(--color-red);
}

.bg-red {
  background-color: var(--color-red);
}

.bg-grey-light {
  background-color: var(--color-grey-light);
}

.bg-grey-dark {
  background-color: var(--color-grey-dark);
}

/* Interactive Filler Button */
.interactive-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--color-red);
  border-radius: 9999px;
  text-decoration: none;
  overflow: hidden;
  transition: color 0.3s ease, transform 0.2s ease;
  border: 2px solid var(--color-red);
}

.interactive-button .button__filler {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 9999px;
}

.interactive-button:hover .button__filler {
  transform: translateY(0);
}

.interactive-button .button__text {
  position: relative;
  z-index: 1;
}

.secondary-button {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-red);
  background-color: #ffffff;
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.secondary-button:hover {
  background-color: #1a1a1a;
  color: #ffffff;
}

/* Animated Links */
.animated-link {
  position: relative;
  text-decoration: none;
}

.animated-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.animated-link:hover::after,
.animated-link.current::after {
  width: 100%;
}

/* Service Card Hover */
.service-card {
  transition: all 0.3s ease;
  border: 1px solid #d1d5db;
}

.service-card:hover {
  border-color: var(--color-red);
  box-shadow: 0 10px 25px -5px rgba(229, 57, 53, 0.15);
}

/* Infinite Gallery Scroll */
.gallery-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.gallery-container::-webkit-scrollbar {
  display: none;
}

/* Custom SVG Animation Keyframes */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 0.3; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

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

@keyframes dash-move {
  to { stroke-dashoffset: -40; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-pulse-ring {
  animation: pulse-ring 3s infinite ease-in-out;
  transform-origin: center;
}

.animate-float-1 {
  animation: float-item 4s ease-in-out infinite;
}

.animate-float-2 {
  animation: float-item 5s ease-in-out 1s infinite;
}

.animate-float-3 {
  animation: float-item 4.5s ease-in-out 0.5s infinite;
}

.animate-dash {
  stroke-dasharray: 10, 10;
  animation: dash-move 2s linear infinite;
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
  transform-origin: center;
}
