/* Architectural Studio CSS - Deep Indigo & Aqua Mint Theme */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #1A237E;
  --secondary-color: #00BFA5;
  --dark-indigo: #0D1142;
  --light-indigo: #3949AB;
  --aqua-mint: #00BFA5;
  --light-mint: #64FFDA;
  --dark-mint: #00897B;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --dark-gray: #333333;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none !important;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-indigo) 100%);
  position: relative !important;
  overflow: hidden !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section::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"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
  opacity: 0.3;
  z-index: 1;
}

.video-background {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 0.15;
  z-index: 0;
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(26, 35, 126, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0 !important;
  transition: var(--transition);
  z-index: 1000;
}

.navbar.scrolled {
  background: rgba(13, 17, 66, 0.98) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0 !important;
}

.navbar-brand {
  color: var(--white) !important;
  font-weight: 700 !important;
  font-size: 1.75rem !important;
  letter-spacing: -0.03em;
  transition: var(--transition);
}

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

.navbar-dark .navbar-toggler {
  border-color: var(--secondary-color) !important;
  color: var(--white) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 191, 165, 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='rgba%28100, 255, 218, 1%29' 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 !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition);
}

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

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

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

/* ===== HERO CONTENT ===== */
.hero-title {
  font-size: 4rem !important;
  font-weight: 800 !important;
  color: var(--white) !important;
  text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-size: 1.5rem !important;
  color: var(--light-mint) !important;
  font-weight: 300 !important;
  text-shadow: 1px 2px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1.2s ease-out;
  position: relative;
  z-index: 2;
}

.hero-buttons {
  gap: 1.5rem !important;
  animation: fadeInUp 1.4s ease-out;
  position: relative;
  z-index: 2;
}

/* ===== BUTTONS ===== */
.btn {
  border-radius: 8px !important;
  font-weight: 600 !important;
  padding: 0.75rem 2rem !important;
  transition: var(--transition) !important;
  border: 2px solid transparent !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

.btn-primary:hover {
  background-color: var(--light-mint) !important;
  border-color: var(--light-mint) !important;
  color: var(--dark-indigo) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 191, 165, 0.4) !important;
}

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

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

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

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

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

.btn-outline-light:hover {
  background-color: 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-sm {
  padding: 0.5rem 1.5rem !important;
  font-size: 0.875rem !important;
}

/* ===== SCROLL INDICATOR ===== */
.bi-chevron-down {
  animation: bounce 2s infinite;
  font-size: 2rem;
  color: var(--light-mint) !important;
  cursor: pointer;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

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

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

.display-1 {
  font-size: 5rem !important;
  font-weight: 800 !important;
}

.display-2 {
  font-size: 4rem !important;
  font-weight: 700 !important;
  color: var(--primary-color) !important;
}

.display-3 {
  font-size: 3.5rem !important;
  font-weight: 700 !important;
  color: var(--primary-color) !important;
}

.display-4 {
  font-size: 3rem !important;
  font-weight: 700 !important;
  color: var(--primary-color) !important;
}

.display-5 {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  color: var(--primary-color) !important;
}

.display-6 {
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: var(--primary-color) !important;
}

/* ===== CARDS ===== */
.card {
  border: none !important;
  border-radius: 15px !important;
  transition: var(--transition) !important;
  overflow: hidden;
  background: var(--white) !important;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(26, 35, 126, 0.15) !important;
}

.shadow-lg {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

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

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

.card-header {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  border: none !important;
  padding: 1.5rem !important;
  font-weight: 600 !important;
}

/* ===== TEAM CARDS ===== */
.team-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px !important;
  cursor: pointer;
  height: 400px;
}

.team-card 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, 35, 126, 0.95), transparent);
  color: var(--white) !important;
  padding: 2rem;
  transform: translateY(60%);
  transition: var(--transition);
}

.team-card:hover .team-overlay {
  transform: translateY(0);
  background: linear-gradient(to top, rgba(26, 35, 126, 0.98), rgba(26, 35, 126, 0.85));
}

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

.team-overlay h4 {
  color: var(--light-mint) !important;
  font-weight: 700 !important;
}

.team-overlay .small {
  color: var(--white) !important;
  opacity: 0.9;
}

/* ===== PROGRAM CARDS (FLIP) ===== */
.program-card {
  perspective: 1000px;
  height: 300px;
  cursor: pointer;
}

.program-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

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

.program-card-front,
.program-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

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

.program-card-back {
  background: var(--secondary-color);
  color: var(--dark-indigo) !important;
  transform: rotateY(180deg);
}

.program-card-front .fs-1 {
  font-size: 3rem !important;
  margin-bottom: 1rem;
}

/* ===== TIMELINE SECTION ===== */
.timeline-section {
  position: relative;
  padding: 5rem 0;
}

.timeline-section::before {
  content: '';
  position: absolute;
  left: 50px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--secondary-color);
}

.timeline-section .rounded-circle {
  width: 60px;
  height: 60px;
  background: var(--secondary-color) !important;
  color: var(--dark-indigo) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
  z-index: 2;
}

/* ===== ACCORDION ===== */
.accordion-item {
  border: 1px solid rgba(26, 35, 126, 0.1) !important;
  margin-bottom: 1rem;
  border-radius: 10px !important;
  overflow: hidden;
}

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

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

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 191, 165, 0.25) !important;
  border-color: var(--secondary-color) !important;
}

