/* Architectural Studio - Citadel Red & Iron Black Theme */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #D32F2F;
  --secondary-color: #212121;
  --light-color: #ffffff;
  --dark-color: #0a0a0a;
  --gray-color: #757575;
  --transition-speed: 0.3s;
  --border-radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  overflow-x: hidden;
}

/* ===== NAVBAR STYLES ===== */
.navbar {
  background-color: rgba(33, 33, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-speed) ease;
  padding: 1rem 0;
}

.navbar.scrolled {
  background-color: rgba(33, 33, 33, 1) !important;
  padding: 0.5rem 0;
}

.navbar-brand {
  color: var(--light-color) !important;
  font-size: 1.8rem;
  font-weight: 700 !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all var(--transition-speed) ease;
}

.navbar-brand:hover {
  color: var(--primary-color) !important;
  transform: scale(1.05);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.2rem;
  transition: all var(--transition-speed) ease;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}

.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: all var(--transition-speed) ease;
  transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
  width: 80%;
}

.navbar-toggler {
  border: 2px solid var(--primary-color) !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.3) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(211, 47, 47, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  background-color: var(--secondary-color);
  position: relative;
  overflow: hidden;
}

.hero-video-wrapper,
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(33, 33, 33, 0.85) 0%, rgba(211, 47, 47, 0.7) 100%);
  z-index: 2;
}

.hero-content {
  z-index: 3;
  padding: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem) !important;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 1s ease;
  color: var(--light-color) !important;
}

.hero-tagline {
  font-size: clamp(1.1rem, 3vw, 1.5rem) !important;
  font-weight: 300;
  letter-spacing: 1px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  animation: fadeInUp 1.2s ease;
  color: rgba(255, 255, 255, 0.95) !important;
}

.hero-cta-buttons {
  animation: fadeInUp 1.4s ease;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--light-color) !important;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.scroll-indicator:hover {
  color: var(--primary-color) !important;
  transform: translateX(-50%) translateY(5px);
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* ===== BUTTONS ===== */
.btn {
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
}

.btn-danger {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--light-color) !important;
}

.btn-danger:hover,
.btn-danger:focus {
  background-color: #B71C1C !important;
  border-color: #B71C1C !important;
  color: var(--light-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.4) !important;
}

.btn-outline-danger {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
  background-color: transparent !important;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--light-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.4) !important;
}

.btn-outline-light {
  border-color: var(--light-color) !important;
  color: var(--light-color) !important;
  background-color: transparent !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background-color: var(--light-color) !important;
  border-color: var(--light-color) !important;
  color: var(--secondary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3) !important;
}

.btn-light {
  background-color: var(--light-color) !important;
  border-color: var(--light-color) !important;
  color: var(--secondary-color) !important;
}

