/* Arctic Clarity Architecture Studio - Custom Styles */

:root {
  --primary-color: #2E5266;
  --secondary-color: #7FB3D3;
  --light-gray: #F5F8FA;
  --dark-gray: #1A3A4A;
  --text-dark: #1F2937;
  --white: #FFFFFF;
  --shadow: rgba(46, 82, 102, 0.15);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

/* Typography */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.9;
}

h4, .h4 {
  font-weight: 600;
  color: var(--primary-color);
}

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

.navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(46, 82, 102, 0.98) !important;
}

.navbar-brand {
  color: var(--white) !important;
  font-weight: 700 !important;
  font-size: 1.75rem !important;
  letter-spacing: -0.01em;
  transition: var(--transition);
}

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

.navbar-dark .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: var(--white) !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;
}

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

.nav-link:hover {
  color: var(--white) !important;
  background-color: rgba(127, 179, 211, 0.2) !important;
  transform: translateY(-2px);
}

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

.navbar-nav {
  gap: 0.5rem;
}

/* Hero Section */
.position-relative.overflow-hidden {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1A3A4A 50%, var(--secondary-color) 100%);
  position: relative;
  padding-top: 120px;
}

.position-relative.overflow-hidden::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.03) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 60px 60px;
  background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
  animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
  0% { background-position: 0 0, 0 30px, 30px -30px, -30px 0px; }
  100% { background-position: 60px 60px, 60px 90px, 90px 30px, 30px 60px; }
}

.text-white {
  color: var(--white) !important;
  position: relative;
  z-index: 2;
}

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

/* Buttons */
.btn {
  font-weight: 600 !important;
  border-radius: 12px !important;
  transition: var(--transition) !important;
  border: none !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

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

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

.btn-lg {
  background: var(--secondary-color) !important;
  color: var(--white) !important;
  box-shadow: 0 8px 24px rgba(127, 179, 211, 0.4) !important;
}

.btn-lg:hover {
  background: #6AA3C3 !important;
  color: var(--white) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 32px rgba(127, 179, 211, 0.5) !important;
}

.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;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(46, 82, 102, 0.3) !important;
}

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

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

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

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

/* Animation */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

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

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

.pb-5 {
  padding-bottom: 5rem !important;
}

.pt-5 {
  padding-top: 5rem !important;
}

.my-5 {
  margin-top: 5rem !important;
  margin-bottom: 5rem !important;
}

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

.img-fluid:hover {
  transform: scale(1.02);
}

.shadow-lg {
  box-shadow: 0 20px 60px rgba(46, 82, 102, 0.2) !important;
}

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

.shadow-sm {
  box-shadow: 0 4px 16px rgba(46, 82, 102, 0.1) !important;
}

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

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

/* Cards */
.card {
  border: none !important;
  border-radius: 16px !important;
  background: var(--white);
  transition: var(--transition);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(46, 82, 102, 0.1) !important;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(46, 82, 102, 0.2) !important;
}

.card-img-top {
  border-radius: 0 !important;
  transition: var(--transition);
  height: 250px;
  object-fit: cover;
}

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

.card-body {
  padding: 2rem;
}

.border-0 {
  border: none !important;
}

/* Portfolio Items */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(46, 82, 102, 0.8) 0%, rgba(127, 179, 211, 0.8) 100%);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.portfolio-item:hover::before {
  opacity: 1;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(46, 82, 102, 0.3) !important;
}

/* Filter Buttons */
.filter-btn {
  background: var(--light-gray) !important;
  color: var(--primary-color) !important;
  border: 2px solid transparent !important;
  padding: 0.75rem 2rem !important;
  margin: 0.5rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(46, 82, 102, 0.3) !important;
}

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

.form-control,
.form-select {
  border: 2px solid rgba(46, 82, 102, 0.2) !important;
  border-radius: 12px !important;
  padding: 0.875rem 1.25rem !important;
  font-size: 1rem !important;
  transition: var(--transition) !important;
  background-color: var(--white) !important;
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(127, 179, 211, 0.25) !important;
  background-color: var(--white) !important;
}

.form-control::placeholder {
  color: rgba(31, 41, 55, 0.5) !important;
}

.form-check-input {
  border: 2px solid rgba(46, 82, 102, 0.3) !important;
  cursor: pointer;
  width: 1.25rem;
  height: 1.25rem;
}

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

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

/* Alert */
.alert {
  border-radius: 12px !important;
  border: none !important;
  padding: 1.25rem 1.5rem !important;
  font-weight: 500;
}

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

