/* Global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #e9f7fc;
  color: #222;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 60px;
  background-color: #000;
}

.navbar .logo img {
  height: 55px;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.navbar a:hover {
  color: #00ff88;
}

.call-btn {
  background-color: #00c16e;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.call-btn:hover {
  background-color: #009f5a;
}

/* Hero Section */
.hero {
  height: 150vh;
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("Image/HeroBgdImage.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.subtitle {
  color: #00ff88;
  font-weight: 500;
}

.founders {
  color: #00ff88;
  margin-top: 8px;
  margin-bottom: 25px;
}

.phone-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.phone-btn {
  background-color: #00c16e;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.phone-btn:hover {
  background-color: #009f5a;
}

/* About Section */
.about {
  padding: 60px 15%;
  text-align: center;
}

.about h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.about p {
  line-height: 1.6;
  font-size: 1.05rem;
  color: #444;
}

/* Footer */
.footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .phone-buttons {
    flex-direction: column;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}

/* Services Section */
.services-section {
  padding: 70px 10%;
  background-color: #fff;
  text-align: center;
}

.services-section h2 {
  font-size: 2rem;
  color: #00b97d;
  margin-bottom: 15px;
}

.services-intro {
  color: #555;
  font-size: 1.05rem;
  margin-bottom: 50px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.service-box {
  background-color: #eaf9ff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  color: #00b97d;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.service-content p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Consultation Banner */
.consultation-banner {
  background-color: #00c16e;
  color: white;
  margin-top: 60px;
  padding: 25px;
  border-radius: 10px;
  display: inline-block;
}

.consultation-banner p {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.consultation-banner a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
}

.consultation-banner a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .service-box img {
    height: 180px;
  }

  .services-section {
    padding: 50px 5%;
  }
}

/* CONTACT SECTION */
.contact-section {
  background-color: #eaf9ff;
  padding: 80px 10%;
  text-align: center;
}

.contact-section h2 {
  color: #00b97d;
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-intro {
  color: #444;
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 50px;
}

.info-box {
  background-color: #00c16e;
  color: white;
  padding: 20px 25px;
  border-radius: 10px;
  width: 280px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-box .icon {
  font-size: 28px;
}

.info-box a {
  color: #fff;
  text-decoration: none;
}

.info-box a:hover {
  text-decoration: underline;
}

/* Layout: form + map */
.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: start;
}

.contact-form {
  background-color: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.contact-form h3 {
  margin-bottom: 15px;
  color: #00b97d;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

.contact-form button {
  background-color: #00c16e;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.contact-form button:hover {
  background-color: #009d59;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 10px;
}

/* SHARE YOUR STORY SECTION */
.story-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  background-color: #eaf9ff;
  padding: 80px 10%;
  gap: 30px;
  align-items: center;
}

.story-left {
  background-color: #007bff;
  color: white;
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
}

.story-left h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.story-left p {
  font-size: 1.1rem;
}

.story-form {
  background-color: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.story-form input,
.story-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

.story-form button {
  background-color: #00c16e;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.story-form button:hover {
  background-color: #009d59;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .info-box {
    width: 100%;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.hero {
  height: 110vh; /* balanced height */
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("Image/HeroBgdImage.jpg") center 30% / cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  border-bottom-left-radius: 50% 10%;
  border-bottom-right-radius: 50% 10%;
}

/* Fade-in animation for hero content */
.hero-content {
  animation: fadeInUp 1.5s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-content {
  animation: fadeInUp 1.5s ease forwards;
  opacity: 0;
  transform: translateY(30px);
  margin-top: 200px; /* pushes text downward */
}

/* ===== MOBILE (max width: 768px) ===== */
@media (max-width: 768px) {
  .hero {
    height: 100vh; /* reduce a bit for smaller screens */
    background-position: center 35%; /* adjust face position */
  }

  .hero-content {
    margin-top: 100px; /* bring text higher */
    padding: 0 20px; /* add some side spacing */
  }

  .hero-content h1 {
    font-size: 1.8rem; /* smaller heading */
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .phone-buttons {
    flex-direction: column; /* stack buttons vertically */
    gap: 10px;
  }

  .phone-btn {
    width: 100%; /* full width for mobile */
    text-align: center;
    font-size: 1rem;
    padding: 10px 0;
  }
}

/* ===== SMALLER PHONES (max width: 480px) ===== */
@media (max-width: 480px) {
  .hero-content {
    margin-top: 80px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .phone-btn {
    font-size: 0.9rem;
  }
}

.phone-buttons {
  flex-direction: column;
  gap: 10px;
  align-items: center; /* centers the buttons */
}

.phone-btn {
  width: 30%; /* reduce width */
  max-width: 320px; /* prevents them from getting too wide */
  text-align: center;
  font-size: 1rem;
  padding: 10px 0;
}

/* --- Fix hero image on mobile --- */
@media (max-width: 768px) {
  .hero {
    height: 100vh; /* adjust height for mobile */
    background-position: center 60%; /* bring image slightly up */
    background-size: cover; /* keep full width and height */
  }

  .hero-content {
    margin-top: 120px; /* move text up for better alignment */
  }
}

/* --- Universal Mobile Fix for Hero Section (applies to all mobile browsers) --- */
@media (max-width: 768px) {
  .hero {
    height: 95vh !important; /* slightly shorter so image stays visible */
    background-position: center top !important; /* anchors image from the top */
    background-size: cover !important;
    background-attachment: scroll !important; /* prevents mobile zoom shifting */
    border-bottom-left-radius: 50% 10%;
    border-bottom-right-radius: 50% 10%;
  }

  .hero-content {
    margin-top: 80px !important; /* moves text upward */
    padding: 0 20px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .phone-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .phone-btn {
    width: 80%; /* looks better on mobile width */
    max-width: 320px;
  }
}

/* --- Universal Mobile Hero Fix --- */
@media (max-width: 768px) {
  .hero {
    height: 100vh; /* full screen height */
    background-position: center top; /* keeps the subject centered higher */
    background-size: cover; /* ensures full coverage */
    background-repeat: no-repeat;
    background-attachment: scroll; /* prevents stretching on mobile */
  }

  .hero-content {
    margin-top: 80px; /* adjusts text to visible area */
    padding: 0 20px; /* adds side spacing */
  }
}

/* --- For devices with dynamic safe areas (like iPhones) --- */
@supports (height: 100dvh) {
  .hero {
    height: 100dvh; /* fixes Safari, iPhone, and Android Chrome dynamic bars */
  }
}

/* --- Final Universal Mobile Hero Fix --- */
@media (max-width: 768px) {
  .hero {
    height: 100vh !important; /* full height */
    background-position: center top !important; /* keep image high */
    background-size: cover !important;
    background-attachment: scroll !important;
    background-repeat: no-repeat;
    border-bottom-left-radius: 50% 10%;
    border-bottom-right-radius: 50% 10%;
  }

  .hero-content {
    margin-top: 60px !important; /* brings text higher */
    padding: 0 20px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .phone-btn {
    width: 80%;
    max-width: 280px;
  }
}

/* Dynamic height support for all phones (iPhone + Android) */
@supports (height: 100dvh) {
  .hero {
    height: 100dvh !important;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .hero {
    background-position: center top;
    background-size: cover;
    height: auto; /* allow flexible height */
    min-height: 100vh; /* ensure full coverage */
  }

  .hero-content {
    margin-top: 80px;
  }

  .phone-btn {
    width: 40%;
    max-width: 320px;
  }
}
/* New add */
@media (max-width: 768px) {
  .hero {
    background-position: center 50% !important; /* adjust: smaller = higher */
    background-size: cover !important;
    background-attachment: scroll !important;
  }
}
/* 
This brings the bgd image up in chrome of my iphone */
@media (max-width: 768px) {
  .hero {
    background-position: center calc(50% - 99px) !important;
    background-size: cover !important;
    background-attachment: scroll !important;
  }
}

/* @media (max-width: 768px) {
  .hero {
    background-position: center calc(800% - 80px) !important;
    background-size: cover !important;
    background-attachment: scroll !important;
  }
} */

/* Make phone buttons smaller on mobile */
@media (max-width: 768px) {
  .phone-btn {
    padding: 6px 10px; /* smaller height & width */
    font-size: 0.9rem; /* slightly smaller text */
    border-radius: 6px; /* optional: smaller corners */
  }

  .phone-buttons {
    gap: 10px; /* reduce space between the two buttons */
  }
}
