.view-all-btn {
  background-color: #004266;
  color: #fff;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.view-all-btn:hover {
  background-color: #0069aa;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery img,
.gallery video {
  width: 100%;
  border-radius: 8px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-top: 20px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #003366;
  color: white;
  padding: 1rem 0;
  text-align: center;
  background-image: url('../images/bg/home-header.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

header h1 {
  position: relative;
  z-index: 1;
}

nav {
  display: flex;
  justify-content: left;
  gap: 2rem;
  margin-top: 0.5rem;
}

nav a {
  color: white;
  font-weight: bold;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s;
  animation: pulse-card 3s infinite;
}

.card:hover {
  animation: pulse-card 1s infinite;
}

.service-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.service-img:hover {
  transform: scale(1.05);
}

.card h3 {
  margin: 0.5rem 1rem 0;
}

.card p {
  padding: 0 1rem 1rem;
  font-size: 0.95rem;
}

#portfolio-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.portfolio {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
  color: lab(0% 0 0 / 0.849);
  position: relative;
}

.portfolio::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.portfolio h2 {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 2em;
}

.contact-info, .contact-form, .map {
  margin: 20px auto;
  max-width: 600px;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.contact-form input, 
.contact-form textarea {
  padding: 10px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  display: block;
}

.contact-form button {
  background-color: orange;
  color: white;
  padding: 10px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
}
nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0;
  list-style: none;
}

nav a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}


.contact-form button:hover {
  background-color: darkorange;
}

.btn {
  background-color: orange;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: darkorange;
}

body.contact-page {
  background-image: url('../images/bg/contact-bg.jpeg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

.call-to-action {
  background-image: url("../images/bg/home-header.jpeg");
  background-size: 500px;
  background-color: hsl(44, 73%, 46%);
  color: hsl(0, 0%, 100%);
  padding: 40px 20px;
  text-align: center;
  margin-top: 40px;
}

.call-to-action h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.call-to-action a.btn {
  background-color: white;
  color: hsl(41, 78%, 48%);
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.call-to-action a.btn:hover {
  background-color: #fff2e6;
  color: #cc5200;
}

.youtube-thumb {
  width: 100%;
  max-width: 320px;
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px hsla(54, 91%, 41%, 0.961);
  transition: transform 0.3s ease;
}

.youtube-thumb:hover {
  transform: scale(1.03);
}

.video-item {
  text-align: left;
}

.youtube-thumb {
  width: 100%;
  border-radius: 8px;
}

.video-title {
  font-size: 1rem;
  margin-top: 0.5rem;
  color: #222;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .service-cards,
  .gallery,
  .video-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .portfolio-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .intro-section,
  .about-preview,
  .call-to-action,
  .contact-info,
  .contact-form {
    padding: 1rem;
    text-align: center;
  }

  .youtube-thumb {
    max-width: 100%;
    height: auto;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }

  .service-img {
    width: 100%;
    height: auto;
  }

  .card {
    padding-bottom: 1rem;
  }

  footer .social-media {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #003366;
  color: white;
  padding: 1rem 0;
  text-align: center;
  background-image: url('../images/bg/home-header.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.header .container {
  position: relative;
  z-index: 1;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0;
  list-style: none;
}

nav a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 165, 0, 0.4);
  }
  70% {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 165, 0, 0.4);
  }
}

.call-to-action {
  animation: pulse 3s infinite;
}

#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid orange;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-card {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0, 66, 102, 0.3);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 66, 102, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0, 66, 102, 0.3);
  }
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.intro-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 10vh;
  padding-left: 20px;
  padding-top: none;
  padding-bottom: 5px;
  background-color: #fff;
}

footer .contact-link {
  color: blue;
  text-decoration: none;
  font-weight: bold;
  margin-left: 8px;
}

footer .contact-link:hover {
  text-decoration: underline;
}

footer i {
  color: blue;
  margin-right: 5px;
}
