:root {
  --primary-color: #ff6b35;
  --secondary-color: #1e3a8a;
  --accent-color: #ffffff;
  --text-dark: #2d3748;
  --text-light: #718096;
  --gray-100: #f7fafc;
  --gray-200: #edf2f7;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--accent-color);
}

/* Headlines and Titles */
h1, h2, h3, h4, h5, h6,
.section-title,
.hero-content h1,
.navbar-brand,
.service-title,
.service-detail-title,
.project-title {
  font-family: 'Montserrat', sans-serif;
}

.navbar {
  background-color: var(--accent-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  font-family: 'Montserrat', sans-serif;
}

.navbar-nav .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

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

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #e55a2b;
  border-color: #e55a2b;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 5px;
}

.btn-secondary:hover {
  background-color: #1e40af;
  border-color: #1e40af;
}

.hero-section {
  background: linear-gradient(135deg, var(--secondary-color), #3b82f6);
  color: white;
  padding: 6rem 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

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

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-family: 'Montserrat', sans-serif;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-features span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.hero-features i {
  color: #fbbf24;
}

.hero-actions .btn {
  border-radius: 8px;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.hero-building-icon {
  position: relative;
  display: inline-block;
}

.hero-icon {
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.6);
  animation: float 3s ease-in-out infinite;
}

.hero-icon-small {
  font-size: 3rem;
  position: absolute;
  top: -20px;
  right: -20px;
  color: var(--primary-color);
  animation: float 3s ease-in-out infinite reverse;
}

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

.min-vh-80 {
  min-height: 80vh;
}

.section-padding {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-align: center;
}

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

.service-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2rem;
  border-top: 4px solid var(--primary-color);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  margin-bottom: 2rem;
}

.project-card:hover {
  transform: translateY(-3px);
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.about-section {
  background-color: var(--gray-100);
}

.stats-section {
  background-color: var(--secondary-color);
  color: white;
  padding: 3rem 0;
}

.stat-item {
  text-align: center;
  margin-bottom: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary-color);
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

.contact-section {
  background-color: var(--gray-200);
}

.contact-info {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 1rem;
  width: 40px;
}

.footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 3rem 0 1rem 0;
}

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

.footer-logo {
  margin-bottom: 1rem;
  border-radius: 5px;
}

.footer-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.contact-footer-item {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.contact-footer-item i {
  color: var(--primary-color);
  width: 16px;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 2rem 0 1rem 0;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Portfolio Styles */
.portfolio-grid {
  column-count: 3;
  column-gap: 1.5rem;
  margin: 0;
}

@media (max-width: 992px) {
  .portfolio-grid {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .portfolio-grid {
    column-count: 1;
  }
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  break-inside: avoid;
  margin-bottom: 1.5rem;
  display: inline-block;
  width: 100%;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.portfolio-image-wrapper {
  position: relative;
  overflow: hidden;
}

.portfolio-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(255, 107, 53, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.portfolio-overlay-content {
  text-align: center;
  color: white;
}

.portfolio-overlay-content h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.portfolio-overlay-content p {
  margin-bottom: 1rem;
  opacity: 0.9;
}

/* Service Detail Styles */
.service-detail-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-detail-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-content {
  padding: 2rem;
}

.service-detail-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.service-detail-description {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

/* Feature Highlights */
.feature-highlight {
  text-align: center;
  padding: 1rem;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

.stat-highlight .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  display: block;
}

.stat-highlight .stat-label {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Hero Variations */
.about-hero, .services-hero, .portfolio-hero {
  background: linear-gradient(135deg, var(--secondary-color), #3b82f6);
  color: white;
  padding: 4rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

/* Active Navigation */
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 600;
}

/* Logo Styling */
.navbar-brand img {
  margin-right: 0.5rem;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .hero-actions .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .hero-icon {
    font-size: 6rem;
  }
  
  .hero-icon-small {
    font-size: 2rem;
    top: -10px;
    right: -10px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .service-detail-image {
    height: 180px;
  }
}