/* Global Layout Styles - Extracted from header.php */

/* Top Bar */
@keyframes brandGradientAnimation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.top-bar {
  background: #1a1a1a;
  color: #fff;
  font-size: 0.65rem;
  padding: 1px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.2;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
  font-size: 0.6rem;
}

.top-bar i {
  font-size: 0.6rem;
  margin-right: 3px;
}

@media (max-width: 767.98px) {
  .top-bar {
    padding: 2px 0;
    font-size: 0.6rem;
  }

  .top-bar .container>.row {
    margin: 0;
    align-items: center;
  }

  .top-bar .col-md-6 {
    padding: 0 3px;
    display: flex;
    align-items: center;
  }

  .top-bar span {
    display: inline-block;
    margin-bottom: 5px;
    font-size: 0.8rem;
  }

  .top-bar a {
    display: inline-block;
    margin: 5px 0 0 0 !important;
  }
}

.top-bar a {
  color: #ffc107;
  text-decoration: none;
  margin-left: 10px;
  transition: all 0.3s ease;
}

.top-bar a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Navbar Styling */
.navbar {
  background: linear-gradient(90deg, #002147, #00122e);
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1030;
  min-height: 50px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.navbar .container {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  padding: 0 25px;
}

.navbar>.container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 25px;
  max-width: 1300px;
  margin: 0 auto;
}

.navbar-brand {
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0.2rem 0;
  margin-right: 0.5rem;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 32px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 0.75rem;
  line-height: 1.1;
}

.navbar-brand .brand-name {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.navbar-brand .brand-since {
  font-size: 0.7rem;
  color: #ffc107;
  margin-top: 0.1rem;
}

.navbar-nav {
  align-items: center;
}

.navbar-nav .nav-link {
  color: #fff;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  margin: 0 0.05rem;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 4px;
  font-size: 0.85rem;
  overflow: hidden;
  text-align: center;
  line-height: 1.2;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #ffc107;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #ffc107;
  background: rgba(255, 255, 255, 0.05);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link:focus::before {
  width: 70%;
}

.navbar-nav .nav-link.active {
  color: #ffc107;
  font-weight: 600;
  background: rgba(255, 193, 7, 0.1);
}

.navbar-nav .nav-link.active::before {
  width: 70%;
  background: #ffc107;
}

.cta-btn {
  background: #ffcc00;
  color: #000 !important;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 25px;
  transition: 0.3s;
}

.cta-btn:hover {
  background: #ffc107;
  transform: scale(1.05);
}

.btn-warning {
  background: #ffc107;
  border: none;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
  line-height: 1.2;
}

.btn-warning::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #ffd54f;
  transition: all 0.3s ease;
  z-index: -1;
  border-radius: 30px;
}

.btn-warning:hover::before {
  width: 100%;
}

.btn-warning:hover {
  transform: scale(1.05);
}

/* Sticky header */
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1030;
}

@media (min-width: 992px) {
  .search-container {
    min-width: 250px;
    max-width: 300px;
  }
}

/* Mobile styles */
@media (max-width: 991.98px) {

  /* Top bar adjustments */
  .top-bar {
    font-size: 0.8rem;
    padding: 8px 0;
  }

  .top-bar .container {
    padding: 0 15px;
  }

  .top-bar .d-flex {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
  }

  .top-bar .d-flex>* {
    margin: 0.15rem 0.5rem;
  }

  .top-bar a {
    margin: 0 0.25rem !important;
    white-space: nowrap;
  }

  /* Navbar adjustments */
  .navbar {
    padding: 0.5rem 0;
    position: relative;
  }

  .navbar>.container {
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .navbar-brand {
    padding: 0.5rem 0;
    flex-shrink: 0;
    margin-right: 1rem;
  }

  .navbar-toggler {
    border: 1px solid #b8c0c7 !important;
    padding: 0.25rem 0.4rem;
    background: linear-gradient(180deg, #f3f5f7 0%, #e8ecef 45%, #d5dbe0 55%, #f2f4f6 100%) !important;
    border-radius: 8px !important;
    margin-left: auto;
    order: 2;
    width: 48px !important;
    height: 34px !important;
    min-width: 48px !important;
    min-height: 34px !important;
    max-width: 48px !important;
    max-height: 34px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .navbar-toggler::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.0) 45%, rgba(0, 0, 0, 0.06) 55%, rgba(0, 0, 0, 0.0));
    pointer-events: none;
  }

  .navbar-toggler:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  }

  .navbar-toggler:active {
    transform: translateY(0);
    background: linear-gradient(180deg, #e8ecef 0%, #d5dbe0 45%, #c8ced4 55%, #e8ecef 100%) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(0, 0, 0, 0.15);
  }

  .navbar-toggler .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='%23555' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.6' d='M7 10h16M7 15h16M7 20h16'/%3e%3c/svg%3e");
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
  }

  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 20, 40, 0.98);
    margin: 0;
    padding: 1rem 1.25rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
  }

  .navbar-nav {
    margin: 0 0 1rem 0 !important;
    width: 100%;
    padding: 0;
  }

  .nav-item {
    width: 100%;
    margin: 0.15rem 0;
  }

  .nav-link {
    padding: 0.85rem 1rem !important;
    margin: 0.15rem 0 !important;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    width: 100%;
  }

  .nav-link i {
    min-width: 24px;
    text-align: center;
    margin-right: 12px;
    font-size: 1.1em;
  }

  /* Call button adjustments */
  .ms-lg-4 {
    margin-top: 0.5rem !important;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .btn-warning {
    width: 100%;
    justify-content: center;
    margin: 0.5rem 0;
    padding: 0.75rem 1.25rem !important;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    transition: all 0.2s ease;
  }

  .btn-warning:hover {
    background-color: #ffc720 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .btn-warning:active {
    transform: translateY(0);
    box-shadow: none;
  }

  /* Additional mobile improvements */
  .navbar-brand {
    max-width: calc(100% - 60px);
  }

  .navbar-brand .brand-text {
    margin-left: 0.5rem;
  }

  .navbar-brand .brand-name {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .navbar-brand .brand-since {
    font-size: 0.5rem;
  }

  /* Ensure proper spacing */
  .navbar>.container {
    min-height: 60px;
  }

  /* Mobile menu animation */
  .navbar-collapse {
    transition: all 0.3s ease-in-out;
  }

  .navbar-collapse:not(.show) {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
  }

  .navbar-collapse.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* Extra small screens */
@media (max-width: 576px) {
  .navbar-brand {
    max-width: calc(100% - 50px);
  }

  .navbar-brand .brand-name {
    font-size: 0.9rem;
  }

  .navbar-brand .brand-since {
    font-size: 0.45rem;
  }

  .navbar-toggler {
    padding: 0.2rem 0.4rem;
  }

  .navbar>.container {
    min-height: 55px;
    padding: 0 10px;
  }

  .navbar-collapse {
    padding: 0.75rem 1rem;
  }

  .nav-link {
    padding: 0.75rem 0.85rem !important;
    font-size: 0.9rem;
  }

  .btn-warning {
    padding: 0.65rem 1rem !important;
    font-size: 0.9rem;
  }
}

#searchResults {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

#searchResults.show {
  display: block;
}

.search-service-item {
  padding: 8px 15px;
  cursor: pointer;
  transition: background-color 0.2s;
  color: #333;
  text-decoration: none;
  display: block;
}

.search-service-item:hover {
  background-color: #f8f9fa;
  color: #0d6efd;
}

.search-service-item i {
  margin-right: 8px;
  color: #0d6efd;
}

/* Projects Menu Override Styles */
#projects .projects-title {
  color: #ffd700 !important;
  background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5) !important;
}

