/* Nordic Stone Architecture Studio - CSS */

/* ============================================
   ROOT VARIABLES & BOOTSTRAP OVERRIDES
   ============================================ */
:root {
  --primary-color: #2E3440;
  --secondary-color: #88C0D0;
  --accent-light: #D8DEE9;
  --accent-dark: #4C566A;
  --stone-gray: #ECEFF4;
  --nordic-white: #F7F9FC;
  --transition-speed: 0.3s;
  --shadow-sm: 0 2px 8px rgba(46, 52, 64, 0.08);
  --shadow-md: 0 4px 16px rgba(46, 52, 64, 0.12);
  --shadow-lg: 0 8px 32px rgba(46, 52, 64, 0.16);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--primary-color) !important;
  background-color: var(--nordic-white) !important;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: var(--primary-color) !important;
}

.display-3 {
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
}

.display-4 {
  font-size: clamp(2rem, 4vw, 3.5rem) !important;
}

.display-5 {
  font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
}

.display-6 {
  font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
}

/* ============================================
   NAVBAR STYLES
   ============================================ */
.navbar {
  background: linear-gradient(180deg, rgba(46, 52, 64, 0.95) 0%, rgba(46, 52, 64, 0.85) 100%) !important;
  backdrop-filter: blur(10px);
  transition: all var(--transition-speed) ease;
  z-index: 1000;
  padding: 1rem 0 !important;
}

.navbar.scrolled {
  background: rgba(46, 52, 64, 0.98) !important;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  color: #ffffff !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  transition: all var(--transition-speed) ease;
}

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

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

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

.nav-link:hover {
  color: #ffffff !important;
}

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

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

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

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

/* ============================================
   PARALLAX HERO & CAROUSEL
   ============================================ */
.parallax-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.carousel {
  height: 100%;
  width: 100%;
}

.carousel-inner,
.carousel-item {
  height: 100%;
}

.carousel-item {
  transition: transform 1.5s ease, opacity 1.5s ease !important;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition-duration: 1.5s;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  filter: brightness(0.7);
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(46, 52, 64, 0.4) 0%, rgba(46, 52, 64, 0.7) 100%);
  z-index: 1;
}

.carousel .d-flex {
  position: relative;
  z-index: 2;
  height: 100%;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  font-weight: 600 !important;
  letter-spacing: 0.03em;
  transition: all var(--transition-speed) ease !important;
  border: none !important;
  text-transform: uppercase;
  font-size: 0.9rem !important;
}

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

.btn-primary {
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  box-shadow: 0 4px 12px rgba(136, 192, 208, 0.3) !important;
}

.btn-primary:hover {
  background-color: #6FB0C0 !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(136, 192, 208, 0.4) !important;
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  color: #ffffff !important;
  background-color: transparent !important;
}

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

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

.btn-light:hover {
  background-color: var(--secondary-color) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

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

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

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

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

/* ============================================
   CARDS
   ============================================ */
.card {
  border: none !important;
  border-radius: 12px !important;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  background-color: #ffffff !important;
}

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

.card-img-top {
  transition: transform 0.5s ease;
  height: 250px;
  object-fit: cover;
}

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

.card-body {
  padding: 1.5rem !important;
}

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

.team-card {
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(46, 52, 64, 0.9) 100%);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  z-index: 1;
}

.team-card:hover::before {
  opacity: 1;
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 100%;
}

