/* Midnight Amber Architecture Studio - Custom Styles */

/* ===== CSS VARIABLES ===== */
:root {
  --primary-color: #1A237E;
  --primary-dark: #0D1642;
  --primary-light: #3949AB;
  --secondary-color: #FFC107;
  --secondary-dark: #FFA000;
  --secondary-light: #FFD54F;
  --text-dark: #212529;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-dark: #1A237E;
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  background-color: #ffffff;
}

html {
  scroll-behavior: smooth;
}

/* ===== NAVIGATION ===== */
.navbar {
  background: linear-gradient(180deg, rgba(26, 35, 126, 0.95) 0%, rgba(26, 35, 126, 0.85) 100%) !important;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  z-index: 1030;
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  background: rgba(26, 35, 126, 0.98) !important;
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
}

.navbar-brand {
  color: var(--text-light) !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  transition: var(--transition);
  text-transform: uppercase;
}

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

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1.25rem !important;
  margin: 0 0.25rem;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  background-color: rgba(255, 193, 7, 0.1) !important;
  transform: translateY(-2px);
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25) !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='%23FFC107' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ===== BUTTONS ===== */
.btn {
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-lg {
  padding: 1rem 2.5rem !important;
  font-size: 1rem !important;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(26, 35, 126, 0.3) !important;
}

.btn-warning {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--text-dark) !important;
  font-weight: 700 !important;
}

.btn-warning:hover,
.btn-warning:focus {
  background-color: var(--secondary-dark) !important;
  border-color: var(--secondary-dark) !important;
  color: var(--text-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4) !important;
}

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

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

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

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
}

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

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--text-dark) !important;
  transform: translateY(-3px);
}

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

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

.btn-sm {
  padding: 0.5rem 1rem !important;
  font-size: 0.85rem !important;
}

/* ===== HERO SECTION ===== */
.position-relative.overflow-hidden {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
  position: relative;
}

.position-relative.overflow-hidden::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"/%3E%3Cg%3E%3Cline x1="0" y1="0" x2="100" y2="100" stroke="%23FFC107" stroke-width="0.5" opacity="0.1"/%3E%3Cline x1="100" y1="0" x2="0" y2="100" stroke="%23FFC107" stroke-width="0.5" opacity="0.1"/%3E%3C/g%3E%3C/svg%3E');
  opacity: 0.1;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.position-relative.overflow-hidden .container {
  position: relative;
  z-index: 2;
}

.display-3,
.display-4,
.display-5 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

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

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

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

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

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

/* ===== CARDS ===== */
.card {
  border: none !important;
  border-radius: 12px;
  transition: var(--transition);
  overflow: hidden;
  background-color: #ffffff;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--primary-color) !important;
  font-weight: 700;
  margin-bottom: 1rem;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow {
  box-shadow: var(--shadow) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

.hover-shadow {
  transition: var(--transition);
}

.hover-shadow:hover {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2) !important;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  position: relative;
  height: 350px;
  perspective: 1000px;
  cursor: pointer;
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transition: transform 0.6s ease;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.service-card-front {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid rgba(26, 35, 126, 0.1);
}

.service-card-back {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--text-light) !important;
  transform: rotateY(180deg);
}

.service-card:hover .service-card-front {
  transform: rotateY(180deg);
}

.service-card:hover .service-card-back {
  transform: rotateY(0);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--text-light) !important;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.service-card-back .service-icon {
  background: rgba(255, 255, 255, 0.2);
}

.service-preview {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ===== TEAM CARDS ===== */
.team-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  border: 2px solid rgba(26, 35, 126, 0.1);
}

.team-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary-color);
  box-shadow: 0 15px 40px rgba(255, 193, 7, 0.2) !important;
}

.team-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--text-light) !important;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--secondary-color);
}

/* ===== ABOUT HERO ===== */
.about-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

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

