/* Architectural Studio - Midnight Steel & Crimson Theme */
/* ================================================== */

/* CSS Variables & Root */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E74C3C;
  --dark-primary: #1a252f;
  --light-primary: #34495e;
  --dark-secondary: #c0392b;
  --light-secondary: #ff6b5e;
  --text-light: #ecf0f1;
  --text-dark: #2c3e50;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(44, 62, 80, 0.1);
  --shadow-md: 0 4px 16px rgba(44, 62, 80, 0.15);
  --shadow-lg: 0 8px 32px rgba(44, 62, 80, 0.2);
  --shadow-xl: 0 16px 48px rgba(44, 62, 80, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Typography */
.display-2,
.display-3,
.display-4,
.display-5 {
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
}

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

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

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

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

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

/* Navigation Bar */
.navbar {
  padding: 1rem 0 !important;
  background-color: var(--primary-color) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  z-index: 1030;
}

.navbar.fixed-top {
  position: fixed !important;
  top: 0;
  right: 0;
  left: 0;
}

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

.navbar-brand {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 0.05em;
  transition: var(--transition-base);
  text-transform: uppercase;
}

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

.navbar-toggler {
  border: 2px solid #ffffff !important;
  padding: 0.5rem 0.75rem !important;
  transition: var(--transition-base);
}

.navbar-toggler:hover {
  border-color: var(--secondary-color) !important;
  background-color: rgba(231, 76, 60, 0.1) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(231, 76, 60, 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, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav {
  gap: 1rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition-base);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

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

.nav-link:hover,
.nav-link.active {
  color: #ffffff !important;
}

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

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

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 0.3;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Geometric Overlay */
.geometric-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.geo-element {
  position: absolute;
  opacity: 0.15;
  transition: var(--transition-slow);
}

.geo-square-1 {
  width: 200px;
  height: 200px;
  border: 3px solid var(--secondary-color);
  top: 15%;
  right: 10%;
  animation: float 6s ease-in-out infinite;
  transform: rotate(45deg);
}

.geo-circle-1 {
  width: 150px;
  height: 150px;
  border: 3px solid var(--secondary-color);
  border-radius: 50%;
  bottom: 20%;
  left: 5%;
  animation: float 8s ease-in-out infinite;
}

.geo-triangle-1 {
  width: 0;
  height: 0;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-bottom: 173px solid var(--secondary-color);
  opacity: 0.1;
  top: 40%;
  right: 25%;
  animation: rotate 20s linear infinite;
}

.geo-line-1 {
  width: 300px;
  height: 2px;
  background-color: var(--secondary-color);
  top: 30%;
  left: 10%;
  animation: slideRight 10s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(-30px) rotate(45deg); }
}

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

@keyframes slideRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(50px); }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  min-height: calc(100vh - 80px);
}

.hero-content .display-2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  color: #ffffff !important;
  margin-bottom: 1.5rem !important;
}

.hero-content .lead {
  font-size: clamp(1.1rem, 2vw, 1.5rem) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem !important;
  line-height: 1.8 !important;
}

/* Buttons */
.btn {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0 !important;
  transition: var(--transition-base) !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  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: 1rem !important;
}

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

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

.btn-outline-light:hover {
  color: var(--primary-color) !important;
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline-dark:hover {
  color: #ffffff !important;
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.btn-light:hover {
  color: #ffffff !important;
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
  color: #ffffff !important;
}

.scroll-indicator small {
  color: rgba(255, 255, 255, 0.8) !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem !important;
}

.scroll-indicator .bi {
  font-size: 1.5rem;
  color: var(--secondary-color) !important;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Section Styling */
section {
  padding: 5rem 0 !important;
  position: relative;
}

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

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

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

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

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

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

/* About Section */
.about-split-container {
  display: flex;
  min-height: 600px;
  gap: 0;
}

.about-left-panel,
.about-right-panel {
  flex: 1;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-left-panel {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

.about-right-panel {
  background-color: #ffffff !important;
  color: var(--text-dark) !important;
}

.about-left-panel .display-3,
.about-left-panel h1,
.about-left-panel h2,
.about-left-panel h3,
.about-left-panel p {
  color: #ffffff !important;
}

.about-right-panel .display-3,
.about-right-panel h1,
.about-right-panel h2,
.about-right-panel h3 {
  color: var(--primary-color) !important;
}

/* Images */
.img-fluid {
  max-width: 100%;
  height: auto;
  transition: var(--transition-base);
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow {
  box-shadow: var(--shadow-md) !important;
}

/* Cards */
.card {
  border: none !important;
  border-radius: 0 !important;
  transition: var(--transition-base);
  overflow: hidden;
  height: 100%;
}

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

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

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

.contact-card {
  background-color: #ffffff !important;
  border-left: 4px solid var(--secondary-color) !important;
  transition: var(--transition-base);
}

.contact-card:hover {
  border-left-width: 8px !important;
  background-color: var(--gray-100) !important;
}

.contact-card .bi {
  font-size: 2rem;
  color: var(--secondary-color) !important;
  margin-bottom: 1rem;
}

/* Portfolio */
.portfolio-masonry {
  column-count: 3;
  column-gap: 1.5rem;
}

.portfolio-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  display: inline-block;
  width: 100%;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--primary-color) !important;
}

.portfolio-img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-slow);
}

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

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, var(--primary-color), transparent);
  padding: 2rem;
  transform: translateY(100%);
  transition: var(--transition-base);
}

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