.portfolio-card img {
  transition: transform 0.6s ease;
  width: 100%;
  height: 350px;
  object-fit: cover;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(46, 52, 64, 0.1) 0%, rgba(46, 52, 64, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: #ffffff !important;
  transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
  background: linear-gradient(180deg, rgba(136, 192, 208, 0.3) 0%, rgba(46, 52, 64, 0.98) 100%);
}

.portfolio-overlay h4,
.portfolio-overlay .h4 {
  color: #ffffff !important;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.portfolio-overlay p,
.portfolio-overlay .small {
  color: rgba(255, 255, 255, 0.9) !important;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

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

.filter-btn {
  transition: all var(--transition-speed) ease;
}

.filter-btn.active {
  transform: translateY(-2px);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.02em;
  transition: all var(--transition-speed) ease;
}

.badge:hover {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

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

/* ============================================
   FORMS
   ============================================ */
.form-control,
.form-select {
  border: 2px solid var(--accent-light) !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: all var(--transition-speed) ease !important;
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(136, 192, 208, 0.15) !important;
  outline: none !important;
}

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

.form-check-input {
  border: 2px solid var(--accent-light) !important;
  transition: all var(--transition-speed) ease !important;
}

.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.25rem rgba(136, 192, 208, 0.15) !important;
}

.form-check-label {
  color: var(--primary-color) !important;
  font-weight: 500 !important;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
  border: none !important;
  border-radius: 8px !important;
  padding: 1rem 1.5rem !important;
  font-weight: 500 !important;
  border-left: 4px solid !important;
}

.alert-success {
  background-color: rgba(136, 192, 208, 0.15) !important;
  color: var(--primary-color) !important;
  border-left-color: var(--secondary-color) !important;
}

.alert-danger {
  background-color: rgba(191, 97, 106, 0.15) !important;
  color: var(--primary-color) !important;
  border-left-color: #BF616A !important;
}

/* ============================================
   MODAL
   ============================================ */
.modal-content {
  border: none !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

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

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

.modal-footer {
  border-top: 1px solid var(--accent-light) !important;
  padding: 1.5rem 2rem !important;
  background-color: #ffffff !important;
}

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

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

/* ============================================
   ACCORDION
   ============================================ */
.accordion {
  border-radius: 8px;
  overflow: hidden;
}

.accordion-item {
  border: none !important;
  border-bottom: 1px solid var(--accent-light) !important;
  background-color: #ffffff !important;
}

.accordion-item:last-child {
  border-bottom: none !important;
}

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

.accordion-button:not(.collapsed) {
  background-color: var(--stone-gray) !important;
  color: var(--primary-color) !important;
}

.accordion-button::after {
  filter: brightness(0) saturate(100%) invert(15%) sepia(13%) saturate(1011%) hue-rotate(185deg) brightness(95%) contrast(90%);
}

.accordion-button:hover {
  background-color: var(--stone-gray) !important;
}

.accordion-body {
  padding: 1.5rem !important;
  background-color: #ffffff !important;
  color: var(--accent-dark) !important;
}

.accordion-collapse {
  border: none !important;
}

/* ============================================
   PROGRESS BARS
   ============================================ */
.progress {
  height: 8px !important;
  border-radius: 10px !important;
  background-color: var(--accent-light) !important;
  overflow: hidden;
}

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

/* ============================================
   BOOTSTRAP ICONS
   ============================================ */
.bi {
  transition: all var(--transition-speed) ease;
}

.bi-plus-circle,
.bi-check-circle-fill,
.bi-trophy-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-linkedin,
.bi-instagram,
.bi-twitter,
.bi-geo-alt-fill,
.bi-calendar-fill,
.bi-building,
.bi-tree,
.bi-lightning-charge-fill,
.bi-droplet-fill,
.bi-recycle,
.bi-award-fill,
.bi-patch-check-fill,
.bi-house-check-fill,
.bi-globe-americas,
.bi-building-check,
.bi-heart-pulse-fill,
.bi-award {
  color: var(--secondary-color) !important;
}

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

/* ============================================
   TEXT COLORS
   ============================================ */
.text-white {
  color: #ffffff !important;
}

.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6,
.text-white .display-1,
.text-white .display-2,
.text-white .display-3,
.text-white .display-4,
.text-white .display-5,
.text-white .display-6 {
  color: #ffffff !important;
}

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

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

.lead {
  font-size: 1.15rem !important;
  font-weight: 400 !important;
  line-height: 1.8;
  color: var(--accent-dark) !important;
}

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

/* ============================================
   BACKGROUNDS
   ============================================ */
.bg-light {
  background-color: var(--stone-gray) !important;
}

section {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
}

/* ============================================
   POSITIONING & LAYOUT
   ============================================ */
.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

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

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

.overflow-hidden {
  overflow: hidden !important;
}

/* ============================================
   BORDERS & SHADOWS
   ============================================ */
.border-top {
  border-top: 1px solid var(--accent-light) !important;
}

.border-start {
  border-left: 1px solid var(--accent-light) !important;
}

.border-3 {
  border-width: 3px !important;
}

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

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

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

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

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

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

/* ============================================
   LINKS
   ============================================ */
a {
  color: var(--secondary-color) !important;
  text-decoration: none !important;
  transition: all var(--transition-speed) ease;
}

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

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

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

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

/* ============================================
   LISTS
   ============================================ */
.list-unstyled {
  list-style: none !important;
  padding-left: 0 !important;
}

.list-unstyled li {
  padding: 0.5rem 0;
}

/* ============================================
   IMAGES
   ============================================ */
.img-fluid {
  max-width: 100%;
  height: auto;
}

img {
  vertical-align: middle;
}

/* ============================================
   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(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

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

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

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

/* ============================================
   UTILITIES
   ============================================ */
.fst-italic {
  font-style: italic !important;
}

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

.gap-2 {
  gap: 0.5rem !important;
}

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

.gap-4 {
  gap: 1.5rem !important;
}

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

.gap-lg-4 {
  gap: 0 !important;
}

@media (min-width: 992px) {
  .gap-lg-4 {
    gap: 1.5rem !important;
  }
}

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

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

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
  width: 10px;
}

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

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

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

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 575.98px) {
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .parallax-hero {
    height: 80vh;
    min-height: 500px;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 0.95rem !important;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .portfolio-card img {
    height: 250px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .parallax-hero {
    height: 85vh;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .parallax-hero {
    height: 90vh;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(46, 52, 64, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .position-sticky {
    position: relative !important;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .navbar,
  .btn,
  .modal,
  .carousel,
  footer {
    display: none !important;
  }
  
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }
  
  a {
    text-decoration: underline !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 {
  outline: 2px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

/* ============================================
   ADDITIONAL NORDIC STONE ELEMENTS
   ============================================ */
.stone-texture {
  position: relative;
}

.stone-texture::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" /%3E%3C/filter%3E%3Crect width="100" height="100" filter="url(%23noise)" opacity="0.03" /%3E%3C/svg%3E');
  pointer-events: none;
}

.nordic-divider {
  height: 3px;
  width: 80px;
  background-color: var(--secondary-color);
  margin: 2rem auto;
}

.section-title-wrapper {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 3rem;
}

.section-title-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

/* ============================================
   HOVER EFFECTS FOR INTERACTIVE ELEMENTS
   ============================================ */
.hover-lift {
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

/* ============================================
   LOADING ANIMATION
   ============================================ */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--accent-light);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ============================================
   END OF NORDIC STONE ARCHITECTURE STYLES
   ============================================ */