/* Architectural Studio Theme - Jade Teal & Amber */

:root {
  --primary-color: #00695C;
  --primary-dark: #004D40;
  --primary-light: #00897B;
  --secondary-color: #FFA726;
  --secondary-dark: #F57C00;
  --secondary-light: #FFB74D;
  --text-dark: #212121;
  --text-light: #757575;
  --white: #FFFFFF;
  --light-bg: #F5F5F5;
  --shadow: rgba(0, 105, 92, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography */
.display-1, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 20px var(--shadow);
  transition: var(--transition);
  z-index: 1000;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(0, 77, 64, 0.98) !important;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-size: 1.8rem;
  color: var(--white) !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: var(--transition);
  text-transform: uppercase;
}

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 167, 38, 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='%23FFA726' 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.9) !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.2rem;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white) !important;
  background: rgba(255, 167, 38, 0.2) !important;
  transform: translateY(-2px);
}

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

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-section .position-absolute {
  z-index: 1;
}

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

.hero-section .text-white {
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .display-1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  animation: fadeInUp 1s ease-out;
  line-height: 1.1;
}

.hero-section .lead {
  animation: fadeInUp 1.2s ease-out;
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: clamp(1rem, 2vw, 1.5rem);
}

.hero-section .fs-3 {
  animation: fadeInUp 1.4s ease-out;
  color: var(--secondary-light) !important;
}

/* Buttons */
.btn {
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  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-primary {
  background: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--white) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--secondary-dark) !important;
  border-color: var(--secondary-dark) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 167, 38, 0.4) !important;
}

.btn-outline-light {
  border-color: var(--white) !important;
  color: var(--white) !important;
  border-width: 2px;
}

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

.btn-outline-secondary {
  border-color: var(--secondary-color) !important;
  color: var(--secondary-color) !important;
  border-width: 2px;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
}

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

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

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

.btn-close-white {
  filter: brightness(0) invert(1);
}

/* Scroll Indicator */
.bi-chevron-down {
  animation: bounce 2s infinite;
  color: var(--secondary-color) !important;
  font-size: 2rem;
  cursor: pointer;
}

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

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

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

/* Cards */
.card {
  border: none !important;
  border-radius: 16px;
  transition: var(--transition);
  overflow: hidden;
  background: var(--white);
  height: 100%;
}

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

.card-body {
  padding: 2rem;
}

.card-header {
  background: transparent !important;
  border: none !important;
  padding: 1.5rem 2rem 0;
}

/* Icon Styles */
.bi {
  line-height: 1;
}

.bi-trophy-fill,
.bi-people-fill,
.bi-heart-pulse-fill,
.bi-person-check-fill,
.bi-yin-yang,
.bi-star-fill,
.bi-gem,
.bi-shield-check,
.bi-lightning-charge,
.bi-heart-fill {
  font-size: 3rem;
  color: var(--secondary-color) !important;
  display: inline-block;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.card:hover .bi-trophy-fill,
.card:hover .bi-people-fill,
.card:hover .bi-heart-pulse-fill,
.card:hover .bi-person-check-fill,
.card:hover .bi-yin-yang,
.card:hover .bi-star-fill,
.card:hover .bi-gem,
.card:hover .bi-shield-check,
.card:hover .bi-lightning-charge,
.card:hover .bi-heart-fill {
  transform: scale(1.2) rotate(5deg);
  color: var(--primary-color) !important;
}

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

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

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

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

/* Images */
.img-fluid {
  border-radius: 16px;
  transition: var(--transition);
}

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

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

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

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

/* Team Cards */
.team-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transition: var(--transition);
  background: var(--white);
  border: 2px solid transparent;
}

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

.team-card img {
  transition: var(--transition);
}

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

/* Timeline */
.timeline-container {
  position: relative;
  padding-left: 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-container .flex-shrink-0 {
  width: 60px;
  height: 60px;
  background: var(--white);
  border: 3px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: relative;
}

.timeline-container .flex-shrink-0 .bi {
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

/* Forms */
.form-control,
.form-select {
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
  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(0, 105, 92, 0.15) !important;
  background: var(--white) !important;
  color: var(--text-dark) !important;
}

.form-floating label {
  color: var(--text-light) !important;
  padding: 1rem 1.25rem;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
  color: var(--primary-color) !important;
}

/* Alert */
.alert-light {
  background: rgba(0, 105, 92, 0.05) !important;
  border: 1px solid rgba(0, 105, 92, 0.1) !important;
  border-radius: 12px;
  color: var(--primary-dark) !important;
}

/* Badge */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.75rem;
  background: var(--secondary-color) !important;
  color: var(--white) !important;
}

/* Modal */
.modal-content {
  border-radius: 20px;
  border: none;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--white) !important;
  border: none;
  padding: 2rem;
}