/* ===== SPLIT SCREEN ===== */
.split-screen-container {
  min-height: 100vh;
}

.sticky-lg-top {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== TIMELINE ===== */
.timeline-section {
  position: relative;
  padding: 4rem 0;
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 3rem;
  border-left: 3px solid var(--secondary-color);
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-left: 3px solid transparent;
}

.milestone-marker {
  position: absolute;
  left: -12px;
  top: 0;
  width: 24px;
  height: 24px;
  background-color: var(--secondary-color);
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.2);
}

.milestone-year {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* ===== CERTIFICATIONS ===== */
.certifications-section {
  background-color: var(--bg-light);
  padding: 4rem 0;
}

.cert-badge {
  background: #ffffff;
  border: 2px solid var(--secondary-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.cert-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 193, 7, 0.2) !important;
  background-color: var(--secondary-color);
  color: var(--text-dark) !important;
}

.cert-badge .bi {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.cert-badge:hover .bi {
  color: var(--primary-dark);
  animation: pulse 1s ease infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ===== PHILOSOPHY SECTION ===== */
.philosophy-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--text-light) !important;
  padding: 5rem 0;
  position: relative;
}

.philosophy-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,%3Csvg width="60" height="60" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h60v60H0z" fill="none"/%3E%3Cpath d="M30 0v60M0 30h60" stroke="%23FFC107" stroke-width="0.5" opacity="0.1"/%3E%3C/svg%3E');
  opacity: 0.1;
}

.philosophy-section * {
  position: relative;
  z-index: 2;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: bgScroll 30s linear infinite;
}

@keyframes bgScroll {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.cta-section * {
  position: relative;
  z-index: 2;
}

.cta-section h2,
.cta-section p {
  color: var(--text-dark) !important;
  font-weight: 700;
}

/* ===== FORMS ===== */
.form-control,
.form-select {
  border: 2px solid rgba(26, 35, 126, 0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  background-color: #ffffff;
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(26, 35, 126, 0.15) !important;
  background-color: #ffffff !important;
  color: var(--text-dark) !important;
}

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

.form-check-input {
  border: 2px solid rgba(26, 35, 126, 0.3);
  width: 1.25rem;
  height: 1.25rem;
}

.form-check-input:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(26, 35, 126, 0.15) !important;
}

.form-check-label {
  color: var(--text-dark) !important;
  margin-left: 0.5rem;
}

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

.alert-info {
  background-color: rgba(26, 35, 126, 0.1) !important;
  color: var(--primary-color) !important;
  border-left: 4px solid var(--primary-color);
}

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

.bg-success {
  background-color: #28a745 !important;
  color: var(--text-light) !important;
}

.bg-danger {
  background-color: #dc3545 !important;
  color: var(--text-light) !important;
}

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

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

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

.accordion-header {
  margin-bottom: 0;
}

.accordion-button {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  border: none;
}

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

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(26, 35, 126, 0.15) !important;
  border: none;
}

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

.accordion-button.collapsed::after {
  filter: none;
}

.accordion-body {
  padding: 1.5rem;
  background-color: #ffffff;
  color: var(--text-dark) !important;
}

/* ===== CAROUSEL ===== */
.carousel {
  border-radius: 12px;
  overflow: hidden;
}

.carousel-item {
  height: 500px;
  background-color: var(--bg-light);
}

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

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.8;
}

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

