/* Crimson Intensity Architecture Studio - Custom Styles */

:root {
  --primary-color: #D32F2F;
  --secondary-color: #212121;
  --light-bg: #FAFAFA;
  --dark-bg: #121212;
  --text-dark: #212121;
  --text-light: #FFFFFF;
  --transition-speed: 0.3s;
  --shadow: 0 10px 30px rgba(211, 47, 47, 0.15);
  --shadow-hover: 0 15px 40px rgba(211, 47, 47, 0.25);
}

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

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

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

.display-1 {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -2px;
}

.display-3 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
}

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

.display-6 {
  font-size: clamp(1.25rem, 3vw, 2rem);
}

/* Navbar */
.navbar {
  background: rgba(33, 33, 33, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: all var(--transition-speed) ease;
  border-bottom: 2px solid var(--primary-color);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.navbar-brand {
  font-size: 1.75rem !important;
  color: var(--text-light) !important;
  font-weight: 800 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all var(--transition-speed) ease;
}

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

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

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

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23D32F2F' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  position: relative;
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

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

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

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

.nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 700 !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%);
  position: relative;
  min-height: 100vh;
}

.hero-video-container {
  z-index: 1;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.8) 0%, rgba(33, 33, 33, 0.9) 100%);
  z-index: 2;
}

.hero-section .container {
  z-index: 3;
}

