/* Obsidian Red Architecture Studio CSS */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #1a1a1a;
  --secondary-color: #e63946;
  --accent-color: #ff4757;
  --dark-bg: #0d0d0d;
  --light-text: #f8f9fa;
  --gray-text: #adb5bd;
  --transition-speed: 0.3s;
  --box-shadow: 0 10px 40px rgba(230, 57, 70, 0.15);
  --box-shadow-hover: 0 15px 50px rgba(230, 57, 70, 0.25);
}

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

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

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none !important;
  transition: all var(--transition-speed) ease;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== NAVBAR STYLES ===== */
.navbar {
  background-color: rgba(26, 26, 26, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(230, 57, 70, 0.1);
  padding: 1rem 0;
  transition: all var(--transition-speed) ease;
}

.navbar.scrolled {
  background-color: rgba(13, 13, 13, 0.98) !important;
  box-shadow: 0 5px 30px rgba(230, 57, 70, 0.2);
  padding: 0.5rem 0;
}

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

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

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

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

.navbar-nav .nav-link {
  color: var(--gray-text) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.2rem;
  position: relative;
  transition: all var(--transition-speed) ease;
}

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

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--light-text) !important;
}

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

.navbar-nav .nav-link.active {
  font-weight: 600 !important;
}

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

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(230, 57, 70, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(230, 57, 70, 0.08) 0%, transparent 50%);
  z-index: 1;
}

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

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 0;
}

.display-1 {
  font-size: clamp(2.5rem, 8vw, 5rem) !important;
  font-weight: 800 !important;
  color: var(--light-text) !important;
  line-height: 1.2 !important;
  letter-spacing: -2px;
  animation: fadeInUp 1s ease-out;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.3rem) !important;
  color: var(--gray-text) !important;
  font-weight: 400 !important;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.text-white-50 {
  color: rgba(248, 249, 250, 0.7) !important;
}

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

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

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

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

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

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

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  color: var(--gray-text) !important;
  font-size: 0.9rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.scroll-arrow {
  width: 30px;
  height: 50px;
  border: 2px solid var(--secondary-color);
  border-radius: 20px;
  margin: 0 auto;
  position: relative;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0%, 100% {
    top: 8px;
    opacity: 1;
  }
  50% {
    top: 30px;
    opacity: 0.3;
  }
}

/* ===== SPLIT HERO ===== */
.split-hero {
  min-height: 100vh;
  background-color: var(--primary-color) !important;
}

.split-hero .col-lg-6 {
  min-height: 50vh;
}

.split-hero img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

/* ===== SECTIONS ===== */
.py-5 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
  background-color: var(--primary-color) !important;
}

.display-4 {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  font-weight: 700 !important;
  color: var(--light-text) !important;
  letter-spacing: -1px;
  margin-bottom: 1.5rem !important;
}

.display-5 {
  font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
  font-weight: 700 !important;
  color: var(--light-text) !important;
  letter-spacing: -0.5px;
}

.display-3 {
  font-size: clamp(2.5rem, 6vw, 4rem) !important;
  font-weight: 700 !important;
  color: var(--light-text) !important;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.8), rgba(13, 13, 13, 0.9)) !important;
  border: 1px solid rgba(230, 57, 70, 0.1);
  border-radius: 12px;
  transition: all var(--transition-speed) ease;
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: all var(--transition-speed) ease;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary-color);
  box-shadow: var(--box-shadow-hover);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 3rem;
  color: var(--secondary-color) !important;
  margin-bottom: 1.5rem;
  transition: all var(--transition-speed) ease;
  display: inline-block;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
  color: var(--light-text) !important;
  font-weight: 600 !important;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--gray-text) !important;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== CARD ===== */
.card {
  background-color: rgba(26, 26, 26, 0.9) !important;
  border: 1px solid rgba(230, 57, 70, 0.15) !important;
  border-radius: 12px !important;
  transition: all var(--transition-speed) ease;
  color: var(--light-text) !important;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
  border-color: var(--secondary-color) !important;
}

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

.card-body h5 {
  color: var(--light-text) !important;
  font-weight: 600;
}

.card-body p {
  color: var(--gray-text) !important;
}

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

.badge-custom {
  background-color: rgba(230, 57, 70, 0.15) !important;
  color: var(--secondary-color) !important;
  border: 1px solid var(--secondary-color);
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0;
  width: 16px;
  height: 16px;
  background-color: var(--secondary-color);
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  z-index: 2;
}

.timeline-line {
  position: absolute;
  left: -1.5rem;
  top: 16px;
  width: 2px;
  height: calc(100% - 16px);
  background-color: rgba(230, 57, 70, 0.3);
}

