/* Blazing Orange Storm - Architecture Studio Theme */

/* ============================================
   CSS Variables & Root Styles
   ============================================ */
:root {
  --primary-color: #FF4500;
  --secondary-color: #1C1C1C;
  --primary-light: #FF6A33;
  --primary-dark: #CC3700;
  --dark-gray: #2A2A2A;
  --medium-gray: #4A4A4A;
  --light-gray: #F5F5F5;
  --white: #FFFFFF;
  --text-dark: #1C1C1C;
  --text-light: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(255, 69, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(255, 69, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(255, 69, 0, 0.2);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-in-out;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================
   Base Styles & Typography
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

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 {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-base);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Bootstrap 5 Overrides
   ============================================ */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  border: 2px solid transparent;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.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: left 0.5s ease;
  z-index: -1;
}

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

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

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

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

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

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

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

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.625rem 1.5rem;
  font-size: 0.75rem;
}

/* Form Controls */
.form-control,
.form-select {
  border-radius: 0;
  border: 2px solid var(--light-gray);
  padding: 0.875rem 1rem;
  font-size: 1rem;
  transition: var(--transition-base);
  color: var(--text-dark);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 69, 0, 0.15);
  outline: 0;
}

.form-control::placeholder {
  color: var(--medium-gray);
  opacity: 0.7;
}

.form-label {
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.invalid-feedback {
  color: var(--primary-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--primary-color);
}

/* Card Overrides */
.card {
  border: none;
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  overflow: hidden;
}

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

.card-img-top {
  border-radius: 0;
  transition: var(--transition-base);
}

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

/* Navbar Overrides */
.navbar {
  padding: 1rem 0;
  transition: var(--transition-base);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--secondary-color);
  letter-spacing: -0.02em;
}

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

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--secondary-color);
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-base);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary-color);
}

.nav-link:hover::after {
  width: calc(100% - 2rem);
}

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

.nav-link.active::after {
  width: calc(100% - 2rem);
}

/* ============================================
   Header & Navigation
   ============================================ */
.main-header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-base);
}

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 69, 0, 0.25);
  outline: 0;
}

.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='%23FF4500' 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;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-gray) 100%);
  overflow: hidden;
  margin-top: 76px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 69, 0, 0.03) 10px,
    rgba(255, 69, 0, 0.03) 20px
  );
  z-index: 1;
}

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

.hero-title {
  color: var(--white);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--light-gray);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-cta {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-accent {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.hero-accent::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  animation: expandWidth 1s ease-out 0.6s both;
}

/* Storm Effect */
.storm-particle {
  position: absolute;
  background-color: var(--primary-color);
  opacity: 0.3;
  animation: stormFloat 15s infinite linear;
}

/* ============================================
   Section Styles
   ============================================ */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

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

.section-subtitle {
  text-align: center;
  color: var(--medium-gray);
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.section-dark {
  background-color: var(--secondary-color);
  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-light {
  background-color: var(--light-gray);
}

/* ============================================
   Project Gallery
   ============================================ */
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 400px;
  background-color: var(--secondary-color);
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(28, 28, 28, 0.95) 0%, rgba(28, 28, 28, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transform: translateY(100%);
  transition: var(--transition-base);
}

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

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

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

.project-category {
  color: var(--primary-color);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-description {
  color: var(--light-gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   Services Section
   ============================================ */
.service-item {
  padding: 2.5rem;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  height: 100%;
  border-left: 4px solid transparent;
}

.service-item:hover {
  box-shadow: var(--shadow-lg);
  border-left-color: var(--primary-color);
  transform: translateX(8px);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--white);
  transition: var(--transition-base);
}

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

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

.service-description {
  color: var(--medium-gray);
  line-height: 1.8;
}

/* ============================================
   Team Section
   ============================================ */
.team-member {
  text-align: center;
  transition: var(--transition-base);
}

.team-image-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.team-image {
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  transition: var(--transition-base);
}

.team-member:hover .team-image {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(255, 69, 0, 0.9), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition-base);
}

.team-member:hover .team-overlay {
  opacity: 1;
}

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

.team-social a {
  width: 40px;
  height: 40px;
  background-color: var(--white);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  transition: var(--transition-base);
}

.team-social a:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-5px);
}

.team-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.team-role {
  color: var(--primary-color);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-card {
  background-color: var(--white);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition-base);
  height: 100%;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 5rem;
  color: var(--primary-color);
  opacity: 0.1;
  font-family: Georgia, serif;
  line-height: 1;
}

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

.testimonial-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--medium-gray);
  margin-bottom: 2rem;
  font-style: italic;
}

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

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

.testimonial-info h5 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: var(--secondary-color);
}

.testimonial-info p {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--medium-gray);
}

/* ============================================
   Contact Form
   ============================================ */
.contact-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-gray) 100%);
  color: var(--white);
}

.contact-info {
  padding: 2rem;
}

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

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  flex-shrink: 0;
}

.contact-details h4 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: var(--light-gray);
  margin-bottom: 0;
}

.contact-details a {
  color: var(--light-gray);
  transition: var(--transition-base);
}

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

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

.contact-form .form-control {
  background-color: var(--light-gray);
  border: 2px solid transparent;
}

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

/* ============================================
   Footer
   ============================================ */
.main-footer {
  background-color: var(--secondary-color);
  color: var(--light-gray);
  padding: 4rem 0 2rem;
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-description {
  color: var(--light-gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

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

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

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

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

.footer-links a {
  color: var(--light-gray);
  transition: var(--transition-base);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

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

.footer-social a {
  width: 45px;
  height: 45px;
  background-color: var(--dark-gray);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition-base);
}

.footer-social a:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--medium-gray);
  font-size: 0.875rem;
}

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

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

/* ============================================
   Utility Classes
   ============================================ */
.text-primary-custom {
  color: var(--primary-color);
}

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

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

.overlay-dark {
  position: relative;
}

.overlay-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(28, 28, 28, 0.7);
  z-index: 1;
}

.overlay-dark > * {
  position: relative;
  z-index: 2;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  z-index: 999;
  border: none;
}

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

.scroll-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

/* 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;
}

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

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

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

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

@keyframes stormFloat {
  0% {
    transform: translateY(-100vh) translateX(0) rotate(0deg);
  }
  100% {
    transform: translateY(100vh) translateX(100px) rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ============================================
   Responsive Design
   ============================================ */

/* Tablets and Below */
@media (max-width: 991.98px) {
  .section {
    padding: 4rem 0;
  }
  
  .hero-section {
    margin-top: 70px;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: var(--shadow-md);
  }
  
  .nav-link::after {
    display: none;
  }
  
  .service-item {
    margin-bottom: 2rem;
  }
}

/* Mobile Devices */
@media (max-width: 767.98px) {
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
  }
  
  .project-card {
    height: 300px;
  }
  
  .project-overlay {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  .main-footer {
    padding: 3rem 0 1.5rem;
  }
}

/* Small Mobile */
@media (max-width: 575.98px) {
  html {
    font-size: 14px;
  }
  
  .contact-info {
    padding: 1rem;
  }
  
  .contact-item {
    gap: 1rem;
  }
  
  .footer-social {
    justify-content: center;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .main-header,
  .scroll-to-top,
  .navbar-toggler {
    display: none;
  }
  
  .hero-section {
    margin-top: 0;
  }
  
  body {
    font-size: 12pt;
  }
  
  a {
    text-decoration: underline;
  }
}