/* Architectural Studio Theme - Professional Ocean Blue */

/* ===== CSS Variables ===== */
:root {
  --primary-color: #1E3A5F;
  --secondary-color: #4A90E2;
  --accent-color: #87CEEB;
  --dark-blue: #0F1F3A;
  --light-blue: #E8F4F8;
  --text-dark: #2C3E50;
  --text-light: #FFFFFF;
  --transition-speed: 0.3s;
  --shadow-sm: 0 2px 8px rgba(30, 58, 95, 0.1);
  --shadow-md: 0 4px 16px rgba(30, 58, 95, 0.15);
  --shadow-lg: 0 8px 32px rgba(30, 58, 95, 0.2);
}

/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.3;
}

.display-3, .display-4, .display-5 {
  font-weight: 800 !important;
  color: var(--primary-color) !important;
}

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

/* ===== Navbar Styles ===== */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%) !important;
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
  transition: all var(--transition-speed) ease;
  z-index: 1000;
}

.navbar.sticky-top {
  backdrop-filter: blur(10px);
}

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

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

.navbar-dark .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: var(--text-light) !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, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav {
  gap: 0.5rem;
}

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

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

.nav-link.active {
  color: var(--text-light) !important;
  background-color: var(--secondary-color) !important;
  font-weight: 600 !important;
}

/* ===== Hero Section ===== */
.hero-diagonal {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  min-height: 90vh;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-diagonal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content .display-3 {
  color: var(--text-light) !important;
  font-weight: 800 !important;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-out;
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.25rem;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* ===== Financial Visualization ===== */
.financial-viz {
  position: relative;
  z-index: 1;
}

.floating-numbers {
  position: relative;
  height: 400px;
}

.float-element {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 1.5rem;
  color: var(--text-light) !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: float 6s ease-in-out infinite;
}

.float-element:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.float-element:nth-child(2) {
  top: 50%;
  right: 15%;
  animation-delay: 1s;
}

.float-element:nth-child(3) {
  bottom: 15%;
  left: 20%;
  animation-delay: 2s;
}

.float-element .bi {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color) !important;
}

/* ===== Buttons ===== */
.btn {
  font-weight: 600 !important;
  border-radius: 12px;
  padding: 0.75rem 2rem;
  transition: all var(--transition-speed) ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%) !important;
  color: var(--text-light) !important;
  border: none !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg) !important;
  color: var(--text-light) !important;
}

.btn-light {
  background-color: var(--text-light) !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--text-light) !important;
  font-weight: 700 !important;
}

.btn-light:hover {
  background-color: transparent !important;
  color: var(--text-light) !important;
  border: 2px solid var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg) !important;
}

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

.btn-outline-primary:hover {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  border: 2px solid var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg) !important;
}

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

.btn-outline-secondary:hover {
  background-color: var(--secondary-color) !important;
  color: var(--text-light) !important;
  border: 2px solid var(--secondary-color) !important;
  transform: translateY(-3px);
}

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

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

.btn-danger {
  background-color: #DC3545 !important;
  color: var(--text-light) !important;
  border: none !important;
}

.btn-danger:hover {
  background-color: #C82333 !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
}

/* ===== Services Preview ===== */
.services-preview {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--light-blue) 100%);
  padding: 5rem 0;
}

.service-card {
  border-radius: 20px;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg) !important;
  border-color: var(--secondary-color);
}

.card-icon-hidden {
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.1;
  transition: all var(--transition-speed) ease;
}

.service-card:hover .card-icon-hidden {
  opacity: 0.2;
  transform: scale(1.2);
}

.card-icon-hidden .bi {
  font-size: 2.5rem;
  color: var(--text-light) !important;
}

.card-content .bi {
  font-size: 3rem;
  color: var(--secondary-color) !important;
  margin-bottom: 1rem;
}

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

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

