/* Industrial Steel & Fire - Architecture Studio Theme */
/* Mobile-First Responsive Design */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E74C3C;
  --dark-steel: #1a252f;
  --light-steel: #34495e;
  --fire-accent: #c0392b;
  --fire-glow: #ff6b5a;
  --concrete: #95a5a6;
  --white: #ffffff;
  --off-white: #ecf0f1;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --transition-speed: 0.3s;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: all var(--transition-speed) ease;
}

a:hover {
  color: var(--fire-glow);
}

/* Bootstrap 5 Overrides */
.btn {
  padding: 0.75rem 2rem;
  border-radius: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--fire-accent);
  border-color: var(--fire-accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

.btn-primary:focus,
.btn-primary:active {
  background-color: var(--fire-accent);
  border-color: var(--fire-accent);
  color: var(--white);
  box-shadow: 0 0 0 0.25rem rgba(231, 76, 60, 0.3);
}

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

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

.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 0 0 0.25rem rgba(44, 62, 80, 0.3);
}

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

.btn-outline-secondary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
}

.btn-outline-secondary:focus,
.btn-outline-secondary:active {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
  box-shadow: 0 0 0 0.25rem rgba(231, 76, 60, 0.3);
}

.form-control {
  border-radius: 0;
  border: 2px solid var(--concrete);
  padding: 0.75rem 1rem;
  transition: all var(--transition-speed) ease;
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.25rem rgba(231, 76, 60, 0.15);
}

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

.card {
  border: none;
  border-radius: 0;
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed) ease;
  overflow: hidden;
}

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

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

/* Navigation */
.navbar {
  background-color: var(--primary-color);
  padding: 1rem 0;
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed) ease;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background-color: var(--dark-steel);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.navbar-brand::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color), var(--fire-glow));
}

.navbar-brand:hover {
  color: var(--white);
}

.navbar-nav .nav-link {
  color: var(--off-white);
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  position: relative;
  transition: all var(--transition-speed) ease;
}

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

.navbar-nav .nav-link:hover {
  color: var(--white);
}

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

.navbar-nav .nav-link.active {
  color: var(--white);
}

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

.navbar-toggler {
  border: 2px solid var(--white);
  padding: 0.5rem;
  transition: all var(--transition-speed) ease;
}

.navbar-toggler:hover {
  border-color: var(--secondary-color);
  background-color: rgba(231, 76, 60, 0.1);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(231, 76, 60, 0.3);
}

.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, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

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

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(45deg, rgba(231, 76, 60, 0.1) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(231, 76, 60, 0.1) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(231, 76, 60, 0.1) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(231, 76, 60, 0.1) 75%);
  background-size: 100px 100px;
  background-position: 0 0, 0 50px, 50px -50px, -50px 0px;
  opacity: 0.3;
  animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
  0% {
    background-position: 0 0, 0 50px, 50px -50px, -50px 0px;
  }
  100% {
    background-position: 100px 100px, 100px 150px, 150px 50px, 50px 100px;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem;
  animation: fadeInUp 1s ease;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  color: var(--off-white);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-accent {
  color: var(--fire-glow);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

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

/* Section Styling */
.section {
  padding: 5rem 0;
  position: relative;
}

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

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--fire-glow));
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Industrial Steel Background */
.steel-bg {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-steel) 100%);
  color: var(--white);
}

.steel-bg h2,
.steel-bg h3,
.steel-bg p {
  color: var(--white);
}

.steel-bg .section-title h2::after {
  background: linear-gradient(90deg, var(--fire-glow), var(--secondary-color));
}

/* Project Cards */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 2rem;
}

.project-card-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: all 0.5s ease;
}

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

.project-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(44, 62, 80, 0.95) 0%, rgba(44, 62, 80, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: all 0.5s ease;
}

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

.project-card-title {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: all 0.5s ease 0.1s;
}

.project-card:hover .project-card-title {
  transform: translateY(0);
}

.project-card-description {
  color: var(--off-white);
  transform: translateY(20px);
  transition: all 0.5s ease 0.2s;
}

.project-card:hover .project-card-description {
  transform: translateY(0);
}

.project-card-link {
  color: var(--fire-glow);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;
  transform: translateY(20px);
  transition: all 0.5s ease 0.3s;
}

