/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fff;
  overflow-x: hidden;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  z-index: 1000;
  transition: background 0.3s ease;
}

header.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.logo {
  color: #00e6b8;
  font-size: 1.8rem;
  font-weight: 700;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 25px;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #00e6b8;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
  url("https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1920&q=80")
    center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.hero-content {
  max-width: 900px;
  width: 100%;
  animation: fadeIn 2s ease-in;
  text-shadow: 0 0 15px rgba(0, 230, 184, 0.5);
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  line-height: 1.3;
  overflow: hidden;
  word-break: keep-all; /* allow responsive wrap when necessary */
}

.typing-text {
  display: inline-block;
  border-right: 3px solid #00e6b8;
  white-space: pre-wrap; /* ✅ allows wrapping, but keeps spacing natural */
  overflow: hidden;
  color: #00e6b8;
  letter-spacing: 1px;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  color: #f1f1f1;
}

.cta-button {
  background-color: #00e6b8;
  color: #111;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #00b38f;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reviews Section */
.reviews {
  padding: 80px 20px;
  background-color: #fafafa;
  text-align: center;
}

.reviews h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
}

.review-slider {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  min-height: 150px;
  overflow: hidden;
}

.review {
  opacity: 0;
  transform: translateX(30px);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: all 0.8s ease-in-out;
  z-index: 0;
}

.review.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  z-index: 1;
}

.review p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #444;
}

.review span {
  color: #777;
  font-style: italic;
}

/* Footer */
footer {
  background-color: #111;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

.footer-content h3 {
  color: #00e6b8;
  margin-bottom: 10px;
}

footer input {
  padding: 10px;
  border: none;
  border-radius: 4px;
  width: 250px;
  margin-right: 10px;
}

footer button {
  padding: 10px 20px;
  background-color: #00e6b8;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

footer button:hover {
  background-color: #00b38f;
}

#form-message {
  margin-top: 10px;
  color: #00e6b8;
  font-size: 0.9rem;
}

footer .copyright {
  margin-top: 30px;
  font-size: 0.85rem;
  color: #999;
}
