:root { --primary-blue: #1e3a5f; --accent-blue: #4a90c2; --light-blue: #2d5a87; --gold: #d4af37; }
  * { scroll-behavior: smooth; }
  body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; overflow-x: hidden; }

  .navbar { background-color: var(--primary-blue) !important; padding: 1rem 0; box-shadow: 0 2px 20px rgba(0,0,0,0.1); }
  .navbar-brand { font-weight: 700; font-size: 1.5rem; }
  .nav-link { font-weight: 500; font-size: 0.9rem; padding: 0.5rem 1rem !important; transition: all 0.3s; position: relative; }


  .page-header { background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 50%, var(--accent-blue) 100%); padding: 8rem 0 4rem; position: relative; overflow: hidden; }
  .page-title { font-size: 3rem; font-weight: 700; color: white; margin-bottom: 1rem; }
  .breadcrumb { background: transparent; padding: 0; margin: 0; }
  .breadcrumb-item a { color: rgba(255,255,255,0.8); text-decoration: none; }
  .breadcrumb-item.active { color: var(--gold); }
  .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

  .stats-section { background: white; padding: 3rem 0; margin-top: -2rem; position: relative; z-index: 10; box-shadow: 0 -10px 40px rgba(0,0,0,0.1); }
  .stat-card { text-align: center; padding: 1.5rem; border-radius: 1rem; transition: all 0.3s ease; }
  .stat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
  .stat-number { font-size: 3rem; font-weight: 700; color: var(--primary-blue); line-height: 1; margin-bottom: 0.5rem; }
  .stat-label { color: #6c757d; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

  .filter-section { padding: 2rem 0; background: #f8f9fa; }
  .filter-btn { background: white; border: 2px solid var(--primary-blue); color: var(--primary-blue); padding: 0.5rem 1.2rem; border-radius: 50px; font-weight: 600; transition: all 0.3s ease; margin: 0.2rem; font-size: 0.8rem; }
  .filter-btn:hover, .filter-btn.active { background: var(--primary-blue); color: white; transform: translateY(-2px); }

  .projects-section { padding: 3rem 0; background: #f8f9fa; }
  .project-card { background: white; border-radius: 0.75rem; overflow: hidden; box-shadow: 0 3px 15px rgba(0,0,0,0.06); transition: all 0.4s ease; height: 100%; cursor: pointer; position: relative; }
  .project-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.12); }

  .project-image-wrapper { position: relative; height: 200px; overflow: hidden; }
  .project-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
  .project-card:hover .project-image-wrapper img { transform: scale(1.08); }
  .project-image-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue)); }
  .project-image-fallback i { font-size: 3.5rem; color: rgba(255,255,255,0.3); }
  .image-count { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.7); color: white; padding: 4px 10px; border-radius: 50px; font-size: 0.7rem; font-weight: 600; z-index: 5; display: flex; align-items: center; gap: 4px; }
  .project-status { position: absolute; top: 10px; right: 10px; padding: 0.3rem 0.8rem; border-radius: 50px; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; z-index: 5; }
  .status-completed { background: #28a745; color: white; }
  .status-ongoing { background: var(--gold); color: white; }
  .status-precontract { background: var(--accent-blue); color: white; }

  .project-body { padding: 1.25rem; }
  .project-category { font-size: 0.7rem; color: var(--accent-blue); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 0.4rem; }
  .project-title { font-size: 0.88rem; font-weight: 600; color: var(--primary-blue); margin-bottom: 0.5rem; line-height: 1.35; }
  .project-desc { font-size: 0.82rem; color: #6c757d; margin-bottom: 0.75rem; line-height: 1.45; }
  .project-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 0.75rem; border-top: 1px solid #e9ecef; }
  .project-value { font-size: 0.9rem; font-weight: 700; color: var(--accent-blue); }
  .view-gallery { font-size: 0.75rem; color: var(--primary-blue); font-weight: 600; display: flex; align-items: center; gap: 4px; }

  .featured-section { padding: 4rem 0; background: white; }
  .featured-project { background: linear-gradient(135deg, var(--primary-blue), var(--light-blue)); border-radius: 1rem; overflow: hidden; cursor: pointer; }
  .featured-content { padding: 2.5rem; color: white; }
  .featured-label { display: inline-block; background: var(--gold); color: white; padding: 0.4rem 1.2rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; margin-bottom: 0.75rem; }
  .featured-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.75rem; }
  .featured-desc { font-size: 0.9rem; opacity: 0.9; margin-bottom: 1.25rem; line-height: 1.5; }
  .featured-stats { display: flex; gap: 2rem; margin-bottom: 1.25rem; }
  .featured-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--gold); }
  .featured-stat-label { font-size: 0.75rem; opacity: 0.8; }
  .featured-image img, .featured-image { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }

  .other-section { padding: 3rem 0; background: #f8f9fa; }
  .other-item { padding: 1rem; background: white; border-radius: 0.5rem; margin-bottom: 0.75rem; border-left: 4px solid var(--accent-blue); transition: all 0.3s; }
  .other-item:hover { background: var(--primary-blue); color: white; transform: translateX(5px); }
  .other-item:hover .otitle { color: white; }
  .other-item:hover .ometa { color: rgba(255,255,255,0.8); }
  .otitle { font-weight: 600; color: var(--primary-blue); font-size: 0.85rem; }
  .ometa { font-size: 0.75rem; color: #6c757d; }

  /* Gallery Modal */
  .gallery-modal .modal-content { border: none; border-radius: 1rem; overflow: hidden; }
  .gallery-modal .modal-header { background: var(--primary-blue); color: white; border: none; padding: 1rem 1.5rem; }
  .gallery-modal .modal-title { font-weight: 600; font-size: 1.1rem; }
  .gallery-modal .btn-close { filter: invert(1); }
  .gallery-modal .modal-body { padding: 0; background: #1a1a2e; }
  .gallery-main { position: relative; width: 100%; height: 420px; background: #1a1a2e; display: flex; align-items: center; justify-content: center; }
  .gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
  .gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 45px; height: 45px; background: rgba(255,255,255,0.2); border: none; border-radius: 50%; color: white; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; z-index: 10; }
  .gallery-nav:hover { background: rgba(255,255,255,0.4); }
  .gallery-nav.prev { left: 15px; }
  .gallery-nav.next { right: 15px; }
  .gallery-counter { position: absolute; bottom: 15px; right: 20px; background: rgba(0,0,0,0.6); color: white; padding: 5px 15px; border-radius: 50px; font-size: 0.85rem; }
  .gallery-thumbs { display: flex; gap: 8px; padding: 12px 15px; background: #16213e; overflow-x: auto; }
  .gallery-thumb { min-width: 80px; height: 60px; border-radius: 6px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: 0.6; transition: all 0.3s; }
  .gallery-thumb:hover, .gallery-thumb.active { opacity: 1; border-color: var(--accent-blue); }
  .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .gallery-info { padding: 1.25rem 1.5rem; background: white; }
  .gallery-info .meta-row { display: flex; gap: 2rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
  .gallery-info .meta-item label { font-size: 0.7rem; color: #6c757d; text-transform: uppercase; display: block; }
  .gallery-info .meta-item span { font-size: 0.9rem; font-weight: 600; color: var(--primary-blue); }

  .footer { background: var(--primary-blue); color: white; padding: 4rem 2rem; }
  .footer h4 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem; }
  .footer h5 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
  .footer p, .footer a { color: rgba(255,255,255,0.7); font-size: 0.875rem; line-height: 1.7; text-decoration: none; transition: color 0.3s; }
  .footer a:hover { color: white; }
  .footer ul { list-style: none; padding: 0; margin: 0; }
  .footer li { margin-bottom: 0.75rem; }
  .social-links { display: flex; gap: 0.75rem; }
  .social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
  .social-links a:hover { background: var(--accent-blue); transform: translateY(-3px); }
  .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 3rem; padding-top: 2rem; text-align: center; }

  .back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 50px; height: 50px; background: var(--accent-blue); color: white; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 1000; }
  .back-to-top.visible { opacity: 1; visibility: visible; }

  @media (max-width: 768px) {
    .page-title { font-size: 2.2rem; }
    .gallery-main { height: 280px; }
    .featured-title { font-size: 1.3rem; }
  }