.carousel-indicators button {
  background-color: var(--secondary-color) !important;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

/* ===== IMAGES ===== */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.rounded {
  border-radius: 8px !important;
}

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

.object-fit-cover {
  object-fit: cover;
}

.card-img-top {
  border-radius: 12px 12px 0 0;
  height: 200px;
  object-fit: cover;
}

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

.bi-star-fill,
.bi-award-fill,
.bi-shield-check,
.bi-tools,
.bi-gear-fill,
.bi-person-badge,
.bi-cpu,
.bi-speedometer2,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-clock-fill,
.bi-exclamation-triangle-fill,
.bi-map,
.bi-send-fill,
.bi-calendar-check-fill,
.bi-calendar-plus,
.bi-info-circle,
.bi-info-circle-fill,
.bi-check-circle-fill,
.bi-disc-fill,
.bi-droplet-fill,
.bi-lightning-charge-fill,
.bi-person-check,
.bi-award,
.bi-car-front-fill,
.bi-calendar-check,
.bi-person-fill,
.bi-clipboard-check,
.bi-check-circle,
.bi-facebook,
.bi-instagram,
.bi-google,
.bi-wrench-adjustable {
  font-size: 1.2rem;
}

/* ===== UTILITIES ===== */
.text-uppercase {
  text-transform: uppercase !important;
  letter-spacing: 1px;
}

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

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

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

.opacity-25 {
  opacity: 0.25 !important;
}

.border {
  border: 1px solid rgba(26, 35, 126, 0.15) !important;
}

.border-bottom {
  border-bottom: 1px solid rgba(26, 35, 126, 0.15) !important;
}

.border-light {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.border-opacity-25 {
  --bs-border-opacity: 0.25;
}

.text-decoration-none {
  text-decoration: none !important;
  color: inherit;
  transition: var(--transition);
}

.text-decoration-none:hover {
  color: var(--secondary-color) !important;
}

.list-unstyled {
  list-style: none;
  padding-left: 0;
}

.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ratio-21x9 {
  --bs-aspect-ratio: 42.857143%;
}

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

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

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

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

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

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

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

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

.p-0 {
  padding: 0 !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;
}

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

.ps-lg-5 {
  padding-left: 3rem !important;
}

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

.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !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;
}

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

.mt-2 {
  margin-top: 0.5rem !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ===== GAPS ===== */
.gap-2 {
  gap: 0.5rem !important;
}

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

.g-0 {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

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

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

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

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

.animate-fade-in {
  animation: fadeIn 1s ease-in-out;
}

.animate-fade-in-up {
  animation: fadeInUp 1s ease-in-out;
}

.animate-slide-in-left {
  animation: slideInLeft 1s ease-in-out;
}

.animate-slide-in-right {
  animation: slideInRight 1s ease-in-out;
}

/* ===== SCROLL ANIMATIONS ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1199.98px) {
  .sticky-lg-top {
    position: relative;
    height: auto;
  }
  
  .d-lg-block {
    display: block !important;
  }
  
  .d-lg-none {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(26, 35, 126, 0.98);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
  
  .position-relative.overflow-hidden {
    min-height: 80vh;
  }
  
  .ps-lg-5 {
    padding-left: 1rem !important;
  }
  
  .text-lg-start {
    text-align: center !important;
  }
  
  .text-lg-end {
    text-align: center !important;
  }
  
  .justify-content-lg-start {
    justify-content: center !important;
  }
}

@media (max-width: 767.98px) {
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 0.95rem !important;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .timeline-item {
    padding-left: 2rem;
  }
  
  .service-card {
    height: 300px;
  }
  
  .carousel-item {
    height: 300px;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .text-md-start {
    text-align: center !important;
  }
  
  .text-md-end {
    text-align: center !important;
  }
}

@media (max-width: 575.98px) {
  .display-3 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 1.75rem;
  }
  
  .display-5 {
    font-size: 1.5rem;
  }
  
  .fs-4 {
    font-size: 1.25rem !important;
  }
  
  .fs-5 {
    font-size: 1rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .service-card {
    height: 280px;
  }
  
  .team-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

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

/* ===== ACCESSIBILITY ===== */
.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;
}

:focus-visible {
  outline: 3px solid var(--secondary-color) !important;
  outline-offset: 2px !important;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== LOADING SPINNER ===== */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(26, 35, 126, 0.1);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== SELECTION ===== */
::selection {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

::-moz-selection {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}