/* Racing Red & Charcoal Architecture Studio Theme */

:root {
  --primary-color: #D32F2F;
  --secondary-color: #424242;
  --dark-bg: #1a1a1a;
  --light-bg: #f5f5f5;
  --white: #ffffff;
  --text-dark: #212121;
  --text-light: #757575;
  --shadow: rgba(211, 47, 47, 0.15);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography */
.display-3, .display-4, .display-5, .display-6 {
  font-weight: 700 !important;
  letter-spacing: -0.5px;
}

.lead {
  font-weight: 400;
  line-height: 1.8;
}

/* Navbar Styles */
.navbar {
  transition: var(--transition);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.navbar.sticky-top {
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-size: 1.5rem !important;
  color: var(--white) !important;
  transition: var(--transition);
  letter-spacing: 1px;
}

.navbar-brand:hover {
  color: var(--primary-color) !important;
  transform: scale(1.05);
}

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

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

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

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

.navbar-toggler {
  border-color: var(--primary-color) !important;
  padding: 0.5rem;
}

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

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

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(211,47,47,0.1)"/></svg>');
  background-size: cover;
  background-position: bottom;
}

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

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

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

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

.floating-icons {
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  z-index: 1;
}

.floating-icons .bi {
  display: block;
  font-size: 2.5rem;
  color: var(--primary-color);
  opacity: 0.3;
  margin: 2rem 0;
}

.animated-icon {
  animation: float 3s ease-in-out infinite;
}

.animated-icon:nth-child(2) {
  animation-delay: 1s;
}

.animated-icon:nth-child(3) {
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

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

/* Buttons */
.btn {
  font-weight: 600 !important;
  border-radius: 50px !important;
  transition: var(--transition) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-width: 2px !important;
}

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

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--shadow);
}

.btn[style*="background-color: rgb(211, 47, 47)"],
.btn[style*="background-color:#D32F2F"],
.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--white) !important;
}

.btn[style*="background-color: rgb(211, 47, 47)"]:hover,
.btn[style*="background-color:#D32F2F"]:hover,
.btn-primary:hover {
  background-color: #b71c1c !important;
  border-color: #b71c1c !important;
  color: var(--white) !important;
}

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

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

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

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

/* Cards */
.card {
  border-radius: 15px !important;
  transition: var(--transition);
  overflow: hidden;
}

.card.h-100 {
  height: 100%;
}

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

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

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

.card-body {
  padding: 1.5rem;
}

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

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

.service-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  transition: var(--transition);
  border: 2px solid transparent;
}

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

.service-brief,
.service-details {
  color: var(--text-light) !important;
}

.price-indicator {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  border-radius: 8px;
  font-weight: 700;
}

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

.bi-laptop,
.bi-speedometer2,
.bi-gear-wide-connected,
.bi-disc,
.bi-arrow-down-up,
.bi-lightning-charge,
.bi-cpu,
.bi-people,
.bi-chat-square-text,
.bi-shield-check,
.bi-reception-4,
.bi-pc-display,
.bi-cpu-fill,
.bi-plug-fill,
.bi-hdd-network-fill {
  color: var(--primary-color) !important;
}

.bi-check-circle-fill,
.bi-patch-check-fill {
  color: var(--primary-color) !important;
}

.fs-1 { font-size: 3rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }

/* Sections */
section {
  padding: 80px 0;
}

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

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

.bg-dark {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
}

.bg-dark * {
  color: var(--white) !important;
}

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

/* Timeline */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  padding: 2rem 0 2rem 3rem;
  border-left: 3px solid var(--primary-color);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 2rem;
  width: 15px;
  height: 15px;
  background: var(--primary-color);
  border-radius: 50%;
}

.timeline-item:hover::before {
  transform: scale(1.5);
  transition: var(--transition);
}

/* Badge */
.badge {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
}

/* Forms */
.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition);
  background-color: var(--white) !important;
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25) !important;
}

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

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

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

/* Carousel */
.carousel {
  background-color: var(--light-bg);
  padding: 3rem 0;
  border-radius: 15px;
}

.carousel-item {
  padding: 2rem;
  min-height: 300px;
}

.carousel-indicators button {
  background-color: var(--primary-color) !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  margin: 0 5px !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-color);
  border-radius: 50%;
  padding: 20px;
}

.bi-star-fill {
  color: #FFC107 !important;
}

