/* Nordic Stone Architecture Studio - CSS */

/* ========================================
   CSS VARIABLES & ROOT
   ======================================== */
:root {
  --primary-color: #2E3440;
  --secondary-color: #88C0D0;
  --accent-light: #D8DEE9;
  --accent-dark: #3B4252;
  --text-light: #ECEFF4;
  --text-dark: #2E3440;
  --stone-gray: #4C566A;
  --nordic-white: #E5E9F0;
  --transition-speed: 0.3s;
  --box-shadow: 0 10px 40px rgba(46, 52, 64, 0.15);
}

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

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark) !important;
  background-color: #FAFAFA;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--stone-gray) 100%);
  position: relative;
  min-height: 100vh;
}

.vh-100 {
  min-height: 100vh;
}

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

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

.overflow-hidden {
  overflow: hidden;
}

.object-fit-cover {
  object-fit: cover;
  filter: brightness(0.7) grayscale(0.2);
  transition: all 0.5s ease;
}

.object-fit-cover:hover {
  filter: brightness(0.8) grayscale(0.1);
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
    rgba(46, 52, 64, 0.7) 0%, 
    rgba(46, 52, 64, 0.85) 100%);
  z-index: 1;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  background: transparent;
  transition: all 0.4s ease;
  z-index: 1000;
  padding: 1rem 0;
}

.navbar.scrolled,
.navbar-dark {
  background: var(--primary-color) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.navbar-expand-lg {
  flex-wrap: nowrap;
  justify-content: flex-start;
}

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

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

.navbar-toggler {
  border: 2px solid #FFFFFF !important;
  padding: 0.5rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(136, 192, 208, 0.5) !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;
}

.navbar-collapse {
  flex-grow: 1;
}

.navbar-nav {
  align-items: center;
}

.nav-item {
  margin: 0 0.5rem;
}

.nav-link {
  color: #FFFFFF !important;
  font-weight: 500 !important;
  font-size: 1rem;
  padding: 0.5rem 1rem !important;
  border-radius: 4px;
  transition: all var(--transition-speed) ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color) !important;
  background-color: rgba(136, 192, 208, 0.15) !important;
  transform: translateY(-2px);
}

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

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
}

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

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

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

.btn-primary:hover {
  background-color: #6FAFBD !important;
  border-color: #6FAFBD !important;
  color: #FFFFFF !important;
}

.btn-outline-light {
  border: 2px solid #FFFFFF !important;
  color: #FFFFFF !important;
  background: transparent !important;
}

.btn-outline-light:hover {
  background: #FFFFFF !important;
  color: var(--primary-color) !important;
  border-color: #FFFFFF !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: #FFFFFF !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(--primary-color) !important;
}

/* ========================================
   FILTER BUTTONS
   ======================================== */
.filter-btn {
  background: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 52, 64, 0.3);
}

/* ========================================
   HERO CONTENT
   ======================================== */
.top-50 {
  top: 50% !important;
}

.start-50 {
  left: 50% !important;
}

.translate-middle {
  transform: translate(-50%, -50%) !important;
}

.translate-middle-x {
  transform: translateX(-50%) !important;
}

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

.text-uppercase {
  text-transform: uppercase !important;
}

.display-1 {
  font-size: calc(3rem + 3vw) !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -2px;
  animation: fadeInUp 1s ease-out;
}

.display-3 {
  font-size: calc(2rem + 2vw) !important;
  font-weight: 700 !important;
}

.display-4 {
  font-size: calc(1.8rem + 1.5vw) !important;
  font-weight: 700 !important;
}

.display-5 {
  font-size: calc(1.5rem + 1vw) !important;
  font-weight: 700 !important;
}

.display-6 {
  font-size: calc(1.2rem + 0.8vw) !important;
  font-weight: 700 !important;
}

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

