/* Nordic Frost Architecture Studio - Custom Styles */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #2E3440;
  --secondary-color: #5E81AC;
  --accent-color: #88C0D0;
  --light-color: #ECEFF4;
  --white-color: #FFFFFF;
  --dark-overlay: rgba(46, 52, 64, 0.85);
  --transition-speed: 0.3s;
  --border-radius: 8px;
}

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

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

/* ===== NAVIGATION ===== */
.navbar {
  background-color: var(--primary-color) !important;
  box-shadow: 0 2px 20px rgba(46, 52, 64, 0.1);
  padding: 1rem 0 !important;
  transition: all var(--transition-speed) ease;
}

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

.navbar-brand {
  color: var(--white-color) !important;
  font-size: 1.5rem !important;
  letter-spacing: 2px;
  transition: all var(--transition-speed) ease;
}

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

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

.navbar-toggler {
  border-color: var(--white-color) !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(94, 129, 172, 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-nav {
  align-items: center;
}

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

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

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

.nav-link:hover {
  color: var(--accent-color) !important;
}

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

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

/* ===== HERO SECTION ===== */
.position-relative {
  position: relative !important;
}

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

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

.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,100 L50,120 L100,80 L150,140 L200,100 L250,160 L300,120 L1200,180 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.03)"/></svg>');
  background-size: cover;
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.parallax-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
}

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

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

.text-muted {
  color: #6c757d !important;
}

.text-danger {
  color: #dc3545 !important;
}

.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.5px;
}

.display-2 {
  font-size: calc(1.725rem + 5.7vw) !important;
}

.display-3 {
  font-size: calc(1.525rem + 3.3vw) !important;
}

.display-4 {
  font-size: calc(1.475rem + 2.7vw) !important;
}

.display-5 {
  font-size: calc(1.425rem + 2.1vw) !important;
}

.display-6 {
  font-size: calc(1.375rem + 1.5vw) !important;
}

.fs-1 { font-size: calc(1.375rem + 1.5vw) !important; }
.fs-2 { font-size: calc(1.325rem + 0.9vw) !important; }
.fs-3 { font-size: calc(1.3rem + 0.6vw) !important; }
.fs-4 { font-size: calc(1.275rem + 0.3vw) !important; }
.fs-5 { font-size: 1.25rem !important; }

.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color) !important;
  font-weight: 600 !important;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.8;
}

.fw-light {
  font-weight: 300 !important;
}

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

/* ===== BUTTONS ===== */
.btn {
  border-radius: var(--border-radius) !important;
  font-weight: 600 !important;
  transition: all var(--transition-speed) ease !important;
  border: 2px solid transparent !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: transform 0.5s ease;
  z-index: -1;
}

.btn:hover::before {
  transform: translate(-50%, -50%) scale(2);
}

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

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

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

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

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

.btn-light:hover {
  color: var(--white-color) !important;
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(94, 129, 172, 0.4) !important;
}

.btn:active {
  transform: translateY(0) !important;
}

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

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

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

.card-img-top {
  transition: transform 0.5s ease;
}

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

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

/* ===== IMAGES ===== */
.img-fluid {
  max-width: 100% !important;
  height: auto !important;
  transition: transform var(--transition-speed) ease;
}

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

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(46, 52, 64, 0.175) !important;
}

/* ===== PORTFOLIO ===== */
.portfolio-item {
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  height: 400px;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(46, 52, 64, 0.95) 0%, rgba(46, 52, 64, 0.3) 100%);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

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

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

.filter-btn {
  background-color: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  margin: 0.5rem;
  padding: 0.5rem 1.5rem !important;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--secondary-color) !important;
  color: var(--white-color) !important;
  border-color: var(--secondary-color) !important;
}

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

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

.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: var(--border-radius) !important;
  padding: 0.75rem 1rem !important;
  transition: all var(--transition-speed) ease !important;
  background-color: var(--white-color) !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(94, 129, 172, 0.25) !important;
  outline: none !important;
}

.form-check-input {
  border: 2px solid var(--secondary-color) !important;
  cursor: pointer;
}

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

.form-check-label {
  cursor: pointer;
  color: var(--primary-color) !important;
}

.form-range {
  cursor: pointer;
}

.form-range::-webkit-slider-thumb {
  background-color: var(--secondary-color) !important;
}

.form-range::-moz-range-thumb {
  background-color: var(--secondary-color) !important;
}

/* ===== ALERTS ===== */
.alert {
  border-radius: var(--border-radius) !important;
  border: none !important;
  padding: 1.25rem !important;
}

.alert-info {
  background-color: rgba(94, 129, 172, 0.1) !important;
  color: var(--secondary-color) !important;
}

/* ===== MODAL ===== */
.modal {
  z-index: 1055;
}

.modal-content {
  border-radius: var(--border-radius) !important;
  border: none !important;
  background-color: var(--white-color) !important;
}

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

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

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

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

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

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}

.modal-xl {
  max-width: 1140px;
}

.modal-fullscreen {
  width: 100vw;
  max-width: none;
  height: 100%;
  margin: 0;
}

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

.accordion-item {
  border: 1px solid rgba(46, 52, 64, 0.1) !important;
  margin-bottom: 1rem;
  border-radius: var(--border-radius) !important;
  overflow: hidden;
}

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

.accordion-button {
  background-color: var(--white-color) !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  padding: 1.25rem 1.5rem !important;
  transition: all var(--transition-speed) ease;
}

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

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

.accordion-button::after {
  filter: brightness(0) saturate(100%);
}

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

.accordion-body {
  padding: 1.5rem !important;
  background-color: var(--white-color) !important;
  color: var(--primary-color) !important;
}

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

