/* Ember & Gold Architecture Studio - Custom Styles */

/* ========================================
   ROOT VARIABLES & RESETS
   ======================================== */
:root {
  --primary-color: #D32F2F;
  --primary-dark: #B71C1C;
  --primary-light: #EF5350;
  --secondary-color: #FFA000;
  --secondary-dark: #F57C00;
  --secondary-light: #FFB333;
  --dark-bg: #1a1a1a;
  --darker-bg: #0d0d0d;
  --light-bg: #f8f9fa;
  --gold-gradient: linear-gradient(135deg, #FFA000 0%, #FFD54F 100%);
  --ember-gradient: linear-gradient(135deg, #D32F2F 0%, #FF6F00 100%);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(211, 47, 47, 0.1);
  --shadow-md: 0 4px 16px rgba(211, 47, 47, 0.15);
  --shadow-lg: 0 8px 32px rgba(211, 47, 47, 0.2);
  --shadow-gold: 0 4px 20px rgba(255, 160, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--dark-bg) !important;
}

.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
.text-white .display-1, .text-white .display-2, .text-white .display-3 {
  color: #ffffff !important;
}

.lead {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.7;
}

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

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

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

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  padding: 1rem 0;
  transition: var(--transition-base);
  background: rgba(26, 26, 26, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1040;
}

.navbar.fixed-top {
  border-bottom: 2px solid var(--primary-color);
}

.navbar-brand {
  color: #ffffff !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  transition: var(--transition-base);
  position: relative;
  padding-left: 3rem;
}

.navbar-brand::before {
  content: '\F32A';
  font-family: 'bootstrap-icons';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-size: 2rem;
  animation: flameFlicker 2s infinite alternate;
}

@keyframes flameFlicker {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

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

.navbar-nav {
  gap: 0.5rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  transition: var(--transition-base);
  position: relative;
  border-radius: 8px;
}

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

.nav-link:hover,
.nav-link.active {
  color: #ffffff !important;
  background: rgba(255, 160, 0, 0.1) !important;
}

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

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

.navbar-toggler {
  border: 2px solid var(--secondary-color) !important;
  padding: 0.5rem 0.75rem;
}

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

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  border-radius: 12px !important;
  transition: var(--transition-base);
  border: none !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition-base);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

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

.btn-sm {
  padding: 0.4rem 1rem !important;
  font-size: 0.9rem !important;
  border-radius: 8px !important;
}

.btn-primary,
.btn.btn-lg.px-5.py-3 {
  background: var(--ember-gradient) !important;
  color: #ffffff !important;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn.btn-lg.px-5.py-3:hover {
  background: linear-gradient(135deg, #B71C1C 0%, #E65100 100%) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4) !important;
}

.btn-light {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  box-shadow: var(--shadow-sm);
}

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

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

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

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

.btn-outline-danger:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1a1a 50%, #3d2500 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(211, 47, 47, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 160, 0, 0.15) 0%, transparent 50%);
  pointer-events: none;
  animation: heroGlow 8s infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.hero-section .position-absolute {
  background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M10 10h80v80H10z" fill="none" stroke="%23FFA000" stroke-width="0.5" opacity="0.1"/%3E%3C/svg%3E');
  background-size: 100px 100px;
  opacity: 0.3;
}

.hero-section .text-white {
  z-index: 2;
}

.hero-section .display-2 {
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

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

.hero-section p.lead {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.25rem;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-section .btn {
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* ========================================
   CARDS
   ======================================== */
.card {
  border: none !important;
  border-radius: 16px !important;
  overflow: hidden;
  transition: var(--transition-base);
  background: #ffffff;
  height: 100%;
}

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

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

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

.card-text {
  color: #666 !important;
  line-height: 1.7;
  margin-bottom: 1rem;
}

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

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

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

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

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

.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition-base);
  font-size: 1rem;
  background: #ffffff !important;
  color: #333 !important;
}

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

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

.form-check-input {
  border: 2px solid #ddd !important;
  width: 1.25em;
  height: 1.25em;
}

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

.form-check-label {
  color: #333 !important;
  margin-left: 0.5rem;
}

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

.input-group {
  box-shadow: var(--shadow-sm);
  border-radius: 10px !important;
}

/* ========================================
   CAROUSEL
   ======================================== */
.carousel {
  border-radius: 16px;
  overflow: hidden;
}

.carousel-item {
  transition: transform 0.8s ease-in-out;
  min-height: 400px;
  background: var(--light-bg);
}

.carousel-inner {
  border-radius: 16px;
}

.carousel-caption {
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2rem;
  bottom: 2rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  max-width: 80%;
}

.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  background: rgba(211, 47, 47, 0.9) !important;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
  transition: var(--transition-base);
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background: var(--primary-dark) !important;
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: brightness(0) invert(1);
}

.carousel-indicators {
  bottom: 1rem;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--secondary-color) !important;
  opacity: 0.5;
  transition: var(--transition-base);
}

.carousel-indicators .active {
  opacity: 1;
  transform: scale(1.3);
}

/* ========================================
   TIMELINE
   ======================================== */
.timeline-line {
  position: relative;
}

.timeline-line::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold-gradient);
  transform: translateX(-50%);
}

