/* Architectural Studio - Midnight Indigo & Lavender Mist Theme */

:root {
  --primary-color: #1A237E;
  --secondary-color: #C5CAE9;
  --accent-lavender: #E8EAF6;
  --dark-indigo: #0D1442;
  --light-lavender: #F3F4FB;
  --text-dark: #212529;
  --text-light: #6c757d;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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);
  margin-bottom: 1rem;
}

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

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-indigo) 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 4px 12px rgba(26, 35, 126, 0.15);
  transition: var(--transition-smooth);
}

.navbar-dark {
  background-color: var(--primary-color) !important;
}

.navbar-brand {
  font-size: 1.5rem;
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
}

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

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

.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");
}

.navbar-nav {
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition-smooth);
  position: relative;
}

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

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

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

/* Hero Container */
.hero-container {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, #283593 50%, var(--dark-indigo) 100%);
  position: relative;
  overflow: hidden;
}

.particle-veil-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-icons {
  pointer-events: none;
  z-index: 1;
}

.floating-icons .bi {
  position: absolute;
  color: rgba(197, 202, 233, 0.15);
  font-size: 3rem;
  animation: float 20s infinite ease-in-out;
}

.floating-icons .bi:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-icons .bi:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 2s;
  font-size: 2.5rem;
}

.floating-icons .bi:nth-child(3) {
  top: 80%;
  left: 20%;
  animation-delay: 4s;
  font-size: 4rem;
}

.floating-icons .bi:nth-child(4) {
  top: 30%;
  left: 70%;
  animation-delay: 6s;
  font-size: 3.5rem;
}

.floating-icons .bi:nth-child(5) {
  top: 50%;
  left: 5%;
  animation-delay: 8s;
  font-size: 2rem;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-30px) rotate(5deg);
  }
  50% {
    transform: translateY(-60px) rotate(-5deg);
  }
  75% {
    transform: translateY(-30px) rotate(3deg);
  }
}

/* Intro Card Section */
.intro-card-section {
  position: relative;
  z-index: 10;
  padding: 2rem 1rem;
}

.intro-card {
  background: #ffffff !important;
  border-radius: 20px;
  max-width: 700px;
  margin: 0 auto;
  transform: translateY(0);
  transition: var(--transition-smooth);
  border: 1px solid var(--secondary-color);
}

.intro-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(26, 35, 126, 0.2) !important;
}

.intro-card h1 {
  color: var(--primary-color) !important;
  font-size: 2.5rem;
}

.intro-card .lead {
  color: var(--text-light) !important;
  font-size: 1.1rem;
}

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

.text-success {
  color: #28a745 !important;
}

.bi-check-circle-fill {
  font-size: 1.2rem;
}

/* Buttons */
.btn {
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background-color: var(--dark-indigo) !important;
  border-color: var(--dark-indigo) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(26, 35, 126, 0.3);
}

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

.btn-outline-primary:hover, .btn-outline-primary:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
}

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

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

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

.btn-outline-light:hover {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--primary-color) !important;
}

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

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

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

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

