/* Architectural Studio - Deep Ocean & Refined Gold Theme */

:root {
  --primary-color: #1B5E86;
  --secondary-color: #C79A5B;
  --dark-ocean: #0d3d5a;
  --light-ocean: #2a7ba7;
  --gold-light: #d9b677;
  --gold-dark: #b08549;
  --text-light: #ffffff;
  --text-dark: #1a1a1a;
  --shadow-sm: 0 2px 8px rgba(27, 94, 134, 0.1);
  --shadow-md: 0 4px 16px rgba(27, 94, 134, 0.15);
  --shadow-lg: 0 8px 32px rgba(27, 94, 134, 0.2);
  --transition: 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);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.7;
}

/* Navbar */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-ocean) 100%) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.sticky-top {
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar-brand {
  font-size: 1.75rem;
  color: var(--text-light) !important;
  letter-spacing: 0.05em;
  transition: var(--transition);
  font-weight: 800 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.navbar-dark .navbar-toggler {
  border: 2px solid var(--secondary-color) !important;
  background: rgba(199, 154, 91, 0.2) !important;
}

.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

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

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

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  background: rgba(199, 154, 91, 0.15) !important;
  transform: translateY(-2px);
}

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

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-ocean) 0%, var(--primary-color) 50%, var(--light-ocean) 100%);
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(199, 154, 91, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(199, 154, 91, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.1), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

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

.hero-section .display-3 {
  color: var(--text-light) !important;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
  margin-bottom: 1.5rem !important;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: clamp(1rem, 2vw, 1.5rem);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-shadow: none !important;
}

.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(--secondary-color), var(--gold-dark)) !important;
  border-color: var(--secondary-color) !important;
  color: var(--text-dark) !important;
  box-shadow: 0 4px 15px rgba(199, 154, 91, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--secondary-color)) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(199, 154, 91, 0.4) !important;
  color: var(--text-dark) !important;
  border-color: var(--gold-light) !important;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.9) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(5px);
  font-weight: 600 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.btn-outline-light:hover {
  background: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--text-dark) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(199, 154, 91, 0.4) !important;
  text-shadow: none !important;
}

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

.btn-outline-secondary:hover {
  background: var(--secondary-color) !important;
  color: var(--text-light) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(199, 154, 91, 0.3) !important;
}

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

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

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9) !important;
  cursor: pointer;
  z-index: 10;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* Stats Section */
.py-5 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

.stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  transition: var(--transition);
  border: 1px solid rgba(27, 94, 134, 0.1);
  position: relative;
  overflow: hidden;
}

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

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

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

.stat-card .bi {
  color: var(--primary-color) !important;
  transition: var(--transition);
}

.stat-card:hover .bi {
  color: var(--secondary-color) !important;
  transform: scale(1.1);
}

.counter {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  font-variant-numeric: tabular-nums;
}

/* Badge */
.badge {
  background: linear-gradient(135deg, var(--secondary-color), var(--gold-light)) !important;
  color: var(--text-dark) !important;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 8px;
  padding: 0.5rem 1rem !important;
}

/* Cards */
.card {
  border-radius: 16px !important;
  border: none !important;
  overflow: hidden;
  transition: var(--transition);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

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

.card-body {
  padding: 2rem;
}

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

.card-text {
  color: #666;
  line-height: 1.7;
}

.card-footer {
  background: transparent !important;
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
  padding: 1.25rem 2rem;
}

/* Service Cards */
.service-card {
  position: relative;
  height: 350px;
  perspective: 1000px;
  cursor: pointer;
}

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

.service-card-front {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(27, 94, 134, 0.1);
}

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

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

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

.service-card .bi {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color) !important;
}

.service-card-back .bi {
  color: var(--secondary-color) !important;
}

.service-card-back h4,
.service-card-back p {
  color: var(--text-light) !important;
}

/* Images */
.img-fluid {
  border-radius: 16px;
  transition: var(--transition);
}

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

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

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

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

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

.form-control,
.form-select {
  border: 2px solid rgba(27, 94, 134, 0.2);
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  transition: var(--transition);
  background: #ffffff;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(199, 154, 91, 0.25) !important;
  outline: none;
}

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

