/* Deep Ocean Navigator - Architectural Studio Theme */

:root {
  --primary-color: #1A4D8F;
  --secondary-color: #00ACC1;
  --dark-ocean: #0D2847;
  --light-ocean: #2E6AB3;
  --foam-white: #F0F8FF;
  --deep-shadow: rgba(26, 77, 143, 0.15);
  --wave-gradient: linear-gradient(135deg, #1A4D8F 0%, #00ACC1 100%);
  --ocean-depth: linear-gradient(180deg, #0D2847 0%, #1A4D8F 50%, #00ACC1 100%);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography */
.display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.8;
}

/* Navigation */
.navbar {
  background: var(--primary-color) !important;
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 1000;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(26, 77, 143, 0.98) !important;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-size: 1.5rem;
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  color: var(--secondary-color) !important;
  transform: translateX(5px);
}

.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;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

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

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

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #ffffff !important;
  background: rgba(0, 172, 193, 0.2);
  transform: translateY(-2px);
}

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 172, 193, 0.5);
}

.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.9%29' 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: var(--ocean-depth);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::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;
  animation: patternMove 30s linear infinite;
}

@keyframes patternMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.diagonal-split {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 48%, var(--secondary-color) 48%, var(--secondary-color) 52%, transparent 52%);
  opacity: 0.1;
  animation: diagonalShift 20s ease-in-out infinite;
}

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

.journey-path {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 200px;
  opacity: 0.15;
  transform: translateY(-50%);
}

.journey-path::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--secondary-color) 0px, var(--secondary-color) 20px, transparent 20px, transparent 40px);
  animation: pathFlow 3s linear infinite;
}

@keyframes pathFlow {
  0% { transform: translateX(0); }
  100% { transform: translateX(40px); }
}

.hero-section .text-white {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.hero-section .display-3 {
  animation: fadeInUp 1s ease-out;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero-section .lead {
  animation: fadeInUp 1s ease-out 0.2s both;
  color: rgba(255, 255, 255, 0.95) !important;
}

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

/* Buttons */
.btn {
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s 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.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

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

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

.btn-light:hover {
  background: var(--foam-white) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.btn-outline-light {
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  background: transparent !important;
}

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

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

.btn-primary:hover {
  background: var(--light-ocean) !important;
  border-color: var(--light-ocean) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(26, 77, 143, 0.4);
}

.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: #ffffff !important;
  transform: translateY(-3px);
}

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

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

/* Images */
.img-fluid {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: all 0.5s ease;
  animation: floatImage 6s ease-in-out infinite;
}

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

.img-fluid:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 25px 80px rgba(0, 172, 193, 0.4);
  animation-play-state: paused;
}

/* Services Section */
.services-grid {
  margin-top: 3rem;
}

.service-card {
  background: #ffffff !important;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: var(--wave-gradient);
  transition: left 0.4s ease;
}

.service-card:hover::before {
  left: 0;
}

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

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--wave-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover .card-overlay {
  opacity: 0.05;
}

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

.service-card .bi {
  color: var(--primary-color) !important;
  transition: all 0.4s ease;
  display: inline-block;
}

.service-card:hover .bi {
  color: var(--secondary-color) !important;
  transform: scale(1.15) rotate(5deg);
}

.service-card h4 {
  color: var(--primary-color) !important;
  font-weight: 700;
  margin-top: 1rem;
  transition: color 0.3s ease;
}

.service-card:hover h4 {
  color: var(--secondary-color) !important;
}

.service-card p {
  color: #666 !important;
  font-size: 0.95rem;
}

/* Parallax Timeline */
.parallax-timeline {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--foam-white) 0%, #ffffff 100%);
}

.parallax-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--wave-gradient);
  transform: translateX(-50%);
}

.timeline-badge {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border: 4px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(26, 77, 143, 0.3);
  position: relative;
  z-index: 2;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(26, 77, 143, 0.3); }
  50% { box-shadow: 0 4px 30px rgba(0, 172, 193, 0.6); }
}

.hexagon-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
}

.hexagon-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: var(--wave-gradient);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: hexRotate 10s linear infinite;
}

@keyframes hexRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Carousel */
.carousel {
  background: var(--primary-color);
  padding: 60px 0;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
}

.carousel-indicators {
  margin-bottom: 2rem;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  transition: all 0.3s ease;
}

.carousel-indicators .active {
  background-color: var(--secondary-color) !important;
  width: 40px;
  border-radius: 6px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  opacity: 1 !important;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--secondary-color);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: brightness(0) invert(1);
}

.rounded-circle {
  border: 4px solid var(--secondary-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Modal */
.modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  background: var(--wave-gradient);
  color: #ffffff !important;
  border: none;
  padding: 1.5rem 2rem;
}

.modal-title {
  color: #ffffff !important;
  font-weight: 700;
}

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

.btn-close:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 172, 193, 0.5);
}

.modal-body {
  padding: 2rem;
  background: #ffffff;
}

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