.modal-title {
  color: var(--white) !important;
  font-weight: 700;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  border: none;
  padding: 1.5rem 2rem;
  background: var(--light-bg);
}

/* Accordion */
.accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-radius: 12px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

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

.accordion-button:not(.collapsed) {
  background: var(--primary-color) !important;
  color: var(--white) !important;
}

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

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

.accordion-body {
  padding: 1.5rem;
  background: var(--light-bg);
  color: var(--text-dark) !important;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 1rem 0;
  margin: 0;
}

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

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

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-light) !important;
}

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

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

/* Links */
a {
  color: var(--primary-color) !important;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color) !important;
}

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

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

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

.list-unstyled li:hover {
  transform: translateX(5px);
}

/* Filter Buttons */
.filter-btn {
  background: var(--white) !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--shadow) !important;
}

/* Class Cards */
.class-card {
  transition: var(--transition);
  border: 2px solid transparent !important;
}

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

.class-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.class-details.show {
  max-height: 500px;
}

.toggle-details {
  cursor: pointer;
  color: var(--primary-color) !important;
  font-weight: 600;
  transition: var(--transition);
}

.toggle-details:hover {
  color: var(--secondary-color) !important;
}

/* Hexagon Grid */
.hexagon-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 0;
}

.hex-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trainer-hex-card {
  width: 200px;
  height: 230px;
  position: relative;
  cursor: pointer;
  perspective: 1000px;
}

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

.trainer-hex-card:hover .hex-card-inner {
  transform: rotateY(180deg);
}

.hex-card-front,
.hex-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.hex-card-front {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
}

.hex-card-back {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  color: var(--white);
  transform: rotateY(180deg);
  padding: 1.5rem;
  text-align: center;
}

.hexagon {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hex-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.hex-content {
  text-align: center;
  z-index: 1;
}

/* Ratio for responsive embeds */
.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ratio-16x9 {
  --bs-aspect-ratio: 56.25%;
}

/* Utility Classes */
.fw-bold {
  font-weight: 700 !important;
}

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

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

.text-uppercase {
  text-transform: uppercase !important;
}

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

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

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

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

.g-0 {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

@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: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
}

.slide-in-left {
  transform: translateX(-50px);
}

.slide-in-left.animated {
  transform: translateX(0);
}

.slide-in-right {
  transform: translateX(50px);
}

.slide-in-right.animated {
  transform: translateX(0);
}

.fade-in {
  opacity: 0;
}

.fade-in.animated {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(0, 77, 64, 0.98);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }
  
  .hero-section {
    min-height: 80vh;
    padding-top: 100px;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
  }
  
  .timeline-container::before {
    left: 20px;
  }
  
  .timeline-container .flex-shrink-0 {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 767.98px) {
  .display-1 {
    font-size: 2rem !important;
  }
  
  .hero-section {
    min-height: 70vh;
  }
  
  .fs-3 {
    font-size: 1.25rem !important;
  }
  
  .lead {
    font-size: 1rem !important;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .modal-header,
  .modal-body {
    padding: 1.5rem;
  }
  
  .trainer-hex-card {
    width: 150px;
    height: 170px;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.4rem;
  }
  
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .card {
    margin-bottom: 1rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .modal,
  .filter-btn {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  a {
    text-decoration: underline;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .btn,
  .card,
  .form-control {
    border-width: 3px !important;
  }
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #FFFFFF;
    --text-light: #B0BEC5;
    --light-bg: #1A1A1A;
    --white: #212121;
  }
  
  body {
    background: #121212;
    color: #FFFFFF;
  }
  
  .card,
  .bg-white {
    background: #1E1E1E !important;
    color: #FFFFFF !important;
  }
  
  .bg-light {
    background: #2A2A2A !important;
  }
  
  .form-control,
  .form-select {
    background: #2A2A2A !important;
    color: #FFFFFF !important;
    border-color: #404040 !important;
  }
  
  .text-muted {
    color: #B0BEC5 !important;
  }
}