/* Custom Styles for Danrex Expectation */

:root {
  /* Color Palette - Light theme with soft greys and deep blue accents */
  --primary-blue: #1e3a8a;
  --primary-blue-light: #3b82f6;
  --soft-grey: #f8f9fa;
  --medium-grey: #6c757d;
  --dark-grey: #343a40;
  --white: #ffffff;
  --accent-blue: #0ea5e9;
}

/* Typography */
body {
  font-family: "Inter", sans-serif;
  color: var(--dark-grey);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--dark-grey);
}

.lead {
  line-height: 1.8;
}

/* Brand */
.brand-text {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  color: var(--primary-blue);
}

/* Navigation */
.navbar {
  transition: all 0.3s ease;
}

.nav-link {
  font-weight: 500;
  color: var(--dark-grey);
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
}

.navbar .btn-primary {
  padding: 0.5rem 1.5rem;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-blue-light);
  border-color: var(--primary-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-outline-primary {
  color: var(--primary-blue);
  border-color: var(--primary-blue);
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.min-vh-75 {
  min-height: 75vh;
}

.hero-section img {
  animation: fadeInUp 0.8s ease-out;
}

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

/* Cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card {
  overflow: hidden;
}

.service-card img {
  transition: transform 0.3s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

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

.timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-blue), var(--accent-blue));
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

.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 fadeIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline-marker {
  position: absolute;
  left: 0;
  width: 60px;
  height: 60px;
  background: var(--primary-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
  color: white;
}

/* Icon Boxes */
.icon-box {
  display: inline-block;
  width: 60px;
  height: 60px;
  background: rgba(30, 58, 138, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-icon {
  display: inline-block;
}

/* Forms */
.form-control,
.form-select {
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.1);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-grey);
}

/* Footer */
footer {
  background-color: #1a1a1a;
}

footer a {
  transition: color 0.3s ease;
}

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

.social-links a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(30, 58, 138, 0.95);
  color: white;
  padding: 1rem 0;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-banner a {
  color: white;
  text-decoration: underline;
}

/* Page Header */
.page-header {
  padding: 3rem 0;
}

/* Accordion */
.accordion-button {
  font-weight: 600;
  color: var(--dark-grey);
}

.accordion-button:not(.collapsed) {
  background-color: rgba(30, 58, 138, 0.05);
  color: var(--primary-blue);
}

.accordion-button:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.1);
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.breadcrumb-item a {
  color: var(--primary-blue);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

/* Utilities */
.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.rounded-4 {
  border-radius: 1rem !important;
}

/* Responsive */
@media (max-width: 991px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-marker {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding: 3rem 0;
  }

  .display-4 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.75rem;
  }

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

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

/* Loading Animation */
.loading {
  opacity: 0;
  animation: fadeInDelay 0.6s ease-out forwards;
}

@keyframes fadeInDelay {
  to {
    opacity: 1;
  }
}

/* Success Icon Animation */
.success-icon {
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
