/* Shadow Crimson Architecture Studio - Custom Styles */

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #c41e3a;
  --light-gray: #f5f5f5;
  --dark-gray: #2a2a2a;
  --white: #ffffff;
  --shadow-light: rgba(196, 30, 58, 0.1);
  --shadow-dark: rgba(26, 26, 26, 0.3);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--white);
  color: var(--primary-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-color) !important;
}

.display-1 {
  font-size: clamp(2.5rem, 8vw, 5rem) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

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

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

.lead {
  font-size: clamp(1rem, 2vw, 1.25rem) !important;
  color: var(--dark-gray) !important;
  line-height: 1.8 !important;
}

/* Navbar */
.navbar {
  background-color: var(--primary-color) !important;
  padding: 1.2rem 0 !important;
  box-shadow: 0 2px 20px var(--shadow-dark);
  transition: var(--transition);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.navbar.scrolled {
  padding: 0.8rem 0 !important;
  background-color: rgba(26, 26, 26, 0.98) !important;
}

.navbar-brand {
  font-size: 1.5rem !important;
  color: var(--white) !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
}

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

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

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

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

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.2rem;
  position: relative;
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

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

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

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

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-gray) 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 48%, var(--secondary-color) 48%, var(--secondary-color) 52%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, var(--secondary-color) 48%, var(--secondary-color) 52%, transparent 52%);
  background-size: 80px 80px;
  opacity: 0.03;
  animation: heroPattern 20s linear infinite;
}

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

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

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

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

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

/* Buttons */
.btn {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
  border: none !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

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

.btn-lg {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  padding: 1rem 2.5rem !important;
  font-size: 1rem !important;
  border-radius: 0 !important;
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.btn-lg:hover {
  background-color: #a01830 !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.btn-outline-light {
  border: 2px solid var(--white) !important;
  color: var(--white) !important;
  background-color: transparent !important;
  padding: 0.75rem 2rem !important;
}

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

.badge {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0 !important;
}

/* Sections */
section {
  padding: 5rem 0;
  position: relative;
}

.py-5 {
  padding: 4rem 0 !important;
}

.p-4 {
  padding: 2rem !important;
}

.p-5 {
  padding: 3rem !important;
}

/* Image Styles */
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  transition: var(--transition);
  box-shadow: 0 10px 30px var(--shadow-dark);
}

.img-fluid:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px var(--shadow-dark);
}

/* Cards */
.col-md-6, .col-lg-4, .col-lg-3, .col-lg-6 {
  margin-bottom: 2rem;
}

.p-4 {
  background: var(--white);
  border: 1px solid #e0e0e0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.p-4::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: var(--secondary-color);
  transition: var(--transition);
}

.p-4:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--shadow-dark);
  border-color: var(--secondary-color);
}

.p-4:hover::before {
  left: 0;
}

/* Philosophy Content */
.philosophy-content {
  background: var(--light-gray);
  padding: 3rem;
  position: relative;
  border-left: 5px solid var(--secondary-color);
}

.philosophy-content::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 8rem;
  color: var(--secondary-color);
  opacity: 0.1;
  font-family: Georgia, serif;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-member {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  cursor: pointer;
  height: 400px;
}

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

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

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

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

.team-overlay h4 {
  color: var(--white) !important;
  margin-bottom: 0.5rem;
}

.team-overlay p {
  color: rgba(255, 255, 255, 0.8) !important;
  margin-bottom: 0;
}

/* Programs Grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.program-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  height: 350px;
  cursor: pointer;
}

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

.program-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(26, 26, 26, 0.5), rgba(196, 30, 58, 0.9));
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition);
}

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

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

.program-details h3 {
  color: var(--white) !important;
  margin-bottom: 1rem;
}

.program-details p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 3rem;
  box-shadow: 0 10px 40px var(--shadow-dark);
  border-top: 4px solid var(--secondary-color);
}

.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 0 !important;
  padding: 0.875rem 1rem !important;
  font-size: 1rem !important;
  transition: var(--transition);
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.15) !important;
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
}

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

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

/* Accordion */
.accordion {
  border: none !important;
}

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