.portfolio-overlay h3,
.portfolio-overlay p {
  color: #ffffff !important;
}

.portfolio-item.tall {
  height: auto;
}

.portfolio-item.wide {
  width: 100%;
}

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

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

/* Badge */
.badge {
  padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0 !important;
  background-color: var(--secondary-color) !important;
  color: #ffffff !important;
}

/* Forms */
.form-label {
  font-weight: 600 !important;
  color: var(--primary-color) !important;
  margin-bottom: 0.5rem !important;
  text-transform: uppercase;
  font-size: 0.875rem !important;
  letter-spacing: 0.05em;
}

.form-control,
.form-select {
  border: 2px solid var(--gray-300) !important;
  border-radius: 0 !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: var(--transition-base);
  background-color: #ffffff !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(231, 76, 60, 0.25) !important;
  outline: none !important;
}

.form-control::placeholder {
  color: #adb5bd !important;
}

.invalid-feedback {
  display: none;
  color: var(--secondary-color) !important;
  font-size: 0.875rem !important;
  margin-top: 0.25rem !important;
}

.form-control.is-invalid {
  border-color: var(--secondary-color) !important;
}

.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--gray-300) !important;
  border-radius: 0 !important;
  cursor: pointer;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25) !important;
}

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

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

.modal-backdrop {
  background-color: rgba(44, 62, 80, 0.8) !important;
}

.modal-content {
  border: none !important;
  border-radius: 0 !important;
  background-color: #ffffff !important;
}

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

.modal-header .modal-title {
  color: #ffffff !important;
  font-weight: 700 !important;
}

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

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

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

/* Project Detail */
.project-detail {
  color: var(--text-dark) !important;
}

.project-detail h2,
.project-detail .h2 {
  color: var(--primary-color) !important;
  margin-bottom: 1.5rem !important;
}

.project-detail .bi-geo-alt {
  color: var(--secondary-color) !important;
}

/* Progress Bar */
.progress {
  height: 1.5rem !important;
  border-radius: 0 !important;
  background-color: var(--gray-200) !important;
}

.progress-bar {
  background-color: var(--secondary-color) !important;
  transition: width 1s ease-in-out !important;
  font-weight: 600 !important;
}

/* Background Colors */
.bg-light {
  background-color: var(--gray-100) !important;
}

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

.bg-opacity-10 {
  --bs-bg-opacity: 0.1 !important;
}

/* Border */
.border-0 {
  border: 0 !important;
}

.border-bottom {
  border-bottom: 1px solid var(--gray-300) !important;
}

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

/* Rounded */
.rounded {
  border-radius: 0.25rem !important;
}

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

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

.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt-fill,
.bi-chat-dots-fill,
.bi-calendar-check-fill,
.bi-lightbulb-fill,
.bi-lightning-charge-fill,
.bi-droplet-fill,
.bi-tree-fill,
.bi-recycle,
.bi-award-fill,
.bi-check-circle-fill,
.bi-leaf-fill,
.bi-heart-pulse-fill,
.bi-building-fill {
  font-size: 1.5rem;
}

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

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

/* Privacy Content */
.privacy-content {
  line-height: 1.8;
}

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

.privacy-content h4,
.privacy-content .h4 {
  color: var(--primary-color) !important;
  margin-top: 1.5rem !important;
  margin-bottom: 0.75rem !important;
}

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

