/* Midnight Steel Architecture Studio - Custom CSS */

/* ==================== ROOT VARIABLES ==================== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-bg: #1a252f;
  --light-gray: #ecf0f1;
  --text-light: #ffffff;
  --text-dark: #2C3E50;
  --transition-speed: 0.3s;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  --box-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.3);
}

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

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

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

.display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 800 !important;
  color: var(--text-light) !important;
}

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

/* ==================== NAVIGATION ==================== */
.navbar {
  background-color: var(--primary-color) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  padding: 1rem 0;
  transition: all var(--transition-speed) ease;
  z-index: 1000;
}

.navbar.scrolled {
  background-color: rgba(44, 62, 80, 0.98) !important;
  backdrop-filter: blur(10px);
}

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

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

.navbar-toggler {
  border: 2px solid var(--text-light) !important;
  padding: 0.5rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.1) !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 {
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--text-light) !important;
  background-color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

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

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

/* ==================== HERO SECTION ==================== */
.vh-100 {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
  overflow: hidden;
}

.vh-100::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0px, transparent 1px, transparent 40px, rgba(255,255,255,0.03) 41px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, transparent 1px, transparent 40px, rgba(255,255,255,0.03) 41px);
  animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

.position-absolute.w-100.h-100 {
  background: radial-gradient(circle at 30% 50%, rgba(230, 126, 34, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.display-2 {
  font-size: clamp(2.5rem, 6vw, 5rem) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.lead, .fs-4 {
  color: rgba(255, 255, 255, 0.95) !important;
  animation: fadeInUp 1.2s ease-out;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

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

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

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

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

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

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

.btn-primary,
.btn.px-5 {
  background-color: var(--secondary-color) !important;
  color: var(--text-light) !important;
  border: 2px solid var(--secondary-color) !important;
}

.btn-primary:hover,
.btn.px-5:hover {
  background-color: #d35400 !important;
  border-color: #d35400 !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(230, 126, 34, 0.4);
}

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

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

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

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

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

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

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

/* ==================== SECTIONS ==================== */
section {
  padding: 5rem 0;
  position: relative;
}

.py-5 {
  background-color: var(--text-light) !important;
}

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

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

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6 {
  color: var(--text-light) !important;
}

.bg-dark p, .bg-dark .lead, .bg-dark .text-muted {
  color: rgba(255, 255, 255, 0.85) !important;
}

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

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

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

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

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

.text-muted {
  color: rgba(44, 62, 80, 0.6) !important;
}

.text-success {
  color: #27ae60 !important;
}

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

.opacity-50 {
  opacity: 0.5 !important;
}

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

.text-uppercase {
  letter-spacing: 2px;
}

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

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

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

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

.card-body {
  padding: 2rem;
}

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

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

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

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

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

/* ==================== PORTFOLIO ==================== */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem !important;
  border-radius: 30px !important;
  transition: all var(--transition-speed) ease;
}

.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: 15px;
  cursor: pointer;
  height: 400px;
  transition: all var(--transition-speed) ease;
}

.portfolio-item.wide {
  grid-column: span 2;
}

.portfolio-item.tall {
  grid-row: span 2;
  height: 820px;
}

.portfolio-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 15px;
}

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

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(44, 62, 80, 0.95) 0%, rgba(44, 62, 80, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  color: var(--text-light) !important;
}

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

.portfolio-overlay h3,
.portfolio-overlay h4 {
  color: var(--text-light) !important;
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.9) !important;
}

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

/* ==================== PROJECT ITEMS ==================== */
.project-item {
  background-color: var(--text-light);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed) ease;
  border-left: 5px solid var(--secondary-color);
}

.project-item:hover {
  transform: translateX(10px);
  box-shadow: var(--box-shadow-hover);
}

.project-item.completed {
  border-left-color: #27ae60;
}

.project-item.ongoing {
  border-left-color: var(--secondary-color);
}

.project-item.planning {
  border-left-color: #3498db;
}

.project-item h3, .project-item h4 {
  color: var(--primary-color) !important;
}

/* ==================== PROGRESS BAR ==================== */
.progress {
  height: 30px;
  border-radius: 15px;
  background-color: rgba(44, 62, 80, 0.1) !important;
  overflow: hidden;
}

.progress-bar {
  background-color: var(--secondary-color) !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 1s ease;
}

