/* Reset */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* Top Bar */
.top-bar {
  background-color: #007bff;
  color: white;
  padding: 0.75rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  height: 48px;
  width: auto;
  border-radius: 8px;
}

.top-bar h1 {
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0;
}

/* Main Content */
.content {
  flex: 1;
  padding: 2rem 0 4rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #e9f5ff, #f6fcff);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #007bff;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  color: #444;
}

.btn-main {
  background-color: #007bff;
  color: #fff;
  padding: 0.75rem 2rem;
  font-weight: 700;
  border-radius: 10px;
  font-size: 1.125rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-main:hover,
.btn-main:focus {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  outline: none;
}

/* Services */
.services {
  margin-bottom: 4rem;
}

.services h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #222;
  text-align: center;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.service-box {
  background: #fff;
  padding: 1.5rem 1.25rem;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  flex: 1 1 calc(33% - 1rem);
  max-width: 320px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover,
.service-box:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  cursor: default;
}

.service-box h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-box p {
  font-size: 1rem;
  color: #555;
}

/* Footer */
.footer {
  background-color: #f1f1f1;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-top: auto;
}

.footer a {
  color: #007bff;
  text-decoration: none;
  margin: 0 0.3rem;
}

.footer a:hover,
.footer a:focus {
  text-decoration: underline;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.2rem;
  color: #777;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  padding: 0 0.5rem;
}

.bottom-nav-link span {
  font-size: 0.75rem;
  margin-top: 0.2rem;
}

.bottom-nav-link:hover,
.bottom-nav-link:focus {
  color: #007bff;
}

.bottom-nav-link.active {
  color: #007bff;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
  .service-list {
    flex-direction: column;
    align-items: center;
  }

  .service-box {
    max-width: 90%;
    flex: none;
  }

  .top-bar-inner {
    justify-content: center;
  }

  .logo-title h1 {
    font-size: 1.3rem;
  }
}

/* Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-form {
  max-width: 600px;
  margin: 1.5rem auto 3rem auto;
  background: #f9fbfe;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.1);
  user-select: none;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #005fa3;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  margin-bottom: 1.2rem;
  border: 1.8px solid #d1d9e6;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
  border-color: #0074cc;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button.btn-main {
  width: 100%;
  padding: 0.85rem;
  font-size: 1.1rem;
  font-weight: 700;
  background-color: #0074cc;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
}

.contact-form button.btn-main:hover,
.contact-form button.btn-main:focus {
  background-color: #005fa3;
  outline: none;
}

.login-form {
  max-width: 400px;
  margin: 1.5rem auto 3rem auto;
  background: #f9fbfe;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.1);
  user-select: none;
}

.login-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #005fa3;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  padding: 0.7rem 1rem;
  margin-bottom: 1.2rem;
  border: 1.8px solid #d1d9e6;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
  border-color: #0074cc;
  outline: none;
}

.login-form button.btn-main {
  width: 100%;
  padding: 0.85rem;
  font-size: 1.1rem;
  font-weight: 700;
  background-color: #0074cc;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
}

.login-form button.btn-main:hover,
.login-form button.btn-main:focus {
  background-color: #005fa3;
  outline: none;
}

.signup-link {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #444;
}

.signup-link a {
  color: #0074cc;
  text-decoration: none;
  font-weight: 600;
}

.signup-link a:hover,
.signup-link a:focus {
  text-decoration: underline;
  outline: none;
}