.btn-light:hover,
.btn-light:focus {
  background-color: #f0f0f0 !important;
  border-color: #f0f0f0 !important;
  color: var(--secondary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

.btn-outline-dark {
  border-color: var(--secondary-color) !important;
  color: var(--secondary-color) !important;
  background-color: transparent !important;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--light-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(33, 33, 33, 0.4) !important;
}

.btn-outline-secondary {
  border-color: var(--gray-color) !important;
  color: var(--gray-color) !important;
  background-color: transparent !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background-color: var(--gray-color) !important;
  border-color: var(--gray-color) !important;
  color: var(--light-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(117, 117, 117, 0.4) !important;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
}

/* ===== SECTIONS ===== */
.py-5 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

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

.bg-light {
  background-color: #f8f9fa !important;
}

.bg-danger {
  background-color: var(--primary-color) !important;
}

.bg-secondary {
  background-color: #424242 !important;
}

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

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

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

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

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

.text-light {
  color: rgba(255, 255, 255, 0.9) !important;
}

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

.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(211, 47, 47, 0.3);
  border-color: var(--primary-color);
}

.service-icon {
  color: var(--primary-color) !important;
  transition: all var(--transition-speed) ease;
  display: inline-block;
}

.service-card:hover .service-icon {
  transform: scale(1.2) rotate(10deg);
}

/* ===== CARDS ===== */
.card {
  border: none !important;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  background-color: var(--light-color);
}

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

.card-body {
  padding: 1.5rem;
}

.card-title {
  color: var(--secondary-color) !important;
  font-weight: 700;
}

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

.card-header {
  background-color: var(--primary-color) !important;
  color: var(--light-color) !important;
  font-weight: 600;
  border-bottom: none !important;
}

.card-img-top {
  transition: all var(--transition-speed) ease;
}

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

/* ===== TEAM CARDS ===== */
.team-card-container {
  perspective: 1000px;
  height: 400px;
}

.team-card {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.team-card-container:hover .team-card {
  transform: rotateY(180deg);
}

.team-card-front,
.team-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-card-front {
  background-color: var(--light-color);
}

.team-card-back {
  background-color: var(--primary-color);
  color: var(--light-color) !important;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

/* ===== CLASS CARDS ===== */
.class-card {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.class-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(211, 47, 47, 0.3);
}

.book-class-btn {
  background-color: var(--primary-color) !important;
  border: none !important;
  color: var(--light-color) !important;
  width: 100%;
  padding: 0.75rem;
  font-weight: 600;
  transition: all var(--transition-speed) ease;
}

.book-class-btn:hover {
  background-color: #B71C1C !important;
  transform: scale(1.02);
}

/* ===== FILTER BUTTONS ===== */
.filter-btn {
  background-color: transparent;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.5rem 1.5rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
  font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color) !important;
  color: var(--light-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

/* ===== BADGES ===== */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 50px;
}

.bg-danger .badge {
  background-color: rgba(0, 0, 0, 0.3) !important;
  color: var(--light-color) !important;
}

/* ===== PROGRESS BARS ===== */
.progress {
  height: 30px;
  border-radius: var(--border-radius);
  background-color: rgba(0, 0, 0, 0.1);
}

.progress-bar {
  background-color: var(--primary-color) !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 1s ease;
}

/* ===== FORMS ===== */
.form-label {
  font-weight: 600 !important;
  color: var(--secondary-color) !important;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  transition: all var(--transition-speed) ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25) !important;
}

.form-control.is-valid,
.form-select.is-valid {
  border-color: #28a745 !important;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--primary-color) !important;
}

.invalid-feedback {
  color: var(--primary-color) !important;
  font-weight: 500;
}

.valid-feedback {
  color: #28a745 !important;
  font-weight: 500;
}

/* ===== ALERTS ===== */
.alert {
  border-radius: var(--border-radius);
  border: none;
  padding: 1rem 1.5rem;
  font-weight: 500;
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.1) !important;
  color: #155724 !important;
  border-left: 4px solid #28a745;
}

.alert-danger {
  background-color: rgba(211, 47, 47, 0.1) !important;
  color: #721c24 !important;
  border-left: 4px solid var(--primary-color);
}

.alert-info {
  background-color: rgba(23, 162, 184, 0.1) !important;
  color: #0c5460 !important;
  border-left: 4px solid #17a2b8;
}

/* ===== ACCORDION ===== */
.accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  margin-bottom: 1rem;
  border-radius: var(--border-radius) !important;
  overflow: hidden;
}

.accordion-button {
  background-color: var(--light-color) !important;
  color: var(--secondary-color) !important;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  transition: all var(--transition-speed) ease;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color) !important;
  color: var(--light-color) !important;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25) !important;
}

.accordion-button::after {
  filter: brightness(0) invert(0);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  padding: 1.5rem;
  background-color: #f8f9fa;
}

/* ===== CAROUSEL ===== */
.carousel-item {
  transition: transform 0.6s ease-in-out;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-color);
  border-radius: 50%;
  padding: 1.5rem;
}

