/* ===============================
   GLOBAL STYLE: KAA-EPSYLON SOLUTIONS
   Author: Carl Kwarteng Danso
   Date: 2025
================================ */

/* Fonts & Reset */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: #f8f9fb;
  color: #222;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


header img {
  height: 60px;
  display: inline;
}

/* Add a black background color to the top navigation */
.topnav {
  background: #003aa6b5;
  overflow: hidden;
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* Add an active class to highlight the current page */
.topnav a.active {
  background-color: #f4a32200;
  color: white;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
  display: none;
}

/* ===============================
   TYPOGRAPHY — FLUID AND CONSISTENT
================================ */
h1 {
  font-size: clamp(1.8rem, 4vw + 1rem, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #0039a6;
}

h2 {
  font-size: clamp(1.5rem, 3vw + 0.8rem, 2.2rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: #0039a6;
}

h3 {
  font-size: clamp(1.2rem, 2vw + 0.5rem, 1.6rem);
  font-weight: 500;
  color: #004fc5;
}

p, li {
  font-size: clamp(0.95rem, 1.2vw + 0.4rem, 1.1rem);
  color: #444;
  margin-bottom: 0.75rem;
}

/* ===============================
   HERO SECTIONS
================================ */
.hero {
  background: linear-gradient(to right, #0039a6, #0078d7);
  color: #fff;
  text-align: center;
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
}

.hero h1 {
  color: #fff;
}

.hero p {
  color: #f4a322ea;
  font-size: clamp(1rem, 1.5vw + 0.3rem, 1.25rem);
  font-weight: bold;
  max-width: 700px;
  margin: 0.5rem auto 0;
  opacity: 0.9;
}

/* ===============================
   SECTION STRUCTURE
================================ */
section {
  padding: clamp(2rem, 6vw, 4rem) 5%;
  max-width: 1200px;
  margin: auto;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

/* ===============================
   CARDS (for Services / Projects)
================================ */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeInUp 0.8s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.card h3 {
  color: #0039a6;
  margin-bottom: 0.75rem;
}

/* ===============================
   CONTACT SECTION
================================ */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 3rem;
}

.contact-info, .contact-form {
  width: 100%;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  animation: fadeInUp 0.8s ease;
}

.contact-info, .contact-form {
  flex: 1 1 350px;
}

.contact-info h2, .contact-form h2 {
  color: #0039a6;
  margin-bottom: 1rem;
}

.contact-info p a {
  color: #0078d7;
  text-decoration: none;
}

.map-frame iframe {
  width: 100%;
  height: 220px;
  border-radius: 10px;
  margin-top: 1rem;
  border: none;
}

input, textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea {
  height: 187px;
}

input:focus, textarea:focus {
  border-color: #0078d7;
  box-shadow: 0 0 6px rgba(0, 120, 215, 0.2);
  outline: none;
}

button {
  width: 100%;
  background: linear-gradient(to right, #0039a6, #0078d7);
  color: #fff;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  background: linear-gradient(to right, #002d80, #0063ba);
}

.alert {
  text-align: center;
  font-weight: 500;
  margin-top: 0.75rem;
}
.alert.success { color: #0b6e0b; }
.alert.error { color: #b00020; }

/* ===============================
   FOOTER
================================ */
footer {
  text-align: center;
  background: #003aa618;
  color: #fff;
  padding: 1.5rem;
  font-size: 0.95rem;
  margin-top: 2rem;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: auto;
}


/* ===============================
   ANIMATION
================================ */
@keyframes fadeInUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===============================
   RESPONSIVE DESIGN
================================ */
@media (max-width: 992px) {
  nav ul { gap: 1.5rem; }
  .contact-container { padding: 2rem; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .contact-container { flex-direction: column; }
  .card { padding: 1.5rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  p { font-size: 0.95rem; }
  nav { flex-direction: column; gap: 0.5rem; }
  section { padding: 2rem 1rem; }
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}