/* Architecture Studio - Corporate Trust Blue & Confident Amber Theme */

:root {
  --primary-color: #1565C0;
  --secondary-color: #FF6F00;
  --primary-dark: #0D47A1;
  --primary-light: #42A5F5;
  --secondary-dark: #E65100;
  --secondary-light: #FFB74D;
  --text-dark: #212529;
  --text-light: #6C757D;
  --white: #FFFFFF;
  --light-bg: #F8F9FA;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-light);
}

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(21, 101, 192, 0.2);
  transition: all var(--transition-speed) ease;
  z-index: 1030;
}

.navbar-dark .navbar-brand {
  color: var(--white) !important;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  transition: all var(--transition-speed) ease;
}

.navbar-dark .navbar-brand:hover {
  color: var(--secondary-light) !important;
  transform: translateY(-2px);
}

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

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

.navbar-dark .navbar-nav .nav-link.active {
  color: var(--white) !important;
  background-color: var(--secondary-color) !important;
  box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
}

.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  padding: 0.5rem 0.75rem;
}

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

/* Hero Split Section */
.hero-split {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
  overflow: hidden;
}

.hero-split .row {
  min-height: 100vh;
}

.hero-split .col-lg-6 {
  padding: 4rem 3rem;
}

.hero-split .col-lg-6:first-child {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  z-index: 2;
}

.hero-split .col-lg-6:last-child {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
  z-index: 1;
}

/* Fortress Animation */
.fortress-animation {
  width: 100%;
  height: 100%;
  position: relative;
}

.morph-shape-1, .morph-shape-2, .morph-shape-3 {
  position: absolute;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: morph 8s ease-in-out infinite;
  opacity: 0.3;
}

.morph-shape-1 {
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.15);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.morph-shape-2 {
  width: 300px;
  height: 300px;
  background: rgba(255, 111, 0, 0.2);
  top: 40%;
  right: 10%;
  animation-delay: 2s;
}

.morph-shape-3 {
  width: 350px;
  height: 350px;
  background: rgba(255, 255, 255, 0.1);
  bottom: 10%;
  left: 30%;
  animation-delay: 4s;
}

@keyframes morph {
  0%, 100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transform: rotate(0deg) scale(1);
  }
  25% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: rotate(90deg) scale(1.1);
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: rotate(180deg) scale(0.9);
  }
  75% {
    border-radius: 70% 30% 50% 60% / 30% 70% 50% 60%;
    transform: rotate(270deg) scale(1.05);
  }
}

.pulse-circle {
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.2;
  }
}

/* Testimonial Rotator */
.testimonial-rotator {
  position: relative;
  z-index: 10;
}

.testimonial-content .display-4 {
  color: var(--white) !important;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-left: 5px solid var(--secondary-color) !important;
  transition: all var(--transition-speed) ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.testimonial-card .fw-semibold {
  color: var(--primary-color) !important;
}

/* Buttons */
.btn {
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: 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-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
  color: var(--white) !important;
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%) !important;
  color: var(--white) !important;
  box-shadow: 0 6px 20px rgba(255, 111, 0, 0.4);
  transform: translateY(-2px);
}

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

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

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

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

.btn-light {
  background: var(--white) !important;
  color: var(--primary-color) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
  background: var(--light-bg) !important;
  color: var(--primary-dark) !important;
  transform: translateY(-2px);
}

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

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

/* Services Grid */
.services-grid {
  background: var(--white);
  position: relative;
}

.services-grid .display-5 {
  color: var(--primary-color) !important;
  font-weight: 700;
}

.staggered-cards {
  perspective: 1000px;
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  border: none;
  height: 100%;
  min-height: 320px;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(21, 101, 192, 0.15);
}

.card-overlay {
  padding: 2rem;
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-content {
  flex-grow: 1;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition-speed) ease;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
  transform: rotateY(360deg);
}

.service-icon .bi {
  font-size: 2rem;
  color: var(--white) !important;
}

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

.service-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Stats Counter */
.stats-counter {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
  position: relative;
  overflow: hidden;
}

.diagonal-bg::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%3Cpath d="M0 0L100 100M100 0L0 100" stroke="rgba(255,255,255,0.05)" stroke-width="2"/%3E%3C/svg%3E');
  opacity: 0.3;
}

.stat-item {
  padding: 2rem 1rem;
  position: relative;
  z-index: 2;
}

.stat-item .display-3 {
  color: var(--white) !important;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-item .counter {
  color: var(--white) !important;
}

.stat-item .h5 {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* Case Studies */
.case-studies {
  background: var(--light-bg);
  padding: 5rem 0;
  overflow: hidden;
}

.horizontal-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--light-bg);
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-track {
  background: var(--light-bg);
}

.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.case-study-carousel {
  display: inline-flex;
  padding: 1rem 0;
}

.case-study-card {
  width: 400px;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  display: inline-block;
  white-space: normal;
  vertical-align: top;
}

.case-study-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(21, 101, 192, 0.15);
}