.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  background: #ffffff;
}

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

.form-check-input {
  border: 2px solid #e0e0e0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 172, 193, 0.25);
}

.form-check-label {
  color: #333;
  margin-left: 0.5rem;
}

.input-group-text {
  background: var(--foam-white);
  border: 2px solid #e0e0e0;
  color: var(--primary-color) !important;
  font-weight: 600;
}

.input-group-lg .form-control,
.input-group-lg .input-group-text {
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
}

/* Cards */
.card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

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

.card-header {
  background: var(--wave-gradient);
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  padding: 1.25rem 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  background: var(--foam-white);
  border-top: 2px solid #e0e0e0;
  padding: 1.25rem 1.5rem;
}

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

.card-img-top {
  transition: transform 0.5s ease;
}

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

/* Sticky Elements */
.sticky-top {
  top: 100px;
}

.position-sticky {
  top: 80px;
}

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

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

/* Accordion */
.accordion-item {
  border: 2px solid #e0e0e0;
  border-radius: 12px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  border: none;
}

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

.accordion-button:not(.collapsed) {
  background: var(--foam-white);
  color: var(--primary-color) !important;
  border-bottom: 2px solid var(--secondary-color);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231A4D8F'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

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

/* List Group */
.list-group-item {
  border: 2px solid #e0e0e0;
  border-radius: 10px !important;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.list-group-item-action:hover {
  background: var(--foam-white);
  border-color: var(--secondary-color);
  color: var(--primary-color) !important;
  transform: translateX(5px);
}

.list-group-flush .list-group-item {
  border-width: 0 0 2px 0;
  border-radius: 0 !important;
}

/* Alerts */
.alert {
  border: none;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid;
}

.alert-info {
  background: rgba(0, 172, 193, 0.1);
  border-left-color: var(--secondary-color);
  color: var(--dark-ocean) !important;
}

/* Tables */
.table {
  border-radius: 12px;
  overflow: hidden;
}

.table-bordered {
  border: 2px solid #e0e0e0;
}

.table thead {
  background: var(--primary-color);
  color: #ffffff !important;
}

.table tbody tr {
  transition: background 0.3s ease;
}

.table tbody tr:hover {
  background: var(--foam-white);
}

/* Navigation Pills */
.nav-pills .nav-link {
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  color: var(--primary-color) !important;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0.25rem;
}

.nav-pills .nav-link:hover {
  background: rgba(0, 172, 193, 0.1);
  color: var(--secondary-color) !important;
}

.nav-pills .nav-link.active {
  background: var(--wave-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 172, 193, 0.3);
}

/* Tab Content */
.tab-content {
  padding: 2rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

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

/* Masonry Grid */
.masonry-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

.masonry-grid > * {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

/* Ratio Container */
.ratio {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background: var(--dark-ocean);
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 60px 0 30px;
}

footer h3,
footer h4,
footer h5 {
  color: #ffffff !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

footer .text-decoration-none {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: all 0.3s ease;
  display: inline-block;
}

footer .text-decoration-none:hover {
  color: var(--secondary-color) !important;
  transform: translateX(5px);
}

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

/* Expand Button */
.expand-btn {
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.expand-btn:hover {
  color: var(--secondary-color) !important;
}

.expand-btn .bi-chevron-down {
  transition: transform 0.3s ease;
}

.expand-btn.expanded .bi-chevron-down {
  transform: rotate(180deg);
}

/* Utilities */
.text-muted {
  color: #6c757d !important;
}

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

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

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

.overflow-hidden {
  overflow: hidden;
}

.position-fixed {
  position: fixed;
  z-index: 1050;
}

.d-grid .btn {
  width: 100%;
}

/* Animations */
@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 zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid var(--secondary-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(26, 77, 143, 0.98);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
  
  .navbar-dark .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }
  
  .hero-section {
    padding: 100px 0 60px;
    min-height: auto;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  .parallax-timeline::before {
    left: 30px;
  }
  
  .masonry-grid {
    column-count: 2;
  }
  
  .sticky-top,
  .position-sticky {
    position: relative !important;
    top: auto !important;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 80px 0 40px;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem;
  }
  
  .service-card {
    margin-bottom: 1rem;
  }
  
  .masonry-grid {
    column-count: 1;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  footer {
    padding: 40px 0 20px;
    text-align: center;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .btn {
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .d-flex.gap-3 {
    flex-direction: column;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .modal,
  .carousel-control-prev,
  .carousel-control-next,
  .accordion-button::after {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .hero-section {
    background: white;
    color: black !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:focus {
  outline: 3px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }
  
  .bg-white {
    background-color: #2a2a2a !important;
  }
  
  .text-dark {
    color: #e0e0e0 !important;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--foam-white);
}

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

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

/* Selection */
::selection {
  background: var(--secondary-color);
  color: #ffffff;
}

::-moz-selection {
  background: var(--secondary-color);
  color: #ffffff;
}