/* Shadow Orange Architecture Studio Theme */

/* CSS Variables */
:root {
  --primary-color: #1a1a1a;
  --secondary-color: #ff6b35;
  --accent-color: #2d2d2d;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --text-light: #666666;
  --text-dark: #333333;
  --shadow-light: rgba(26, 26, 26, 0.1);
  --shadow-medium: rgba(26, 26, 26, 0.2);
  --shadow-heavy: rgba(26, 26, 26, 0.3);
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #ff8c5a 100%);
  --transition-fast: all 0.3s ease;
  --transition-slow: all 0.6s ease;
  --border-radius: 8px;
  --section-padding: 80px 0;
}

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

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

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

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* Bootstrap Overrides */
.container {
  max-width: 1200px;
}

/* Buttons */
.btn {
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--white);
  border: 2px solid transparent;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

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

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

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

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px var(--shadow-medium);
}

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

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--primary-color) !important;
  margin: 0 10px;
  padding: 10px 15px !important;
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--secondary-color) !important;
  background: rgba(255, 107, 53, 0.1);
}

.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  background: rgba(255, 107, 53, 0.1);
}

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

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

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--gradient-primary);
  z-index: 9999;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-menu .nav-link {
  color: var(--white) !important;
  font-size: 2rem;
  margin: 1rem 0;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.6s ease forwards;
}

.mobile-menu .nav-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu .nav-link:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu .nav-link:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu .nav-link:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu .nav-link:nth-child(5) { animation-delay: 0.5s; }

.menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(45, 45, 45, 0.8) 100%), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23f8f9fa" fill-opacity="0.1" points="0,0 1000,300 1000,1000 0,700"/></svg>');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
}

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

.hero h1 {
  color: var(--white);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(50px);
  animation: slideInUp 1s ease 0.3s forwards;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(50px);
  animation: slideInUp 1s ease 0.6s forwards;
}

.hero .btn {
  margin-right: 1rem;
  opacity: 0;
  transform: translateY(50px);
  animation: slideInUp 1s ease 0.9s forwards;
}

/* Sections */
.section {
  padding: var(--section-padding);
}

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

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

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition-fast);
  box-shadow: 0 5px 20px var(--shadow-light);
  height: 100%;
}

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

.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(--primary-color);
  font-weight: 700;
}

/* Services */
.service-item {
  text-align: center;
  padding: 2rem;
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
  height: 100%;
  background: var(--white);
  box-shadow: 0 5px 20px var(--shadow-light);
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow-medium);
  background: var(--gradient-secondary);
  color: var(--white);
}

.service-item:hover h4,
.service-item:hover p {
  color: var(--white);
}

.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;
  font-size: 2rem;
  color: var(--white);
  transition: var(--transition-fast);
}

.service-item:hover .service-icon {
  background: var(--white);
  color: var(--secondary-color);
  transform: scale(1.1);
}

/* Portfolio */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  cursor: pointer;
}

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

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

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

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

.portfolio-overlay h4 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

/* Contact Form */
.form-group {
  margin-bottom: 2rem;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 15px;
  font-size: 1rem;
  transition: var(--transition-fast);
  background: var(--white);
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

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

.error-message {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: none;
}

.error-message.show {
  display: block;
}

/* Footer */
.footer {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 3rem 0 1rem;
}

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

.footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
}

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

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  transition: var(--transition-fast);
}

.social-links a:hover {
  background: var(--secondary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* Animations */
@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 107, 53, 0.3);
  border-left: 4px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --section-padding: 50px 0;
  }

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

  .hero .btn {
    margin: 0.5rem;
    display: block;
    margin-bottom: 1rem;
  }

  .navbar-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
  }

  .card-body {
    padding: 1.5rem;
  }

  .service-item {
    margin-bottom: 2rem;
  }

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

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .portfolio-item img {
    height: 200px;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --shadow-heavy: rgba(0, 0, 0, 0.7);
  }

  .btn-primary {
    border: 2px solid var(--white);
  }

  .btn-secondary {
    border: 2px solid var(--white);
  }
}

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

  html {
    scroll-behavior: auto;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .mobile-menu,
  .btn,
  .footer {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    background: none;
    color: #000;
  }
}