/* Architecture Studio - Dominion Red & Charcoal Theme */

/* ========================================
   ROOT VARIABLES & RESET
======================================== */
:root {
  --primary-color: #D32F2F;
  --secondary-color: #212121;
  --accent-color: #FF5252;
  --dark-bg: #1A1A1A;
  --light-gray: #F5F5F5;
  --white: #FFFFFF;
  --text-dark: #333333;
  --text-light: #E0E0E0;
  --border-color: #424242;
  --transition-speed: 0.3s;
  --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);
}

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

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

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

/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.display-1 {
  font-size: clamp(2.5rem, 5vw, 5rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

.display-3 {
  font-size: clamp(2rem, 4vw, 3.5rem) !important;
  font-weight: 700 !important;
}

.display-4 {
  font-size: clamp(1.75rem, 3.5vw, 3rem) !important;
  font-weight: 700 !important;
}

.display-5 {
  font-size: clamp(1.5rem, 3vw, 2.5rem) !important;
  font-weight: 600 !important;
}

.display-6 {
  font-size: clamp(1.25rem, 2.5vw, 2rem) !important;
  font-weight: 600 !important;
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.25rem) !important;
  font-weight: 400;
  opacity: 0.9;
}

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

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

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

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

/* ========================================
   NAVBAR
======================================== */
.navbar {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #2C2C2C 100%) !important;
  padding: 1rem 0 !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-speed) ease;
  z-index: 1050;
}

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

.navbar-brand {
  color: var(--white) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed) ease;
  position: relative;
}

.navbar-brand::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

.navbar-brand:hover::before {
  width: 100%;
}

.navbar-brand.fw-bold {
  font-weight: 800 !important;
}

.navbar-toggler {
  border: 2px solid var(--primary-color) !important;
  padding: 0.5rem 0.75rem !important;
  transition: all var(--transition-speed) ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.25) !important;
}

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

.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='%23FFFFFF' 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-item {
  margin: 0 0.25rem;
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  transition: left var(--transition-speed) ease;
  z-index: -1;
}

.nav-link:hover {
  color: var(--white) !important;
  transform: translateY(-2px);
}

.nav-link:hover::before {
  left: 0;
}

.nav-link.active {
  color: var(--white) !important;
  background-color: var(--primary-color) !important;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
}

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

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

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

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.btn:active {
  transform: translateY(-1px) !important;
}

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

.btn-primary:hover,
.btn-danger:hover {
  background-color: #B71C1C !important;
  border-color: #B71C1C !important;
  color: var(--white) !important;
}

/* Dark Button */
.btn-dark {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  border-color: var(--secondary-color) !important;
}

.btn-dark:hover {
  background-color: #000000 !important;
  border-color: #000000 !important;
  color: var(--white) !important;
}

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

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

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

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

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

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

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

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

.btn-group .filter-btn {
  border-radius: 8px !important;
  margin: 0 0.25rem;
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #424242 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(211, 47, 47, 0.1) 50%, transparent 70%),
    radial-gradient(circle at 20% 50%, rgba(211, 47, 47, 0.15), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(211, 47, 47, 0.15), transparent 50%);
  animation: heroPattern 20s ease-in-out infinite;
}

@keyframes heroPattern {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.8; transform: translateY(-20px); }
}

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

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

.hero-section .lead {
  animation: fadeInUp 1s ease-out 0.2s both;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  color: var(--text-light) !important;
}

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

/* About Hero */
.about-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #1A1A1A 0%, var(--secondary-color) 100%);
}

/* ========================================
   SPLIT LAYOUT
======================================== */
.split-layout {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.split-layout .img-fluid {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-speed) ease;
}

.split-layout .img-fluid:hover {
  transform: scale(1.02) rotate(1deg);
}

/* ========================================
   CARDS & CONTAINERS
======================================== */
.card {
  border: none !important;
  border-radius: 12px !important;
  overflow: hidden;
  transition: all var(--transition-speed) ease !important;
  background-color: var(--white) !important;
}

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

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

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

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

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

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

