/* Architectural Studio - Midnight Steel & Amber Theme */
/* ============================================= */
/* CSS Reset & Base Styles */
/* ============================================= */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --dark-accent: #1a252f;
  --light-accent: #34495e;
  --amber-light: #f39c12;
  --amber-dark: #d35400;
  --text-light: #ecf0f1;
  --text-dark: #2c3e50;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1a1a;
  --white: #ffffff;
  --transition-speed: 0.3s;
  --shadow-sm: 0 2px 8px rgba(44, 62, 80, 0.1);
  --shadow-md: 0 4px 16px rgba(44, 62, 80, 0.15);
  --shadow-lg: 0 8px 32px rgba(44, 62, 80, 0.2);
}

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

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

/* ============================================= */
/* Typography */
/* ============================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

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, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

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

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

a:hover {
  color: var(--amber-dark);
}

/* ============================================= */
/* Bootstrap 5 Overrides */
/* ============================================= */

.btn {
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

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

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

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

.btn-secondary:hover {
  background-color: var(--amber-dark);
  border-color: var(--amber-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary:focus,
.btn-secondary:active {
  background-color: var(--amber-dark);
  border-color: var(--amber-dark);
  color: var(--white);
  box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.3);
}

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

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

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

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

.form-control {
  padding: 0.875rem 1rem;
  border: 2px solid #dee2e6;
  border-radius: 0.25rem;
  font-size: 1rem;
  transition: all var(--transition-speed) ease;
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.15);
  outline: 0;
}

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

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

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

.navbar {
  padding: 1rem 0;
  transition: all var(--transition-speed) ease;
}

/* ============================================= */
/* Navigation */
/* ============================================= */

.navbar-custom {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar-custom.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

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

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

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--secondary-color);
  transform: scaleX(0);
  transition: transform var(--transition-speed) ease;
}

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

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

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

.navbar-toggler {
  border: 2px solid var(--primary-color);
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(44, 62, 80, 0.15);
}

.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, var(--primary-color) 0%, var(--light-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: 76px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(30deg, var(--secondary-color) 12%, transparent 12.5%, transparent 87%, var(--secondary-color) 87.5%, var(--secondary-color)),
    linear-gradient(150deg, var(--secondary-color) 12%, transparent 12.5%, transparent 87%, var(--secondary-color) 87.5%, var(--secondary-color)),
    linear-gradient(30deg, var(--secondary-color) 12%, transparent 12.5%, transparent 87%, var(--secondary-color) 87.5%, var(--secondary-color)),
    linear-gradient(150deg, var(--secondary-color) 12%, transparent 12.5%, transparent 87%, var(--secondary-color) 87.5%, var(--secondary-color));
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px;
  opacity: 0.03;
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% {
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
  }
  100% {
    background-position: 80px 140px, 80px 140px, 120px 210px, 120px 210px;
  }
}

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

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

.hero-content p {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-accent {
  color: var(--secondary-color);
  font-weight: 700;
}

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

/* ============================================= */
/* Section Styles */
/* ============================================= */

.section {
  padding: 5rem 0;
}

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--amber-light));
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--light-accent);
  font-size: 1.125rem;
  margin-top: -2rem;
  margin-bottom: 3rem;
}

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

.bg-dark-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-accent) 100%);
  color: var(--text-light);
}

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

.bg-dark-section p {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================= */
/* Project Cards */
/* ============================================= */

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
  height: 400px;
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s 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(180deg, transparent 0%, rgba(44, 62, 80, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

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

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

.project-card-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.project-card-link {
  color: var(--secondary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-card-link:hover {
  color: var(--amber-light);
  gap: 0.75rem;
}

/* ============================================= */
/* Service Cards */
/* ============================================= */

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
  height: 100%;
}

.service-card:hover {
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-lg);
}

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

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

.service-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--light-accent);
}

/* ============================================= */
/* 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: 4px solid var(--secondary-color);
  transition: all var(--transition-speed) ease;
  box-shadow: var(--shadow-md);
}

.team-member:hover .team-member-img {
  transform: scale(1.05);
  border-color: var(--amber-light);
}

.team-member-name {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

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

.team-member-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

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

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

/* ============================================= */
/* Statistics Section */
/* ============================================= */

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  backdrop-filter: blur(10px);
  transition: all var(--transition-speed) ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

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

.stat-label {
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
}

/* ============================================= */
/* Testimonials */
/* ============================================= */

.testimonial-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  margin-bottom: 2rem;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 6rem;
  color: var(--secondary-color);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  color: var(--light-accent);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

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

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

.testimonial-author-info h5 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.testimonial-author-info p {
  color: var(--light-accent);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ============================================= */
/* Contact Form */
/* ============================================= */

.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
}

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

.form-floating label {
  color: var(--light-accent);
}

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

.form-error.active {
  display: block;
}

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

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

.form-success-message {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 1rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
  display: none;
}

.form-success-message.active {
  display: block;
}

/* ============================================= */
/* Contact Info */
/* ============================================= */

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

.contact-info-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary-color), var(--amber-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-info-content h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

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

.contact-info-content a {
  color: var(--secondary-color);
  font-weight: 600;
}

/* ============================================= */
/* Footer */
/* ============================================= */

.footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-accent) 100%);
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

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

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

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

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

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

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

.footer-links a:hover {
  padding-left: 0.5rem;
}

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

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

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

/* ============================================= */
/* 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(--amber-light));
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ============================================= */
/* Loading Animation */
/* ============================================= */

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
}

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

/* ============================================= */
/* Animations */
/* ============================================= */

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

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

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

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

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

/* ============================================= */
/* Utility Classes */
/* ============================================= */

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

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

.bg-primary-custom {
  background-color: var(--primary-color);
}

.bg-secondary-custom {
  background-color: var(--secondary-color);
}

.gradient-text {
  background: linear-gradient(90deg, var(--secondary-color), var(--amber-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================= */
/* 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;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1.25rem;
  }
  
  .section {
    padding: 6rem 0;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  .hero-content {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .section {
    padding: 7rem 0;
  }
}

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

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Mobile specific styles */
@media (max-width: 767px) {
  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    box-shadow: var(--shadow-md);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .project-card {
    height: 300px;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  .back-to-top,
  .footer-social {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .section {
    page-break-inside: avoid;
  }
}