.accordion-button::after {
  filter: brightness(0) saturate(100%) invert(17%) sepia(89%) saturate(2275%) hue-rotate(230deg) brightness(91%) contrast(105%);
}

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

.accordion-body {
  padding: 2rem !important;
  background-color: var(--white) !important;
  color: var(--dark-gray) !important;
}

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

.carousel-item {
  height: 500px;
}

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

.carousel-indicators button {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background-color: var(--secondary-color) !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(26, 35, 126, 0.7);
  border-radius: 50%;
  padding: 2rem;
}

/* ===== FORMS ===== */
.form-control,
.form-select {
  border: 2px solid rgba(26, 35, 126, 0.2) !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: var(--transition) !important;
  background-color: var(--white) !important;
  color: var(--dark-gray) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(0, 191, 165, 0.15) !important;
  outline: none !important;
}

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

.form-check-input {
  border: 2px solid var(--primary-color) !important;
  cursor: pointer;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 191, 165, 0.25) !important;
}

.form-check-label {
  color: var(--dark-gray) !important;
  cursor: pointer;
}

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

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

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

/* ===== LIVE CHAT WIDGET ===== */
.live-chat-widget {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 9999 !important;
  width: 350px;
}

.chat-window {
  display: none;
  border-radius: 15px !important;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3) !important;
}

.chat-window.active {
  display: block;
  animation: slideInUp 0.3s ease-out;
}

.chat-window .card-header {
  background: linear-gradient(135deg, var(--primary-color), var(--light-indigo)) !important;
}

.chat-messages {
  height: 300px;
  padding: 1rem;
  background-color: var(--light-gray) !important;
}

.chat-input {
  padding: 1rem;
  background-color: var(--white) !important;
}

.chat-input .form-control {
  border-radius: 25px !important;
}

.btn-link {
  color: var(--white) !important;
  text-decoration: none !important;
}

.btn-link:hover {
  color: var(--light-mint) !important;
}

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

/* ===== MODAL ===== */
.modal-content {
  border: none !important;
  border-radius: 15px !important;
  overflow: hidden;
}

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

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

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

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, var(--dark-indigo), var(--primary-color)) !important;
  color: var(--white) !important;
  padding: 4rem 0 2rem !important;
}

footer h5,
footer h4 {
  color: var(--light-mint) !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
}

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

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

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

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

.border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ===== ICONS ===== */
.bi {
  transition: var(--transition);
}

a .bi:hover,
button .bi:hover {
  transform: scale(1.2);
}

.bi-facebook:hover {
  color: #1877F2 !important;
}

.bi-instagram:hover {
  color: #E4405F !important;
}

.bi-twitter:hover {
  color: #1DA1F2 !important;
}

.bi-youtube:hover {
  color: #FF0000 !important;
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
  color: var(--primary-color) !important;
}

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

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

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

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

.text-muted {
  color: rgba(51, 51, 51, 0.6) !important;
}

.text-warning {
  color: #FFC107 !important;
}

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

.opacity-90 {
  opacity: 0.9 !important;
}

.opacity-75 {
  opacity: 0.75 !important;
}

.opacity-25 {
  opacity: 0.25 !important;
}

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

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

.img-fluid {
  max-width: 100%;
  height: auto;
}

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

/* ===== HOVER EFFECTS ===== */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

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

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

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 191, 165, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(0, 191, 165, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 191, 165, 0);
  }
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.5rem !important;
  }
  
  .display-1 {
    font-size: 4rem !important;
  }
  
  .display-2 {
    font-size: 3.5rem !important;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.25rem !important;
  }
  
  .display-1 {
    font-size: 3.5rem !important;
  }
  
  .display-2 {
    font-size: 3rem !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2.25rem !important;
  }
  
  .display-5 {
    font-size: 2rem !important;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .navbar-collapse {
    background: rgba(13, 17, 66, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 10px;
  }
  
  .live-chat-widget {
    width: 300px;
  }
  
  .timeline-section::before {
    left: 30px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.1rem !important;
  }
  
  .display-1 {
    font-size: 3rem !important;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2.25rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
  }
  
  section {
    padding: 2.5rem 0;
  }
  
  .carousel-item {
    height: 400px;
  }
  
  .team-card {
    height: 350px;
  }
  
  .program-card {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem !important;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-2 {
    font-size: 2rem !important;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .display-4 {
    font-size: 1.5rem !important;
  }
  
  .display-5 {
    font-size: 1.375rem !important;
  }
  
  .display-6 {
    font-size: 1.25rem !important;
  }
  
  .hero-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  .btn {
    width: 100%;
  }
  
  .live-chat-widget {
    width: calc(100vw - 40px);
    right: 20px;
    left: 20px;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .carousel-item {
    height: 300px;
  }
  
  .modal-dialog {
    margin: 0.5rem !important;
  }
}

/* ===== SCROLL BEHAVIOR ===== */
html {
  scroll-behavior: smooth;
}

/* ===== 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(--primary-color);
  border-radius: 6px;
}

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

/* ===== LOADING STATES ===== */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid var(--light-gray);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .hero-buttons,
  .live-chat-widget,
  footer {
    display: none !important;
  }
}