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

:root {
  --primary-color: #D73027;
  --secondary-color: #2C3E50;
  --accent-color: #E67E22;
  --dark-bg: #1A1A1A;
  --light-bg: #F8F9FA;
  --text-dark: #2C3E50;
  --text-light: #FFFFFF;
  --gradient-fire: linear-gradient(135deg, #D73027, #E67E22);
  --gradient-steel: linear-gradient(135deg, #2C3E50, #34495E);
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.3);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
  margin-bottom: 1rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

/* Bootstrap 5 Overrides */
.btn-primary {
  background: var(--gradient-fire);
  border: none;
  color: var(--text-light);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: var(--text-light);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 50px;
  transition: var(--transition-smooth);
}

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

.form-control {
  border: 2px solid #E9ECEF;
  border-radius: 8px;
  padding: 12px 16px;
  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(215, 48, 39, 0.25);
  background: white;
}

/* Navigation */
.navbar {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: var(--dark-bg);
  box-shadow: var(--shadow-light);
  padding: 10px 0;
}

.navbar-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-light) !important;
  letter-spacing: 2px;
}

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

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

.navbar-nav .nav-link:hover {
  color: var(--text-light) !important;
}

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

.navbar-toggler {
  border: none;
  padding: 4px 8px;
}

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(26, 26, 26, 0.7), rgba(215, 48, 39, 0.3)), 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="%232C3E50"/><circle cx="10" cy="10" r="1" fill="%23D73027"/></pattern></defs><rect width="100" height="100" fill="url(%23steel)"/></svg>');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-steel);
  opacity: 0.8;
  z-index: 1;
}

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

.hero h1 {
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero .btn {
  animation: fadeInUp 1s ease-out 0.6s both;
  margin: 0 10px;
}

/* Floating Elements */
.floating-element {
  position: absolute;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  width: 80px;
  height: 80px;
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

/* Section Styling */
.section {
  padding: 80px 0;
  position: relative;
}

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

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

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  width: 80px;
  height: 4px;
  background: var(--gradient-fire);
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

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

.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.1);
}

.card-body {
  padding: 2rem;
}

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

/* Portfolio Grid */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  margin-bottom: 30px;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-fire);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--text-light);
  transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 0.95;
}

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

/* Team Cards */
.team-card {
  text-align: center;
  padding: 2rem;
  border-radius: 15px;
  background: white;
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: var(--gradient-fire);
  transition: var(--transition-smooth);
}

.team-card:hover::before {
  left: 0;
}

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

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

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

/* Contact Form */
.contact-form {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-fire);
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 60px 0 30px;
}

.footer h5 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

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

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

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition-bounce);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px) scale(1.1);
}

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(215, 48, 39, 0.3);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

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

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

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

/* Utility Classes */
.fade-in {
  animation: fadeInUp 0.8s ease-out;
}

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

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

.text-fire {
  color: var(--primary-color);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    background-attachment: scroll;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .navbar-nav {
    background: var(--dark-bg);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
  }
  
  .navbar-nav .nav-link {
    margin: 5px 0;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .floating-element {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .btn {
    display: block;
    margin: 10px auto !important;
    width: 80%;
  }
  
  .section-title {
    margin-bottom: 40px;
  }
  
  .portfolio-item img {
    height: 200px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .floating-element,
  .loading {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  body {
    color: #000 !important;
    background: white !important;
  }
}