/* Arctic Pine Architecture Studio - Custom Styles */

:root {
  --primary-color: #2C5F4E;
  --secondary-color: #F4F6F2;
  --accent-color: #3D7A65;
  --dark-text: #1a1a1a;
  --light-text: #666666;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

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

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

/* Typography */
.display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-color) !important;
  line-height: 1.2;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--light-text) !important;
}

/* Navbar Styles */
.navbar {
  background: rgba(44, 95, 78, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  background: rgba(44, 95, 78, 1) !important;
  padding: 0.5rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

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

.navbar-dark .navbar-nav .nav-link {
  color: var(--secondary-color) !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.2rem;
  transition: var(--transition);
  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: var(--transition);
  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: var(--white) !important;
  transform: translateY(-2px);
}

.navbar-toggler {
  border: 2px solid var(--secondary-color) !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(244, 246, 242, 0.3) !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(244, 246, 242, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Hero Section */
.position-relative.w-100.h-100 {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, #234a3c 100%);
  position: relative;
  overflow: hidden;
}

.position-relative.w-100.h-100::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.position-absolute.top-0.start-0 {
  z-index: 1;
}

/* Buttons */
.btn {
  font-weight: 600 !important;
  border-radius: 8px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  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 {
  padding: 1rem 2.5rem !important;
  font-size: 1rem !important;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(44, 95, 78, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-color) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(44, 95, 78, 0.4);
}

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

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

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

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

/* Cards */
.card {
  border-radius: 12px;
  transition: var(--transition);
  background-color: var(--white) !important;
  overflow: hidden;
}

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

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

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

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

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

.card-body {
  padding: 1.5rem;
}

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

.card-text {
  color: var(--light-text) !important;
  line-height: 1.7;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  height: 400px;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(44, 95, 78, 0.95) 0%, rgba(44, 95, 78, 0.3) 50%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--white) !important;
}

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

.portfolio-item:hover img {
  transform: scale(1.15);
}

.portfolio-overlay h3,
.portfolio-overlay h4,
.portfolio-overlay h5,
.portfolio-overlay p {
  color: var(--white) !important;
  transform: translateY(20px);
  transition: var(--transition);
  transition-delay: 0.1s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay h4,
.portfolio-item:hover .portfolio-overlay h5,
.portfolio-item:hover .portfolio-overlay p {
  transform: translateY(0);
}

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

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

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

.shadow {
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1) !important;
}

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

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

/* Forms */
.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  background-color: var(--white) !important;
  color: var(--dark-text) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(44, 95, 78, 0.15) !important;
  background-color: var(--white) !important;
}

.form-control-lg,
.form-select-lg {
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
}

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

/* Badge */
.badge {
  font-weight: 600;
  padding: 0.5rem 1rem;
}

.badge.rounded-pill {
  border-radius: 50px !important;
}

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

/* Progress Bar */
.progress {
  height: 10px;
  border-radius: 10px;
  background-color: rgba(44, 95, 78, 0.1) !important;
  overflow: hidden;
}

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

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

.bi-chat-dots,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt-fill,
.bi-send-fill,
.bi-pin-map-fill,
.bi-building,
.bi-geo-alt,
.bi-clock,
.bi-question-circle,
.bi-facebook,
.bi-instagram,
.bi-linkedin,
.bi-telephone,
.bi-envelope,
.bi-check-circle-fill {
  color: inherit;
}

.d-inline-flex {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

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

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

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

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

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

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

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

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

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

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

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

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

/* Opacity */
.opacity-10 {
  opacity: 0.1 !important;
}

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

.opacity-75 {
  opacity: 0.75 !important;
}

.opacity-90 {
  opacity: 0.9 !important;
}

/* Sections */
section {
  position: relative;
  overflow: hidden;
}

.py-5 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

.py-4 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

/* Ratio */
.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.object-fit-cover {
  object-fit: cover !important;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden !important;
}

/* Border */
.border-0 {
  border: 0 !important;
}

.border-top {
  border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Footer */
footer {
  background-color: var(--primary-color) !important;
  color: var(--secondary-color) !important;
  padding: 3rem 0 1rem;
}

footer a {
  color: var(--secondary-color) !important;
  text-decoration: none;
  transition: var(--transition);
}

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

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

footer h4,
footer h5 {
  color: var(--white) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

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

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

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

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

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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

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

/* Mobile Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 95, 78, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2.2rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.8rem !important;
  }
  
  .display-6 {
    font-size: 1.5rem !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 0.95rem !important;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .portfolio-item {
    height: 300px;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .sticky-top {
    top: 60px;
  }
}

@media (max-width: 767.98px) {
  .container-fluid.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .position-relative.w-100.h-100 {
    min-height: 80vh;
  }
}

@media (max-width: 575.98px) {
  .display-2 {
    font-size: 2rem !important;
  }
  
  .fs-4 {
    font-size: 1rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .portfolio-item {
    height: 250px;
  }
}

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

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

/* Loading State */
.loading {
  pointer-events: none;
  opacity: 0.6;
}

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

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

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

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

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

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

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

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

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

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

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

/* Additional Utility Classes */
.gap-3 {
  gap: 1rem !important;
}

.g-0 {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.g-5 {
  --bs-gutter-x: 3rem;
  --bs-gutter-y: 3rem;
}

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

.flex-wrap {
  flex-wrap: wrap !important;
}

.flex-column {
  flex-direction: column !important;
}

.align-items-center {
  align-items: center !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.align-items-end {
  align-items: flex-end !important;
}

.align-items-stretch {
  align-items: stretch !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

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

.fw-semibold {
  font-weight: 600 !important;
}

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

.text-center {
  text-align: center !important;
}

.text-start {
  text-align: left !important;
}

.text-lg-end {
  text-align: right !important;
}

@media (max-width: 991.98px) {
  .text-lg-end {
    text-align: left !important;
  }
}

/* Enhanced Visual Elements */
.bg-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
  pointer-events: none;
}

/* Contact Icons Styling */
.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt-fill {
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  margin-right: 1rem;
}

/* Social Media Icons */
.bi-facebook,
.bi-instagram,
.bi-linkedin {
  font-size: 1.5rem;
  transition: var(--transition);
}

.bi-facebook:hover,
.bi-instagram:hover,
.bi-linkedin:hover {
  transform: scale(1.2) translateY(-3px);
  color: var(--white) !important;
}