/* style.css */

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f7fa;
  color: #333;
}

main {
  flex: 1;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #004d99;
  color: white;
  padding: 1rem 1rem;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

header p {
  font-size: 1rem;
  margin-top: 0.5rem;
  font-weight: 300;
}

header nav {
  margin-top: 1rem;
}
.logo-left {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 50px;
  height: 50px;
  object-fit: contain;
}
@media (max-width: 600px) {
  .logo-left {
    width: 20px;
    height: 20px;
  }
}
.menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.menu a:hover {
  color: #aaddff;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .menu {
    gap: 1rem; /* reduce spacing between menu items */
  }

  .menu a {
    font-size: 0.95rem; /* smaller font for better fit */
  }

  header h1 {
    font-size: 1.2rem; /* optional: slightly smaller logo/title */
  }
}

main {
  margin-top: 150px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

section.features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.feature {
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  flex: 1 1 250px;
  padding: 1.5rem;
  text-align: center;
}

.feature h3 {
  margin-top: 0;
  color: #004d99;
}

.feature img {
  width: 80px;
  height: auto;
  margin-bottom: 1rem;
  animation: popIn 1.2s ease-out;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-15deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

section.about {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  margin-bottom: 3rem;
  line-height: 1.6;
}
section.about h2 {
  color: #004d99;
  margin-top: 0;
  text-align: center;
  margin-bottom: 1rem;
}
section.about ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}
section.about p {
  text-align: justify;
}

form {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  max-width: 100%;
  margin: 0 auto 3rem;
  box-sizing: border-box;
}

form h2 {
  margin-top: 0;
  text-align: center;
  color: #004d99;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

form input, form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

form button {
  background-color: #004d99;
  color: white;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  cursor: pointer;
  width: 100%;
}

form button:hover {
  background-color: #003366;
}

#message {
  text-align: center;
  font-weight: 600;
  color: green;
  margin-top: 1rem;
}

.contacts {
  background-color: #f4f7fa;
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid #ddd;
  margin-bottom: 2rem; 
}

.contacts h2 {
  color: #004d99;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.contact-item img {
  width: 24px;
  height: 24px;
}

@media (max-width: 600px) {
  .contact-item img {
    width: 15px;
    height: 15px;
  }
}

.about-content img {
  float: left;
  margin: 0 1.5rem 1rem 0;
  width: 200px;
  height: auto;
  border-radius: 8px;
}
@media (max-width: 600px) {
  .about-content {
    display: block;
  }

  .about-content img {
    float: none;
    display: block;
    margin: 0 auto 1rem auto; /* center the image */
  }
}
.team, .projects {
  background: #ffffff;
  padding: 2rem 1.5rem;
  margin: 3rem auto;
  max-width: 900px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.team h2, .projects h2 {
  color: #004d99;
  text-align: center;
  margin-bottom: 1.5rem;
}

.projects .project-list {
  list-style-type: disc;
  padding-left: 1.5rem;
  line-height: 1.7;
}

.services {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  margin-bottom: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.services h1 {
  color: #004d99;
  text-align: center;
  margin-bottom: 2rem;
}

.service-block {
  margin-bottom: 3rem;
}

.service-block h2 {
  color: #004d99;
  margin-bottom: 1rem;
}

.service-block ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin: 1rem 0;
}




footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  color: #777;
  border-top: 1px solid #ddd;
  background-color: #ffffff; 
}
