/* ================= RESET ================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Poppins',sans-serif;
  background:url('images/background.jpg') no-repeat center center/cover;
  color:#222;
  line-height:2;
  text-align:justify;
}

/* ================= NAVBAR ================= */
.navbar{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  background:rgba(255,255,255,0.96);
  box-shadow:0 2px 10px rgba(0,0,0,0.1);
  z-index:1000;
}

.nav-container{
  max-width:1200px;
  margin:auto;
  padding:14px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.logo{
  font-size:1.5rem;
  font-weight:700;
  color:#ff7f50;
  text-decoration:none;
}

.nav-links{
  list-style:none;
  display:flex;
  gap:24px;
}

.nav-links a{
  text-decoration:none;
  color:#222;
  font-weight:500;
}

.nav-links a:hover{
  color:#ff7f50;
}

/* Hamburger */
.hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}

.hamburger span{
  width:26px;
  height:3px;
  background:#222;
  border-radius:2px;
}

/* ================= CONTAINER ================= */
.container{
  max-width:1200px;
  width:90%;
  margin:auto;
}

/* ================= HERO ================= */
.hero{
  height:60vh;
  background:url('https://via.placeholder.com/1400x900') center/cover no-repeat;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
}

.hero-overlay{
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.45);
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-content{
  text-align:center;
  padding:0 15px;
}

.hero-content h1{
  font-size:2.6rem;
  margin-bottom:12px;
}

.hero-content p{
  font-size:1.2rem;
  margin-bottom:20px;
  text-align:justify;
}

/* Buttons */
.btn-primary,
.btn-secondary{
  display:inline-block;
  padding:14px 38px;
  border-radius:40px;
  background:linear-gradient(135deg,#f5c77a,#ff9f43);
  color:#000;
  font-weight:600;
  text-decoration:none;
  transition:0.3s ease;
}

.btn-primary:hover,
.btn-secondary:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 30px rgba(0,0,0,0.25);
}

/* ================= SECTIONS ================= */
section{
  padding:80px 0;
}

h2{
  text-align:center;
  font-size:2.4rem;
  margin-bottom:45px;
  color:#ff7f50;
}

/* ================= ABOUT ================= */
.about-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:40px;
  align-items:center;
}

.about-text p{
  font-size:1.05rem;
  color:#444;
  text-align:justify;
}

.about-image img{
  width:100%;
  border-radius:20px;
}

/* ================= CARDS (SERVICES / TEAM / WORK WITH US) ================= */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:28px;
}

.card{
  background:#fff;
  border-radius:18px;
  padding:22px 20px;
  text-align:center;
  box-shadow:0 8px 22px rgba(0,0,0,0.06);

  /* KEY FIX */
  height:auto;
}

.card img{
  width:100px;
  height:100px;
  object-fit:cover;
  border-radius:50%;
  margin-bottom:10px;
}

.card h3{
  margin-bottom:6px;
  color:#ff7f50;
}

.card p{
  font-size:0.95rem;
  color:#666;
  margin:0;
}

/* Profile button */
.profile-button{
  display:inline-block;
  margin-top:10px;
  padding:8px 16px;
  border-radius:30px;
  background:linear-gradient(135deg,#22c1c3,#fdbb2d);
  color:#fff;
  font-size:0.9rem;
  text-decoration:none;
}

/* ================= PRICING ================= */
#pricing{
  list-style:none;
  max-width:800px;
  margin:auto;
  padding:0;
  text-align:justify;
}

/* ================= CONTACT ================= */
#contact{
  background:#fef6f3;
  text-align:center;
  padding:50px 20px;
}

.QRcode{
  width:150px;
  height:150px;
  border-radius:18px;
}

/* ================= FOOTER ================= */
footer{
  text-align:center;
  padding:25px 0;
  font-size:0.9rem;
  color:#666;
  border-top:1px solid #eee;
}

/* ================= MOBILE FIX (IMPORTANT) ================= */
@media(max-width:768px){

  /* NAV */
  .nav-links{
    position:fixed;
    top:65px;
    right:-100%;
    width:220px;
    height:100vh;
    background:#fff;
    flex-direction:column;
    align-items:center;
    padding-top:20px;
    gap:18px;
    transition:0.3s ease;
  }

  .nav-links.active{
    right:0;
  }

  .hamburger{
    display:flex;
  }

  /* HERO */
  .hero{
    height:40vh;
  }

  .hero-content h1{
    font-size:1.8rem;
  }

  .hero-content p{
    font-size:1.2rem;
    text-align:justify;
  }

  /* CARDS – PERFECT MOBILE */
  .grid{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:14px;
  }

  .card{
    width:95%;
    max-width:95%;
    padding:16px 14px;
  }

  .card img{
    width:85px;
    height:85px;
  }

  h2{
    font-size:2rem;
  }
}

/* ====== GLOBAL TEXT SAFETY FIX (NO LAYOUT CHANGE) ====== */
body{
  overflow-x:hidden;
  word-wrap:break-word;
  overflow-wrap:break-word;
}

/* ====== FIX CONTENT HIDING UNDER FIXED NAVBAR ====== */
body{
  padding-top:80px; /* height ya navbar */
}

/* ====== PREVENT TEXT OVERFLOW ON SMALL SCREENS ====== */
p, h1, h2, h3, a, li{
  max-width:100%;
  word-break:break-word;
}

/* ====== HERO TEXT SAFETY ====== */
.hero-content{
  max-width:900px;
  margin:auto;
}

/* ====== MOBILE TEXT SAFETY ONLY ====== */
@media(max-width:768px){
  body{
    line-height:1.7; /* was too large */
  }

  p{
    font-size:0.95rem;
  }
}