.privacy-content ul {
  margin-bottom: 1rem !important;
  padding-left: 2rem !important;
}

.privacy-content li {
  margin-bottom: 0.5rem !important;
  color: var(--text-dark) !important;
}

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

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

.list-unstyled a {
  color: var(--text-dark) !important;
  text-decoration: none !important;
  transition: var(--transition-base);
}

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

/* Text Decoration */
.text-decoration-none {
  text-decoration: none !important;
}

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

/* Ratio */
.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ratio-4x3 {
  --bs-aspect-ratio: 75%;
}

/* Sticky Elements */
.sticky-top {
  position: sticky !important;
  top: 80px !important;
  z-index: 1020 !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.g-0 {
  --bs-gutter-x: 0 !important;
  --bs-gutter-y: 0 !important;
}

.g-3 {
  --bs-gutter-x: 1rem !important;
  --bs-gutter-y: 1rem !important;
}

.g-4 {
  --bs-gutter-x: 1.5rem !important;
  --bs-gutter-y: 1.5rem !important;
}

.g-5 {
  --bs-gutter-x: 3rem !important;
  --bs-gutter-y: 3rem !important;
}

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

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

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

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

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

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

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

.pe-lg-4 {
  padding-right: 1.5rem !important;
}

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

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

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

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

.mb-lg-0 {
  margin-bottom: 0 !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

/* Display */
.d-block {
  display: block !important;
}

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

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

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

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

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

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

/* Font Weight */
.fw-bold {
  font-weight: 700 !important;
}

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

/* Small Text */
.small {
  font-size: 0.875rem !important;
}

small {
  font-size: 0.875em !important;
}

/* Responsive Typography */
@media (max-width: 1199.98px) {
  .display-2 { font-size: 3.5rem !important; }
  .display-3 { font-size: 3rem !important; }
  .display-4 { font-size: 2.5rem !important; }
  .display-5 { font-size: 2rem !important; }
}

@media (max-width: 991.98px) {
  .display-2 { font-size: 3rem !important; }
  .display-3 { font-size: 2.5rem !important; }
  .display-4 { font-size: 2rem !important; }
  .display-5 { font-size: 1.75rem !important; }
  
  .portfolio-masonry {
    column-count: 2;
  }
  
  .about-split-container {
    flex-direction: column;
  }
  
  .about-left-panel,
  .about-right-panel {
    padding: 3rem 2rem;
  }
  
  .sticky-lg-top {
    position: relative !important;
    top: 0 !important;
  }
  
  .col-lg-1,
  .col-lg-2,
  .col-lg-3,
  .col-lg-4,
  .col-lg-5,
  .col-lg-6,
  .col-lg-7,
  .col-lg-8,
  .col-lg-10 {
    width: 100% !important;
  }
  
  .order-lg-1 {
    order: 1 !important;
  }
  
  .order-lg-2 {
    order: 2 !important;
  }
  
  .offset-lg-1 {
    margin-left: 0 !important;
  }
  
  .pe-lg-4 {
    padding-right: 1.5rem !important;
  }
}

@media (max-width: 767.98px) {
  .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; }
  
  section {
    padding: 3rem 0 !important;
  }
  
  .portfolio-masonry {
    column-count: 1;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .modal-body {
    padding: 1.5rem !important;
  }
  
  .hero-content .display-2 {
    font-size: 2rem !important;
  }
  
  .hero-content .lead {
    font-size: 1rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .about-left-panel,
  .about-right-panel {
    padding: 2rem 1.5rem;
  }
  
  .p-5 {
    padding: 2rem !important;
  }
  
  .p-md-5 {
    padding: 1.5rem !important;
  }
  
  .col-md-4,
  .col-md-6 {
    width: 100% !important;
  }
  
  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }
  
  .mb-md-0 {
    margin-bottom: 1rem !important;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  
  .nav-link {
    padding: 0.5rem 0 !important;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .geo-square-1,
  .geo-circle-1,
  .geo-triangle-1 {
    display: none;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .scroll-indicator,
  .btn,
  .geometric-overlay {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    color: #000 !important;
    background: #fff !important;
  }
  
  .hero-section {
    page-break-after: always;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

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

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

/* Selection */
::selection {
  background-color: var(--secondary-color);
  color: #ffffff;
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

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

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

/* Loading Animation */
.loading {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid var(--gray-300);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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