/* Full-page hero background */
.hero1 {
  position: absolute;
  left: -9999px;  /* moves it off-screen */
}

/* Background image for hero section */
.hero {
  background: url("images/Smartbanner1080.png") no-repeat center center;
  background-size: cover;
  height: 100vh;
  position: relative;
  color: white;
  text-align: center;
  z-index: 2;
}

/* Dark overlay for readability */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);  /* semi-transparent overlay */
  z-index: 2;
}

/* Overlay content */
.hero .overlay1 {
  z-index: 2;
  position: absolute;   /* or use fixed if you want it always visible */
  top: 0;               /* distance from the top edge */
  left: 0;              /* distance from the left edge */
  padding: 10px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-text {
  margin: 10px;
  position: relative;   /* or use fixed if you want it always visible */
  left: 5vl;
  top: 5vl;              /* distance from the left edge */
  padding: 10px;
  font-size: 2.2rem;
}


.buttontl .btn {
  margin: 10px;
  position: fixed;   /* or use fixed if you want it always visible */
  top : 1em;
  left: 2em;              /* distance from the left edge */
  padding: 10px;
  z-index: 3;
  color:aliceblue;
}

.buttontr .btn {
  margin: 10px;
  position: fixed;   /* or use fixed if you want it always visible */
  top: 1em;               /* distance from the top edge */
  right: 1em;              /* distance from the left edge */
  padding: 10px;
  z-index: 3;
  color:aliceblue;
}

.buttonbl .btn {
  margin: 10px;
  position: fixed;   /* or use fixed if you want it always visible */
  bottom: 1em;              /* distance from the left edge */
  left: 50%;                /* start at horizontal center */
  transform: translateX(-50%); /* shift back half its width to truly center */
  padding: 10px;
  z-index: 3;
  background-color: #18e77f;
  color:aliceblue;
}

.btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.375rem;
}

.btn-primary {
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
}
.btn-primary:hover {
  color: #fff;
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.75rem;
  border-radius: 0.5rem;
}

.top-center-box {
  position: fixed;          /* pins to viewport */
  top: 3em;                /* lock to bottom edge */
  left: 50%;                /* start at horizontal center */
  transform: translateX(-50%); /* shift back half its width to truly center */
  background: #0066cc;      /* example background */
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px 4px 0 0; /* rounded top corners */
  z-index: 3;            /* keep above other elements */
  width: 20em; 
  font-size: 2.2em;
}

.writeup1 {
  position: fixed;          /* pins to viewport */
  top: 10em;                /* lock to bottom edge */
  left: 3em;                /* start at horizontal center */
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px 4px 0 0; /* rounded top corners */
  z-index: 3;            /* keep above other elements */
  width: 20em;
  height: auto; 
  font-size: 1.2em;
}

.writeup2 {
  position: fixed;          /* pins to viewport */
  top: 10em;                /* lock to bottom edge */
  right: 1em;                /* start at horizontal center */
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px 4px 0 0; /* rounded top corners */
  z-index: 3;            /* keep above other elements */
  width: 30em;
  height: auto; 
  text-align: left;
  font-size: 1em;
}

/* ===== Responsive Banner Height ===== */
@media (max-width: 768px) {
  .top-banner {
    height: 40px;           /* smaller on tablets/phones */
  }
  .top-banner img {
    height: 100%;
    object-fit: cover;
  }
}

.top-banner {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background-color: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}
.top-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
footer {
    background-color: #212529;
    color: white;
    text-align: center;
    padding: 15px;
}

.contact-hero {
  background: url("images/Smartbanner.png") no-repeat center center;
  background-size: cover;
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero {
  background: url("images/Smartbanner.png") no-repeat center center;
  background-size: cover;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero h1 {
  display: none;
}

.about-hero p {
  display: none;
}
