:root {
  --primary-ruby: #c1121f;
  --primary-dark: #1a1a1a;
  --secondary-dark: #252525;
  --tertiary-dark: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-tertiary: #888888;
  --border-dark: #404040;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-secondary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

.btn-ruby {
  background-color: var(--primary-ruby);
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.btn-ruby:hover {
  background-color: #8a0d1a;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(193, 18, 31, 0.4);
}

.btn-outline-light {
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background-color: var(--text-primary);
  color: var(--primary-dark);
}

.form-control {
  background-color: var(--primary-dark);
  border: 1px solid var(--border-dark);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-ruby);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(193, 18, 31, 0.25);
}

.form-control::placeholder {
  color: #666666;
}

.card-custom {
  background-color: var(--secondary-dark);
  border: 1px solid var(--border-dark);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card-custom:hover {
  border-color: var(--primary-ruby);
  box-shadow: 0 8px 25px rgba(193, 18, 31, 0.15);
  transform: translateY(-4px);
}

.service-card {
  background-color: var(--secondary-dark);
  border: 1px solid var(--border-dark);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--primary-ruby);
  box-shadow: 0 12px 30px rgba(193, 18, 31, 0.2);
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-ruby) 0%, rgba(193, 18, 31, 0.2) 100%);
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
  width: 50%;
  padding-right: 3rem;
}

.timeline-item:nth-child(odd) {
  margin-left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-left: 3rem;
  padding-right: 0;
  text-align: left;
}

.timeline-marker {
  position: absolute;
  width: 50px;
  height: 50px;
  background-color: var(--primary-ruby);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  z-index: 10;
  top: 0;
  right: -75px;
}

.timeline-item:nth-child(even) .timeline-marker {
  right: auto;
  left: -75px;
}

.timeline-content {
  background-color: var(--secondary-dark);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border-left: 3px solid var(--primary-ruby);
}

.timeline-item:nth-child(even) .timeline-content {
  border-left: none;
  border-right: 3px solid var(--primary-ruby);
}

@media (max-width: 768px) {
  .timeline::before {
    left: 0;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    text-align: left;
  }

  .timeline-item:nth-child(odd) {
    padding-right: 0;
  }

  .timeline-marker,
  .timeline-item:nth-child(even) .timeline-marker {
    left: -35px;
    right: auto;
  }

  .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 40px;
    border-left: 3px solid var(--primary-ruby);
    border-right: none;
  }
}

/* Navbar */
.navbar-dark .navbar-nav .nav-link {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--primary-ruby);
}

.navbar-dark .navbar-nav .nav-link.active {
  color: var(--primary-ruby);
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-custom,
.service-card,
.timeline-item {
  animation: slideInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.8rem !important;
  }

  .hero-section {
    padding-top: 100px !important;
    min-height: auto !important;
    padding-bottom: 2rem !important;
  }

  .navbar {
    padding: 0.75rem 0 !important;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Select styling */
select.form-control {
  color: var(--text-secondary);
  cursor: pointer;
}

select.form-control option {
  background-color: var(--primary-dark);
  color: var(--text-primary);
}

/* Accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--primary-ruby);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar,
  #cookieBanner,
  .btn {
    display: none;
  }
}
