/* Midnight Steel & Copper - Architecture Studio Theme */

/* ============================================
   ROOT VARIABLES & RESET
   ============================================ */
:root {
  --primary: #2C3E50;
  --secondary: #E67E22;
  --dark: #1a252f;
  --light: #ecf0f1;
  --copper-light: #f39c12;
  --steel-mid: #34495e;
  --white: #ffffff;
  --shadow: rgba(44, 62, 80, 0.15);
  --shadow-lg: rgba(44, 62, 80, 0.25);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

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

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

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

.lead {
  font-size: 1.25rem !important;
  font-weight: 300 !important;
  color: var(--steel-mid) !important;
}

.fs-4, .fs-5 {
  color: var(--steel-mid) !important;
}

.text-muted {
  color: #7f8c8d !important;
}

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

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

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

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

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%) !important;
  box-shadow: 0 2px 15px var(--shadow);
  transition: var(--transition);
  z-index: 1050;
}

.navbar.position-fixed {
  top: 0;
  backdrop-filter: blur(10px);
}

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

.navbar-brand {
  color: var(--white) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  transition: var(--transition);
  text-decoration: none !important;
}

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 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;
}

.navbar-nav {
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
  text-decoration: none !important;
}

.nav-link:hover {
  color: var(--white) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-2px);
}

.nav-link.active {
  color: var(--dark) !important;
  background-color: var(--secondary) !important;
  font-weight: 600 !important;
}

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

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  padding: 0.625rem 1.5rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--copper-light) 100%) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--copper-light) 0%, var(--secondary) 100%) !important;
  color: var(--white) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4) !important;
}

.btn-secondary {
  background: var(--primary) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px var(--shadow) !important;
}

.btn-secondary:hover {
  background: var(--dark) !important;
  color: var(--white) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px var(--shadow-lg) !important;
}

.btn-dark {
  background: var(--dark) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(26, 37, 47, 0.3) !important;
}

.btn-dark:hover {
  background: var(--primary) !important;
  color: var(--white) !important;
  transform: translateY(-3px) !important;
}

.btn-light {
  background: var(--white) !important;
  color: var(--primary) !important;
  box-shadow: 0 4px 15px var(--shadow) !important;
}

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

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

.btn-outline-secondary:hover {
  background: var(--secondary) !important;
  color: var(--white) !important;
  transform: translateY(-3px) !important;
}

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

.btn-outline-dark:hover {
  background: var(--primary) !important;
  color: var(--white) !important;
  transform: translateY(-3px) !important;
}

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

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

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

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

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

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  height: 350px;
  background: var(--primary);
}

.portfolio-item {
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(44, 62, 80, 0.95) 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

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

.overlay-content {
  color: var(--white) !important;
  transform: translateY(20px);
  transition: var(--transition);
}

.portfolio-card:hover .overlay-content {
  transform: translateY(0);
}

.project-item {
  transition: var(--transition);
  cursor: pointer;
}

.project-item:hover {
  transform: scale(1.05);
}

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

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

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

/* ============================================
   BADGES
   ============================================ */
.badge {
  padding: 0.5rem 1rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.5px;
  background: var(--secondary) !important;
  color: var(--white) !important;
}

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

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

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

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

.form-text {
  color: var(--steel-mid) !important;
  font-size: 0.875rem !important;
}

.form-check {
  padding-left: 1.75rem !important;
}

.form-check-input {
  width: 1.25rem !important;
  height: 1.25rem !important;
  border: 2px solid #dfe6e9 !important;
  border-radius: 4px !important;
  cursor: pointer;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.15) !important;
}

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

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

.alert-success {
  background: #d4edda !important;
  color: #155724 !important;
  border-left-color: #28a745 !important;
}

.alert-danger {
  background: #f8d7da !important;
  color: #721c24 !important;
  border-left-color: #dc3545 !important;
}

.alert-warning {
  background: #fff3cd !important;
  color: #856404 !important;
  border-left-color: var(--secondary) !important;
}

.alert-info {
  background: #d1ecf1 !important;
  color: #0c5460 !important;
  border-left-color: #17a2b8 !important;
}

/* ============================================
   LIST GROUPS
   ============================================ */
.list-group {
  border-radius: 8px !important;
}

.list-group-item {
  border: 1px solid #e9ecef !important;
  padding: 1rem 1.25rem !important;
  background: var(--white) !important;
  color: var(--primary) !important;
  transition: var(--transition) !important;
}

.list-group-item:hover {
  background: var(--light) !important;
  border-color: var(--secondary) !important;
  transform: translateX(5px);
}

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

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

.accordion-item {
  border: 1px solid #e9ecef !important;
  margin-bottom: 1rem !important;
  border-radius: 8px !important;
  overflow: hidden;
  background: var(--white) !important;
}

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

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

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%) !important;
  color: var(--white) !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.15) !important;
  border-color: var(--secondary) !important;
}

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

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

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

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

/* ============================================
   PROGRESS BARS
   ============================================ */
.progress {
  height: 1.5rem !important;
  border-radius: 8px !important;
  background: #e9ecef !important;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--copper-light) 100%) !important;
  transition: width 1s ease !important;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
  opacity: 0.3;
}

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

.hero-section .fs-4, .hero-section .lead {
  color: rgba(255, 255, 255, 0.9) !important;
  animation: fadeInUp 1.2s ease;
}

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

.filter-btn {
  margin: 0.25rem;
  transition: var(--transition);
}

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

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