/* Accordion */
.accordion-item {
  border: none !important;
  margin-bottom: 1rem;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(46, 82, 102, 0.1) !important;
}

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

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  box-shadow: none !important;
}

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

.accordion-button::after {
  filter: brightness(0) invert(0.5);
}

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

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

/* Modal */
.modal-content {
  border-radius: 20px !important;
  border: none !important;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(46, 82, 102, 0.3) !important;
}

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

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

.modal-body {
  padding: 2rem;
  background-color: var(--white);
}

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

.btn-close:hover,
.btn-close-white:hover {
  opacity: 0.8 !important;
}

/* Carousel */
.carousel-item {
  transition: transform 0.8s ease-in-out;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 1 !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-color);
  border-radius: 50%;
  padding: 2rem;
  opacity: 0.8;
  transition: var(--transition);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  opacity: 1;
  transform: scale(1.1);
}

/* Icons */
.bi {
  font-size: 1.25rem;
  vertical-align: middle;
}

.fs-1 { font-size: 3rem !important; }
.fs-2 { font-size: 2.5rem !important; }
.fs-3 { font-size: 2rem !important; }
.fs-4 { font-size: 1.75rem !important; }
.fs-5 { font-size: 1.25rem !important; }

/* Background Colors */
.bg-light {
  background-color: var(--light-gray) !important;
}

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

/* Text Colors */
.text-muted {
  color: rgba(31, 41, 55, 0.6) !important;
}

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

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

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

/* Opacity */
.opacity-75 {
  opacity: 0.75 !important;
}

.opacity-25 {
  opacity: 0.25 !important;
}

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

.position-sticky {
  position: sticky !important;
  top: 100px !important;
}

.fixed-top {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  z-index: 1030 !important;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--dark-gray) 0%, var(--primary-color) 100%);
  color: var(--white) !important;
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

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

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

.list-unstyled {
  padding-left: 0;
  list-style: none;
}

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

/* Border */
.border-bottom {
  border-bottom: 1px solid rgba(46, 82, 102, 0.1) !important;
}

/* Spacing Utilities */
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 3rem !important; }

.g-0 { --bs-gutter-x: 0 !important; }
.g-3 { --bs-gutter-x: 1rem !important; --bs-gutter-y: 1rem !important; }
.g-4 { --bs-gutter-x: 1.5rem !important; --bs-gutter-y: 1.5rem !important; }
.g-5 { --bs-gutter-x: 3rem !important; --bs-gutter-y: 3rem !important; }

/* Responsive Design */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(46, 82, 102, 0.98);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    margin-bottom: 0.5rem;
  }
  
  .display-1 { font-size: 3rem !important; }
  .display-3 { font-size: 2.5rem !important; }
  .display-4 { font-size: 2rem !important; }
  .display-5 { font-size: 1.75rem !important; }
  
  .position-relative.overflow-hidden {
    padding-top: 100px;
  }
  
  .sticky-top, .position-sticky {
    position: relative !important;
    top: 0 !important;
  }
}

@media (max-width: 767px) {
  .display-1 { font-size: 2.5rem !important; }
  .display-3 { font-size: 2rem !important; }
  .display-4 { font-size: 1.75rem !important; }
  .display-5 { font-size: 1.5rem !important; }
  .display-6 { font-size: 1.25rem !important; }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .fs-1 { font-size: 2rem !important; }
  .fs-2 { font-size: 1.75rem !important; }
  .fs-3 { font-size: 1.5rem !important; }
}

@media (max-width: 575px) {
  html { font-size: 14px; }
  
  .container-fluid.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .btn {
    font-size: 0.875rem !important;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
}

/* Smooth Scroll */
@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

/* Loading Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Hover Effects */
.hover-lift {
  transition: var(--transition);
}

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

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

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

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

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

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

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

/* 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 */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--secondary-color) !important;
  outline-offset: 2px !important;
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
}

/* Dark Elements */
.navbar-dark,
.bg-dark {
  background-color: var(--primary-color) !important;
}

/* Link Styles */
a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

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

/* Container Adjustments */
.container,
.container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

/* Additional Utilities */
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.ms-auto { margin-left: auto !important; }
.me-auto { margin-right: auto !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.flex-wrap { flex-wrap: wrap !important; }
.text-center { text-align: center !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.overflow-hidden { overflow: hidden !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.end-0 { right: 0 !important; }