.project-card:hover .project-card-link {
  transform: translateY(0);
}

.project-card-link:hover {
  color: var(--white);
}

/* Services Grid */
.service-item {
  text-align: center;
  padding: 2rem;
  background-color: var(--white);
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed) ease;
  height: 100%;
  border-left: 4px solid transparent;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
  border-left-color: var(--secondary-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--secondary-color), var(--fire-glow));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white);
  transition: all var(--transition-speed) ease;
}

.service-item:hover .service-icon {
  transform: rotate(360deg) scale(1.1);
}

.service-title {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-description {
  color: var(--text-light);
  line-height: 1.8;
}

/* Team Section */
.team-member {
  text-align: center;
  margin-bottom: 2rem;
}

.team-member-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 5px solid var(--secondary-color);
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed) ease;
}

.team-member:hover .team-member-img {
  transform: scale(1.05);
  border-color: var(--fire-glow);
  box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
}

.team-member-name {
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.team-member-role {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-member-bio {
  color: var(--text-light);
}

/* Contact Form */
.contact-form {
  background-color: var(--white);
  padding: 3rem;
  box-shadow: var(--box-shadow-hover);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control.is-invalid {
  border-color: var(--secondary-color);
}

.form-control.is-valid {
  border-color: #27ae60;
}

.invalid-feedback {
  color: var(--secondary-color);
  font-weight: 500;
}

.valid-feedback {
  color: #27ae60;
  font-weight: 500;
}

/* Contact Info */
.contact-info {
  background: linear-gradient(135deg, var(--primary-color), var(--light-steel));
  color: var(--white);
  padding: 3rem;
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.contact-info-content h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-info-content p {
  color: var(--off-white);
  margin-bottom: 0;
}

.contact-info-content a {
  color: var(--fire-glow);
}

.contact-info-content a:hover {
  color: var(--white);
}

/* Stats Counter */
.stats-section {
  background: linear-gradient(135deg, var(--dark-steel), var(--primary-color));
  color: var(--white);
  padding: 4rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--fire-glow);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  color: var(--off-white);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Testimonials */
.testimonial-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-left: 4px solid var(--secondary-color);
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-quote {
  font-size: 3rem;
  color: var(--secondary-color);
  opacity: 0.3;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}

.testimonial-text {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
  border: 3px solid var(--secondary-color);
}

.testimonial-author-name {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.testimonial-author-title {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background-color: var(--dark-steel);
  color: var(--off-white);
  padding: 3rem 0 1rem;
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color), var(--fire-glow));
}

.footer-section p {
  color: var(--concrete);
  line-height: 1.8;
}

.footer-links {
  list-style: none;
  padding: 0;
}

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

.footer-links a {
  color: var(--concrete);
  transition: all var(--transition-speed) ease;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--fire-glow);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  transition: all var(--transition-speed) ease;
}

.social-icon:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-5px) rotate(360deg);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.footer-bottom {
  border-top: 1px solid var(--light-steel);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--concrete);
}

.footer-bottom a {
  color: var(--fire-glow);
}

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

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--secondary-color), var(--fire-glow));
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--box-shadow-hover);
  z-index: 1000;
  transition: all var(--transition-speed) ease;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(231, 76, 60, 0.5);
}

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

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Animations */
.fade-in {
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (min-width: 576px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  html {
    font-size: 17px;
  }
  
  .hero-content h1 {
    font-size: 4rem;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .contact-form {
    padding: 4rem;
  }
  
  .contact-info {
    padding: 4rem;
  }
}

@media (min-width: 992px) {
  html {
    font-size: 18px;
  }
  
  .hero-content h1 {
    font-size: 4.5rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1.25rem;
  }
}

@media (min-width: 1200px) {
  .hero-content h1 {
    font-size: 5rem;
  }
}

@media (max-width: 767px) {
  .navbar-collapse {
    background-color: var(--dark-steel);
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: var(--box-shadow);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 2rem;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--secondary-color);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Print Styles */
@media print {
  .navbar,
  .back-to-top,
  .loading {
    display: none;
  }
  
  body {
    color: #000;
  }
  
  a {
    text-decoration: underline;
  }
}