.bi-geo-alt-fill, .bi-geo-alt,
.bi-telephone-fill, .bi-telephone,
.bi-envelope-fill, .bi-envelope,
.bi-facebook, .bi-instagram, .bi-linkedin,
.bi-arrow-right, .bi-arrow-right-circle,
.bi-check2, .bi-check-circle, .bi-check-circle-fill,
.bi-rulers, .bi-house-door, .bi-calendar-check,
.bi-award, .bi-building, .bi-people, .bi-tree,
.bi-lightning, .bi-calendar3, .bi-hammer,
.bi-shield-check, .bi-briefcase, .bi-archive,
.bi-map, .bi-dot, .bi-lightning-charge-fill,
.bi-droplet-fill, .bi-recycle, .bi-award-fill,
.bi-palette {
  color: var(--secondary) !important;
  font-size: 1.5rem;
}

.bi.me-2, .bi.me-3, .bi.ms-2, .bi.ms-3, .bi.ms-4 {
  transition: var(--transition);
}

.btn:hover .bi {
  transform: translateX(3px);
}

/* ============================================
   IMAGES
   ============================================ */
.img-fluid {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px;
}

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

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

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

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

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

.bg-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%) !important;
  color: var(--white) !important;
}

.bg-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--copper-light) 100%) !important;
  color: var(--white) !important;
}

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

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

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

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

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

.top-50 {
  top: 50% !important;
}

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

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

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

.end-0 {
  right: 0 !important;
}

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

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

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

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

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

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

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

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

.flex-column {
  flex-direction: column !important;
}

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

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

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

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

.align-items-start {
  align-items: flex-start !important;
}

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

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

.justify-content-between {
  justify-content: space-between !important;
}

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

.text-start {
  text-align: left !important;
}

.text-end {
  text-align: right !important;
}

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

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

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

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

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

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

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

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

.g-2 > * {
  padding: 0.5rem !important;
}

.g-3 > * {
  padding: 1rem !important;
}

.g-4 > * {
  padding: 1.5rem !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-0 { padding-top: 0 !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

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

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

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

.ps-0 { padding-left: 0 !important; }
.ps-4 { padding-left: 1.5rem !important; }
.ps-lg-5 { padding-left: 3rem !important; }

.m-0 { margin: 0 !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !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-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }

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

.ms-1 { margin-left: 0.25rem !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; }

.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* ============================================
   CONTENT WRAPPER
   ============================================ */
.content-wrapper {
  padding-top: 100px;
  min-height: 100vh;
}

/* ============================================
   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-fadeIn {
  animation: fadeIn 1s ease;
}

.animate-fadeInUp {
  animation: fadeInUp 1s ease;
}

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

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

/* ============================================
   BORDER UTILITIES
   ============================================ */
.border-top {
  border-top: 1px solid #dee2e6 !important;
}

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

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

.nav.flex-column {
  flex-direction: column;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

footer h6, footer .h6 {
  color: var(--secondary) !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

footer p, footer li {
  color: rgba(255, 255, 255, 0.8) !important;
  line-height: 1.8;
}

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

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

footer .bi {
  color: var(--secondary) !important;
  margin-right: 0.75rem;
}

footer .text-center {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
}

footer .small {
  font-size: 0.875rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (min-width: 768px) {
  .d-md-block {
    display: block !important;
  }
  
  .text-md-start {
    text-align: left !important;
  }
  
  .text-md-end {
    text-align: right !important;
  }
  
  .mt-md-0 {
    margin-top: 0 !important;
  }
  
  .p-md-5 {
    padding: 3rem !important;
  }
  
  .col-md-3 {
    flex: 0 0 auto;
    width: 25%;
  }
  
  .col-md-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }
  
  .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  
  .col-md-8 {
    flex: 0 0 auto;
    width: 66.666667%;
  }
}

/* ============================================
   RESPONSIVE - DESKTOP
   ============================================ */
@media (min-width: 992px) {
  .d-lg-block {
    display: block !important;
  }
  
  .text-lg-end {
    text-align: right !important;
  }
  
  .mt-lg-0 {
    margin-top: 0 !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
  
  .ps-lg-5 {
    padding-left: 3rem !important;
  }
  
  .col-lg-2 {
    flex: 0 0 auto;
    width: 16.666667%;
  }
  
  .col-lg-3 {
    flex: 0 0 auto;
    width: 25%;
  }
  
  .col-lg-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }
  
  .col-lg-5 {
    flex: 0 0 auto;
    width: 41.666667%;
  }
  
  .col-lg-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  
  .col-lg-7 {
    flex: 0 0 auto;
    width: 58.333333%;
  }
  
  .col-lg-8 {
    flex: 0 0 auto;
    width: 66.666667%;
  }
  
  .col-lg-9 {
    flex: 0 0 auto;
    width: 75%;
  }
  
  .col-lg-10 {
    flex: 0 0 auto;
    width: 83.333333%;
  }
  
  .col-lg-12 {
    flex: 0 0 auto;
    width: 100%;
  }
  
  .offset-lg-1 {
    margin-left: 8.333333%;
  }
  
  .offset-lg-2 {
    margin-left: 16.666667%;
  }
  
  .order-lg-1 {
    order: 1 !important;
  }
  
  .order-lg-2 {
    order: 2 !important;
  }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0 !important;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .content-wrapper {
    padding-top: 80px;
  }
  
  .position-sticky {
    position: relative !important;
    top: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: auto;
    padding: 4rem 0;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .col-6 {
    flex: 0 0 auto;
    width: 50%;
  }
}

/* ============================================
   SMALL UTILITIES
   ============================================ */
.small {
  font-size: 0.875rem !important;
}

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

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

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

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

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

/* ============================================
   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 for keyboard navigation */
*:focus-visible {
  outline: 3px solid var(--secondary) !important;
  outline-offset: 2px !important;
}