.accordion-button {
  background-color: var(--light-gray) !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  padding: 1.25rem 1.5rem !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 1.1rem !important;
}

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

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

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

.accordion-button.collapsed::after {
  filter: none;
}

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

.accordion-body {
  padding: 1.5rem !important;
  background-color: var(--white) !important;
  color: var(--dark-gray) !important;
  border-top: 2px solid var(--secondary-color);
}

/* Icons */
.bi {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

.bi-lightning-charge-fill,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-clock-fill,
.bi-arrow-right {
  color: var(--secondary-color) !important;
  font-size: 1.2rem;
}

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

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

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

.text-secondary {
  color: #6c757d !important;
}

/* Background Colors */
.bg-dark {
  background-color: var(--primary-color) !important;
}

/* Sticky Top */
.sticky-top {
  position: sticky;
  top: 100px;
  z-index: 100;
}

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

.list-unstyled li {
  padding: 0.5rem 0;
  color: var(--dark-gray);
}

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

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

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

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

/* Spacing Utilities */
.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; }
.mb-md-0 { margin-bottom: 0 !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; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !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; }

/* Grid */
.row {
  margin-right: -15px;
  margin-left: -15px;
}

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

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

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

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

/* Flex Utilities */
.d-flex {
  display: flex !important;
}

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

.flex-sm-row {
  flex-direction: row !important;
}

.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-end {
  justify-content: flex-end !important;
}

/* Position Utilities */
.position-relative {
  position: relative !important;
}

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

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

.top-50 {
  top: 50% !important;
}

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

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

/* Height Utilities */
.h-100 {
  height: 100% !important;
}

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

/* Rounded */
.rounded-3 {
  border-radius: 0.5rem !important;
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse-animation {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.animate-on-scroll {
  opacity: 0;
  transition: var(--transition);
}

.animate-on-scroll.animated {
  opacity: 1;
  animation: slideInLeft 0.8s ease;
}

/* Order Utilities */
.order-lg-1 {
  order: 1 !important;
}

.order-lg-2 {
  order: 2 !important;
}

/* Text Alignment */
.text-center {
  text-align: center !important;
}

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

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

/* Small Text */
.small {
  font-size: 0.875rem !important;
}

/* Footer Styles */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 4rem 0 2rem;
}

footer h5 {
  color: var(--white) !important;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

footer p,
footer li {
  color: rgba(255, 255, 255, 0.7) !important;
  line-height: 1.8;
}

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

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

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

/* Responsive Styles */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(26, 26, 26, 0.98);
    padding: 1.5rem;
    margin-top: 1rem;
    border-top: 2px solid var(--secondary-color);
  }
  
  .nav-link {
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-link::after {
    display: none;
  }
  
  .order-lg-1 {
    order: 2 !important;
  }
  
  .order-lg-2 {
    order: 1 !important;
  }
  
  .sticky-top {
    position: relative;
    top: 0;
  }
  
  .philosophy-content {
    padding: 2rem;
  }
  
  section {
    padding: 3rem 0;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: 70vh;
    padding: 3rem 0;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 0.9rem !important;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .team-member {
    height: 350px;
  }
  
  .program-card {
    height: 300px;
  }
  
  .p-5 {
    padding: 2rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    min-height: 60vh;
  }
  
  .display-1 {
    font-size: 2rem !important;
  }
  
  .btn-lg {
    width: 100%;
    padding: 0.875rem 1.5rem !important;
  }
  
  .team-grid,
  .programs-grid {
    grid-template-columns: 1fr;
  }
  
  .team-member,
  .program-card {
    height: 300px;
  }
  
  .philosophy-content {
    padding: 1.5rem;
  }
  
  .accordion-button {
    font-size: 1rem !important;
    padding: 1rem !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Styles */
*:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

button:focus,
a:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background-color: var(--secondary-color);
  color: var(--white);
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: #a01830;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

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