/* Trust Badges */
.trust-badges {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-badges .text-center {
  flex: 1;
}

.trust-badges .bi {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.trust-badges h6 {
  color: #ffffff !important;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.trust-badges .small {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.85rem;
}

/* Services Grid */
.services-grid {
  background: linear-gradient(to bottom, var(--light-lavender) 0%, #ffffff 100%);
}

.staggered-grid {
  padding: 2rem 0;
}

.service-tile {
  background: #ffffff;
  border-radius: 15px;
  padding: 2rem;
  height: 100%;
  transition: var(--transition-smooth);
  border: 1px solid var(--secondary-color);
  position: relative;
  cursor: pointer;
}

.service-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(26, 35, 126, 0.2) !important;
  border-color: var(--primary-color);
}

.service-tile .bi {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: inline-block;
  transition: var(--transition-smooth);
}

.service-tile:hover .bi {
  transform: scale(1.1) rotate(5deg);
  color: var(--dark-indigo);
}

.service-tile .h5 {
  color: var(--primary-color) !important;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.service-tile p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.hover-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

.service-tile:hover .hover-reveal {
  opacity: 1;
  transform: translateY(0);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-indigo) 100%);
  padding: 5rem 0;
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(197, 202, 233, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section h2 {
  color: #ffffff !important;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

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

.form-control, .form-select {
  border: 2px solid var(--secondary-color) !important;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: var(--transition-smooth);
  color: var(--text-dark) !important;
  background-color: #ffffff !important;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(26, 35, 126, 0.15) !important;
  outline: none;
}

.form-control::placeholder {
  color: var(--text-light) !important;
  opacity: 0.7;
}

/* Contact Section */
.contact-wrapper {
  display: flex;
  gap: 2rem;
  padding: 3rem 0;
}

.map-section {
  background: var(--light-lavender);
  border-radius: 15px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.form-section {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(26, 35, 126, 0.1);
}

.form-section .display-5 {
  color: var(--primary-color) !important;
  margin-bottom: 2rem;
}

.step-indicator {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.progress {
  height: 6px;
  border-radius: 10px;
  background-color: var(--secondary-color) !important;
  overflow: hidden;
}

.progress-bar {
  background-color: var(--primary-color) !important;
  transition: width 0.5s ease;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

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

.btn-check:checked + .btn-outline-primary {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

/* Cards */
.card {
  border-radius: 15px;
  border: 1px solid var(--secondary-color);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 15px 35px rgba(26, 35, 126, 0.15) !important;
  transform: translateY(-5px);
}

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

.card-body {
  padding: 1.5rem;
}

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

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

.case-card {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition-smooth);
  height: 100%;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(26, 35, 126, 0.2) !important;
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

/* Filter Buttons */
.filter-btn {
  background: transparent;
  border: 2px solid var(--secondary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  transition: var(--transition-smooth);
  font-weight: 600;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
}

/* Badges */
.badge {
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
}

/* Alerts */
.alert {
  border-radius: 12px;
  border: none;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

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

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

.alert .bi {
  font-size: 1.2rem;
  vertical-align: middle;
}

/* Hexagon Grid */
.honeycomb-container {
  padding: 4rem 0;
  background: linear-gradient(to bottom, #ffffff 0%, var(--light-lavender) 100%);
  overflow: hidden;
}

.hexagon-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.hex-item {
  width: 200px;
  height: 230px;
  position: relative;
  transition: var(--transition-smooth);
}

.hexagon {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.hex-item:hover .hexagon {
  background: var(--dark-indigo);
  transform: scale(1.05);
}

.hex-content {
  text-align: center;
  color: #ffffff !important;
  padding: 1rem;
}

.hex-icon {
  font-size: 3rem;
  color: #ffffff !important;
  margin-bottom: 0.5rem;
}

.hex-content h5 {
  color: #ffffff !important;
  font-size: 1rem;
  margin: 0;
}

/* Practice Overlay */
.practice-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 20, 66, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.practice-overlay.active {
  display: flex;
}

.overlay-content {
  background: #ffffff;
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  padding: 3rem;
  position: relative;
  animation: slideInUp 0.4s ease;
}

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

.overlay-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--primary-color);
  color: #ffffff !important;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1.2rem;
}

.overlay-close:hover {
  background: var(--dark-indigo);
  transform: rotate(90deg);
}

/* Modal Overrides */
.modal-content {
  border-radius: 20px;
  border: none;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-indigo) 100%);
  color: #ffffff !important;
  border-bottom: none;
  padding: 1.5rem 2rem;
}

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

.modal-body {
  padding: 2rem;
}

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

/* Sticky Top */
.sticky-top {
  position: sticky;
  top: 80px;
  z-index: 100;
}

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

/* Footer */
footer {
  background: linear-gradient(135deg, var(--dark-indigo) 0%, var(--primary-color) 100%);
  color: #ffffff !important;
  padding: 3rem 0 1rem;
}

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

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

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  transition: var(--transition-smooth);
}

footer a:hover {
  color: var(--secondary-color) !important;
  padding-left: 5px;
}

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

/* Social Icons */
.bi-linkedin, .bi-twitter, .bi-facebook {
  font-size: 1.5rem;
  color: #ffffff !important;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.bi-linkedin:hover {
  color: #0077B5 !important;
  transform: scale(1.2);
}

.bi-twitter:hover {
  color: #1DA1F2 !important;
  transform: scale(1.2);
}

.bi-facebook:hover {
  color: #1877F2 !important;
  transform: scale(1.2);
}

/* Shadows */
.shadow {
  box-shadow: 0 10px 30px rgba(26, 35, 126, 0.1) !important;
}

.shadow-sm {
  box-shadow: 0 5px 15px rgba(26, 35, 126, 0.08) !important;
}

.shadow-lg {
  box-shadow: 0 20px 50px rgba(26, 35, 126, 0.15) !important;
}

/* Utilities */
.bg-white {
  background-color: #ffffff !important;
}

.text-white {
  color: #ffffff !important;
}

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

.fst-italic {
  font-style: italic;
}

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

/* Responsive Typography */
@media (max-width: 768px) {
  h1, .display-1 {
    font-size: 2rem !important;
  }
  
  h2, .display-2 {
    font-size: 1.75rem !important;
  }
  
  .display-3 {
    font-size: 1.5rem !important;
  }
  
  .display-4 {
    font-size: 1.4rem !important;
  }
  
  .display-5 {
    font-size: 1.3rem !important;
  }
  
  .intro-card h1 {
    font-size: 1.8rem !important;
  }
  
  .lead {
    font-size: 1rem !important;
  }
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(13, 20, 66, 0.98);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1rem;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .trust-badges {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .service-tile {
    margin-bottom: 1.5rem;
  }
  
  .hexagon-grid {
    gap: 1rem;
  }
  
  .hex-item {
    width: 150px;
    height: 180px;
  }
  
  .hex-icon {
    font-size: 2rem !important;
  }
  
  .overlay-content {
    padding: 2rem 1.5rem;
  }
  
  .contact-wrapper {
    flex-direction: column;
  }
  
  .sticky-top, .position-sticky {
    position: relative;
    top: 0;
  }
}

/* Print Styles */
@media print {
  .navbar, .btn, footer, .floating-icons {
    display: none !important;
  }
  
  .intro-card, .service-tile, .card {
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }
}

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

button:focus, a:focus, input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #ffffff !important;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: var(--transition-smooth);
  box-shadow: 0 5px 15px rgba(26, 35, 126, 0.3);
}

.scroll-to-top:hover {
  background: var(--dark-indigo);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(26, 35, 126, 0.4);
}

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

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

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

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

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

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

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