/* Steel Storm Architecture Studio CSS */

/* ===== CSS VARIABLES ===== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E74C3C;
  --dark-shade: #1A252F;
  --light-shade: #34495E;
  --accent-light: #ECF0F1;
  --accent-gray: #95A5A6;
  --white: #FFFFFF;
  --black: #000000;
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--dark-shade));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #C0392B);
  --shadow-light: 0 2px 10px rgba(44, 62, 80, 0.1);
  --shadow-medium: 0 8px 25px rgba(44, 62, 80, 0.15);
  --shadow-heavy: 0 15px 35px rgba(44, 62, 80, 0.2);
  --transition-fast: all 0.3s ease;
  --transition-slow: all 0.6s ease;
  --border-radius: 8px;
  --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Poppins', 'Arial Black', sans-serif;
}

/* ===== GLOBAL RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--primary-color);
  background-color: var(--white);
  overflow-x: hidden;
}

/* ===== BOOTSTRAP 5 OVERRIDES ===== */
.btn-primary {
  background: var(--gradient-secondary);
  border: none;
  color: var(--white);
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-light);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: linear-gradient(135deg, #C0392B, #A93226);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border: none;
}

.btn-outline-primary {
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  background: transparent;
  padding: 10px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: var(--gradient-primary);
  border: none;
  color: var(--white);
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
  background: linear-gradient(135deg, var(--dark-shade), #0F1419);
  color: var(--white);
  border: none;
  transform: translateY(-2px);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: var(--transition-fast);
}

.navbar-nav .nav-link {
  color: var(--primary-color);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 10px;
  padding: 8px 0;
  position: relative;
  transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  color: var(--secondary-color);
}

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

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

.card {
  border: none;
  border-radius: calc(var(--border-radius) * 1.5);
  box-shadow: var(--shadow-light);
  transition: var(--transition-fast);
  overflow: hidden;
}

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

.form-control {
  border: 2px solid #E9ECEF;
  border-radius: var(--border-radius);
  padding: 12px 16px;
  font-size: 1rem;
  transition: var(--transition-fast);
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
}

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

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

p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--light-shade);
}

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

a:hover {
  color: #C0392B;
  text-decoration: underline;
}

/* ===== NAVIGATION STYLES ===== */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
  padding: 1rem 0;
  transition: var(--transition-fast);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-medium);
}

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

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(26, 37, 47, 0.8)),
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="steel" patternUnits="userSpaceOnUse" width="100" height="100"><rect width="100" height="100" fill="%23f8f9fa"/><path d="M0 0h50v50H0zM50 50h50v50H50z" fill="%23e9ecef"/></pattern></defs><rect width="1000" height="1000" fill="url(%23steel)"/></svg>');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: heroFadeIn 1.5s ease-out;
}

.hero-title {
  color: var(--white);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  color: var(--accent-light);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ===== SECTION STYLES ===== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background: var(--gradient-primary);
  color: var(--white);
}

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

.section-dark p {
  color: var(--accent-light);
}

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

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

/* ===== PROJECT CARDS ===== */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--border-radius) * 1.5);
  cursor: pointer;
  height: 400px;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(231, 76, 60, 0.6));
  opacity: 0;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--white);
  text-align: center;
  padding: 2rem;
}

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

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

.project-title {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-description {
  color: var(--accent-light);
  font-size: 1rem;
}

/* ===== SERVICES SECTION ===== */
.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 2rem;
  transition: var(--transition-fast);
}

.service-item:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-medium);
}

.service-item {
  text-align: center;
  padding: 2rem 1rem;
  transition: var(--transition-fast);
}

/* ===== STATS SECTION ===== */
.stats-section {
  background: var(--gradient-primary);
  color: var(--white);
}

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

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

.stat-label {
  font-size: 1.2rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: calc(var(--border-radius) * 2);
  box-shadow: var(--shadow-medium);
}

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

.form-label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.contact-info {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 3rem 2rem;
  border-radius: calc(var(--border-radius) * 2);
}

.contact-info h3 {
  color: var(--white);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  color: var(--accent-light);
}

.contact-item i {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-right: 1rem;
  width: 20px;
}

/* ===== FOOTER STYLES ===== */
.footer {
  background: var(--dark-shade);
  color: var(--accent-light);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer a {
  color: var(--accent-light);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

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

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

.social-link:hover {
  background: var(--secondary-color);
  color: var(--white);
  transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */
@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

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

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--accent-light);
  border-top: 4px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ===== MOBILE STYLES ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .contact-info {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .btn-primary,
  .btn-secondary,
  .btn-outline-primary {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .project-card {
    height: 300px;
    margin-bottom: 2rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .contact-form,
  .contact-info {
    padding: 1.5rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-primary-custom {
  color: var(--primary-color) !important;
}

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

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

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

.shadow-custom {
  box-shadow: var(--shadow-medium) !important;
}

.border-radius-custom {
  border-radius: var(--border-radius) !important;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for better accessibility */
.btn:focus,
.form-control:focus,
a:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}