/* ==================== BADGES ==================== */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
}

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

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

.badge.bg-warning {
  background-color: var(--secondary-color) !important;
  color: var(--text-light) !important;
}

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

.form-control,
.form-select {
  border: 2px solid rgba(44, 62, 80, 0.2) !important;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all var(--transition-speed) ease;
  background-color: var(--text-light) !important;
  color: var(--text-dark) !important;
}

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

.form-check-input {
  border: 2px solid rgba(44, 62, 80, 0.3) !important;
  width: 1.5rem;
  height: 1.5rem;
  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-left: 0.5rem;
}

/* ==================== ALERTS ==================== */
.alert {
  border-radius: 10px;
  padding: 1rem 1.5rem;
  border: none;
  font-weight: 500;
}

.alert-success {
  background-color: #d4edda !important;
  color: #155724 !important;
}

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

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

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

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

.modal-body {
  padding: 2rem;
}

.modal.fade .modal-dialog {
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s ease-out;
}

.modal.show .modal-dialog {
  transform: scale(1);
  opacity: 1;
}

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

.btn-close:hover {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

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

footer h5, footer h6 {
  color: var(--text-light) !important;
  margin-bottom: 1.5rem;
}

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

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

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

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

.border-bottom {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

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

/* ==================== ICONS ==================== */
.bi {
  font-size: 1.2rem;
  transition: all var(--transition-speed) ease;
}

.bi-arrow-right {
  transition: transform var(--transition-speed) ease;
}

.btn:hover .bi-arrow-right {
  transform: translateX(5px);
}

.bi-linkedin,
.bi-instagram,
.bi-twitter {
  font-size: 1.5rem;
  color: var(--text-light) !important;
}

.bi-linkedin:hover,
.bi-instagram:hover,
.bi-twitter:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-3px);
}

.bi-check-circle-fill {
  color: #27ae60 !important;
}

.bi-circle {
  color: rgba(44, 62, 80, 0.3) !important;
}

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

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

.shadow-lg {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
}

/* ==================== UTILITIES ==================== */
.rounded {
  border-radius: 10px !important;
}

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

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

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

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

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

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

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

.flex-wrap {
  flex-wrap: wrap !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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.z-3 {
  z-index: 3 !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;
}

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

.mb-md-0 {
  margin-bottom: 0 !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;
}

.mt-lg-0 {
  margin-top: 0 !important;
}

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

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

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

.p-0 {
  padding: 0 !important;
}

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

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

.p-5 {
  padding: 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;
}

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

.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-4 {
  padding-top: 1.5rem !important;
}

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

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

/* ==================== GRID SYSTEM ==================== */
.g-0 {
  gap: 0 !important;
}

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

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

.container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ==================== ANIMATIONS ==================== */
@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 fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(44, 62, 80, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 10px;
  }
  
  .navbar-nav {
    gap: 0;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .portfolio-item.wide {
    grid-column: span 1;
  }
  
  .portfolio-item.tall {
    grid-row: span 1;
    height: 400px;
  }
  
  .position-sticky,
  .sticky-lg-top {
    position: relative !important;
    top: auto !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .px-lg-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .ps-lg-5 {
    padding-left: 1rem !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 1.5rem !important;
  }
  
  .mt-lg-0 {
    margin-top: 1.5rem !important;
  }
  
  .text-lg-end {
    text-align: left !important;
  }
}

@media (max-width: 767.98px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .portfolio-item {
    height: 300px;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .gap-3.flex-wrap {
    flex-direction: column;
  }
  
  .col-md-6 {
    margin-bottom: 1rem;
  }
  
  footer {
    text-align: center;
  }
  
  .text-md-end {
    text-align: center !important;
  }
  
  .text-md-start {
    text-align: center !important;
  }
  
  .mb-md-0 {
    margin-bottom: 1rem !important;
  }
  
  .flex-sm-row {
    flex-direction: row !important;
  }
}

@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .display-2 {
    font-size: 2rem !important;
  }
  
  .vh-100 {
    padding: 2rem 0;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .project-item {
    padding: 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
}

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

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

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

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

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

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

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

/* ==================== FOCUS STYLES ==================== */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

/* ==================== 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(--light-gray);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ==================== PRIVACY CONTENT ==================== */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.privacy-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* ==================== ACCESSIBILITY ==================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==================== END OF STYLES ==================== */