.accordion-flush .accordion-item {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

/* ===== TIMELINE ===== */
.timeline-container {
  position: relative;
  padding: 3rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--secondary-color), transparent);
  transform: translateX(-50%);
}

.timeline-year {
  background-color: var(--secondary-color) !important;
  color: var(--white-color) !important;
  border-radius: 50px !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 700 !important;
  display: inline-block;
  box-shadow: 0 5px 15px rgba(94, 129, 172, 0.3);
}

.timeline-content {
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(46, 52, 64, 0.1);
  position: relative;
  transition: all var(--transition-speed) ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(46, 52, 64, 0.15);
}

/* ===== HEXAGON FRAME ===== */
.hexagon-frame {
  width: 200px;
  height: 200px;
  position: relative;
  margin: 2rem auto;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

.hexagon-frame:hover {
  transform: rotate(5deg) scale(1.05);
}

.hexagon-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== PROGRESS BAR ===== */
.progress {
  height: 1.5rem !important;
  border-radius: 50px !important;
  background-color: rgba(94, 129, 172, 0.1) !important;
  overflow: hidden;
}

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

/* ===== ICONS (Bootstrap Icons) ===== */
.bi {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt-fill,
.bi-geo-alt,
.bi-telephone,
.bi-envelope,
.bi-arrow-right,
.bi-calendar-check,
.bi-camera-fill,
.bi-check-circle-fill,
.bi-thermometer-snow,
.bi-wind,
.bi-droplet-half,
.bi-tree,
.bi-info-circle,
.bi-box-arrow-up-right,
.bi-award,
.bi-house-check,
.bi-lightning-charge,
.bi-tree-fill,
.bi-1-circle,
.bi-2-circle,
.bi-3-circle,
.bi-4-circle {
  color: var(--secondary-color);
  transition: color var(--transition-speed) ease;
}

a:hover .bi,
.btn:hover .bi {
  color: var(--accent-color);
}

/* ===== UTILITY CLASSES ===== */
.container,
.container-fluid {
  width: 100%;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
  margin-right: auto;
  margin-left: auto;
}

.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !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; }
.p-0 { padding: 0 !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }

.m-3 { margin: 1rem !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; }
.ms-2 { margin-left: 0.5rem !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; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }

.d-flex { display: flex !important; }
.d-inline-block { display: inline-block !important; }

.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }

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

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

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

.top-0 { top: 0 !important; }
.start-0 { left: 0 !important; }
.bottom-0 { bottom: 0 !important; }

.rounded { border-radius: var(--border-radius) !important; }
.rounded-3 { border-radius: 0.5rem !important; }
.rounded-circle { border-radius: 50% !important; }

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

.small { font-size: 0.875rem !important; }

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

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

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

.sticky-lg-top {
  position: sticky;
  top: 1rem;
  z-index: 1020;
}

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

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

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

.col,
.col-4,
.col-12,
.col-sm-6,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-7,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-10,
.col-lg-12 {
  flex: 1 0 0%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
}

.col-4 { flex: 0 0 auto; width: 33.33333333%; }
.col-12 { flex: 0 0 auto; width: 100%; }

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

a:hover {
  color: var(--accent-color) !important;
  text-decoration: none;
}

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

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

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

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

/* ===== FADE EFFECT ===== */
.fade {
  transition: opacity 0.15s linear;
}

.fade:not(.show) {
  opacity: 0;
}

/* ===== COLLAPSE ===== */
.collapse:not(.show) {
  display: none;
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 575.98px) {
  .container {
    max-width: 100%;
  }
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
  .col-sm-6 { flex: 0 0 auto; width: 50%; }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  .col-md-3 { flex: 0 0 auto; width: 25%; }
  .col-md-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-md-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-7 { flex: 0 0 auto; width: 58.33333333%; }
  
  .mb-md-0 { margin-bottom: 0 !important; }
  .text-md-start { text-align: left !important; }
  .text-md-end { text-align: right !important; }
  .flex-md-row { flex-direction: row !important; }
  .p-md-5 { padding: 3rem !important; }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  .navbar-expand-lg {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
  
  .col-lg-2 { flex: 0 0 auto; width: 16.66666667%; }
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.33333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.66666667%; }
  .col-lg-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-lg-12 { flex: 0 0 auto; width: 100%; }
  
  .offset-lg-1 { margin-left: 8.33333333%; }
  .offset-lg-2 { margin-left: 16.66666667%; }
  
  .mb-lg-0 { margin-bottom: 0 !important; }
  .mt-lg-0 { margin-top: 0 !important; }
  .text-lg-end { text-align: right !important; }
  .flex-lg-row-reverse { flex-direction: row-reverse !important; }
  .order-lg-1 { order: 1 !important; }
  .order-lg-2 { order: 2 !important; }
}

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

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

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 991.98px) {
  .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; }
  
  .hero-section {
    min-height: auto;
    padding: 5rem 0;
  }
  
  .navbar-collapse {
    background-color: var(--primary-color);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: var(--border-radius);
  }
  
  .nav-item {
    margin: 0.5rem 0;
  }
  
  .timeline-container::before {
    left: 20px;
  }
  
  .portfolio-card {
    height: 300px;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .btn,
  .modal,
  .filter-btn {
    display: none !important;
  }
}

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

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

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

::-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-visible {
  outline: 2px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

/* ===== SMOOTH TRANSITIONS ===== */
* {
  scroll-behavior: smooth;
}

/* ===== LOADING STATE ===== */
.loading {
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid rgba(94, 129, 172, 0.2);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}