.input-group-lg .form-control {
  border-radius: 12px 0 0 12px !important;
}

.input-group-lg .btn {
  border-radius: 0 12px 12px 0 !important;
}

/* List */
.list-unstyled li {
  padding: 0.75rem 0;
  transition: var(--transition);
}

.list-unstyled li:hover {
  padding-left: 10px;
  color: var(--secondary-color);
}

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

/* Masonry Grid */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 200px;
  gap: 1.5rem;
}

.masonry-item {
  grid-row: span 1;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.masonry-large {
  grid-row: span 2;
}

.masonry-wide {
  grid-column: span 2;
}

.masonry-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

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

.accordion-button {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  color: var(--primary-color) !important;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  border: none !important;
}

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

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(27, 94, 134, 0.25) !important;
  border: none !important;
}

.accordion-button::after {
  filter: brightness(0) saturate(100%) invert(24%) sepia(56%) saturate(1043%) hue-rotate(162deg) brightness(95%) contrast(92%);
}

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

.accordion-body {
  padding: 1.5rem;
  background: #ffffff;
  border-top: 1px solid rgba(27, 94, 134, 0.1);
}

/* Alert */
.alert {
  border-radius: 12px;
  border: none;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

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

/* Background Utilities */
.bg-light {
  background-color: #f8f9fa !important;
}

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

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

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

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

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

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

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

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

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

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

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

.text-white a:hover,
.text-light a:hover {
  color: var(--secondary-color) !important;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--dark-ocean) 0%, #0a2533 100%);
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 3rem 0 1rem;
}

footer h5,
footer h6 {
  color: var(--secondary-color) !important;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

footer a {
  color: rgba(255, 255, 255, 0.85) !important;
  transition: var(--transition);
  display: inline-block;
}

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

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

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

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--dark-ocean)) !important;
  border-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Resource Items */
.resource-item {
  transition: var(--transition);
}

.resource-item:hover {
  transform: translateY(-5px);
}

.resource-item .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

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

/* Icons */
.bi {
  display: inline-block;
  vertical-align: middle;
  transition: var(--transition);
}

.bi-calculator,
.bi-building,
.bi-graph-up-arrow,
.bi-shield-check,
.bi-briefcase,
.bi-file-earmark-bar-graph,
.bi-lightbulb,
.bi-journal-check,
.bi-receipt,
.bi-calendar-check,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt-fill {
  color: var(--secondary-color) !important;
}

/* Spacing Utilities */
.gap-2 {
  gap: 0.5rem !important;
}

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

.g-0 {
  gap: 0 !important;
}

.g-3 > * {
  padding: 1rem;
}

.g-4 > * {
  padding: 1.5rem;
}

/* Min Height */
.min-vh-50 {
  min-height: 50vh !important;
}

/* Sticky Position */
.position-sticky {
  position: sticky !important;
  top: 80px;
}

.sticky-top {
  position: sticky !important;
  top: 0;
  z-index: 1020;
}

/* Responsive Typography */
@media (max-width: 991.98px) {
  .display-3 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
}

@media (max-width: 767.98px) {
  .display-3 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 1.75rem;
  }
  
  .display-5 {
    font-size: 1.5rem;
  }
  
  .hero-section {
    padding: 100px 0 60px;
    min-height: auto;
  }
  
  .navbar-collapse {
    background: rgba(13, 61, 90, 0.98);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: var(--shadow-lg);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .masonry-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  
  .masonry-large,
  .masonry-wide {
    grid-row: span 1;
    grid-column: span 1;
  }
  
  .service-card {
    height: 300px;
  }
}

@media (max-width: 575.98px) {
  .display-3 {
    font-size: 1.75rem;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem;
  }
  
  .px-5 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

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

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

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

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

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

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

/* Loading State */
.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 rgba(27, 94, 134, 0.3);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Scroll Behavior */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Selection */
::selection {
  background: var(--secondary-color);
  color: var(--text-light);
}

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

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--dark-ocean), var(--gold-dark));
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .scroll-indicator,
  footer {
    display: none !important;
  }
  
  body {
    color: #000;
  }
  
  a {
    text-decoration: underline;
  }
}