/* ROOT VARIABLES AND DESIGN TOKENS */
:root {
  --charcoal: #2a2a2a;
  --charcoal-light: #3a3a3a;
  --ruby: #c41e3a;
  --ruby-light: #d63a52;
  --ruby-dark: #a01830;
  --light-gray: #e0e0e0;
  --text-light: #d1d5db;
  --card-dark: #333333;
  --border: 1px solid var(--ruby);
}

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

html,
body {
  font-family: "Inter", sans-serif;
  color: var(--text-light);
  background-color: var(--charcoal);
  line-height: 1.6;
}

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

/* CUSTOM BOOTSTRAP OVERRIDES */
.bg-dark {
  background-color: var(--charcoal) !important;
}

.bg-charcoal {
  background-color: var(--charcoal-light) !important;
}

.bg-card-dark {
  background-color: var(--card-dark) !important;
}

.text-ruby {
  color: var(--ruby) !important;
}

.btn-ruby {
  background-color: var(--ruby);
  border-color: var(--ruby);
  color: white;
}

.btn-ruby:hover {
  background-color: var(--ruby-dark);
  border-color: var(--ruby-dark);
  color: white;
}

.btn-outline-ruby {
  color: var(--ruby);
  border-color: var(--ruby);
}

.btn-outline-ruby:hover {
  background-color: var(--ruby);
  border-color: var(--ruby);
  color: white;
}

.border-ruby {
  border-color: var(--ruby) !important;
}

/* FORM STYLES */
.form-control {
  background-color: var(--card-dark);
  border: 1px solid var(--ruby);
  color: white;
}

.form-control:focus {
  background-color: var(--card-dark);
  border-color: var(--ruby-light);
  color: white;
  box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.25);
}

.form-label {
  color: var(--light-gray);
  font-weight: 500;
}

/* ACCORDION STYLES */
.accordion-button {
  background-color: var(--card-dark);
  border: 1px solid var(--ruby);
  color: var(--ruby);
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background-color: var(--ruby);
  color: white;
}

.accordion-button:focus {
  border-color: var(--ruby);
  box-shadow: 0 0 0 0.25rem rgba(196, 30, 58, 0.25);
}

.accordion-body {
  background-color: var(--charcoal);
  border: 1px solid var(--ruby);
  border-top: none;
}

/* SERVICE CARDS */
.service-card {
  background-color: var(--card-dark);
  border: 1px solid var(--ruby);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(196, 30, 58, 0.2);
}

/* HERO SECTION */
.hero-section {
  padding: 80px 0;
}

.hero-section h1 {
  font-size: 3.5rem;
  letter-spacing: -1px;
}

.hero-section .lead {
  font-size: 1.25rem;
  font-weight: 300;
}

/* TIMELINE ANIMATION */
.timeline-container {
  position: relative;
  padding: 20px 0;
}

.timeline-item {
  display: flex;
  margin-bottom: 30px;
  animation: slideInUp 0.6s ease-out forwards;
  opacity: 0;
}

.timeline-item:nth-child(1) {
  animation-delay: 0.1s;
}
.timeline-item:nth-child(2) {
  animation-delay: 0.2s;
}
.timeline-item:nth-child(3) {
  animation-delay: 0.3s;
}
.timeline-item:nth-child(4) {
  animation-delay: 0.4s;
}
.timeline-item:nth-child(5) {
  animation-delay: 0.5s;
}

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

.timeline-marker {
  width: 50px;
  height: 50px;
  background-color: var(--ruby);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
  margin-right: 20px;
  box-shadow: 0 0 20px rgba(196, 30, 58, 0.3);
}

.timeline-content {
  padding: 15px;
  background-color: var(--card-dark);
  border-left: 2px solid var(--ruby);
  border-radius: 4px;
  flex-grow: 1;
}

.timeline-content h5 {
  margin-bottom: 8px;
}

.timeline-content p {
  margin: 0;
  font-size: 0.95rem;
}

/* RESULT CARDS */
.result-card {
  padding: 30px 20px;
  background-color: var(--card-dark);
  border: 1px solid var(--ruby);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.result-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(196, 30, 58, 0.2);
}

/* SERVICE FEATURES */
.service-feature {
  padding: 20px;
  background-color: var(--card-dark);
  border-left: 4px solid var(--ruby);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.service-feature:hover {
  transform: translateX(10px);
}

/* IMAGE STYLING */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.img-fluid {
  width: 100%;
  height: auto;
}

.shadow-lg {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

/* CARD STYLING */
.card {
  background-color: var(--card-dark);
  border: 1px solid var(--ruby);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(196, 30, 58, 0.15);
}

/* BUTTON STYLES */
.btn {
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* NAVBAR STYLES */
.navbar {
  background-color: var(--charcoal) !important;
}

.navbar-brand {
  color: var(--ruby) !important;
  font-size: 1.3rem;
}

.nav-link {
  color: var(--text-light) !important;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--ruby) !important;
}

.nav-link.active {
  color: var(--ruby) !important;
}

/* FOOTER STYLES */
footer {
  background-color: var(--charcoal) !important;
}

footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--ruby) !important;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .display-6 {
    font-size: 1.8rem;
  }

  .timeline-item {
    flex-direction: column;
  }

  .timeline-marker {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* PRINT STYLES */
@media print {
  body {
    background-color: white;
    color: black;
  }

  .navbar,
  footer {
    display: none;
  }
}
