/* Arctic Steel Architecture Studio - CSS */

/* ===== Root Variables ===== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #3498DB;
  --accent-color: #ECF0F1;
  --dark-color: #1A252F;
  --light-color: #F8F9FA;
  --steel-gray: #95A5A6;
  --ice-blue: #AED6F1;
  --arctic-white: #FFFFFF;
  --transition-speed: 0.4s;
  --shadow-color: rgba(44, 62, 80, 0.15);
}

/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--primary-color) !important;
  background-color: var(--light-color) !important;
  overflow-x: hidden;
  line-height: 1.7;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.lead {
  font-weight: 400 !important;
  color: var(--steel-gray) !important;
}

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

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

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

.text-uppercase {
  letter-spacing: 0.15em !important;
}

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

/* ===== Navigation ===== */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: all var(--transition-speed) ease;
  padding: 1rem 0 !important;
}

.navbar.scrolled {
  padding: 0.5rem 0 !important;
  background: rgba(44, 62, 80, 0.98) !important;
}

.navbar-brand {
  color: var(--arctic-white) !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
}

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

.navbar-toggler {
  border: 2px solid var(--arctic-white) !important;
  padding: 0.5rem 0.75rem !important;
  transition: all var(--transition-speed) ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 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(255, 255, 255, 1)' 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.25rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: 6px;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--arctic-white) !important;
  background: rgba(52, 152, 219, 0.2) !important;
}

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

/* ===== Buttons ===== */
.btn {
  font-weight: 600 !important;
  border-radius: 8px !important;
  transition: all var(--transition-speed) ease !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none !important;
  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 ease, height 0.6s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #2980B9 100%) !important;
  color: var(--arctic-white) !important;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2980B9 0%, var(--secondary-color) 100%) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(52, 152, 219, 0.4) !important;
  color: var(--arctic-white) !important;
}

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

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

.btn-light {
  background: var(--arctic-white) !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--accent-color) !important;
}

.btn-light:hover {
  background: var(--accent-color) !important;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--shadow-color);
}

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

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

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

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(44, 62, 80, 0.7) 0%, rgba(26, 37, 47, 0.85) 100%);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section video,
.hero-section img {
  filter: brightness(0.7) contrast(1.1);
}

.hero-section .display-2 {
  color: var(--arctic-white) !important;
  text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-section .lead {
  color: var(--ice-blue) !important;
  text-shadow: 1px 2px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1.2s ease-out;
}

.hero-section .btn {
  animation: fadeInUp 1.4s ease-out;
}

/* ===== Cards ===== */
.card {
  border-radius: 12px !important;
  transition: all var(--transition-speed) ease !important;
  background: var(--arctic-white) !important;
  border: 1px solid rgba(44, 62, 80, 0.08) !important;
  overflow: hidden;
}

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

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

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

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

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

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

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

.shadow {
  box-shadow: 0 5px 25px var(--shadow-color) !important;
}

.shadow-lg {
  box-shadow: 0 10px 40px var(--shadow-color) !important;
}

/* ===== Badges ===== */
.badge {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #2980B9 100%) !important;
  color: var(--arctic-white) !important;
  padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  letter-spacing: 0.05em;
  font-size: 0.85rem !important;
}

/* ===== Forms ===== */
.form-control,
.form-select {
  border: 2px solid rgba(44, 62, 80, 0.15) !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  transition: all var(--transition-speed) ease !important;
  background: var(--arctic-white) !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(52, 152, 219, 0.15) !important;
  background: var(--arctic-white) !important;
}

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

.form-check-input {
  border: 2px solid rgba(44, 62, 80, 0.3) !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  cursor: pointer;
}

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

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

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

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

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(44, 62, 80, 0) 0%, rgba(44, 62, 80, 0.95) 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-overlay h4,
.portfolio-overlay p {
  color: var(--arctic-white) !important;
  transform: translateY(20px);
  transition: transform 0.5s ease;
}

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

/* ===== Filter Buttons ===== */
.filter-btn {
  background: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.6rem 1.5rem !important;
  margin: 0.5rem !important;
  border-radius: 25px !important;
  transition: all var(--transition-speed) ease !important;
  font-weight: 600 !important;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color) !important;
  color: var(--arctic-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px var(--shadow-color);
}

/* ===== Timeline ===== */
.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin: 3rem 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--secondary-color);
  border: 4px solid var(--arctic-white);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 8px rgba(52, 152, 219, 0.2);
}

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

.bi-circle-fill {
  color: var(--secondary-color) !important;
  font-size: 0.5rem !important;
}

.bi-geo-alt,
.bi-geo-alt-fill,
.bi-telephone,
.bi-telephone-fill,
.bi-envelope,
.bi-envelope-fill,
.bi-chat-dots-fill,
.bi-send,
.bi-linkedin,
.bi-instagram,
.bi-facebook,
.bi-twitter,
.bi-check-circle-fill,
.bi-award-fill,
.bi-globe,
.bi-tree-fill,
.bi-patch-check-fill,
.bi-lightning-charge-fill,
.bi-droplet-fill,
.bi-cloud-fill,
.bi-arrow-right-circle-fill {
  color: var(--secondary-color) !important;
  transition: all var(--transition-speed) ease;
}

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

/* ===== Borders ===== */
.border-start {
  border-left: 4px solid var(--secondary-color) !important;
}

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