.case-study-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-study-card:hover img {
  transform: scale(1.1);
}

.case-study-card .badge {
  background: var(--secondary-color) !important;
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 20px;
}

.case-study-card .h4 {
  color: var(--primary-color) !important;
  font-weight: 700;
}

/* 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%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

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

.cta-section .display-4 {
  color: var(--white) !important;
  font-weight: 700;
}

.cta-section .lead {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0a2342 100%);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
  position: relative;
}

footer .h5 {
  color: var(--white) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

footer .list-unstyled li {
  margin-bottom: 0.75rem;
}

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

footer .list-unstyled li a:hover {
  color: var(--secondary-light) !important;
  transform: translateX(5px);
}

footer .bi {
  color: var(--secondary-color) !important;
}

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

/* Parallax Banner */
.parallax-banner {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--white);
}

.parallax-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(21, 101, 192, 0.8) 0%, rgba(255, 111, 0, 0.8) 100%);
}

.parallax-banner .container {
  position: relative;
  z-index: 2;
}

/* Timeline */
.timeline-container {
  position: relative;
  padding: 3rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: var(--secondary-color);
  border: 4px solid var(--white);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(255, 111, 0, 0.2);
  z-index: 2;
}

.timeline-item .card {
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 12px;
  transition: all var(--transition-speed) ease;
}

.timeline-item .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

/* Leadership Cards */
.leadership-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  text-align: center;
  border: none;
  height: 100%;
}

.leadership-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(21, 101, 192, 0.15);
}

.avatar-wrapper {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  position: relative;
  overflow: hidden;
  border: 5px solid var(--primary-color);
  box-shadow: 0 10px 30px rgba(21, 101, 192, 0.2);
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.leadership-card:hover .avatar-wrapper img {
  transform: scale(1.1);
}

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

.bio-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--light-bg);
}

/* Hexagon Cards */
.hexagon-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  text-align: center;
  border: none;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.hexagon-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  opacity: 0.1;
  border-radius: 50%;
  transition: all 0.6s ease;
}

.hexagon-card:hover::before {
  top: -20%;
  right: -20%;
  transform: scale(1.5);
}

.hexagon-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(21, 101, 192, 0.15);
  border-top: 4px solid var(--secondary-color);
}

.hexagon-card .bi {
  font-size: 3rem;
  color: var(--primary-color) !important;
  margin-bottom: 1rem;
  transition: all var(--transition-speed) ease;
}

.hexagon-card:hover .bi {
  color: var(--secondary-color) !important;
  transform: scale(1.2) rotateY(360deg);
}

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

/* Partner Scroll */
.partner-scroll-wrapper {
  overflow: hidden;
  background: var(--white);
  padding: 3rem 0;
  position: relative;
}

.partner-scroll {
  display: flex;
  animation: scroll 30s linear infinite;
  width: fit-content;
}

.partner-scroll:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partner-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  opacity: 0.6;
  transition: all var(--transition-speed) ease;
}

.partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.partner-logo img {
  max-height: 60px;
  width: auto;
  filter: grayscale(100%);
  transition: filter var(--transition-speed) ease;
}

.partner-logo:hover img {
  filter: grayscale(0%);
}

/* Forms */
.form-floating > .form-control {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
  background: var(--white) !important;
  color: var(--text-dark) !important;
}

.form-floating > .form-control:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(21, 101, 192, 0.15) !important;
  background: var(--white) !important;
  color: var(--text-dark) !important;
}

.form-floating > label {
  color: var(--text-light) !important;
}

.form-floating > .form-control:focus ~ label {
  color: var(--primary-color) !important;
}

.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
  background: var(--white) !important;
  color: var(--text-dark) !important;
}

.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(21, 101, 192, 0.15) !important;
  background: var(--white) !important;
  color: var(--text-dark) !important;
}

.form-check-input {
  border: 2px solid #e0e0e0;
  transition: all var(--transition-speed) ease;
}

.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.2rem rgba(21, 101, 192, 0.15) !important;
}

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

.invalid-feedback {
  color: #dc3545 !important;
  font-weight: 500;
}

/* Alert */
.alert {
  border-radius: 8px;
  border: none;
  padding: 1rem 1.5rem;
}

.alert-success {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%) !important;
  color: var(--white) !important;
}

/* Card Styles */
.card {
  border-radius: 12px;
  border: none;
  transition: all var(--transition-speed) ease;
}