/* ===== Stats Section ===== */
.stats-parallax {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.stats-parallax::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.stat-item h2 {
  color: var(--text-light) !important;
  font-size: 3rem !important;
  font-weight: 800 !important;
  margin-bottom: 0.5rem;
}

.counter {
  color: var(--text-light) !important;
  font-size: 3rem !important;
  font-weight: 800 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-item p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1rem;
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Testimonials ===== */
.testimonials {
  background-color: var(--light-blue);
  padding: 5rem 0;
}

.testimonials .display-5 {
  color: var(--primary-color) !important;
  margin-bottom: 3rem;
}

.carousel {
  padding: 2rem 0;
}

.testimonial-card {
  background-color: #FFFFFF !important;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  max-width: 700px;
  margin: 0 auto;
  transition: all var(--transition-speed) ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card .bi-star-fill {
  color: #FFB400 !important;
  font-size: 1.25rem;
  margin-right: 0.25rem;
}

.testimonial-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light) !important;
  font-size: 2rem;
  font-weight: 700 !important;
  flex-shrink: 0;
}

.testimonial-card p {
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.8;
  font-style: italic;
  margin: 1.5rem 0;
}

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

.testimonial-card .text-muted {
  color: var(--secondary-color) !important;
  font-weight: 500 !important;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color) !important;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8 !important;
  transition: all var(--transition-speed) ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1 !important;
  background-color: var(--primary-color) !important;
  transform: translateY(-50%) scale(1.1);
}

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

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

/* ===== Newsletter Section ===== */
.newsletter-signup {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.newsletter-signup h3 {
  color: var(--text-light) !important;
  font-weight: 700 !important;
  margin-bottom: 1rem;
}

.newsletter-signup p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.1rem;
}

.newsletter-form .form-control {
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 1rem 1.5rem;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.95) !important;
  color: var(--text-dark) !important;
  transition: all var(--transition-speed) ease;
}

.newsletter-form .form-control:focus {
  border-color: var(--text-light) !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25) !important;
  background-color: #FFFFFF !important;
}

.newsletter-form .form-control::placeholder {
  color: rgba(44, 62, 80, 0.6) !important;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 5rem 0;
  background-color: #FFFFFF;
}

.cta-section img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-speed) ease;
}

.cta-section img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(30, 58, 95, 0.25);
}

.cta-section h2 {
  color: var(--primary-color) !important;
  font-weight: 800 !important;
  margin-bottom: 1.5rem;
}

.cta-section p {
  color: var(--text-dark);
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ===== Footer ===== */
footer {
  background: linear-gradient(180deg, var(--dark-blue) 0%, var(--primary-color) 100%);
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 4rem 0 2rem;
  position: relative;
}

footer h5 {
  color: var(--text-light) !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

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

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

footer a:hover {
  color: var(--text-light) !important;
  transform: translateX(5px);
}

footer .bi {
  color: var(--accent-color) !important;
  margin-right: 0.5rem;
}

footer .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ===== Cards ===== */
.card {
  border-radius: 16px;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img-top {
  border-radius: 16px 16px 0 0;
  transition: all var(--transition-speed) ease;
}

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

.card-body {
  padding: 1.5rem;
}

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

.card-text {
  color: var(--text-dark);
  line-height: 1.7;
}

.card-header {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%) !important;
  color: var(--text-light) !important;
  font-weight: 600 !important;
  padding: 1rem 1.5rem;
  border: none;
}

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

.badge.rounded-pill {
  padding: 0.5rem 1.25rem;
}

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

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

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

.bg-white {
  background-color: #FFFFFF !important;
}

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

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

/* ===== Forms ===== */
.form-control,
.form-select {
  border-radius: 12px;
  border: 2px solid #E0E6ED;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  transition: all var(--transition-speed) ease;
  background-color: #FFFFFF !important;
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25) !important;
  background-color: #FFFFFF !important;
}

.form-control::placeholder {
  color: rgba(44, 62, 80, 0.5) !important;
}

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

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--secondary-color);
  border-radius: 0.375rem;
}

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

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

.invalid-feedback {
  color: #DC3545 !important;
  font-weight: 500 !important;
  font-size: 0.875rem;
}

.input-group-text {
  background-color: var(--light-blue) !important;
  border: 2px solid #E0E6ED;
  border-radius: 12px;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
}

/* ===== Modal ===== */
.modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-light) !important;
  border: none;
  padding: 1.5rem 2rem;
}

.modal-header h5 {
  color: var(--text-light) !important;
  font-weight: 700 !important;
}

.modal-body {
  padding: 2rem;
}

.btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.btn-close:hover {
  opacity: 1;
}

/* ===== Accordion ===== */
.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

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

.accordion-button:focus {
  box-shadow: none;
  border: none;
}

.accordion-button::after {
  filter: brightness(0) saturate(100%) invert(18%) sepia(28%) saturate(1899%) hue-rotate(186deg) brightness(93%) contrast(93%);
}

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

