/* Fire & Steel Architecture Studio - Custom Styles */

/* ==========================================
   ROOT VARIABLES & BASE STYLES
   ========================================== */
:root {
  --primary-color: #FF6B35;
  --secondary-color: #2C3E50;
  --dark-bg: #1a1a1a;
  --light-bg: #f8f9fa;
  --steel-gray: #95a5a6;
  --fire-red: #e74c3c;
  --text-dark: #2C3E50;
  --text-light: #ffffff;
  --transition: all 0.3s ease;
}

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

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

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1a252f 100%) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.position-fixed {
  top: 0;
}

.navbar-brand {
  font-size: 1.8rem;
  color: var(--text-light) !important;
  font-weight: 800;
  letter-spacing: 1px;
  transition: var(--transition);
}

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

.navbar-brand .fa-fire-alt {
  color: var(--primary-color);
  animation: flicker 2s infinite;
}

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

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

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

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

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

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

/* ==========================================
   HERO CAROUSEL
   ========================================== */
.carousel {
  height: 100vh;
  min-height: 600px;
}

.carousel-inner,
.carousel-item {
  height: 100%;
}

.carousel-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(255, 107, 53, 0.6) 100%);
  z-index: 1;
}

.carousel-item .position-absolute {
  z-index: 2;
}

.carousel .display-2 {
  font-weight: 800;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  color: var(--text-light) !important;
  animation: fadeInUp 1s ease;
}

.carousel .lead {
  font-size: 1.4rem;
  font-weight: 300;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.95) !important;
  animation: fadeInUp 1.2s ease;
}

.carousel .fa-chevron-down {
  color: var(--text-light) !important;
  opacity: 0.8;
  cursor: pointer;
  transition: var(--transition);
}

.carousel .fa-chevron-down:hover {
  opacity: 1;
  transform: translateY(5px);
  color: var(--primary-color) !important;
}

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

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border-radius: 50px;
  padding: 0.75rem 2rem;
  border: none;
  position: relative;
  overflow: hidden;
}

.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-primary,
.btn-lg:not(.btn-light):not(.btn-outline-dark) {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff8555 100%) !important;
  color: var(--text-light) !important;
  border: 2px solid var(--primary-color) !important;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover,
.btn-lg:not(.btn-light):not(.btn-outline-dark):hover {
  background: linear-gradient(135deg, #ff8555 0%, var(--primary-color) 100%) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  color: var(--text-light) !important;
}

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

.btn-outline-dark:hover {
  background: var(--secondary-color) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(44, 62, 80, 0.3);
}

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

.btn-light:hover {
  background: var(--light-bg) !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
}

.btn-sm {
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
}

/* ==========================================
   BADGES
   ========================================== */
.badge {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff8555 100%) !important;
  color: var(--text-light) !important;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 50px;
  padding: 0.5rem 1.5rem !important;
  font-size: 0.9rem;
  text-transform: uppercase;
}

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

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.card-body {
  padding: 2rem;
}

.card .rounded-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff8555 100%);
  color: var(--text-light) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
  transition: var(--transition);
}

.card:hover .rounded-circle {
  transform: scale(1.1) rotate(360deg);
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.portfolio-card .card-img-top,
.portfolio-img {
  transition: var(--transition);
  height: 300px;
  object-fit: cover;
}

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

.portfolio-card .card-body {
  position: relative;
  z-index: 2;
}

.portfolio-item {
  transition: var(--transition);
}

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

.value-card {
  background: var(--text-light);
  border-radius: 15px;
  padding: 2.5rem;
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
}

.value-card:hover {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1a252f 100%);
  color: var(--text-light) !important;
  border-left-color: var(--primary-color);
}

.value-card:hover h4,
.value-card:hover p {
  color: var(--text-light) !important;
}

.value-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* ==========================================
   SECTIONS
   ========================================== */
.py-5 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.section-title,
.display-2,
.display-3,
.display-4,
.display-5 {
  font-weight: 800;
  color: var(--secondary-color) !important;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.bg-light {
  background-color: #f8f9fa !important;
}

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

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

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

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

.opacity-10 {
  opacity: 0.1 !important;
}

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

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

/* ==========================================
   HERO ABOUT
   ========================================== */
.hero-about {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1a252f 100%);
  padding: 8rem 0 5rem;
  color: var(--text-light) !important;
  position: relative;
  overflow: hidden;
}

.hero-about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 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='%23FF6B35' fill-opacity='0.1'%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.3;
}

.hero-about .display-3 {
  color: var(--text-light) !important;
}

/* ==========================================
   SPLIT CONTAINER
   ========================================== */
.split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 600px;
}

.story-side,
.team-side {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-side {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1a252f 100%);
  color: var(--text-light) !important;
}

.story-side h2,
.story-side h3,
.story-side h4 {
  color: var(--text-light) !important;
}

.team-side {
  background: var(--light-bg);
}

/* ==========================================
   TIMELINE
   ========================================== */
.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
  border-left: 3px solid var(--primary-color);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
}

