/* Parallax separator between Services and Contact Us */
.parallax-separator {
  width: 100%;
  height: 320px;
  background-image: url('Eye.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-separator h2 {
  color: #fff;
  font-size: 4rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 4px 10px rgba(0,0,0,0.60);
  animation: none;
}

/* Accent color for V and E in parallax separator */
.parallax-separator .accent {
  color: #F37121;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45), 0 0 10px rgba(243,113,33,0.22);
}

/* Markets section with two equal-width columns */
#markets {
  padding: 4rem 2rem;
}

.markets-container {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.market-area {
  flex: 1 1 0;
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  text-align: left;
}

.market-area h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #212529;
}

.market-area p {
  color: #444;
  line-height: 1.8;
}

.market-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  display: block;
}

@media (max-width: 768px) {
  .markets-container {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 900px) {
  .parallax-separator {
    height: 180px;
    background-attachment: scroll;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}
header {
  background-color: #ffffff;
  color: #333;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  /* raise header above the backdrop so nav links remain clickable */
  z-index: 1105;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  padding: 0 1rem;
}
nav .logo {
  font-size: 1.125rem;
  display: flex;
  align-items: center;
}

/* Ensure logo image fits within the header/banner (scaled to ~75%) */
nav .logo img {
  height: 36px;
  max-height: 42px;
  width: auto;
  display: block;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s, transform 0.2s;
}
.nav-links a {
  padding: 0.5rem 0.75rem; /* increase tappable area */
  display: inline-block;
}

/* Hamburger / mobile nav styles */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  position: relative;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle .hamburger::before { top: -7px; }
.nav-toggle .hamburger::after { top: 7px; }

/* Mobile behavior: show hamburger and collapse links */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  nav { align-items: center; }
  .nav-links {
    position: absolute;
    top: 100%;
    /* limit to the right half of the screen */
    right: 0;
    left: auto;
    width: 50vw;
    min-width: 240px;
    /* semi-transparent panel with slight blur (50% opacity requested) */
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(6px);
    flex-direction: column;
    gap: 0;
    /* keep in the flow for animation (use transform/opacity to show/hide) */
    padding: 0.5rem 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 1106;
    /* slide fully from above for a clear "dropdown from top" effect */
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 320ms cubic-bezier(.2,.9,.2,1), opacity 240ms ease;
    /* size to content vertically (no fixed height) so panel is just below items */
    height: auto;
    max-height: calc(100vh - 64px);
    overflow-y: visible;
    /* align items to the right side of the panel */
    align-items: flex-end;
    border-bottom-left-radius: 8px;
  }
  body.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 0.75rem 0; width: 100%; text-align: right; padding-right: 1.25rem; }

  /* backdrop that darkens the page when nav is open */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 1000;
    pointer-events: none;
    transition: background 260ms ease, opacity 260ms ease;
    opacity: 0;
  }
  body.nav-open .nav-backdrop {
    background: rgba(0,0,0,0.48);
    opacity: 1;
    pointer-events: auto;
  }

  /* prevent body scroll when mobile nav is open */
  body.no-scroll {
    overflow: hidden;
    height: 100vh;
  }
}
.nav-links a:hover {
  color: #ffc107;
}
section {
  padding: 4rem 2rem;
  text-align: center;
}
#hero {
  /* Background image without shading overlay */
  background-image: url('tiles.jpg');
  background-size: cover;
  /* baseline background position moved down so lower part of image is visible */
  background-position: center 70%;
  background-repeat: no-repeat;
  color: #fff;
  /* Use a fixed min-height so hero occupies consistent viewport space (reduced ~20%) */
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically center content */
  align-items: center;
  padding: 0 2rem; /* keep horizontal padding only */
  position: relative; /* enable pseudo overlay */
  will-change: background-position;
}

/* Accent color for single letters in hero (e.g., the 'N' in iNspired) */
#hero .accent {
  color: #F37121;
  font-weight: 700;
  font-size: 1.12em;
  display: inline-block;
  transform: translateY(-2px);
  letter-spacing: 0.25px;
  /* dark shadow for contrast + warm glow for accent */
  text-shadow: 0 2px 6px rgba(0,0,0,0.45), 0 0 10px rgba(243,113,33,0.22);
  transition: transform 150ms ease, text-shadow 150ms ease;
}

/* Slightly increase emphasis on hover for interactive feel */
#hero .accent:hover {
  transform: translateY(-3px) scale(1.03);
  text-shadow: 0 3px 8px rgba(0,0,0,0.5), 0 0 14px rgba(243,113,33,0.30);
}

