﻿/* === Global Resets and Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background-color: #f7f9fc;
  color: #222;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* === Navigation === */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 12px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  height: 70px;
  line-height: 70px;
}

nav .logo {
  display: flex;
  align-items: center;
}

nav .logo img {
  height: 32px;
  width: auto;
}

nav .logo span {
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.5rem;
  padding-left: 5px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav ul li a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav ul li a:hover {
  color: #2e4f82;
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-link span {
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.5rem;
  padding-left: 5px;
  transition: color 0.3s ease;
}


/* === Hero Sections === */
.hero {
  height: 70vh;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url('images/tech-grid-bg.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  margin-top: 70px; /* Prevent overlap with fixed nav */
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.hero p {
  max-width: 700px;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 25px;
  opacity: 0.95;
  color: white;
}

.hero a.button {
  background-color: #2e4f82;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero a.button:hover {
  background-color: #1c3763;
  transform: translateY(-2px);
}

/* === Smaller Hero === */
.small-hero {
  height: 45vh;
  background: linear-gradient(rgba(46, 79, 130, 0.75), rgba(46, 79, 130, 0.75)),
    url('images/tech-grid-bg.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  margin-top: 70px; /* Same offset as hero */
}

/* === Section Basics === */
section {
  padding: 70px 20px;
  text-align: center;
}

section h2 {
  font-size: 1.9rem;
  color: #2e4f82;
  margin-bottom: 15px;
}

section p {
  max-width: 850px;
  margin: 0 auto 15px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
}

section strong {
  color: red;
}

/* === Color Variations === */
section.alt {
  background-color: #fff;
}

section.primary {
  background: linear-gradient(135deg, #2e4f82, #1c3763);
  color: #fff;
}

section.primary h2,
section.primary p {
  color: #fff;
}

/* === Buttons === */
.button {
  display: inline-block;
  background-color: #2e4f82;
  color: #fff;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #1c3763;
}

/* === Forms === */
form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

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

button {
  background-color: #2e4f82;
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #1c3763;
}

/* === Contact Containers === */
.contact-container {
  max-width: 600px;
  margin: 60px auto 100px;
  padding: 40px 30px 60px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.contact-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-container input,
.contact-container select,
.contact-container textarea {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  font-size: 1rem;
}

.contact-container p {
  margin-bottom: 25px;
}

/* === Error Messages === */
.error-message {
  background: #ffe8e8;
  color: #a60000;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: center;
}

/* === Footer === */
footer {
  background-color: #f0f3f7;
  text-align: center;
  padding: 25px;
  font-size: 0.95rem;
  color: #555;
  margin-top: auto;
}

footer a {
  color: #2e4f82;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}

/* === Responsive Fixes === */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    padding: 10px 16px;
    height: auto;
    line-height: normal;
  }

  nav .logo {
    flex: 1 1 100%;
    justify-content: center;
    margin-bottom: 8px;
    text-align: center;
  }

  nav .logo img {
    height: 28px;
  }

  nav .logo span {
    font-size: 1.1rem;
    padding-left: 4px;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
  }

  nav ul {
    flex: 1 1 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 5px;
  }

  nav ul li a {
    font-size: 0.95rem;
  }

  .hero,
  .small-hero {
    margin-top: 90px; /* ensures hero clears header on mobile */
    padding-top: 40px;
  }

  .small-hero h1 {
    font-size: 1.8rem;
  }

  .small-hero p {
    font-size: 1rem;
    max-width: 90%;
    margin: 10px auto;
  }

  .contact-container {
    margin-top: 40px;
    padding: 25px 20px 50px;
  }
}