/* Team Card */
.team-card {
  background: var(--white) !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
}

.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
}

.team-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

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

/* Program Card */
.program-card {
  background: var(--white) !important;
  border-radius: 12px !important;
  transition: all var(--transition-speed) ease !important;
  height: 100%;
}

.program-card:hover {
  box-shadow: 0 10px 30px rgba(211, 47, 47, 0.2) !important;
  transform: translateY(-5px) !important;
}

.program-item {
  position: relative;
  overflow: hidden;
}

/* Card Hover Reveal */
.card-hover-reveal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(33, 33, 33, 0.95), transparent);
  padding: 2rem;
  transform: translateY(100%);
  transition: transform var(--transition-speed) ease;
}

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

/* Philosophy Card */
.philosophy-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
  border-left: 4px solid var(--primary-color);
}

.philosophy-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(10px);
  border-left-width: 8px;
}

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

.icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), #E57373);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-speed) ease;
  flex-shrink: 0;
}

.icon-wrapper:hover {
  transform: rotate(360deg) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.bi-lightning-charge-fill,
.bi-trophy-fill,
.bi-speedometer,
.bi-bar-chart-fill,
.bi-egg-fried,
.bi-people-fill {
  font-size: 2.5rem;
  color: var(--primary-color);
  display: block;
  margin-bottom: 1rem;
}

/* ========================================
   TIMELINE SECTION
======================================== */
.timeline-section {
  background: linear-gradient(135deg, var(--light-gray) 0%, #EEEEEE 100%);
  padding: 80px 0;
  position: relative;
}

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

.timeline-item {
  position: relative;
  padding: 2rem 0;
  margin-bottom: 2rem;
  padding-left: 60px;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.timeline-item.scroll-animate {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: -2rem;
  width: 3px;
  background: var(--primary-color);
}

.milestone-marker {
  position: absolute;
  left: -8px;
  top: 2rem;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(211, 47, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
}

.year-tag {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ========================================
   PHILOSOPHY SECTION
======================================== */
.philosophy-section {
  background: var(--white);
  padding: 80px 0;
}

.philosophy-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #E53935 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

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

.cta-section * {
  position: relative;
  z-index: 2;
}

/* ========================================
   TEAM SECTION
======================================== */
.team-section {
  background: var(--light-gray);
  padding: 80px 0;
}

/* ========================================
   FORMS
======================================== */
.form-control,
.form-select {
  border: 2px solid #E0E0E0 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: all var(--transition-speed) ease !important;
  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.25rem rgba(211, 47, 47, 0.25) !important;
  background-color: var(--white) !important;
}

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

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

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

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

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

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

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

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

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

.alert-success {
  background-color: #4CAF50 !important;
  color: var(--white) !important;
}

.alert-danger {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
}

.badge {
  padding: 0.5rem 1rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  border-radius: 20px !important;
}

.bg-warning {
  background-color: #FFC107 !important;
  color: var(--secondary-color) !important;
}

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

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

/* ========================================
   ACCORDION
======================================== */
.accordion {
  border-radius: 12px;
  overflow: hidden;
}

.accordion-item {
  border: none !important;
  border-bottom: 1px solid #E0E0E0 !important;
  background-color: var(--white) !important;
}

.accordion-item:last-child {
  border-bottom: none !important;
}

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

.accordion-button {
  background-color: var(--white) !important;
  color: var(--secondary-color) !important;
  font-weight: 600 !important;
  padding: 1.25rem 1.5rem !important;
  font-size: 1.1rem !important;
  border: none !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--light-gray) !important;
  color: var(--primary-color) !important;
  box-shadow: inset 0 -1px 0 rgba(211, 47, 47, 0.125) !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='%23D32F2F'%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='%23D32F2F'%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 !important;
  color: var(--text-dark) !important;
  line-height: 1.7;
  background-color: var(--white) !important;
}

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

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

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

.carousel-item {
  transition: transform 0.6s ease-in-out;
}

.carousel-indicators {
  margin-bottom: 1rem;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--white);
  opacity: 0.5;
  border: 2px solid var(--primary-color);
  transition: all var(--transition-speed) ease;
}

.carousel-indicators .active {
  background-color: var(--primary-color);
  opacity: 1;
  transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(211, 47, 47, 0.8);
  border-radius: 50%;
  opacity: 0.8;
  transition: all var(--transition-speed) ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background-color: var(--primary-color);
}

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

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

/* ========================================
   BENEFIT ITEM
======================================== */
.benefit-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
  border-left: 4px solid transparent;
}

.benefit-item:hover {
  border-left-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

/* ========================================
   FOOTER
======================================== */
footer {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1A1A1A 100%);
  color: var(--text-light) !important;
  padding: 60px 0 20px;
  border-top: 3px solid var(--primary-color);
}

footer h5 {
  color: var(--white) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
}

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

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

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

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

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

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

/* ========================================
   UTILITIES
======================================== */
.shadow {
  box-shadow: var(--shadow-sm) !important;
}

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

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

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

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

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

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

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

.sticky-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 1020;
}

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

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

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

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

.end-0 {
  right: 0 !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.px-3 { padding-left: 1rem !important; padding-right: 1rem !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-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

.pt-5 { padding-top: 3rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.ps-lg-5 { padding-left: 3rem !important; }

.m-3 { margin: 1rem !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; }
.mt-auto { margin-top: auto !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; }

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

.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.me-4 { margin-right: 1.5rem !important; }

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

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

/* Font Sizes */
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }

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

.small { font-size: 0.875rem !important; }

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

@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);
  }
}