.timeline-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition-base);
}

.timeline-card::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--secondary-color);
  border: 4px solid #ffffff;
  border-radius: 50%;
  top: 2rem;
  box-shadow: 0 0 0 4px rgba(255, 160, 0, 0.2);
}

.text-end .timeline-card::before {
  right: -60px;
}

.text-start .timeline-card::before,
.ps-5 .timeline-card::before {
  left: -60px;
}

.timeline-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-gold);
}

.timeline-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--secondary-color);
  position: relative;
  z-index: 2;
}

/* ========================================
   TEAM CARDS
   ======================================== */
.team-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  height: 400px;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-base);
}

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

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

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

.team-bio {
  opacity: 0;
  transition: var(--transition-base);
  transition-delay: 0.1s;
  color: rgba(255, 255, 255, 0.9) !important;
}

.team-card:hover .team-bio {
  opacity: 1;
}

/* ========================================
   ROOM/PROJECT FLIP CARDS
   ======================================== */
.card-flip-container {
  perspective: 1000px;
  height: 450px;
}

.card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.card-flip-container.flipped .card-flip-inner {
  transform: rotateY(180deg);
}

.card-flip-front,
.card-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.card-flip-front {
  background: #ffffff;
}

.card-flip-back {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #ffffff;
  transform: rotateY(180deg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flip-trigger,
.flip-back-trigger,
.view-room-btn {
  cursor: pointer;
}

.badge {
  background: var(--secondary-color) !important;
  color: var(--dark-bg) !important;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
}

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

.filter-btn:hover,
.filter-btn.active {
  background: var(--ember-gradient) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ========================================
   SOCIAL LINKS
   ======================================== */
.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-links a,
.bi-facebook,
.bi-instagram,
.bi-twitter,
.bi-youtube,
.bi-pinterest {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 1.5rem;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  color: var(--secondary-color) !important;
  background: rgba(255, 160, 0, 0.2);
  transform: translateY(-3px) scale(1.1);
}

/* ========================================
   FOOTER
   ======================================== */
.bg-dark {
  background: var(--dark-bg) !important;
}

.text-light {
  color: rgba(255, 255, 255, 0.9) !important;
}

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

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

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

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

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

/* ========================================
   ACCORDION
   ======================================== */
.accordion-item {
  border: none !important;
  margin-bottom: 1rem;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  border-radius: 12px !important;
}

.accordion-button {
  background: var(--light-bg) !important;
  color: var(--dark-bg) !important;
  font-weight: 600 !important;
  border: none !important;
  padding: 1.25rem 1.5rem !important;
  border-radius: 12px !important;
  transition: var(--transition-base);
}

.accordion-button:not(.collapsed) {
  background: var(--ember-gradient) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 160, 0, 0.15) !important;
}

.accordion-button::after {
  filter: brightness(0) saturate(100%);
}

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

.accordion-body {
  padding: 1.5rem !important;
  background: #ffffff;
  color: #666 !important;
  line-height: 1.7;
}

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

/* ========================================
   CHAT WIDGET
   ======================================== */
.chat-widget {
  z-index: 1050;
  width: 60px;
  height: 60px;
  background: var(--ember-gradient) !important;
  color: #ffffff !important;
  border: none;
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-base);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(211, 47, 47, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(255, 160, 0, 0.6);
  }
}

.chat-widget:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%) !important;
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
  background: transparent !important;
  padding: 0.75rem 0;
  margin: 0;
}

.breadcrumb-item {
  color: #666 !important;
}

.breadcrumb-item.active {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--secondary-color) !important;
  content: '›';
  font-size: 1.2rem;
}