/* ========================================
   SPACING UTILITIES
   ======================================== */
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.ps-2 { padding-left: 0.5rem !important; }
.pe-lg-5 { padding-right: 3rem !important; }
.ps-lg-5 { padding-left: 3rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-lg-0 { margin-bottom: 0 !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-auto { margin-left: auto !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.me-4 { margin-right: 1.5rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* ========================================
   DISPLAY & FLEX UTILITIES
   ======================================== */
.d-flex { display: flex !important; }
.d-block { display: block !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-lg-4 { gap: 1.5rem !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-column { flex-direction: column !important; }
.flex-grow-1 { flex-grow: 1 !important; }

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

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* ========================================
   GRID SYSTEM
   ======================================== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.g-0 { margin: 0 !important; }
.g-0 > * { padding: 0 !important; }
.g-3 { gap: 1rem !important; }
.g-4 { gap: 1.5rem !important; }

[class*='col-'] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-md-12 { flex: 0 0 100%; max-width: 100%; }
.col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-lg-3 { flex: 0 0 25%; max-width: 25%; }
.col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-lg-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-lg-9 { flex: 0 0 75%; max-width: 75%; }
.col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.offset-lg-1 { margin-left: 8.333333%; }
.offset-lg-2 { margin-left: 16.666667%; }
.col-sm-6 { flex: 0 0 50%; max-width: 50%; }

/* ========================================
   CARDS
   ======================================== */
.card {
  background: #FFFFFF;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 5px 25px rgba(46, 52, 64, 0.08);
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(46, 52, 64, 0.15);
}

.card-body {
  padding: 2rem;
}

/* ========================================
   PORTFOLIO
   ======================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  height: 350px;
  box-shadow: 0 5px 25px rgba(46, 52, 64, 0.1);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(46, 52, 64, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  transition: all 0.4s ease;
}

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

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

.portfolio-overlay h4,
.portfolio-overlay p {
  color: #FFFFFF !important;
  margin: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.1s;
}

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

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

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

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

.shadow-sm {
  box-shadow: 0 2px 10px rgba(46, 52, 64, 0.08) !important;
}

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

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

/* ========================================
   TYPOGRAPHY
   ======================================== */
.h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color) !important;
}

.h5 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color) !important;
}

.fs-1 { font-size: 2.5rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fw-bold { font-weight: 700 !important; }
.small { font-size: 0.875rem; }
.text-muted { color: #6c757d !important; }
.text-white { color: #FFFFFF !important; }
.text-decoration-none { text-decoration: none !important; }
.text-lg-end { text-align: right !important; }
.text-md-start { text-align: left !important; }
.text-md-end { text-align: right !important; }

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

.list-unstyled li {
  padding: 0.5rem 0;
  color: var(--text-dark) !important;
}

/* ========================================
   NAV
   ======================================== */
.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

/* ========================================
   ACCORDION
   ======================================== */
.accordion {
  --bs-accordion-border-color: transparent;
}

.accordion-item {
  background: #FFFFFF;
  border: none !important;
  margin-bottom: 1rem;
  border-radius: 12px !important;
  overflow: hidden;
}

.accordion-header {
  margin-bottom: 0;
}

.accordion-button {
  background: var(--primary-color) !important;
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1.5rem;
  border: none;
  box-shadow: none !important;
  transition: all 0.3s ease;
}

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

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

.accordion-button.collapsed {
  background: var(--primary-color) !important;
  color: #FFFFFF !important;
}

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

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

.accordion-collapse {
  border: none;
}

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

/* ========================================
   ALERTS
   ======================================== */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border: none;
  margin-bottom: 1rem;
}

.alert-success {
  background: #A3D9A5 !important;
  color: var(--primary-color) !important;
}

.alert-danger {
  background: #EBCCD1 !important;
  color: var(--primary-color) !important;
}

/* ========================================
   FORMS
   ======================================== */
.form-label {
  font-weight: 600;
  color: var(--primary-color) !important;
  margin-bottom: 0.5rem;
  display: block;
}

.form-control,
.form-select {
  padding: 0.75rem 1rem;
  border: 2px solid #E5E9F0;
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--text-dark) !important;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

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

.form-control::placeholder {
  color: #9BA3B0;
}

.form-check {
  display: flex;
  align-items: center;
  padding-left: 0;
  margin-bottom: 0.5rem;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  border: 2px solid var(--primary-color);
  cursor: pointer;
}

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

.form-check-label {
  color: var(--text-dark) !important;
  cursor: pointer;
  margin-bottom: 0;
}

/* ========================================
   PROGRESS BARS
   ======================================== */
.progress {
  height: 10px;
  border-radius: 10px;
  background: #E5E9F0;
  overflow: hidden;
}

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

.progress-bar-striped {
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 1rem 1rem;
}

.progress-bar-animated {
  animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
  0% { background-position: 1rem 0; }
  100% { background-position: 0 0; }
}

/* ========================================
   METRICS COUNTER
   ======================================== */
.metric-counter {
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary-color) !important;
  line-height: 1;
  display: block;
}

/* ========================================
   BOOTSTRAP ICONS
   ======================================== */
[class^='bi-'],
[class*=' bi-'] {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-instagram,
.bi-linkedin,
.bi-facebook,
.bi-building,
.bi-house-door,
.bi-check-circle-fill,
.bi-brightness-high,
.bi-grid-3x3,
.bi-hammer,
.bi-map,
.bi-chat-dots,
.bi-geo-alt,
.bi-telephone,
.bi-envelope,
.bi-lightning-charge-fill,
.bi-droplet-fill,
.bi-cloud-fog2-fill,
.bi-recycle,
.bi-arrow-right,
.bi-graph-up,
.bi-sun-fill,
.bi-thermometer-half,
.bi-tree-fill,
.bi-wind,
.bi-layers-fill,
.bi-water,
.bi-brightness-high-fill,
.bi-gear-fill,
.bi-pinterest,
.bi-twitter-x {
  font-size: 1.2rem;
}

/* ========================================
   FOOTER SOCIAL LINKS
   ======================================== */
footer a {
  color: var(--text-light) !important;
  transition: all 0.3s ease;
}

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

footer {
  background: var(--primary-color);
  color: var(--text-light) !important;
  padding: 3rem 0 1rem;
}

footer h5,
footer h6 {
  color: #FFFFFF !important;
}

footer p,
footer li {
  color: var(--text-light) !important;
}

/* ========================================
   POSITIONING
   ======================================== */
.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

/* ========================================
   ORDER UTILITIES
   ======================================== */
.order-lg-1 { order: 1; }
.order-lg-2 { order: 2; }

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@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.8s ease-out;
}

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

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

/* ========================================
   SCROLL REVEAL ANIMATION
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1199.98px) {
  .display-1 { font-size: 3.5rem !important; }
  .display-3 { font-size: 2.5rem !important; }
  .px-lg-5 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
  .pe-lg-5 { padding-right: 1.5rem !important; }
  .ps-lg-5 { padding-left: 1.5rem !important; }
  .gap-lg-4 { gap: 1rem !important; }
  .mb-lg-0 { margin-bottom: 1rem !important; }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--primary-color);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .navbar-nav {
    gap: 0.5rem !important;
  }
  
  .nav-item {
    margin: 0;
  }
  
  .display-1 { font-size: 3rem !important; }
  .display-3 { font-size: 2rem !important; }
  .display-4 { font-size: 1.8rem !important; }
  
  section { padding: 60px 0; }
  
  .col-lg-2,
  .col-lg-3,
  .col-lg-4,
  .col-lg-5,
  .col-lg-6,
  .col-lg-7,
  .col-lg-8,
  .col-lg-9,
  .col-lg-10 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .offset-lg-1,
  .offset-lg-2 {
    margin-left: 0;
  }
  
  .order-lg-1,
  .order-lg-2 {
    order: 0;
  }
  
  .text-lg-end {
    text-align: center !important;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .mt-lg-0 { margin-top: 1.5rem !important; }
}

@media (max-width: 767.98px) {
  .display-1 { font-size: 2.5rem !important; }
  .display-3 { font-size: 1.8rem !important; }
  .display-4 { font-size: 1.5rem !important; }
  .display-5 { font-size: 1.3rem !important; }
  .display-6 { font-size: 1.1rem !important; }
  
  .btn-lg { padding: 0.75rem 2rem; font-size: 0.95rem; }
  
  section { padding: 40px 0; }
  
  .col-md-3,
  .col-md-4,
  .col-md-5,
  .col-md-6,
  .col-md-7,
  .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .mt-md-0 { margin-top: 1.5rem !important; }
  .mb-md-0 { margin-bottom: 0 !important; }
  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .portfolio-item {
    height: 300px;
  }
  
  .metric-counter {
    font-size: 2.5rem;
  }
  
  .card-body { padding: 1.5rem; }
  .accordion-button { font-size: 1rem; padding: 1rem; }
  .accordion-body { padding: 1rem; }
}

@media (max-width: 575.98px) {
  .col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .display-1 { font-size: 2rem !important; }
  .btn { padding: 0.6rem 1.5rem; font-size: 0.9rem; }
  .btn-lg { padding: 0.7rem 1.8rem; font-size: 0.9rem; }
  
  .px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
  .px-5 { padding-left: 1rem !important; padding-right: 1rem !important; }
  
  .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  
  .portfolio-item { height: 250px; }
  .metric-counter { font-size: 2rem; }
}

/* ========================================
   UTILITY OVERRIDES
   ======================================== */
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-light { background-color: var(--nordic-white) !important; }
.bg-dark { background-color: var(--primary-color) !important; }

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

.border-0 { border: 0 !important; }
.border { border: 1px solid #E5E9F0 !important; }

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

::-webkit-scrollbar-track {
  background: var(--nordic-white);
}

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

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

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

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

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