/* Nordic Steel Architecture Studio - Custom Styles */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #2E3440;
  --secondary-color: #88C0D0;
  --light-bg: #ECEFF4;
  --dark-bg: #2E3440;
  --text-light: #FFFFFF;
  --text-dark: #2E3440;
  --accent-1: #5E81AC;
  --accent-2: #81A1C1;
  --accent-3: #A3BE8C;
  --shadow: rgba(46, 52, 64, 0.15);
  --transition: all 0.3s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-color) !important;
}

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

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== NAVBAR STYLES ===== */
.navbar {
  background-color: var(--primary-color) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 20px var(--shadow);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(46, 52, 64, 0.98) !important;
}

.navbar-brand {
  font-size: 1.5rem !important;
  color: var(--text-light) !important;
  letter-spacing: 0.05em;
  font-weight: 800 !important;
  transition: var(--transition);
}

.navbar-brand:hover {
  color: var(--secondary-color) !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.25rem rgba(136, 192, 208, 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='%2388C0D0' 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.85) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1.25rem !important;
  margin: 0 0.25rem;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  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 SECTION ===== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-1) 100%);
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-image {
  opacity: 0.2;
  z-index: 1;
  object-fit: cover !important;
  filter: grayscale(100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light) !important;
}

.hero-content .display-1 {
  color: var(--text-light) !important;
  font-size: clamp(2.5rem, 8vw, 5rem) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem !important;
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: clamp(1rem, 2vw, 1.5rem);
  max-width: 700px;
  margin: 0 auto 3rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===== BUTTONS ===== */
.btn {
  font-weight: 600 !important;
  letter-spacing: 0.03em;
  border-radius: 8px;
  transition: var(--transition);
  border: 2px solid transparent !important;
}

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

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

.btn-primary:hover {
  background-color: var(--accent-2) !important;
  border-color: var(--accent-2) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(136, 192, 208, 0.4) !important;
}

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

.btn-outline-light:hover {
  background-color: var(--text-light) !important;
  color: var(--primary-color) !important;
  border-color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3) !important;
}

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

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

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

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

.learn-more-btn {
  position: relative;
  overflow: hidden;
}

.learn-more-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(136, 192, 208, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

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

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

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

@keyframes bounce {
  0%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  50% {
    transform: translateY(-15px) translateX(-50%);
  }
}

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

.animate-slide-up {
  animation: slideUp 1s ease-out 0.3s forwards;
  opacity: 0;
}

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

/* ===== CARDS & SECTIONS ===== */
.card {
  border: none !important;
  border-radius: 12px !important;
  transition: var(--transition);
  background-color: #FFFFFF !important;
  overflow: hidden;
}

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

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

.service-card {
  height: 100%;
  cursor: pointer;
  border-left: 4px solid var(--secondary-color) !important;
}

.service-card:hover {
  border-left-color: var(--accent-1) !important;
}

.service-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #FFFFFF;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.service-item:hover::before {
  opacity: 0.8;
}

.service-item .card-body {
  position: relative;
  z-index: 2;
}

/* ===== SECTIONS ===== */
section {
  padding: 80px 0;
  position: relative;
}

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

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

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

.bg-white {
  background-color: #FFFFFF !important;
}

/* ===== FORMS ===== */
.form-control,
.form-select {
  border: 2px solid rgba(46, 52, 64, 0.2) !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: var(--transition);
  background-color: #FFFFFF !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(136, 192, 208, 0.25) !important;
  background-color: #FFFFFF !important;
}

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

.form-control::placeholder {
  color: rgba(46, 52, 64, 0.5) !important;
}

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

/* ===== ICONS ===== */
.bi {
  display: inline-block;
  vertical-align: middle;
  font-size: 1.2rem;
}

.bi-lg {
  font-size: 2rem;
}

.bi-xl {
  font-size: 3rem;
}

/* ===== SHADOWS ===== */
.shadow {
  box-shadow: 0 10px 30px var(--shadow) !important;
}

.shadow-lg {
  box-shadow: 0 20px 60px var(--shadow) !important;
}

.shadow-sm {
  box-shadow: 0 2px 10px var(--shadow) !important;
}

/* ===== ROUNDED ===== */
.rounded {
  border-radius: 12px !important;
}

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

/* ===== TEXT STYLES ===== */
.text-white {
  color: var(--text-light) !important;
}

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

.text-muted {
  color: rgba(46, 52, 64, 0.6) !important;
}

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

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

/* ===== FILTER BUTTONS ===== */
.filter-btn {
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  background-color: transparent !important;
  padding: 0.5rem 1.5rem !important;
  margin: 0.25rem !important;
  border-radius: 25px !important;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  transform: scale(1.05);
}

/* ===== MASONRY GRID ===== */
.masonry-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

.masonry-grid .service-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

/* ===== MODAL ===== */
.modal-content {
  border-radius: 16px !important;
  border: none !important;
  overflow: hidden;
}

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

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

.modal-body {
  padding: 2rem !important;
}

.btn-close,
.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%) !important;
  opacity: 1 !important;
}

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

/* ===== FOOTER ===== */
footer {
  background-color: var(--primary-color) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 3rem 0 1rem;
}

footer h6,
footer .h6 {
  color: var(--text-light) !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
}

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

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

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

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

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

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

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

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

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

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

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

/* ===== SPACING UTILITIES ===== */
.gap-2 {
  gap: 0.5rem !important;
}

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

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

.g-0 {
  --bs-gutter-x: 0 !important;
  --bs-gutter-y: 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;
}

/* ===== SCROLL BEHAVIOR ===== */
html {
  scroll-behavior: smooth;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .display-1 {
    font-size: 4rem !important;
  }
  
  .display-3 {
    font-size: 3rem !important;
  }
  
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 992px) {
  .navbar-collapse {
    background-color: rgba(46, 52, 64, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .hero-section {
    min-height: 80vh;
    padding: 100px 0 60px;
  }
  
  section {
    padding: 60px 0;
  }
  
  .display-1 {
    font-size: 3rem !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
}

@media (max-width: 768px) {
  .masonry-grid {
    column-count: 1;
  }
  
  .hero-section {
    min-height: 70vh;
    padding: 80px 0 40px;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  section {
    padding: 40px 0;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

@media (max-width: 576px) {
  .display-1 {
    font-size: 2rem !important;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .display-4 {
    font-size: 1.5rem !important;
  }
  
  .btn-lg {
    padding: 0.65rem 1.5rem !important;
    font-size: 0.95rem !important;
  }
  
  .hero-content .lead {
    font-size: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem !important;
  }
}

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

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

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

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

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

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

/* ===== FOCUS STYLES ===== */
*:focus {
  outline: 2px solid var(--secondary-color) !important;
  outline-offset: 2px !important;
}

/* ===== LOADING ANIMATION ===== */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== IMAGE HOVER EFFECTS ===== */
.img-fluid {
  transition: var(--transition);
}

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

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

/* ===== FLEX UTILITIES ===== */
.d-flex {
  display: flex !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;
}

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

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

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

.justify-content-between {
  justify-content: space-between !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-width: 0;
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}