/* ===================================
   Architecture Studio - CSS
   Theme: Crimson & Beige
   =================================== */

/* ===================================
   ROOT VARIABLES & IMPORTS
   =================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Montserrat:wght@300;400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css');

:root {
  --primary-color: #8B0000;
  --secondary-color: #F5F5DC;
  --dark-crimson: #5C0000;
  --light-crimson: #A52A2A;
  --accent-gold: #D4AF37;
  --text-dark: #2C2C2C;
  --text-light: #FFFFFF;
  --shadow: rgba(139, 0, 0, 0.15);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   BASE STYLES & TYPOGRAPHY
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif !important;
  color: var(--text-dark) !important;
  background-color: var(--secondary-color) !important;
  line-height: 1.7 !important;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  line-height: 1.2 !important;
}

.lead {
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  color: var(--text-dark) !important;
  line-height: 1.7 !important;
}

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

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

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

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
  background: rgba(139, 0, 0, 0.95) !important;
  backdrop-filter: blur(10px);
  transition: var(--transition) !important;
  z-index: 1030 !important;
  box-shadow: 0 4px 20px var(--shadow);
}

.navbar.fixed-top {
  background: var(--primary-color) !important;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.navbar-brand {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  color: var(--text-light) !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  transition: var(--transition) !important;
}

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

.navbar-dark .navbar-toggler {
  border-color: var(--text-light) !important;
  color: var(--text-light) !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(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav {
  align-items: center;
}

.nav-link {
  font-weight: 500 !important;
  font-size: 1rem !important;
  color: var(--text-light) !important;
  padding: 0.5rem 1rem !important;
  position: relative !important;
  transition: var(--transition) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

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

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

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

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

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

.btn:hover::before {
  left: 100%;
}

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

/* Primary Button */
.btn-primary,
.btn.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--text-light) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--dark-crimson) !important;
  border-color: var(--dark-crimson) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--shadow) !important;
}

/* Light Button */
.btn-light,
.btn.btn-light {
  background-color: var(--text-light) !important;
  border-color: var(--text-light) !important;
  color: var(--primary-color) !important;
}

.btn-light:hover,
.btn-light:focus,
.btn-light:active {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--shadow) !important;
}

/* Outline Light Button */
.btn-outline-light,
.btn.btn-outline-light {
  background-color: transparent !important;
  border-color: var(--text-light) !important;
  color: var(--text-light) !important;
}

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

/* Filter Button */
.filter-btn {
  background-color: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: 50px !important;
  font-size: 0.9rem !important;
}

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

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

.hero-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 0 L100 100 M100 0 L0 100" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
  background-size: 100px 100px;
  opacity: 0.5;
  animation: backgroundScroll 20s linear infinite;
}

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

.hero-content {
  z-index: 10;
  position: relative;
  animation: fadeInUp 1s ease-out;
}

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

