:root {
  --primary-red: #991b1b;
  --primary-black: #000000;
  --primary-white: #ffffff;
  --light-gray: #f8f9fa;
  --dark-gray: #6c757d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s
    ease;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--primary-black);
}

/* Navigation */
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-red) !important;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  /* background: linear-gradient(135deg, var(--primary-black) 0%, #333 100%); */
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-black) 0%, #1a1a1a 50%, #333 100%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(153, 27, 27, 0.1) 0%, transparent 50%);
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  color: rgba(153, 27, 27, 0.1);
  font-size: 2rem;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(2) {
  animation-delay: -2s;
}

.floating-element:nth-child(3) {
  animation-delay: -4s;
}

.floating-element:nth-child(4) {
  animation-delay: -1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Hero Content Animations */
.animate-fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.animate-fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  animation: fadeInRight 1s ease forwards;
  animation-delay: 0.5s;
}

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

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero Image Enhancements */
.image-container {
  position: relative;
}

.main-hero-image {
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.main-hero-image:hover {
  transform: scale(1.02);
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  animation: floatCard 3s ease-in-out infinite;
}

.card-1 {
  top: 20%;
  right: -10%;
  animation-delay: 0s;
}

.card-2 {
  bottom: 30%;
  left: -15%;
  animation-delay: -1s;
}

.card-3 {
  top: 60%;
  right: -5%;
  animation-delay: -2s;
}

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

/* Hero Stats */
.hero-stats {
  margin-top: 2rem;
}

.stat-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.hero-image img {
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Feature Cards */
.feature-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

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

.feature-icon-wrapper {
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0.1;
  transition: opacity 0.3s ease;
}

.feature-card:hover .feature-bg-image {
  opacity: 0.2;
}

.feature-icon {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon {
  margin-bottom: 1rem;
}

.feature-stats {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

/* Event Cards */
.event-card .card {
  border: none;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.event-meta {
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

/* Buttons */
.btn-danger {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background-color: #7f1d1d;
  border-color: #7f1d1d;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(153, 27, 27, 0.3);
}

.btn-outline-danger {
  color: var(--primary-red);
  border-color: var(--primary-red);
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-outline-danger:hover {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(180, 4, 4, 0.3);
}

.btn-outline-light {
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  transform: translateY(-2px);
}

/* Badges */
.badge {
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

/* Footer */
footer {
  background-color: var(--primary-black) !important;
}

footer h5,
footer h6 {
  color: var(--primary-white);
}

.social-links a {
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-red) !important;
}

/* FAQ Specific Styles */
.faq-sidebar {
  position: sticky;
  top: 100px;
}

.faq-sidebar .card {
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-sidebar a {
  color: var(--dark-gray);
  transition: color 0.3s ease;
}

.faq-sidebar a:hover {
  color: var(--primary-red);
}

.faq-section {
  scroll-margin-top: 100px;
}

.accordion-button {
  font-weight: 500;
  border: none;
  background: #f8f9fa;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-red);
  color: white;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(153, 27, 27, 0.25);
}

.accordion-item {
  border: 1px solid #dee2e6;
  border-radius: 8px !important;
  margin-bottom: 1rem;
}

.accordion-body {
  padding: 1.5rem;
}

.search-box .form-control {
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.search-box .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-box .form-control:focus {
  border-color: var(--primary-red);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 0.25rem rgba(153, 27, 27, 0.25);
}

.search-box .btn {
  border-radius: 0 25px 25px 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .floating-card {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .card-1 {
    right: -5%;
  }

  .card-2 {
    left: -10%;
  }
}

@media (max-width: 992px) {
  .faq-sidebar {
    position: static;
    margin-bottom: 2rem;
  }

  .hero-stats .row {
    gap: 0.5rem;
  }

  .feature-icon-wrapper {
    height: 100px;
  }

  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-item {
    margin: 0.25rem 0;
  }
}

@media (max-width: 768px) {
  .hero-section {
    text-align: center;
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 2rem;
  }

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

  .hero-image {
    margin-top: 2rem;
  }

  .d-flex.gap-3 {
    flex-direction: column;
    gap: 1rem !important;
  }

  .floating-card {
    display: none;
  }

  .hero-stats .row {
    gap: 1rem;
  }

  .feature-icon-wrapper {
    height: 80px;
  }

  .card-img-wrapper {
    height: 150px;
  }

  .search-box .col-md-6 {
    width: 100%;
  }

  .d-flex.flex-wrap.gap-2 {
    justify-content: center;
  }

  .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }

  .accordion-body {
    padding: 1rem;
  }

  .card-body {
    padding: 1rem;
  }

  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

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

  .lead {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-section {
    padding-top: 120px;
  }

  .floating-element {
    font-size: 1.5rem;
  }

  .stat-item {
    padding: 0.75rem;
  }

  .feature-card {
    margin-bottom: 1rem;
  }

  .event-card {
    margin-bottom: 1rem;
  }

  .card-img-wrapper {
    height: 120px;
  }

  .btn-lg {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

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

  .accordion-button {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }

  .search-box .form-control {
    font-size: 0.9rem;
  }

  .faq-sidebar .card-body {
    padding: 1rem;
  }

  .social-links {
    text-align: center;
  }

  .social-links a {
    margin: 0 0.5rem;
  }
}

@media (max-width: 400px) {
  .hero-section {
    padding-top: 100px;
  }

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

  .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .card-body {
    padding: 0.75rem;
  }

  .accordion-body {
    padding: 0.75rem;
  }

  .stat-item h3 {
    font-size: 1.5rem;
  }

  .feature-icon i {
    font-size: 2rem !important;
  }
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card,
.event-card {
  animation: fadeInUp 0.6s ease forwards;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-red), #7f1d1d);
  border-radius: 6px;
  border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7f1d1d, var(--primary-red));
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Form Styles */
.form-control {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 0.2rem rgba(153, 27, 27, 0.25);
}

/* Card Hover Effects */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Text Colors */
.text-danger {
  color: var(--primary-red) !important;
}

/* Background Colors */
.bg-danger {
  background-color: var(--primary-red) !important;
}

/* Progress Bar Animation */
.progress-animated {
  position: relative;
  overflow: hidden;
}

.progress-animated::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
  background-size: 50px 50px;
  animation: move 2s linear infinite;
}

@keyframes move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Button Animations */
.pulse-btn {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(180, 4, 4, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(180, 4, 4, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(180, 4, 4, 0);
  }
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-hover-effect {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-hover-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-hover-effect:hover::before {
  left: 100%;
}

/* Badge Pulse Animation */
.pulse {
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Typing Effect */
.typing-text {
  border-right: 2px solid var(--primary-red);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    border-color: var(--primary-red);
  }
  51%,
  100% {
    border-color: transparent;
  }
}

/* Loading States */
.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(153, 27, 27, 0.25);
  border-color: var(--primary-red);
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .floating-elements,
  .floating-card {
    display: none !important;
  }

  .hero-section {
    background: white !important;
    color: black !important;
  }

  .text-white {
    color: black !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .btn-outline-danger {
    border-width: 3px;
  }

  .card {
    border: 2px solid #000;
  }

  .accordion-button {
    border: 2px solid #000;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .floating-element,
  .floating-card,
  .pulse-btn {
    animation: none !important;
  }
}