.hero-section h1 {
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.hero-section .lead {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1.2s ease-out;
  color: rgba(255, 255, 255, 0.95) !important;
}

/* Buttons */
.btn {
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

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

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

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

.btn-outline-light:hover {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(211, 47, 47, 0.4);
}

.btn-light {
  background: var(--text-light) !important;
  color: var(--primary-color) !important;
  border-color: var(--text-light) !important;
  font-weight: 700 !important;
}

.btn-light:hover {
  background: var(--primary-color) !important;
  color: var(--text-light) !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(211, 47, 47, 0.4);
}

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

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

.btn-outline-dark.active {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--text-light) !important;
}

.btn-sm {
  padding: 0.5rem 1.25rem !important;
  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 bounce {
  0%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  50% {
    transform: translateY(-20px) translateX(-50%);
  }
}

@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-fade-in {
  animation: fadeInUp 1s ease-out;
}

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

/* Service Cards */
.service-card {
  background: white;
  border-radius: 15px;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
  cursor: pointer;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-speed) ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

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

.service-card .bi {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: all var(--transition-speed) ease;
}

.service-card:hover .bi {
  transform: scale(1.2) rotate(5deg);
}

.service-card .h4 {
  color: var(--secondary-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card p {
  color: #666;
  line-height: 1.8;
}

/* Hover Card */
.hover-card {
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

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

/* Card */
.card {
  border: none !important;
  border-radius: 15px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

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

.card-title {
  color: var(--secondary-color);
  font-weight: 700;
}

.card-text {
  color: #666;
}

/* Team Card */
.team-card {
  position: relative;
  overflow: hidden;
}

.team-card .card-img-top {
  transition: all 0.5s ease;
  filter: grayscale(50%);
}

.team-card:hover .card-img-top {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(211, 47, 47, 0.9) 100%);
  opacity: 0;
  transition: all 0.5s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

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

/* Class Card */
.class-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
}

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

/* Badge */
.badge {
  background: var(--primary-color) !important;
  color: var(--text-light) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

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

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

.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all var(--transition-speed) ease;
  background-color: #fafafa;
}

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

.form-control-lg {
  padding: 1rem 1.25rem !important;
  font-size: 1.1rem !important;
}

.form-select-lg {
  padding: 1rem 1.25rem !important;
  font-size: 1.1rem !important;
}

.form-check-input {
  border: 2px solid #e0e0e0;
  width: 1.5rem;
  height: 1.5rem;
}

.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.25rem rgba(211, 47, 47, 0.15) !important;
}

.invalid-feedback {
  color: var(--primary-color);
  font-weight: 600;
}

.valid-feedback {
  color: #4CAF50;
  font-weight: 600;
}

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

.form-control.is-valid,
.form-select.is-valid {
  border-color: #4CAF50 !important;
}

/* Alert */
.alert {
  border-radius: 10px;
  border: none;
  padding: 1rem 1.5rem;
  font-weight: 600;
}

.alert-success {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white !important;
}

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

/* Sections */
section {
  position: relative;
}

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

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

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

.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

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

/* Images */
.img-fluid {
  border-radius: 15px;
}

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

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

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

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

.bi-fire,
.bi-lightning-charge,
.bi-lightning-charge-fill,
.bi-heart-pulse,
.bi-heart-pulse-fill {
  color: var(--primary-color);
}

/* Footer */
footer {
  background: var(--secondary-color);
  color: rgba(255, 255, 255, 0.8);
}

footer .h5 {
  color: var(--text-light);
  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 a {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: all var(--transition-speed) ease;
  text-decoration: none;
}

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

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

footer .bi {
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: all var(--transition-speed) ease;
}

footer .bi:hover {
  transform: scale(1.2) rotate(5deg);
  color: var(--text-light);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin: 0 0.5rem;
  transition: all var(--transition-speed) ease;
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
  padding-left: 0 !important;
}

/* Privacy Content */
.privacy-content {
  line-height: 1.8;
}

.privacy-content h2,
.privacy-content h3,
.privacy-content h4 {
  color: var(--secondary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

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

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

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

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

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

.accordion-body {
  padding: 1.5rem;
  background: #fafafa;
  color: #666;
  line-height: 1.8;
}

/* Table */
.table {
  background: white;
}

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

.table thead th {
  color: var(--text-light) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  padding: 1rem;
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
  border-color: #e0e0e0;
}

.table-bordered {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

/* Carousel */
.carousel {
  border-radius: 15px;
  overflow: hidden;
}

.carousel-item {
  height: 500px;
}

.carousel-item img {
  height: 100%;
  object-fit: cover;
}

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

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

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

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

/* Filter Buttons */
.filter-btn {
  margin: 0.5rem;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

/* View Toggle */
.view-toggle .btn {
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
}

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

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

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

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

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

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

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

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

.overflow-hidden {
  overflow: hidden;
}

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.position-sticky {
  position: sticky !important;
  top: 80px;
}

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

.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

.z-3 {
  z-index: 3 !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.border {
  border: 1px solid #e0e0e0 !important;
}

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

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

.border-start {
  border-left: 2px solid var(--primary-color) !important;
}

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

.small {
  font-size: 0.875rem;
}

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

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

.fs-6 {
  font-size: 1rem !important;
}

/* Scroll to Top */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 5px 20px rgba(211, 47, 47, 0.4);
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(211, 47, 47, 0.6);
}

.scroll-to-top.show {
  display: flex;
}

/* Responsive Design */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--secondary-color);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 10px;
  }

  .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }

  .display-1 {
    font-size: 3rem;
  }

  .display-3 {
    font-size: 2.5rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
  }

  .carousel-item {
    height: 300px;
  }

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

  .position-sticky {
    position: relative !important;
    top: auto;
  }
}

@media (max-width: 767px) {
  .display-1 {
    font-size: 2.5rem;
  }

  .display-3 {
    font-size: 2rem;
  }

  .display-4 {
    font-size: 1.75rem;
  }

  .hero-section {
    min-height: 80vh;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem !important;
  }

  .service-card {
    margin-bottom: 1rem;
  }

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

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

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

  footer .col-md-4,
  footer .col-lg-2,
  footer .col-lg-3 {
    margin-bottom: 2rem;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 575px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .navbar-brand {
    font-size: 1.25rem !important;
  }

  .display-1 {
    font-size: 2rem;
  }

  .display-3 {
    font-size: 1.75rem;
  }

  .display-4 {
    font-size: 1.5rem;
  }

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

  .btn-lg {
    padding: 0.625rem 1.25rem !important;
  }

  .service-card .bi {
    font-size: 2.5rem;
  }

  .carousel-item {
    height: 250px;
  }

  .filter-btn {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }
}

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

  body {
    background: white;
  }

  .hero-section {
    min-height: auto;
    page-break-after: always;
  }
}

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

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* 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: white;
  animation: spin 1s ease-in-out infinite;
}

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

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

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

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