body {
  font-family: "Inter", sans-serif;
  margin: 0;
  color: #111;
  background: #fff;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #515a4e;
}

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

.logo {
  height: 50px;
}

.brand-name {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-name span {
  color: #b9d8c2;
}

nav a {
  color: #b9d8c2;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 500;
}

.hero {
  color: #b9d8c2;
  text-align: center;
  background-image: linear-gradient( 
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.5)
    ),
    url("images/pcb.jpg");
  background-size: cover;
  padding: 6rem 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.hero button {
  background: #e0511b;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;  
}

.hero button:hover {
  background: #9f5235;
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 3rem 2rem;
  background: #f9fafb;
}

.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  font-weight: 600;
}

i {
  font-size: xx-large;
}

.about, .services, .contact {
  padding: 4rem 2rem;
  text-align: center;
}

.services ul {
  list-style: none;
  padding: 0;
}

.services li {
  margin: 0.5rem 0;
  font-weight: 500;
}

.about {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.6;
}

.about h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.about .tagline {
  text-align: center;
  margin-top: 2rem;
  font-style: italic;
  color: #555;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

form {
  display: grid;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

input, textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

form button {
  background: #e0511b;
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background: #9f5235;
}

footer {
  background: #515a4e;
  color: #ccc;
  text-align: center;
  padding: 1rem;
}

.services {
  padding: 4rem 2rem;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  position: relative;
  height: 250px;
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.overlay {
  background: #515a4e;
  padding: 1.5rem;
  text-align: left;
}

.overlay h3 {
  margin: 0 0 0.5rem;
  color: #b9d8c2;
  font-size: 1.25rem;
}

.overlay p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.firmware-dev-card {
  background-image: url('images/firmware_dev.jpg');
}

.threat-model-card {
  background-image: url('images/threat_model.jpg');
}

.code-audit-card {
  background-image: url('images/code_audit.jpg');
}

.pcb-review-card {
  background-image: url('images/pcb_review.jpg');
}

.secure-comms-card {
  background-image: url('images/secure_comms.jpg');
}

.prototype-integration-card {
  background-image: url('images/prototype_integration.jpg');
}

.gdpr-notice {
  border: 1px solid #ccc;
  padding: 10px;
  margin: 10px 0;
  background-color: #f9f9f9;
  border-radius: 5px;
}

/* GDPR Collapsible Notice */
.gdpr-notice {
  border: 1px solid #ccc;
  padding: 10px;
  margin: 10px 0;
  background-color: #f9f9f9;
  border-radius: 5px;
}

.gdpr-header {
  cursor: pointer;
  font-weight: bold;
  color: #007BFF;
  margin-bottom: 5px;
}

.gdpr-content {
  max-height: 0;
  overflow: hidden;
  font-size: 0.9em;
  transition: max-height 0.4s ease;
  margin-top: 5px;
}

.gdpr-content.open {
  max-height: 500px; /* large enough to fit content */
}

.gdpr-content a {
  color: #007BFF;
  text-decoration: underline;
}

/* Align checkbox and label */
.gdpr-consent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 8px 0;
}

/* Responsive Navbar */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #b9d8c2;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #515a4e;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 150px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }

  nav.show {
    max-height: 300px; /* enough for all menu items */
    opacity: 1;
  }

  nav a {
    margin: 1rem;
    text-align: right;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  nav.show a {
    opacity: 1;
    transform: translateY(0);
  }

  .menu-toggle {
    display: block;
  }
}