/* Accordion */
.accordion-item {
  border: 1px solid #e0e0e0 !important;
  margin-bottom: 1rem;
  border-radius: 10px !important;
  overflow: hidden;
}

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

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

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) .bi {
  color: var(--white) !important;
}

.accordion-button:focus {
  box-shadow: none !important;
  border-color: var(--primary-color) !important;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23424242'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

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

/* Alerts */
.alert {
  border-radius: 10px !important;
  border: none !important;
  padding: 1rem 1.5rem !important;
}

.alert-light {
  background-color: #f5f5f5 !important;
  color: var(--text-dark) !important;
}

/* Shadows */
.shadow {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

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

.shadow-lg {
  box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* Images */
.img-fluid {
  max-width: 100%;
  height: auto;
}

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

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

.ratio-16x9::before {
  padding-top: 56.25%;
}

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

/* Text Colors */
.text-muted {
  color: var(--text-light) !important;
}

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

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

.text-danger {
  color: #dc3545 !important;
}

.text-success {
  color: #28a745 !important;
}

/* Links */
a {
  color: var(--primary-color) !important;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #b71c1c !important;
  text-decoration: underline;
}

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

.text-decoration-none:hover {
  text-decoration: none !important;
  color: var(--primary-color) !important;
}

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

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

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

.border-bottom {
  border-bottom: 1px solid #dee2e6 !important;
}

.border-light {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.border-opacity-25 {
  opacity: 0.25;
}

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

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

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

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-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-5 { padding-top: 3rem !important; padding-bottom: 3rem !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-3 { padding-top: 1rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.ps-3 { padding-left: 1rem !important; }
.ps-4 { padding-left: 1.5rem !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-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; }
.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; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.mb-lg-0 { margin-bottom: 0 !important; }
.mt-lg-0 { margin-top: 0 !important; }

/* Position */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.sticky-top { position: sticky !important; top: 0 !important; z-index: 1020; }
.top-0 { top: 0 !important; }
.start-0 { left: 0 !important; }
.bottom-0 { bottom: 0 !important; }

/* Display */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-block { display: block !important; }
.d-none { display: none !important; }
.d-lg-block { display: block !important; }

/* Flex */
.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-around { justify-content: space-around !important; }
.justify-content-between { justify-content: space-between !important; }

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

/* Text Alignment */
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-md-start { text-align: left !important; }
.text-md-end { text-align: right !important; }
.text-lg-end { text-align: right !important; }

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

/* Font Style */
.fst-italic { font-style: italic !important; }

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

/* Opacity */
.opacity-75 { opacity: 0.75 !important; }

/* Visibility */
.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;
}

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

.container {
  max-width: 1140px;
}

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

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

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

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

/* Collapse */
.collapse:not(.show) {
  display: none;
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

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

/* Hover Effects */
.card:hover,
.service-card:hover,
.btn:hover {
  transition: var(--transition);
}

/* Custom 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 pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Scroll Animation Classes */
.fade-in {
  animation: fadeInUp 0.8s ease;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease;
}

.slide-in-right {
  animation: slideInRight 0.8s ease;
}

/* Loading Spinner */
.spinner {
  border: 3px solid rgba(211, 47, 47, 0.2);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--white);
}

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

footer a:hover {
  color: var(--primary-color) !important;
}

footer .bi-facebook,
footer .bi-instagram,
footer .bi-twitter {
  font-size: 1.5rem;
  transition: var(--transition);
}

footer .bi-facebook:hover,
footer .bi-instagram:hover,
footer .bi-twitter:hover {
  color: var(--primary-color) !important;
  transform: scale(1.2);
}

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

@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  
  .d-lg-block { display: block !important; }
  .text-lg-end { text-align: right !important; }
  .mb-lg-0 { margin-bottom: 0 !important; }
  .mt-lg-0 { margin-top: 0 !important; }
  
  .navbar-expand-lg .navbar-nav { flex-direction: row; }
  .navbar-expand-lg .navbar-collapse { display: flex !important; }
  .navbar-expand-lg .navbar-toggler { display: none; }
}

@media (max-width: 991.98px) {
  .hero-section {
    padding: 80px 0 60px;
  }
  
  .floating-icons {
    display: none;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  section {
    padding: 60px 0;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 60px 0 40px;
    min-height: auto;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .display-5 {
    font-size: 1.5rem !important;
  }
  
  section {
    padding: 40px 0;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .btn-lg {
    padding: 0.65rem 1.5rem !important;
  }
  
  .timeline-item {
    padding-left: 2rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .floating-icons,
  footer {
    display: none !important;
  }
}