/* Fire Steel Architecture Studio - Custom Styles */

:root {
  --primary-color: #FF6B35;
  --secondary-color: #2C3E50;
  --dark-steel: #1a252f;
  --light-steel: #34495e;
  --fire-gradient: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
  --steel-gradient: linear-gradient(135deg, #2C3E50 0%, #34495e 100%);
  --text-light: #ffffff;
  --text-dark: #2C3E50;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-dark: #1a252f;
  --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-heavy: 0 10px 30px rgba(0,0,0,0.3);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

p {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

/* Bootstrap 5 Overrides */
.btn {
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--steel-gradient);
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn-primary {
  background: var(--fire-gradient);
  border-color: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background: var(--steel-gradient);
  border-color: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

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

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--steel-gradient);
  border-color: var(--secondary-color);
  color: var(--text-light);
}

.btn-secondary::before {
  background: var(--fire-gradient);
}

/* Navigation */
.navbar {
  background: rgba(26, 37, 47, 0.95);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.navbar.scrolled {
  background: rgba(26, 37, 47, 0.98);
  padding: 0.5rem 0;
  box-shadow: var(--shadow-light);
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-light) !important;
  text-decoration: none;
  position: relative;
}

.navbar-brand::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--fire-gradient);
  transition: var(--transition-smooth);
}

.navbar-brand:hover::after {
  width: 100%;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  position: relative;
  transition: var(--transition-smooth);
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
  transition: var(--transition-smooth);
}

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

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

.navbar-toggler {
  border: none;
  padding: 0;
  width: 30px;
  height: 30px;
  position: relative;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-light);
  margin: 5px 0;
  transition: var(--transition-smooth);
  transform-origin: center;
}

.navbar-toggler.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: var(--primary-color);
}

.navbar-toggler.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: var(--primary-color);
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="steel" patternUnits="userSpaceOnUse" width="20" height="20"><rect width="20" height="20" fill="%23ffffff" opacity="0.02"/><rect x="0" y="10" width="20" height="1" fill="%23ffffff" opacity="0.05"/><rect x="10" y="0" width="1" height="20" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23steel)"/></svg>')
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  text-align: left;
}

.hero-title {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s ease-out 0.8s forwards;
}

.hero-cta {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s ease-out 1.1s forwards;
}

.fire-accent {
  color: var(--primary-color);
  position: relative;
}

.fire-accent::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--fire-gradient);
  animation: fireGlow 2s ease-in-out infinite alternate;
}

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

@keyframes fireGlow {
  0% {
    box-shadow: 0 0 5px var(--primary-color);
  }
  100% {
    box-shadow: 0 0 20px var(--primary-color), 0 0 30px rgba(255, 107, 53, 0.5);
  }
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.section-dark {
  background: var(--steel-gradient);
  color: var(--text-light);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--text-light);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--fire-gradient);
}

/* Cards */
.card {
  border: none;
  border-radius: 0;
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
  overflow: hidden;
  background: white;
}

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

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Portfolio Grid */
.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 2rem;
}

.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 2;
}

.portfolio-item:hover::before {
  opacity: 0.9;
}

.portfolio-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-light);
  z-index: 3;
  opacity: 0;
  transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-content {
  opacity: 1;
}

.portfolio-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.1);
}

/* Forms */
.form-control {
  border: 2px solid #e9ecef;
  border-radius: 0;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  transition: var(--transition-smooth);
  background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
  background: white;
}

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

.form-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-control.error {
  border-color: #dc3545;
}

.form-control.success {
  border-color: #28a745;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
}

.footer h5 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--fire-gradient);
}

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

.footer a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* Utility Classes */
.text-fire {
  color: var(--primary-color) !important;
}

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

.bg-fire {
  background: var(--fire-gradient) !important;
}

.bg-steel {
  background: var(--steel-gradient) !important;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: var(--transition-smooth);
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: var(--transition-smooth);
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 107, 53, 0.1);
  border-left: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1199.98px) {
  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 991.98px) {
  .navbar-nav {
    background: rgba(26, 37, 47, 0.98);
    padding: 2rem;
    margin-top: 1rem;
    border-radius: 0;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .hero-content {
    text-align: center;
  }
  
  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 767.98px) {
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .portfolio-img {
    height: 250px;
  }
  
  .section {
    padding: 2rem 0;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding: 0 1rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .footer {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .section {
    padding: 1rem 0 !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #FF4500;
    --secondary-color: #000080;
    --text-muted: #333333;
  }
}

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