.breadcrumb-item a {
  color: #666 !important;
  text-decoration: none;
  transition: var(--transition-base);
}

.breadcrumb-item a:hover {
  color: var(--primary-color) !important;
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
  border: none !important;
  border-radius: 12px !important;
  padding: 1.25rem 1.5rem !important;
  border-left: 4px solid !important;
  box-shadow: var(--shadow-sm);
}

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

.alert .bi {
  font-size: 1.25rem;
  margin-right: 0.75rem;
  color: var(--secondary-color) !important;
}

/* ========================================
   RATIO / VIDEO EMBEDS
   ======================================== */
.ratio {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.ratio iframe,
.ratio video {
  border-radius: 16px;
}

/* ========================================
   UTILITIES
   ======================================== */
.sticky-top,
.position-sticky {
  top: 80px;
  z-index: 1020;
}

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

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

.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

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

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

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

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

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

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

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

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

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

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

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

/* ========================================
   ICON SPECIFIC STYLES
   ======================================== */
.bi {
  display: inline-block;
  vertical-align: middle;
}

.bi-fire,
.bi-gem,
.bi-trophy,
.bi-stars {
  color: var(--secondary-color) !important;
}

.bi-check-circle-fill,
.bi-check2,
.bi-calendar-check {
  color: #4caf50 !important;
}

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

.bi-info-circle {
  color: #2196f3 !important;
}

/* ========================================
   CUSTOM ANIMATIONS
   ======================================== */
@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);
  }
}

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

.animate-on-scroll {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* ========================================
   SECTION SPACING
   ======================================== */
section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background: var(--light-bg);
}

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

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

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

.mt-4 {
  margin-top: 2rem !important;
}

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

.mt-2 {
  margin-top: 0.5rem !important;
}

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

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

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

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container-fluid {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
  }
  
  .hero-section {
    min-height: 100vh;
  }
  
  .display-2 {
    font-size: 4rem !important;
  }
  
  .display-3 {
    font-size: 3.5rem !important;
  }
  
  .display-4 {
    font-size: 3rem !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(26, 26, 26, 0.98);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }
  
  .hero-section {
    padding: 100px 0 60px;
    min-height: auto;
  }
  
  .hero-section .display-2 {
    font-size: 2.5rem !important;
  }
  
  .timeline-line::before {
    left: 30px;
  }
  
  .timeline-card::before {
    left: 0 !important;
    right: auto !important;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 50px;
    height: 50px;
  }
  
  .carousel-control-prev {
    left: 10px;
  }
  
  .carousel-control-next {
    right: 10px;
  }
  
  .card-flip-container {
    height: 400px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
  .display-2 {
    font-size: 2rem !important;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .display-4 {
    font-size: 1.5rem !important;
  }
  
  .display-5 {
    font-size: 1.35rem !important;
  }
  
  .display-6 {
    font-size: 1.25rem !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .card-body {
    padding: 1.25rem !important;
  }
  
  .carousel-caption {
    padding: 1rem;
    max-width: 90%;
  }
  
  .team-card {
    height: 350px;
  }
  
  .card-flip-container {
    height: 350px;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .chat-widget {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .navbar-brand {
    font-size: 1.5rem !important;
    padding-left: 2.5rem;
  }
  
  .navbar-brand::before {
    font-size: 1.75rem;
  }
  
  .hero-section {
    padding: 80px 0 40px;
  }
  
  .hero-section .display-2 {
    font-size: 1.75rem !important;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem !important;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .team-card {
    height: 300px;
  }
  
  .card-flip-container {
    height: 320px;
  }
  
  .timeline-card {
    padding: 1.25rem;
  }
  
  .carousel-item {
    min-height: 300px;
  }
  
  .social-links a {
    width: 35px;
    height: 35px;
    font-size: 1.25rem;
  }
  
  footer {
    text-align: center;
  }
  
  footer .col-lg-2,
  footer .col-lg-3,
  footer .col-md-3,
  footer .col-md-4 {
    margin-bottom: 2rem;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .navbar,
  .btn,
  .chat-widget,
  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .card {
    page-break-inside: avoid;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
:focus-visible {
  outline: 3px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

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

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

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid rgba(255, 160, 0, 0.3);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--ember-gradient);
  border-radius: 6px;
  border: 2px solid var(--light-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--light-bg);
}

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

::-moz-selection {
  background: var(--secondary-color);
  color: var(--dark-bg);
}