:root {
  --bg: #0f1214;
  --card: #14181b;
  --muted: #8b949e;
  --text: #111111; /* near black for strong contrast */
  --brand: #00c2ff;
  --brand-ink: #00374a;
  --ring: rgba(0, 194, 255, 0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);              /* keep original text color */
  background-color: #808080;       /* just change background */
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1100px, 92%); margin: 0 auto; }
.section { padding: 3.5rem 0; }
.section-header { text-align: center; margin-bottom: 2rem; }
.section-subtitle { color: #000; }

.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { position: static; width: auto; height: auto; padding: .5rem; background: #fff; color: #000; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,18,20,.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .85rem 0; gap: 1rem; }
.brand { font-weight: 700; letter-spacing: .2px; font-size: 1.05rem; color: #fff; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; }
.site-nav a { color: #cfd6dd; padding: .5rem .6rem; border-radius: .6rem; }
.site-nav .active a, .site-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.06); }

.nav-toggle {
  display: none; border: 0; background: transparent; cursor: pointer;
}
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }

.hero {
  position: relative;
  padding-top: 0; /* remove extra space */
  margin-top: -100px; /* pulls the grey bar up behind the header */
  background-color: #808080; /* your grey bar color */
  z-index: 0;
}
.hero-media {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: center;
  filter: saturate(1) contrast(1.05);
  opacity: .9;
}
.hero::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55));
  z-index: 0;
}
.hero-overlay {
  position: relative; /* ensure text stays on top */
  z-index: 1;
  display: grid;
  align-content: center;
}
.hero-overlay h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0 0 .3rem; }
.hero-overlay p { margin: 0 0 1rem; color: #e9eef5; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  display: grid;
  grid-template-rows: auto 1fr;
}
.card-media { aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 1rem; display: grid; align-content: start; gap: .5rem; }
.card-title { color: #fff; margin: .1rem 0; font-size: 1.05rem; }
.card-text { color: var(--muted); margin: 0 0 .5rem; }

.btn {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  color: #fff; padding: .55rem .9rem; border-radius: .7rem;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.25); text-decoration: none; }
.btn-primary {
  border-color: var(--brand);
  background: linear-gradient(180deg, var(--brand), var(--brand-ink));
  box-shadow: 0 8px 30px var(--ring);
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(20,24,27,.9);
}

/* Make footer text white */
.site-footer {
  color: #fff; /* all footer text white */
}

.site-footer h4,
.site-footer p,
.site-footer a,
.site-footer small,
.site-footer li {
  color: #fff; /* ensure child elements are white */
}

.site-footer a:hover {
  text-decoration: underline;
  color: #00c2ff; /* brand accent on hover */
}


.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 equal columns */
  gap: 1.5rem;
  padding: 2rem 0;
  align-items: start; /* keep sections aligned at the top */
}

.footer-left {
  justify-self: start;  /* stays flush left */
}

.footer-center {
  display: flex;
  justify-content: center; /* keeps image centered horizontally */
  align-items: flex-start; /* aligns top with the other sections */
}

.footer-right {
  justify-self: end;   /* pushes to far right */
  text-align: right;   /* aligns text to the right edge */
}

.footer-logo {
  width: 1200px;   /* increase width */
  max-width: 100%; /* ensure it doesn’t overflow on smaller screens */
  height: auto;    /* maintain aspect ratio */
  display: block;
  margin: 1.5rem auto; /* center horizontally */
}

@media (max-width: 900px) {
  .footer-logo {
    width: 90%;      /* scales down for smaller screens */
    margin: 1rem auto; 
  }
}


.footer-bottom {
  padding: 1rem 0 2rem;
  opacity: .9;
}

.list-plain {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .35rem;
}


@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-media { max-height: 320px; }
}

@media (max-width: 640px) {
  .header-inner { padding: .7rem 0; }
  .nav-toggle { display: block; }
  .site-nav { display: none; }
  .site-nav.open { display: block; position: absolute; top: 100%; right: 4%; background: rgba(20,24,27,.98); border: 1px solid rgba(255,255,255,.08); border-radius: .8rem; padding: .6rem; }
  .site-nav ul { display: grid; gap: .2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Home hero ===== */
.home-hero {
  position: relative;
  min-height: 70vh;              /* use 100vh for full screen */
  background: url('../img/hero-home.jpg') center/cover no-repeat;
}

.home-hero::after {              /* darken the image for readable text */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,.35),
  );
}

/* In your styles.css file */

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background-image: url('../img/backgroundforindexheader.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Darker overlay on top of the image */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.home-hero__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* makes image darker */
  z-index: 1;
}

.home-hero__content {
  position: relative;
  z-index: 2; /* stays above overlay */
  text-align: center; /* centered looks cleaner */
  max-width: 800px;
  margin: 0 auto;
}

.home-hero__content h1,
.home-hero__content p {
  color: #fff; /* white text */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); /* keeps it readable */
}

.home-hero__content h1 {
  font-size: clamp(2rem, 5vw, 3rem); /* make it bigger */
  margin-bottom: 1rem;
}


.home-hero {
  position: relative;
  min-height: 70vh; /* or 100vh for full screen */
  background: url('../img/hero-home.jpg') center/cover no-repeat;
}

main {
  margin-top: 100px; /* adjust to the actual height of your header */
}

.hero {
  padding-top: 100px; /* pushes hero content below the header */
}

.home-hero__content h1,
.home-hero__content p {
  color: #fff; /* white text */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); /* makes text pop */
}


/* ===== Contact Form ===== */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--card);          /* match card color */
  background: #a39f9f; /* soft light grey, stands out on darker background */
  color: #fff6f6;         /* ensure text stays readable */
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,.12);
  background: var(--bg);            /* dark input background */
  color: var(--text);
  font-size: 1rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border: 1px solid var(--brand);
  box-shadow: 0 0 8px var(--ring);
}

.contact-form button.btn-primary {
  width: fit-content;
  padding: 0.6rem 1.2rem;
  margin-top: 1rem;
  border-radius: 0.7rem;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid var(--brand);
  background: linear-gradient(180deg, var(--brand), var(--brand-ink));
  box-shadow: 0 8px 30px var(--ring);
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form button.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0,194,255,0.4);
}

@media (max-width: 640px) {
  .contact-form {
    padding: 1rem;
  }
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem; /* space between image and text */
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
}

.brand-logo {
  height: 40px;       /* adjust size to fit header */
  width: auto;        /* maintain aspect ratio */
  display: block;
}


/* About Section */
.about-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-content {
  display: flex;
  align-items: stretch; /* ensures image matches text height */
  gap: 2rem;
  margin-top: 1.5rem;
}

.about-text {
  flex: 1; /* takes up available space on left */
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically center text */
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #fff;
}

.about-image {
  flex: 1; /* image takes up same space as text */
  display: flex;
  align-items: center; /* vertically center image if text is taller */
  justify-content: center;
}

.about-image img {
  max-width: 100%;
  height: 100%; /* matches text container height */
  object-fit: cover; /* maintains aspect ratio */
  border-radius: 1rem;
}

/* Responsive for smaller screens */
@media (max-width: 900px) {
  .about-content {
    flex-direction: column;
  }

  .about-image img {
    height: auto; /* allow image to shrink on mobile */
  }
}


/* Responsive for smaller screens */
@media (max-width: 900px) {
  .about-content {
    flex-direction: column;
  }

  .about-image img {
    height: auto; /* allow image to shrink on mobile */
  }
}