.hero-content .display-2 {
  color: var(--text-light) !important;
  font-size: 4rem !important;
  font-weight: 900 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-content .lead {
  color: var(--secondary-color) !important;
  font-size: 1.4rem !important;
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* Split Hero */
.split-hero {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
}

.split-left {
  background: var(--primary-color);
  color: var(--text-light) !important;
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.split-left::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: rgba(255, 255, 255, 0.05);
  transform: rotate(15deg);
}

.split-right {
  background-color: var(--secondary-color);
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-left .display-3 {
  color: var(--text-light) !important;
  position: relative;
  z-index: 1;
}

/* ===================================
   STATS BANNER
   =================================== */
.stats-banner {
  background: linear-gradient(90deg, var(--dark-crimson) 0%, var(--primary-color) 100%);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.stats-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="50" height="50" xmlns="http://www.w3.org/2000/svg"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 50px 50px;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.stat-number {
  font-family: 'Playfair Display', serif !important;
  font-size: 3rem !important;
  font-weight: 900 !important;
  color: var(--text-light) !important;
  display: block;
  margin-bottom: 0.5rem;
  animation: countUp 2s ease-out;
}

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

.stat-label {
  font-size: 1rem !important;
  color: var(--secondary-color) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===================================
   CARDS & CONTENT SECTIONS
   =================================== */
.card {
  border: none !important;
  border-radius: 0 !important;
  transition: var(--transition) !important;
  background-color: var(--text-light) !important;
}

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

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

.shadow {
  box-shadow: 0 10px 30px var(--shadow) !important;
}

.shadow-sm {
  box-shadow: 0 5px 15px var(--shadow) !important;
}

.shadow-lg {
  box-shadow: 0 20px 60px var(--shadow) !important;
}

/* Portfolio Cards */
.portfolio-item {
  margin-bottom: 2rem;
  animation: fadeIn 0.6s ease-out;
}

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

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 0 !important;
  cursor: pointer;
  height: 100%;
}

.portfolio-card img {
  transition: var(--transition) !important;
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(139, 0, 0, 0.95) 0%, rgba(139, 0, 0, 0.7) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition);
}

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

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

.portfolio-overlay h4,
.portfolio-overlay h5 {
  color: var(--text-light) !important;
}

.portfolio-overlay p {
  color: var(--secondary-color) !important;
}

/* Philosophy Cards */
.philosophy-grid {
  margin: 3rem 0;
}

.philosophy-card {
  background: var(--text-light);
  padding: 2.5rem;
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
  height: 100%;
}

.philosophy-card:hover {
  background: var(--primary-color);
  transform: translateX(10px);
}

.philosophy-card:hover h4,
.philosophy-card:hover p {
  color: var(--text-light) !important;
}

.philosophy-card .bi {
  font-size: 2.5rem !important;
  color: var(--primary-color) !important;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.philosophy-card:hover .bi {
  color: var(--accent-gold) !important;
  transform: scale(1.2);
}

/* ===================================
   FOUNDERS SECTION
   =================================== */
.founders-section {
  background-color: var(--secondary-color);
  padding: 5rem 0;
}

.founder-card {
  background: var(--text-light);
  padding: 0;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.founder-image {
  width: 100%;
  height: 350px;
  overflow: hidden;
  position: relative;
}

.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.founder-content {
  padding: 2rem;
  flex-grow: 1;
}

.founder-content h4 {
  margin-bottom: 0.5rem !important;
}

.founder-content .text-muted {
  font-style: italic;
  margin-bottom: 1rem;
}

/* ===================================
   TIMELINE SECTION
   =================================== */
.timeline-section {
  background-color: var(--text-light);
  padding: 5rem 0;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

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

.timeline-item:nth-child(odd) {
  text-align: right;
  padding-right: calc(50% + 3rem);
  padding-left: 0;
}

.timeline-item:nth-child(even) {
  text-align: left;
  padding-left: calc(50% + 3rem);
  padding-right: 0;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border: 4px solid var(--secondary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-gold);
  transform: translateX(-50%) scale(1.5);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.timeline-item h5 {
  color: var(--primary-color) !important;
  margin-bottom: 0.5rem !important;
}

.timeline-item .small {
  color: var(--text-muted) !important;
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
}

/* Mobile Timeline */
@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    padding-left: 60px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }
  
  .timeline-dot {
    left: 20px !important;
  }
}

/* ===================================
   FORMS
   =================================== */
.form-label {
  font-weight: 600 !important;
  color: var(--primary-color) !important;
  margin-bottom: 0.5rem !important;
  text-transform: uppercase !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.5px !important;
}

.form-control,
.form-select {
  border: 2px solid var(--secondary-color) !important;
  border-radius: 0 !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: var(--transition) !important;
  background-color: var(--text-light) !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(139, 0, 0, 0.15) !important;
  background-color: var(--text-light) !important;
  color: var(--text-dark) !important;
}

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

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

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

.form-check-input {
  border: 2px solid var(--primary-color) !important;
  border-radius: 0 !important;
  width: 1.2em !important;
  height: 1.2em !important;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(139, 0, 0, 0.15) !important;
}

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

textarea.form-control {
  resize: vertical !important;
  min-height: 150px !important;
}

/* ===================================
   BADGES & LABELS
   =================================== */
.badge {
  padding: 0.5rem 1rem !important;
  border-radius: 0 !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  font-size: 0.75rem !important;
}

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

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

/* ===================================
   ALERTS
   =================================== */
.alert {
  border: none !important;
  border-radius: 0 !important;
  padding: 1.5rem !important;
  border-left: 4px solid transparent !important;
}

.alert-success {
  background-color: rgba(139, 0, 0, 0.1) !important;
  border-left-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}

/* ===================================
   IMAGES
   =================================== */
.img-fluid {
  max-width: 100% !important;
  height: auto !important;
  transition: var(--transition) !important;
}

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

.rounded {
  border-radius: 0 !important;
}

.rounded-3 {
  border-radius: 0 !important;
}

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

/* ===================================
   ICONS
   =================================== */
.bi {
  display: inline-block;
  vertical-align: middle;
  transition: var(--transition) !important;
}

.fs-1 {
  font-size: calc(1.375rem + 1.5vw) !important;
}

.fs-2 {
  font-size: calc(1.325rem + 0.9vw) !important;
}

.fs-4 {
  font-size: calc(1.275rem + 0.3vw) !important;
}

.fs-5 {
  font-size: 1.25rem !important;
}

/* ===================================
   SPACING & LAYOUT
   =================================== */
.py-5 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

.g-0 {
  gap: 0 !important;
}

/* ===================================
   BACKGROUNDS
   =================================== */
.bg-white {
  background-color: var(--text-light) !important;
}

section {
  position: relative;
  overflow: hidden;
}

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

section:nth-child(odd) {
  background-color: var(--secondary-color);
}

/* ===================================
   BORDERS
   =================================== */
.border {
  border: 1px solid rgba(139, 0, 0, 0.1) !important;
}

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

.border-2 {
  border-width: 2px !important;
}

/* ===================================
   STICKY & FIXED ELEMENTS
   =================================== */
.sticky-top {
  position: sticky !important;
  top: 100px !important;
  z-index: 1020 !important;
}

/* ===================================
   LIST STYLES
   =================================== */
.list-unstyled {
  padding-left: 0 !important;
  list-style: none !important;
}

.list-unstyled li {
  padding: 0.5rem 0 !important;
  display: flex !important;
  align-items: flex-start !important;
}

.list-unstyled li .bi {
  color: var(--primary-color) !important;
  margin-right: 0.75rem !important;
  font-size: 1.2rem !important;
  flex-shrink: 0 !important;
}

/* ===================================
   PRIVACY CONTENT
   =================================== */
.privacy-content {
  background: var(--text-light);
  padding: 3rem;
  box-shadow: 0 10px 30px var(--shadow);
}

.privacy-content h2,
.privacy-content h3,
.privacy-content h4 {
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
}

.privacy-content p {
  line-height: 1.8 !important;
}

.privacy-content ul {
  padding-left: 2rem;
}

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

/* ===================================
   FOOTER
   =================================== */
footer {
  background: linear-gradient(135deg, var(--dark-crimson) 0%, var(--primary-color) 100%);
  color: var(--text-light) !important;
  padding: 3rem 0 1rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold) 0%, var(--primary-color) 100%);
}

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

footer p,
footer a,
footer li {
  color: var(--secondary-color) !important;
}

footer a {
  text-decoration: none !important;
  transition: var(--transition) !important;
  display: inline-block;
}

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

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

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

/* ===================================
   UTILITY CLASSES
   =================================== */
.d-inline-flex {
  display: inline-flex !important;
}

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

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

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

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

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

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

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

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

.flex-grow-1 {
  flex-grow: 1 !important;
}

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

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

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

.ms-auto {
  margin-left: auto !important;
}

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

.me-2 {
  margin-right: 0.5rem !important;
}

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

.me-4 {
  margin-right: 1.5rem !important;
}

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

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

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

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

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

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

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

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

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

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

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

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Scroll Animation Classes */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) {
  .d-lg-block {
    display: block !important;
  }
  
  .d-lg-none {
    display: none !important;
  }
  
  .flex-lg-row-reverse {
    flex-direction: row-reverse !important;
  }
  
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
  }
  
  .navbar-expand-lg .navbar-toggler {
    display: none !important;
  }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) {
  .d-md-block {
    display: block !important;
  }
  
  .d-md-none {
    display: none !important;
  }
  
  .flex-md-row {
    flex-direction: row !important;
  }
  
  .text-md-start {
    text-align: left !important;
  }
  
  .text-md-end {
    text-align: right !important;
  }
}

/* Tablet Adjustments */
@media (max-width: 991px) {
  .hero-content .display-2 {
    font-size: 3rem !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .navbar-collapse {
    background: var(--primary-color) !important;
    padding: 1rem !important;
    margin-top: 1rem !important;
    box-shadow: 0 10px 20px var(--shadow);
  }
  
  .navbar-nav {
    gap: 0 !important;
  }
  
  .nav-link {
    padding: 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .split-left,
  .split-right {
    min-height: 50vh;
  }
  
  .stat-number {
    font-size: 2.5rem !important;
  }
}

/* Mobile Devices (Phones, less than 768px) */
@media (max-width: 767px) {
  .hero-wrapper {
    min-height: auto;
    padding: 6rem 0 3rem;
  }
  
  .hero-content .display-2 {
    font-size: 2.5rem !important;
  }
  
  .hero-content .lead {
    font-size: 1.1rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .display-5 {
    font-size: 1.5rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .stat-number {
    font-size: 2rem !important;
  }
  
  .stat-label {
    font-size: 0.85rem !important;
  }
  
  .portfolio-card img {
    height: 300px;
  }
  
  .founder-image {
    height: 300px;
  }
  
  .navbar-brand {
    font-size: 1.5rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .philosophy-card {
    padding: 1.5rem !important;
  }
  
  .privacy-content {
    padding: 1.5rem !important;
  }
  
  .sticky-top {
    position: relative !important;
    top: 0 !important;
  }
  
  .order-lg-1,
  .order-lg-2 {
    order: 0 !important;
  }
  
  .col-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  
  .filter-btn {
    padding: 0.4rem 1rem !important;
    font-size: 0.8rem !important;
  }
}

/* Small Mobile Devices (less than 576px) */
@media (max-width: 575px) {
  .hero-content .display-2 {
    font-size: 2rem !important;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .btn {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .gap-4 {
    gap: 1rem !important;
  }
  
  .gap-3 {
    gap: 0.75rem !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .hero-wrapper {
    min-height: auto !important;
    background: white !important;
  }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

/* Focus States */
*:focus {
  outline: 2px solid var(--accent-gold) !important;
  outline-offset: 2px !important;
}

/* Skip to Content Link */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary-color);
  color: var(--text-light) !important;
  padding: 1rem 2rem;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .btn,
  .card,
  .form-control {
    border-width: 3px !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;
  border: 3px solid var(--secondary-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-crimson);
}

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

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

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