.timeline-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  margin-bottom: 0.5rem;
}

/* ==========================================
   TEAM
   ========================================== */
.team-member {
  text-align: center;
  transition: var(--transition);
}

.team-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  margin: 0 auto 1rem;
  transition: var(--transition);
}

.team-member:hover .team-img {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.team-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary-color) !important;
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--primary-color) !important;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ==========================================
   VALUES SECTION
   ========================================== */
.values-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1a252f 100%);
  color: var(--text-light) !important;
  padding: 5rem 0;
}

.values-section h2 {
  color: var(--text-light) !important;
}

/* ==========================================
   FORMS
   ========================================== */
.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  background: var(--text-light);
  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(255, 107, 53, 0.15) !important;
  background: var(--text-light);
  color: var(--text-dark) !important;
}

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

.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(255, 107, 53, 0.15) !important;
}

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

.invalid-feedback {
  color: #dc3545 !important;
  font-weight: 600;
}

.needs-validation .form-control:invalid {
  border-color: #dc3545;
}

.needs-validation .form-control:valid {
  border-color: #28a745;
}

.form-range::-webkit-slider-thumb {
  background: var(--primary-color) !important;
}

.form-range::-moz-range-thumb {
  background: var(--primary-color) !important;
}

/* ==========================================
   ACCORDION
   ========================================== */
.accordion-item {
  border: none !important;
  margin-bottom: 1rem;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff8555 100%) !important;
  color: var(--text-light) !important;
  box-shadow: none !important;
}

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

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

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

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

/* ==========================================
   FILTER BUTTONS
   ========================================== */
.filter-btn {
  background: var(--text-light) !important;
  color: var(--secondary-color) !important;
  border: 2px solid var(--secondary-color) !important;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  margin: 0.25rem;
  transition: var(--transition);
  font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color) !important;
  color: var(--text-light) !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* ==========================================
   IMAGES
   ========================================== */
.img-fluid {
  border-radius: 15px;
  transition: var(--transition);
}

.img-fluid:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.shadow,
.shadow-sm,
.shadow-lg {
  transition: var(--transition);
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

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

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

.fa-check-circle {
  color: #28a745;
}

/* ==========================================
   LISTS
   ========================================== */
.list-unstyled li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.list-unstyled li:last-child {
  border-bottom: none;
}

/* ==========================================
   RATIO (FOR RESPONSIVE EMBEDS)
   ========================================== */
.ratio {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   STICKY ELEMENTS
   ========================================== */
.position-sticky,
.sticky-top {
  position: sticky;
  top: 100px;
  z-index: 100;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1a252f 100%);
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 3rem 0 1rem;
}

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

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

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

footer .bi,
footer .fab,
footer .fas {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: var(--transition);
}

footer .bi:hover,
footer .fab:hover,
footer .fas:hover {
  color: var(--text-light) !important;
  transform: translateY(-3px);
}

/* ==========================================
   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%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

@keyframes flicker {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

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

.fade-in {
  animation: fadeIn 1s ease;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease;
}

.slide-in-right {
  animation: slideInRight 0.8s ease;
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   MOBILE RESPONSIVENESS
   ========================================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 62, 80, 0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }

  .navbar-nav {
    gap: 0.5rem !important;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }

  .carousel {
    height: 70vh;
    min-height: 500px;
  }

  .carousel .display-2 {
    font-size: 2.5rem;
  }

  .carousel .lead {
    font-size: 1.1rem;
  }

  .split-container {
    grid-template-columns: 1fr;
  }

  .story-side,
  .team-side {
    padding: 2rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .display-2 {
    font-size: 2.5rem !important;
  }

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

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

  .display-5 {
    font-size: 1.5rem !important;
  }

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

  .card-body {
    padding: 1.5rem;
  }

  .value-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  footer {
    text-align: center;
  }

  .position-sticky,
  .sticky-top {
    position: relative;
    top: 0;
  }
}

@media (max-width: 767.98px) {
  .navbar-brand {
    font-size: 1.4rem;
  }

  .carousel {
    height: 60vh;
    min-height: 400px;
  }

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

  .carousel .lead {
    font-size: 1rem;
  }

  .btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
  }

  .card .rounded-circle {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .team-img {
    width: 120px;
    height: 120px;
  }

  .hero-about {
    padding: 5rem 0 3rem;
  }
}

@media (max-width: 575.98px) {
  .carousel .display-2 {
    font-size: 1.75rem;
  }

  .carousel .lead {
    font-size: 0.95rem;
  }

  .badge {
    font-size: 0.8rem;
    padding: 0.4rem 1rem !important;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .timeline-item {
    padding-left: 2rem;
  }

  .timeline-year {
    font-size: 1.2rem;
  }
}

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

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

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

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

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

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

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

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

/* ==========================================
   SCROLLBAR STYLING
   ========================================== */
::-webkit-scrollbar {
  width: 12px;
}

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

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

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

/* ==========================================
   SELECTION STYLING
   ========================================== */
::selection {
  background: var(--primary-color);
  color: var(--text-light);
}

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