.border-secondary {
  border-color: rgba(44, 62, 80, 0.2) !important;
}

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

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

/* ===== Spacing ===== */
.py-5 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

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

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

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

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

.pb-3 {
  padding-bottom: 2rem !important;
}

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

.px-4 {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.px-5 {
  padding-left: 3rem !important;
  padding-right: 3rem !important;
}

.px-3 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.px-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.p-3 {
  padding: 1rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.p-5 {
  padding: 3rem !important;
}

.m-2 {
  margin: 0.5rem !important;
}

.m-3 {
  margin: 1rem !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;
}

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

.my-4 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.me-2 {
  margin-right: 0.5rem !important;
}

.me-3 {
  margin-right: 1rem !important;
}

.ms-4 {
  margin-left: 1.5rem !important;
}

.ms-auto {
  margin-left: auto !important;
}

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

.g-0 {
  gap: 0 !important;
}

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

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

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

/* ===== Background Colors ===== */
.bg-danger {
  background-color: #E74C3C !important;
}

.bg-success {
  background-color: #27AE60 !important;
}

/* ===== Opacity ===== */
.opacity-25 {
  opacity: 0.25 !important;
}

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

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

.list-unstyled li {
  padding: 0.5rem 0;
  transition: all var(--transition-speed) ease;
}

.list-unstyled li:hover {
  padding-left: 0.5rem;
  color: var(--secondary-color) !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-decoration-none {
  text-decoration: none !important;
}

/* ===== Rounded Elements ===== */
.rounded {
  border-radius: 8px !important;
}

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

/* ===== Position Utilities ===== */
.position-relative {
  position: relative !important;
}

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

.position-sticky,
.sticky-lg-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 100;
}

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

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

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

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

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

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

/* ===== Display Utilities ===== */
.d-flex {
  display: flex !important;
}

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

.d-none {
  display: none !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;
}

.flex-row-reverse {
  flex-direction: row-reverse !important;
}

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

/* ===== Size Utilities ===== */
.w-100 {
  width: 100% !important;
}

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

.vh-100 {
  height: 100vh !important;
}

.img-fluid {
  max-width: 100% !important;
  height: auto !important;
}

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

/* ===== Text Utilities ===== */
.text-center {
  text-align: center !important;
}

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

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

.fs-1 {
  font-size: 2.5rem !important;
}

.fs-3 {
  font-size: 1.75rem !important;
}

.fs-4 {
  font-size: 1.5rem !important;
}

.fs-5 {
  font-size: 1.25rem !important;
}

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

/* ===== Container ===== */
.container,
.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.container {
  max-width: 1200px;
}

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

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

.col-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* ===== 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);
  }
}

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

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

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

.animate-slideInLeft {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.8s ease-out forwards;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

/* ===== Privacy Content ===== */
.privacy-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.privacy-content h2,
.privacy-content h3,
.privacy-content h4 {
  color: var(--primary-color) !important;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-content p {
  color: var(--steel-gray) !important;
  margin-bottom: 1rem;
}

/* ===== Responsive Design ===== */
@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .text-md-start {
    text-align: left !important;
  }
  
  .text-md-end {
    text-align: right !important;
  }
  
  .mb-md-0 {
    margin-bottom: 0 !important;
  }
}

@media (min-width: 992px) {
  .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%;
  }
  
  .d-lg-block {
    display: block !important;
  }
  
  .d-lg-none {
    display: none !important;
  }
  
  .flex-lg-row-reverse {
    flex-direction: row-reverse !important;
  }
  
  .text-lg-end {
    text-align: right !important;
  }
  
  .pe-lg-5 {
    padding-right: 3rem !important;
  }
  
  .ps-lg-4 {
    padding-left: 1.5rem !important;
  }
  
  .ps-lg-5 {
    padding-left: 3rem !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
  
  .mt-lg-0 {
    margin-top: 0 !important;
  }
  
  .order-lg-1 {
    order: 1 !important;
  }
  
  .order-lg-2 {
    order: 2 !important;
  }
  
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
  }
}

/* ===== Mobile Optimization ===== */
@media (max-width: 991px) {
  .display-1 {
    font-size: 3rem !important;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .display-5 {
    font-size: 1.5rem !important;
  }
  
  .display-6 {
    font-size: 1.25rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .navbar-collapse {
    background: var(--primary-color);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .nav-item {
    margin: 0.25rem 0;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .timeline-line {
    left: 20px !important;
  }
  
  .timeline-item::before {
    left: 20px !important;
  }
}

@media (max-width: 767px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .btn.me-3 {
    margin-right: 0 !important;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .fs-1 {
    font-size: 2rem !important;
  }
  
  .fs-3 {
    font-size: 1.5rem !important;
  }
}

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

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

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

/* ===== Smooth Transitions ===== */
* {
  transition: color var(--transition-speed) ease,
              background-color var(--transition-speed) ease,
              border-color var(--transition-speed) ease,
              box-shadow var(--transition-speed) ease;
}

/* ===== Loading States ===== */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid var(--accent-color);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spinner 0.8s linear infinite;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--steel-gray);
  border-radius: 6px;
  transition: background var(--transition-speed) ease;
}

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

/* ===== Selection ===== */
::selection {
  background: var(--secondary-color);
  color: var(--arctic-white);
}

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