#projects .title-underline {
  background: linear-gradient(90deg, #ffd700, #ffed4e) !important;
}

#projects .menu-item {
  color: #ffd700 !important;
  border: 2px solid rgba(255, 215, 0, 0.5) !important;
  background: rgba(255, 215, 0, 0.15) !important;
}

#projects .menu-item:hover {
  color: #000 !important;
  background: rgba(255, 215, 0, 0.8) !important;
}

#projects .menu-item.active {
  color: #000 !important;
  background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
}

#projects .menu-item i,
#projects .menu-item span {
  color: inherit !important;
}

#projects .projects-view-all {
  color: #ffd700 !important;
}

#projects .projects-view-all:hover {
  background-color: #ffd700 !important;
  border-color: #ffd700 !important;
  color: #000 !important;
}

/* Footer Styles */
footer {
  background: linear-gradient(90deg, #002147, #00122e);
  color: #f1f1f1;
  padding: 20px 15px;
  font-family: Arial, sans-serif;
  font-size: 0.9rem
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 10px
}

.footer-section h3,
.footer-section h4 {
  color: #ffcc00;
  margin-bottom: 10px;
  font-size: 1.1rem
}

.footer-section p,
.footer-section ul {
  margin-bottom: 8px;
  line-height: 1.4
}

.footer-section ul {
  list-style: none;
  padding: 0
}

.footer-section a {
  color: #f1f1f1;
  text-decoration: none;
  transition: color 0.2s
}

.footer-section a:hover {
  color: #ffcc00;
  text-decoration: underline
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 8px
}

.social-links a {
  font-size: 1.2rem
}

.footer-bottom {
  text-align: center;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #333;
  font-size: 0.8rem;
  color: #aaa
}

@media (max-width:768px) {
  .footer-section {
    min-width: 100%
  }
}

/* Floating Buttons */
.float-btn {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
  animation: float 3s ease-in-out infinite;
}

.whatsapp-float {
  right: 20px;
  bottom: 40px;
  background-color: #25d366;
  animation: float 3s ease-in-out infinite, pulse-shadow 2s ease-in-out infinite;
}

.call-float {
  right: 20px;
  bottom: 115px;
  background-color: #0d6efd;
  animation: float 3s ease-in-out infinite, pulse-shadow-call 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
}

.whatsapp-float i {
  margin: 0;
  line-height: 1;
  animation: none;
  /* Ensure the icon itself doesn't animate */
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse-shadow {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes pulse-shadow-call {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(13, 110, 253, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
  }
}

@media (max-width: 768px) {
  .float-btn {
    width: 48px;
    /* Slightly smaller */
    height: 48px;
    font-size: 22px;
    z-index: 99999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    /* Ensure right positioning is safe */
    right: 30px !important;
    animation: none !important;
    /* Disable animation on mobile to prevent clipping/repaint issues */
  }

  .whatsapp-float {
    right: 30px !important;
    bottom: 25px;
  }

  .call-float {
    right: 30px !important;
    bottom: 85px;
    /* Compact spacing */
  }
}