body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  overflow-x: hidden;
}

h1.xl { font-size: 2.2rem; margin-bottom: 1rem; }
h2.lg { font-size: 1.8rem; margin: 2rem 0 1rem; }
p.lead { font-size: 1.1rem; margin-bottom: 2rem; color: #e2e8f0; }

.section { padding: 80px 20px; position: relative; }
.container { max-width: 1100px; margin: auto; }

.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; }
.hero-bg { position: absolute; top:0; left:0; width:100%; height:100%; background: url('../images/houston-skyline.jpg') center/cover no-repeat; z-index: -2; }
.hero::before { content:''; position:absolute; top:0; left:0; width:100%; height:100%; background:rgba(15,15,30,0.65); z-index:-1; }

.glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.grid.three-col { display:grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap:20px; margin-top:20px; }
.card { background: rgba(255,255,255,0.06); padding:20px; border-radius:16px; transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 6px 20px rgba(0,0,0,0.5); }

.gradient-text { background: linear-gradient(90deg,#00f5ff,#9f7aea); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.btn {
  background: linear-gradient(90deg,#00f5ff,#9f7aea);
  border: none;
  padding: 14px 30px;
  border-radius: 12px;
  cursor: pointer;
  color: #fff;
  font-size: 1rem;
  transition: 0.3s;
}
.btn:hover { box-shadow: 0 0 15px rgba(159,122,234,0.6); }

.email-input {
  width: 100%;
  max-width: 500px;
  padding: 18px 20px;
  font-size: 1.2rem;
  border-radius: 14px;
  border: none;
  outline: none;
  margin: 20px 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  backdrop-filter: blur(6px);
}
.email-input::placeholder { color: rgba(255,255,255,0.7); }

.footer { text-align:center; padding:30px; font-size:0.9rem; color:#94a3b8; }

#scrollTopBtn {
  position: fixed; bottom: 30px; right: 30px;
  z-index: 99; font-size: 20px;
  background: linear-gradient(90deg,#00f5ff,#9f7aea);
  border: none; outline: none;
  color: white; cursor: pointer;
  padding: 14px 18px; border-radius: 50%;
  display: none; transition: 0.3s;
}
#scrollTopBtn:hover { box-shadow: 0 0 15px rgba(159,122,234,0.6); }

.reveal { opacity:0; transform: translateY(40px); transition: all 0.8s ease; }
.reveal.active { opacity:1; transform: translateY(0); }


.hero-top {
  text-align: center;
  margin-bottom: 40px;
}

.hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-bottom: 4px solid #00f5ff;
}

.intro-text {
  max-width: 800px;
  margin: 20px auto;
  font-size: 1.2rem;
  color: #eee;
}

.email-input.big {
  width: 100%;
  max-width: 600px;
  padding: 20px;
  font-size: 1.2rem;
  border-radius: 14px;
  border: none;
  outline: none;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  backdrop-filter: blur(6px);
}


.hero-top {
  position: relative;
  text-align: center;
  margin-bottom: 40px;
}

.hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.hero-top .intro-text, 
.hero-top .subscribe-form {
  position: relative;
  z-index: 2;
}


/* Animated Dark Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
  animation: overlayShift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes overlayShift {
  0% { background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3)); }
  50% { background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.6)); }
  100% { background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4)); }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .intro-text { font-size: 1rem; padding: 0 20px; }
  .email-input.big { max-width: 500px; padding: 16px; font-size: 1rem; }
}

@media (max-width: 768px) {
  .hero-img { max-height: 280px; }
  .intro-text { font-size: 0.95rem; }
  .email-input.big { max-width: 90%; padding: 14px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .hero-img { max-height: 220px; }
  .intro-text { font-size: 0.9rem; }
  .email-input.big { max-width: 95%; padding: 12px; font-size: 0.9rem; }
  .btn { padding: 10px 18px; font-size: 0.9rem; }
}


/* Make hero image auto adjust */
.hero-img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: cover;
}


/* Parallax Effect for Skyline */
.hero-top {
  position: relative;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  object-position: center;
  display: block;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}


/* Multi-layer Particles for Parallax Depth */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

#particles-js .layer1 { z-index: 1; }
#particles-js .layer2 { z-index: 2; opacity: 0.7; }
#particles-js .layer3 { z-index: 3; opacity: 0.5; }


/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s ease-out forwards;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}


/* Fade-in animation for hero text */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

#hero .hero-text {
  animation: fadeInUp 2s ease-out;
}


/* Hero overlay text with fade-in */
#hero .hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3em;
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  animation: fadeInUp 2s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}


/* Responsive email form */
@media (max-width: 600px) {
  #stay-connected form {
    flex-direction: column;
    align-items: center;
  }
  #stay-connected form input[type="email"],
  #stay-connected form button {
    width: 100%;
    max-width: 90%;
  }
}
/* Consistent box size for About Us & Stay Connected */
.info-box {
  max-width: 700px;      /* keeps both boxes the same width */
  margin: 0 auto;        /* center horizontally */
  min-height: 250px;     /* ensures equal height even if one has less text */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