.carousel-control-prev,
.carousel-control-next {
  opacity: 0.8;
  transition: all var(--transition-speed) ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

/* ===== TABLE ===== */
.table {
  margin-bottom: 0;
}

.table-responsive {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.table thead th {
  background-color: var(--primary-color) !important;
  color: var(--light-color) !important;
  font-weight: 600;
  border: none !important;
  padding: 1rem;
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-borderless tbody td {
  border: none !important;
}

/* ===== MAP CONTAINER ===== */
.map-container {
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ratio {
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* ===== SHADOWS ===== */
.shadow {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

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

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

/* ===== IMAGES ===== */
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

.rounded {
  border-radius: var(--border-radius) !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

.object-fit-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* ===== TYPOGRAPHY ===== */
.display-1 {
  font-weight: 800;
  letter-spacing: 2px;
}

.display-3 {
  font-weight: 700;
  letter-spacing: 1px;
}

.display-4 {
  font-weight: 700;
}

.display-5 {
  font-weight: 600;
}

.lead {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.8;
}

.h1, .h4, .h5, h1, h4, h5 {
  color: var(--secondary-color);
  font-weight: 700;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fw-bold {
  font-weight: 700 !important;
}

.fw-semibold {
  font-weight: 600 !important;
}

.text-decoration-none {
  text-decoration: none !important;
}

.text-decoration-none:hover {
  text-decoration: underline !important;
}

/* ===== LISTS ===== */
.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.list-unstyled li {
  padding: 0.5rem 0;
}

.list-unstyled a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

.list-unstyled a:hover {
  color: var(--primary-color) !important;
  padding-left: 5px;
}

/* ===== ICONS ===== */
.bi, .fas, .fab, .fa {
  display: inline-block;
  vertical-align: middle;
}

/* ===== UTILITY CLASSES ===== */
.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.position-fixed {
  position: fixed !important;
}

.position-sticky {
  position: sticky !important;
  top: 80px;
}

.top-0 {
  top: 0 !important;
}

.bottom-0 {
  bottom: 0 !important;
}

.start-50 {
  left: 50% !important;
}

.end-0 {
  right: 0 !important;
}

.translate-middle {
  transform: translate(-50%, -50%) !important;
}

.translate-middle-x {
  transform: translateX(-50%) !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.d-flex {
  display: flex !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

.flex-fill {
  flex: 1 1 auto !important;
}

.align-items-center {
  align-items: center !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.align-items-end {
  align-items: flex-end !important;
}

.align-items-stretch {
  align-items: stretch !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

.g-0 {
  gap: 0 !important;
}

.g-3 > * {
  padding: 0.75rem;
}

.g-4 > * {
  padding: 1rem;
}

.g-5 > * {
  padding: 1.5rem;
}

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.my-4 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.mt-auto {
  margin-top: auto !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.mb-lg-0 {
  margin-bottom: 0 !important;
}

.mb-md-0 {
  margin-bottom: 0 !important;
}

.ms-auto {
  margin-left: auto !important;
}

.ms-2 {
  margin-left: 0.5rem !important;
}

.ms-3 {
  margin-left: 1rem !important;
}

.ms-4 {
  margin-left: 1.5rem !important;
}

.me-1 {
  margin-right: 0.25rem !important;
}

.me-2 {
  margin-right: 0.5rem !important;
}

.me-3 {
  margin-right: 1rem !important;
}

.me-4 {
  margin-right: 1.5rem !important;
}

.p-0 {
  padding: 0 !important;
}

.p-2 {
  padding: 0.5rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.p-5 {
  padding: 3rem !important;
}

.px-3 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.px-4 {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.px-5 {
  padding-left: 3rem !important;
  padding-right: 3rem !important;
}

.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

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

.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.py-4 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

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

.pt-5 {
  padding-top: 3rem !important;
}

.pb-3 {
  padding-bottom: 1rem !important;
}

.pb-4 {
  padding-bottom: 1.5rem !important;
}

.ps-4 {
  padding-left: 1.5rem !important;
}

.pe-lg-4 {
  padding-right: 1.5rem !important;
}

.pe-lg-5 {
  padding-right: 3rem !important;
}

.m-3 {
  margin: 1rem !important;
}

.text-center {
  text-align: center !important;
}

.text-end {
  text-align: right !important;
}

.text-md-start {
  text-align: start !important;
}

.text-md-end {
  text-align: end !important;
}

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-inline-block {
  display: inline-block !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.border-0 {
  border: 0 !important;
}

.border-start {
  border-left: 3px solid var(--primary-color) !important;
}

.opacity-75 {
  opacity: 0.75 !important;
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #B71C1C;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(33, 33, 33, 0.98);
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .navbar-dark .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    border-radius: var(--border-radius);
  }
  
  .navbar-dark .navbar-nav .nav-link:hover,
  .navbar-dark .navbar-nav .nav-link.active {
    background-color: rgba(211, 47, 47, 0.2);
  }
  
  .hero-title {
    font-size: 2.5rem !important;
  }
  
  .hero-tagline {
    font-size: 1.1rem !important;
  }
  
  .display-1 {
    font-size: 3rem;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  
  .btn-lg {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .map-container {
    height: 300px;
  }
  
  .position-sticky {
    position: relative !important;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: 2rem !important;
  }
  
  .hero-tagline {
    font-size: 1rem !important;
  }
  
  .hero-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta-buttons .btn {
    width: 100%;
  }
  
  .display-1 {
    font-size: 2.5rem;
  }
  
  .display-3 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 1.75rem;
  }
  
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .team-card-container {
    height: 350px;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  .hero-title {
    font-size: 1.75rem !important;
  }
  
  .hero-tagline {
    font-size: 0.95rem !important;
  }
  
  .btn-lg {
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
  }
  
  .service-card {
    padding: 1.25rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .btn,
  .hero-section,
  .scroll-indicator,
  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }
  
  body {
    background-color: white;
    color: black;
  }
  
  .card,
  .service-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ===== ACCESSIBILITY ===== */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.skip-to-content {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
}

.skip-to-content:focus {
  left: 50%;
  transform: translateX(-50%);
  top: 1rem;
}

/* ===== LOADING ANIMATIONS ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== CUSTOM UTILITIES ===== */
.hover-lift {
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, #B71C1C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #B71C1C 100%) !important;
}

.bg-gradient-dark {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-color) 100%) !important;
}

/* ===== FIXED TOP NAVBAR PADDING ===== */
body {
  padding-top: 80px;
}

.fixed-top {
  z-index: 1030;
}

/* ===== END OF CSS ===== */