.card-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  color: var(--white) !important;
  border: none;
  font-weight: 700;
  padding: 1.25rem 1.5rem;
  border-radius: 12px 12px 0 0 !important;
}

.card-body {
  padding: 2rem;
}

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

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

.card-text {
  color: var(--text-light);
}

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

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

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  color: var(--white) !important;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(21, 101, 192, 0.15) !important;
}

.accordion-button::after {
  filter: brightness(0) saturate(100%) invert(32%) sepia(76%) saturate(1674%) hue-rotate(195deg) brightness(91%) contrast(95%);
}

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

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

/* Carousel */
.carousel-item img {
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(21, 101, 192, 0.8);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all var(--transition-speed) ease;
}

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

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--secondary-color);
}

/* Badges */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
}

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

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

/* Process Stage */
.process-stage {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  position: relative;
  transition: all 0.4s ease;
}

.process-stage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 12px 12px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.process-stage:hover::before {
  transform: scaleX(1);
}

.process-stage:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(21, 101, 192, 0.15);
}

.process-stage .bi {
  font-size: 3rem;
  color: var(--primary-color) !important;
  margin-bottom: 1rem;
}

/* Tab Styles */
.nav-pills .nav-link {
  color: var(--text-dark) !important;
  background: transparent;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
}

.nav-pills .nav-link:hover {
  background: var(--light-bg);
  border-color: var(--primary-light);
}

.nav-pills .nav-link.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
}

.tab-content {
  padding: 2rem 0;
}

.tab-pane {
  animation: fadeIn 0.5s ease;
}

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

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

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

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

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

.shadow {
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08) !important;
}

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

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

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

/* Sticky Elements */
.sticky-lg-top {
  position: sticky;
  top: 100px;
  z-index: 1020;
}

/* Link Styles */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

a:hover {
  color: var(--secondary-color);
}

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

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

/* Icon Styles */
.bi {
  vertical-align: middle;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .hero-split .col-lg-6 {
    min-height: 60vh;
    padding: 3rem 2rem;
  }

  .navbar-collapse {
    background: rgba(13, 71, 161, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }

  .timeline-line {
    left: 30px;
  }

  .timeline-dot {
    left: 30px;
  }

  .timeline-item .col-5,
  .timeline-item .col-2 {
    display: none;
  }

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

  .morph-shape-1,
  .morph-shape-2,
  .morph-shape-3 {
    width: 200px;
    height: 200px;
  }

  .case-study-card {
    width: 320px;
  }

  .service-card {
    min-height: auto;
  }

  .btn-lg {
    padding: 0.875rem 2rem;
  }
}

@media (max-width: 767.98px) {
  .display-1 {
    font-size: 3rem;
  }

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

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

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

  .hero-split .col-lg-6 {
    min-height: 50vh;
    padding: 2rem 1.5rem;
  }

  .stats-counter .col-6 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }

  .stats-counter .col-6:nth-last-child(-n+2) {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .case-study-card {
    width: 280px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }

  .service-icon .bi {
    font-size: 1.5rem;
  }

  .avatar-wrapper {
    width: 120px;
    height: 120px;
  }

  .parallax-banner {
    background-attachment: scroll;
    min-height: 300px;
  }

  .btn {
    padding: 0.625rem 1.5rem;
  }

  .btn-lg {
    padding: 0.75rem 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .display-4 {
    font-size: 1.75rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  .hero-split .col-lg-6 {
    min-height: 40vh;
    padding: 2rem 1rem;
  }

  .morph-shape-1,
  .morph-shape-2,
  .morph-shape-3 {
    width: 150px;
    height: 150px;
  }

  .case-study-card {
    width: 260px;
  }

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

  .hexagon-card .bi {
    font-size: 2rem;
  }

  .stat-item {
    padding: 1rem 0.5rem;
  }

  .process-stage {
    padding: 1.5rem;
  }

  footer {
    text-align: center;
  }

  footer .col-md-4 {
    margin-bottom: 2rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .cta-section,
  footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .card,
  .service-card,
  .case-study-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* 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 Styles */
*:focus {
  outline: 3px solid rgba(21, 101, 192, 0.5) !important;
  outline-offset: 2px;
}

button:focus,
.btn:focus,
a:focus {
  outline: 3px solid rgba(255, 111, 0, 0.5) !important;
}

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

.spinner {
  border: 4px solid rgba(21, 101, 192, 0.1);
  border-left-color: var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

/* Scroll to Top */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(21, 101, 192, 0.4);
  z-index: 1000;
  transition: all var(--transition-speed) ease;
}

.scroll-to-top:hover {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
  transform: translateY(-5px);
}

.scroll-to-top.show {
  display: flex;
}

/* Smooth Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-spinner {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}