#hero::before {
  /* Centered subtle overlay to improve text contrast without darkening whole image */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* softened overlay to keep image visible while improving legibility */
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.08) 35%, rgba(0,0,0,0) 65%);
}

/* Subtle increased text-shadow for better legibility */
#hero h1,
#hero p {
  text-shadow: 0 4px 10px rgba(0,0,0,0.60);
}
#hero h1 {
  /* Scale heading up by another ~30% to match larger hero */
  font-size: 5.1rem;
  font-weight: 700;
}
/* Slightly larger paragraph text in the hero for emphasis */
#hero p {
  /* Slightly larger paragraph text in the hero for emphasis */
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Ensure content sits above the overlay */
#hero > * {
  position: relative;
  z-index: 1;
}

/* Subtle, faded projection under the header to make it read as a layer above the image */
header {
  /* ensure header is positioned (already sticky) and allows visible overflow */
  overflow: visible;
}
/* Header shadow only visible when header overlaps the hero (prevents stripe on light backgrounds) */
header::after {
  display: none;
}

body.over-hero header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 18px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));
  z-index: 998; /* sit below header content but above hero image */
}

/* Add a subtle faded shadow at the top of the About section to project onto the image */
#about {
  position: relative;
  z-index: 2;
}
/* About top-shadow only visible when the About section overlaps the hero image */
#about::before {
  display: none;
}

body.over-hero-about #about::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 20px;
  pointer-events: none;
  /* make this even more subtle so it doesn't appear as a visible stripe */
  background: linear-gradient(to top, rgba(0,0,0,0.06), rgba(0,0,0,0));
  z-index: 1;
}

/* Responsive adjustments: keep hero reasonable on small screens */
@media (max-width: 768px) {
  #hero {
    /* smaller min-height on mobile (reduced ~20%) */
    min-height: 48vh;
    padding: 0 1.25rem;
  }
  #hero h1 {
    font-size: 2.9rem;
  }
  #hero p {
    font-size: 1.4rem;
  }
}

/* Justify and constrain the long paragraph in the About section */
#about p {
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
  text-justify: inter-word;
}
.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background-color: #ffc107;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
}
/* Services: equal-height boxes with images and text */
#services .service-boxes {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: stretch; /* ensure equal heights */
}
.box {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
}

.box h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  color: #212529;
}

.box img {
  width: 100%;
  max-width: 320px;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.box-text {
  width: 100%;
  text-align: left;
  margin-top: 0.5rem;
}

.box-text p {
  margin: 0 0 0.5rem 0;
  color: #444;
  font-size: 0.98rem;
}
form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
form input, form textarea {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}
form button {
  background-color: #343a40;
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  border-radius: 5px;
}
form button:hover {
  background-color: #212529;
}
footer {
  background-color: #343a40;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  #services .service-boxes {
    flex-direction: column;
  }
  .box img {
    height: 220px;
    max-width: 100%;
  }
}

/* Mobile form tweaks: make inputs full width and easier to tap */
@media (max-width: 768px) {
  form {
    width: 100%;
    padding: 0 1rem;
  }
  form input,
  form textarea,
  form button {
    width: 100%;
    box-sizing: border-box;
  }
  .parallax-separator h2 {
    font-size: 2rem;
  }
  /* ensure hero text scales nicely on small screens */
  #hero h1 {
    font-size: 1.8rem;
  }
  #hero p {
    font-size: 1rem;
  }
}
/* ===== Animations ===== */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Apply animations */
#hero h1,
#hero p,
#hero .btn {
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
}
#hero h1 {
  animation-delay: 0.2s;
}
#hero p {
  animation-delay: 0.4s;
}
#hero .btn {
  animation-delay: 0.6s;
}

section h2 {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.3s;
}

/* Increase spacing between the About title and its paragraph */
#about h2 {
  margin-bottom: 1.25rem;
}

#services.in-view .box:nth-child(1) {
  animation: slideInLeft 1s ease-out forwards;
  animation-delay: 0.2s;
}
#services.in-view .box:nth-child(2) {
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.4s;
}
#services.in-view .box:nth-child(3) {
  animation: slideInRight 1s ease-out forwards;
  animation-delay: 0.6s;
}

/* Button hover animation */
.btn:hover {
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* Nav links hover */
.nav-links a:hover {
  color: #ffc107;
  transform: scale(1.1);
  transition: transform 0.3s, color 0.3s;
}
