/* Fire & Steel Architecture Studio - CSS */

/* CSS Custom Properties */
:root {
  --primary-color: #FF6B35;
  --secondary-color: #2C3E50;
  --primary-dark: #E55A2B;
  --secondary-light: #34495E;
  --accent-color: #F39C12;
  --text-dark: #2C3E50;
  --text-light: #FFFFFF;
  --text-gray: #7F8C8D;
  --bg-light: #FAFAFA;
  --bg-dark: #1A252F;
  --shadow-light: rgba(255, 107, 53, 0.1);
  --shadow-dark: rgba(44, 62, 80, 0.2);
  --gradient-fire: linear-gradient(135deg, #FF6B35 0%, #F39C12 100%);
  --gradient-steel: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
  --transition-fast: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 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-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
}

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

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

p {
  margin-bottom: 1rem;
  color: var(--text-gray);
  font-size: 1.1rem;
}

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

/* Bootstrap 5 Overrides */
.btn {
  border: none;
  border-radius: 0;
  padding: 1rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-fast);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-fire);
  color: var(--text-light);
  box-shadow: 0 4px 15px var(--shadow-light);
}

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

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

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

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

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

/* Navigation */
.navbar {
  background: rgba(26, 37, 47, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: var(--transition-fast);
}

.navbar.scrolled {
  background: var(--bg-dark) !important;
  box-shadow: 0 2px 20px var(--shadow-dark);
}

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

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

.navbar-nav .nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  margin: 0 1rem;
  padding: 0.5rem 0 !important;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

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

.navbar-toggler {
  border: none;
  padding: 0;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--text-light);
  transition: var(--transition-fast);
}

.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 9px; }
.mobile-menu-toggle span:nth-child(3) { top: 18px; }

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(255, 107, 53, 0.8) 100%),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  display: flex;
  align-items: center;
  position: relative;
  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"><circle cx="50" cy="50" r="1" fill="%23FF6B35" opacity="0.3"><animate attributeName="r" values="1;3;1" dur="2s" repeatCount="indefinite"/></circle></svg>');
  animation: float 6s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
}

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

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-fire);
}

/* Cards */
.card {
  border: none;
  border-radius: 0;
  background: var(--text-light);
  box-shadow: 0 10px 30px var(--shadow-dark);
  transition: var(--transition-slow);
  overflow: hidden;
  position: relative;
}

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

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-dark);
}

.card:hover::before {
  transform: scaleX(1);
}

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

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

.card-body {
  padding: 2rem;
}

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

/* Forms */
.form-control {
  border: none;
  border-bottom: 2px solid var(--text-gray);
  border-radius: 0;
  padding: 1rem 0;
  background: transparent;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: none;
  background: transparent;
}

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

.form-floating > .form-control {
  padding: 1rem 0.75rem;
}

/* Contact Section */
.contact {
  background: var(--gradient-steel);
  color: var(--text-light);
}

.contact .section-title,
.contact h2,
.contact h3 {
  color: var(--text-light);
}

.contact .form-label {
  color: var(--text-light);
}

.contact .form-control {
  color: var(--text-light);
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.contact .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact .form-control:focus {
  border-bottom-color: var(--primary-color);
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
}

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

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

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

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

.animate-up {
  animation: slideInUp 0.8s ease-out;
}

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

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

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

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

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

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

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

/* Responsive Design - Mobile First */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .card-body {
    padding: 2.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  .navbar-nav .nav-link {
    margin: 0 1.5rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .section {
    padding: 7rem 0;
  }
}

/* Mobile Specific Styles */
@media (max-width: 767.98px) {
  .navbar-collapse {
    background: var(--bg-dark);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0;
  }
  
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
    padding: 1rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .card {
    margin-bottom: 2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .footer {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .hero {
    background: none !important;
    min-height: auto !important;
  }
}