.timeline-item:last-child .timeline-line {
  display: none;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  aspect-ratio: 4/3;
  background-color: var(--dark-bg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
  opacity: 0.7;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(230, 57, 70, 0.8) 100%);
  opacity: 0;
  transition: all var(--transition-speed) ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

/* ===== FILTER BUTTONS ===== */
.filter-btn {
  background-color: transparent !important;
  border: 2px solid rgba(230, 57, 70, 0.3) !important;
  color: var(--gray-text) !important;
  padding: 0.6rem 1.5rem !important;
  margin: 0.3rem !important;
  border-radius: 25px !important;
  transition: all var(--transition-speed) ease !important;
  font-weight: 500 !important;
}

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

/* ===== MODAL ===== */
.modal-content {
  background-color: var(--primary-color) !important;
  border: 1px solid rgba(230, 57, 70, 0.3) !important;
  border-radius: 12px !important;
}

.modal-header {
  border-bottom: 1px solid rgba(230, 57, 70, 0.2) !important;
  padding: 1.5rem !important;
}

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

.modal-body img {
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.btn-close {
  filter: invert(1) !important;
  opacity: 0.8 !important;
}

.btn-close:hover {
  opacity: 1 !important;
}

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

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

.form-control,
.form-select {
  background-color: rgba(26, 26, 26, 0.5) !important;
  border: 1px solid rgba(230, 57, 70, 0.3) !important;
  color: var(--light-text) !important;
  padding: 0.75rem 1rem !important;
  border-radius: 8px !important;
  transition: all var(--transition-speed) ease !important;
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(26, 26, 26, 0.8) !important;
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(230, 57, 70, 0.25) !important;
  color: var(--light-text) !important;
}

.form-control::placeholder {
  color: var(--gray-text) !important;
  opacity: 0.7;
}

.form-select option {
  background-color: var(--primary-color) !important;
  color: var(--light-text) !important;
}

.form-check-input {
  background-color: rgba(26, 26, 26, 0.5) !important;
  border-color: rgba(230, 57, 70, 0.3) !important;
}

.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(230, 57, 70, 0.25) !important;
}

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

.invalid-feedback {
  color: var(--accent-color) !important;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

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

/* ===== ALERTS ===== */
.alert {
  border-radius: 8px !important;
  padding: 1rem 1.5rem !important;
  border: none !important;
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.2) !important;
  color: #28a745 !important;
  border-left: 4px solid #28a745 !important;
}

/* ===== ACCORDION ===== */
.accordion-item {
  background-color: rgba(26, 26, 26, 0.9) !important;
  border: 1px solid rgba(230, 57, 70, 0.15) !important;
  margin-bottom: 1rem !important;
  border-radius: 8px !important;
  overflow: hidden;
}

.accordion-button {
  background-color: rgba(26, 26, 26, 0.9) !important;
  color: var(--light-text) !important;
  font-weight: 600 !important;
  padding: 1.25rem 1.5rem !important;
  border: none !important;
  transition: all var(--transition-speed) ease;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(230, 57, 70, 0.15) !important;
  color: var(--secondary-color) !important;
  box-shadow: none !important;
}

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

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

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) saturate(100%) invert(36%) sepia(93%) saturate(1748%) hue-rotate(337deg) brightness(95%) contrast(89%);
}

.accordion-body {
  background-color: rgba(13, 13, 13, 0.5) !important;
  color: var(--gray-text) !important;
  padding: 1.5rem !important;
  border-top: 1px solid rgba(230, 57, 70, 0.1);
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--dark-bg) !important;
  color: var(--gray-text) !important;
  border-top: 1px solid rgba(230, 57, 70, 0.2);
  padding: 3rem 0 1rem;
}

footer h5 {
  color: var(--light-text) !important;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

footer a {
  color: var(--gray-text) !important;
  transition: all var(--transition-speed) ease;
  display: inline-block;
}

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

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

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

/* ===== ICONS ===== */
.bi {
  vertical-align: middle;
}

.bi-arrow-right,
.bi-check-circle-fill,
.bi-exclamation-triangle-fill,
.bi-info-circle-fill,
.bi-send-fill {
  color: var(--secondary-color) !important;
}

.bi-cpu,
.bi-tools,
.bi-wrench-adjustable,
.bi-speedometer2,
.bi-gear-wide-connected,
.bi-clipboard-check,
.bi-hammer,
.bi-code-square,
.bi-lightning-charge,
.bi-shield-fill-exclamation,
.bi-volume-up,
.bi-soundwave,
.bi-gear-fill,
.bi-search {
  transition: all var(--transition-speed) ease;
}

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

.img-fluid {
  border-radius: 12px;
  box-shadow: var(--box-shadow);
}

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

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

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

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

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

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

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

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(13, 13, 13, 0.98);
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(230, 57, 70, 0.2);
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(230, 57, 70, 0.1);
  }

  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }

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

  .display-4 {
    font-size: 2rem !important;
  }

  .hero-section {
    min-height: 90vh;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 0.95rem !important;
  }
}

@media (max-width: 767.98px) {
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    margin-bottom: 1.5rem;
  }

  .split-hero .col-lg-6 {
    min-height: 40vh;
  }
}

@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .d-flex.gap-3 {
    gap: 0.75rem !important;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }

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

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

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

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

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

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

/* ===== HOVER EFFECTS ===== */
.hover-lift {
  transition: all var(--transition-speed) ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* ===== TEXT DECORATION ===== */
.text-decoration-none {
  text-decoration: none !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-16x9 {
  --bs-aspect-ratio: 56.25%;
}

/* ===== VISIBILITY ===== */
.d-none {
  display: none !important;
}

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

/* ===== BACK TO TOP BUTTON ===== */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color) !important;
  color: var(--light-text) !important;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--box-shadow);
}

#backToTop:hover {
  background-color: var(--accent-color) !important;
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

#backToTop.show {
  display: flex !important;
  animation: fadeIn 0.3s ease;
}