.accordion-body {
  padding: 1.5rem;
  background-color: #FFFFFF;
  color: var(--text-dark);
  line-height: 1.8;
}

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

.alert-success {
  background-color: #D4EDDA !important;
  color: #155724 !important;
}

.alert-info {
  background-color: var(--light-blue) !important;
  color: var(--primary-color) !important;
}

.alert-warning {
  background-color: #FFF3CD !important;
  color: #856404 !important;
}

.alert .bi {
  margin-right: 0.5rem;
  font-size: 1.25rem;
}

/* ===== Tabs ===== */
.nav-pills .nav-link {
  border-radius: 12px;
  padding: 0.875rem 1.5rem;
  font-weight: 600 !important;
  color: var(--primary-color) !important;
  background-color: transparent;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
}

.nav-pills .nav-link:hover {
  background-color: var(--light-blue) !important;
  transform: translateY(-2px);
}

.nav-pills .nav-link.active {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%) !important;
  color: var(--text-light) !important;
  border: 2px solid var(--primary-color);
}

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

/* ===== Partners Marquee ===== */
.partners-marquee {
  background-color: var(--light-blue);
  padding: 3rem 0;
  overflow: hidden;
}

.partner-logo {
  width: 120px;
  height: 80px;
  background-color: #FFFFFF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
  padding: 1rem;
}

.partner-logo:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

/* ===== Filter Tags ===== */
.filter-tag {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  background-color: var(--light-blue);
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  margin: 0.25rem;
}

.filter-tag:hover,
.filter-tag.active {
  background-color: var(--secondary-color) !important;
  color: var(--text-light) !important;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* ===== Article Cards ===== */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
  background-color: #FFFFFF;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: all var(--transition-speed) ease;
}

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

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

@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);
  }
}

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

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

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

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

.text-muted {
  color: #6C757D !important;
}

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

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

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

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

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

/* ===== Responsive Styles ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(30, 58, 95, 0.98);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: var(--shadow-md);
  }

  .nav-link {
    padding: 0.75rem 1rem !important;
    margin-bottom: 0.5rem;
  }

  .hero-diagonal {
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    min-height: 100vh;
  }

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

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

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

  .floating-numbers {
    height: 300px;
  }

  .float-element {
    padding: 1rem;
    font-size: 0.875rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  .stat-item h2,
  .counter {
    font-size: 2rem !important;
  }

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

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

  footer {
    text-align: center;
  }

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

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

  .display-3 {
    font-size: 2rem !important;
  }

  .lead {
    font-size: 1rem;
  }

  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }

  .services-preview,
  .testimonials,
  .cta-section {
    padding: 3rem 0;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .stat-item {
    margin-bottom: 2rem;
  }

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

  .floating-numbers {
    display: none;
  }
}

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

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
  }

  .modal-dialog {
    margin: 0.5rem;
  }

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

  .testimonial-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

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

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

/* ===== Print Styles ===== */
@media print {
  .navbar,
  .btn,
  .carousel-control-prev,
  .carousel-control-next,
  footer {
    display: none !important;
  }

  body {
    color: #000000 !important;
    background: #FFFFFF !important;
  }

  .hero-diagonal,
  .stats-parallax,
  .newsletter-signup {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
}

/* ===== Additional Utility Classes ===== */
.position-sticky {
  position: sticky !important;
  top: 80px;
  z-index: 999;
}

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

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

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

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

.privacy-nav-link {
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
  display: block;
}

.privacy-nav-link:hover,
.privacy-nav-link.active {
  background-color: var(--light-blue) !important;
  color: var(--secondary-color) !important;
}

.consent-toggle {
  cursor: pointer;
}

.form-switch .form-check-input {
  width: 3rem;
  height: 1.5rem;
  cursor: pointer;
}

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

/* ===== Service Tabs Wrapper ===== */
.service-tabs-wrapper {
  background-color: #FFFFFF;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.service-tabs-wrapper .nav-pills {
  background-color: var(--light-blue);
  padding: 1rem;
  border-radius: 16px;
}

/* ===== Smooth Transitions ===== */
* {
  transition: color var(--transition-speed) ease,
              background-color var(--transition-speed) ease,
              border-color var(--transition-speed) ease;
}

a,
button,
.btn,
.nav-link,
.card,
.form-control {
  transition: all var(--transition-speed) ease !important;
}

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

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

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

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