.scroll-animate {
  animation: fadeInUp 0.8s ease-out;
}

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

/* Extra Large Devices */
@media (min-width: 1200px) {
  .container,
  .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Large Devices */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(33, 33, 33, 0.98);
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-item {
    margin: 0.5rem 0;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .hero-section {
    padding: 100px 0 60px;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .split-layout {
    padding: 60px 0;
  }
  
  .text-lg-start,
  .text-lg-end {
    text-align: center !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 1.5rem !important;
  }
  
  .ps-lg-5 {
    padding-left: 1rem !important;
  }
}

/* Medium Devices */
@media (max-width: 767.98px) {
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .d-flex.gap-4 {
    gap: 1rem !important;
    justify-content: center;
  }
  
  .hero-section {
    min-height: auto;
    padding: 80px 0 40px;
  }
  
  .display-1 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .icon-wrapper {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .team-img {
    height: 250px;
  }
  
  .timeline-item {
    padding-left: 40px;
  }
  
  .philosophy-card {
    padding: 1.5rem;
  }
  
  .p-md-5 {
    padding: 2rem !important;
  }
  
  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }
  
  .mb-md-0 {
    margin-bottom: 1rem !important;
  }
}

/* Small Devices */
@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .filter-btn {
    width: 100%;
    margin: 0.25rem 0 !important;
  }
  
  .d-flex.gap-4,
  .d-flex.gap-3 {
    flex-direction: column;
    gap: 1rem !important;
  }
  
  .lead {
    font-size: 1rem !important;
  }
  
  .display-1 {
    font-size: 1.75rem !important;
  }
  
  .display-3 {
    font-size: 1.5rem !important;
  }
  
  .display-5 {
    font-size: 1.25rem !important;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .team-img {
    height: 200px;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  .carousel-control-prev {
    left: 10px;
  }
  
  .carousel-control-next {
    right: 10px;
  }
  
  footer h5 {
    margin-top: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer,
  .carousel-control-prev,
  .carousel-control-next,
  .carousel-indicators {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .card,
  .shadow,
  .shadow-lg {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}