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

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #f3f3f3, #e8f0ff);
  padding-top: 80px; /* Space for fixed header */
  line-height: 1.6;
}

/* Header & Navigation */
header {
  background-color: #1a3c5a;
  color: white;
  padding: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  transition: padding 0.3s ease;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #add8e6; /* Light blue for hover effect */
}

/* Banner */
.banner {
  background: url('https://images.unsplash.com/photo-1603252109303-2751441dd157') center/cover no-repeat;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 1px 1px 4px #000;
  text-align: center;
  padding: 0 1rem;
}

/* Main Content Sections */
section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: auto;
  border-bottom: 1px solid #ccc;
}

section:last-of-type {
  border-bottom: none;
}

h1, h2 {
  color: #1a3c5a;
  text-align: center;
  margin-bottom: 1rem;
}

.tagline {
  text-align: center;
  font-style: italic;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #333;
}

/* Services Layout */
.services {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.service {
  flex: 1 1 200px;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.service-card {
  width: 300px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.service-card img {
  width: 100%;
  height: 200px; /* Fixed height for uniform cards */
  display: block;
  object-fit: cover;
}

.service-card h3 {
  padding: 1rem 0.5rem 0.5rem;
  color: #1a3c5a;
}

.service-card p {
  padding: 0 1rem 1rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

td, th {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  text-align: left;
}

tr:last-child td {
  border-bottom: none;
}

td:last-child {
  text-align: right;
  font-weight: bold;
  color: #1a3c5a;
}

/* Form & Info Blocks */
.infos-block, .contact-form {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

input, textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

button[type="submit"] {
  background: #1a3c5a;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 1rem auto 0;
}

button[type="submit"]:hover {
  background: #2c5b8a;
}

iframe {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  margin-top: 1rem;
  border: 1px solid #ccc;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #1a3c5a;
  color: white;
}

/* Animated Bubbles Background */
.bubbles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Behind content */
  overflow: hidden;
  pointer-events: none;
}

.bubbles span {
  position: absolute;
  display: block;
  width: 40px;
  height: 40px;
  background: rgba(173, 216, 230, 0.3);
  border-radius: 50%;
  animation: bubbleAnim 25s linear infinite;
  bottom: -150px;
}

@keyframes bubbleAnim {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-120vh) scale(0.5);
    opacity: 0;
  }
}

.bubbles span:nth-child(1) { left: 10%; width: 20px; height: 20px; animation-duration: 18s; }
.bubbles span:nth-child(2) { left: 20%; width: 40px; height: 40px; animation-duration: 25s; animation-delay: 2s; }
.bubbles span:nth-child(3) { left: 35%; width: 60px; height: 60px; animation-duration: 22s; }
.bubbles span:nth-child(4) { left: 50%; width: 25px; height: 25px; animation-duration: 20s; animation-delay: 5s; }
.bubbles span:nth-child(5) { left: 65%; width: 45px; height: 45px; animation-duration: 28s; }
.bubbles span:nth-child(6) { left: 80%; width: 30px; height: 30px; animation-duration: 23s; animation-delay: 3s; }
.bubbles span:nth-child(7) { left: 90%; width: 50px; height: 50px; animation-duration: 26s; }

/* --- Responsive Design --- */

/* Tablet & Mobile */
@media (max-width: 768px) {
  body {
    padding-top: 0; /* Remove padding as header is not fixed */
  }

  header {
    position: static; /* Header scrolls with page */
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
  }

  .banner {
    height: 200px;
    font-size: 1.5rem;
  }

  section {
    padding: 2rem 1rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .services-grid {
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    width: 90%;
    max-width: 350px;
  }

  /* Responsive Tables */
  table {
    border: none;
    box-shadow: none;
    background: transparent;
    margin: 1rem 0;
  }

  table thead {
    display: none; /* Hide table headers */
  }

  table tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border: none;
    text-align: right;
  }

  table td::before {
    content: attr(data-label); /* Fallback for tables with data-label */
    font-weight: bold;
    text-align: left;
    padding-right: 1rem;
  }
  
  /* Specific styling for the 2-column price tables */
  table td:first-child {
    font-weight: bold;
    color: #333;
    text-align: left;
  }
  
  table td:last-child {
    font-weight: bold;
    color: #1a3c5a;
  }

  /* Disable bubble animation on mobile for performance */
  .bubbles {
    display: none;
  }
}

/* Smaller Mobile Devices */
@media (max-width: 480px) {
  h1, h2 {
    font-size: 1.8rem;
  }

  .banner {
    font-size: 1.2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .contact-form, .infos-block {
    padding: 1.5rem;
  }
}
