/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Poppins, sans-serif;
}

/* SMOOTH SCROLL (REPLACES JS) */
html {
  scroll-behavior: smooth;
}

body {
  background: #f5f7fa;
  color: #222;
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  background: #0f172a;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.logo span {
  color: #38bdf8;
}

nav a {
  color: #cbd5e1;
  margin-left: 25px;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: #38bdf8;
}

/* BUTTON */
.btn {
  background: #38bdf8;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 600;
  color: #000;
  display: inline-block;
  text-decoration: none;
}

/* HERO */
.hero {
  height: 90vh;
  background: url("images/hero1.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 60px;
  animation: heroSlide 15s infinite;
}

@keyframes heroSlide {
  0% { background-image: url("images/hero1.jpg"); }
  50% { background-image: url("images/hero2.jpg"); }
  100% { background-image: url("images/hero3.jpg"); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.75);
}

.hero-content {
  position: relative;
  color: #ffffff;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.hero-buttons {
  margin-top: 15px;
}

/* COMMON SECTION */
section {
  padding: 80px 60px;
}

.section-title {
  text-align: center;
  font-size: 34px;
  font-weight: 600;
}

.underline {
  width: 70px;
  height: 4px;
  background: #38bdf8;
  margin: 12px auto 50px;
}

/* ABOUT */
.about {
  background: #ffffff;
  text-align: center;
}

.about p {
  max-width: 900px;
  margin: 15px auto;
  color: #444;
  font-size: 16px;
}

/* SERVICES */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

/* PROJECTS */
.projects {
  background: #f8fafc;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 20px;
}

.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.project-item img {
  width: 100%;
  transition: transform 0.4s ease;
}

.project-item:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.75);
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.3s;
}

.project-item:hover .overlay {
  opacity: 1;
}

/* WHY CHOOSE US */
.why-choose {
  background: #ffffff;
  text-align: center;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.why-card {
  background: #f8fafc;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.why-card:hover {
  transform: translateY(-6px);
}

.why-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #0f172a;
}

.why-card p {
  font-size: 15px;
  color: #555;
}

/* PROCESS */
.process {
  background: #0f172a;
  color: #ffffff;
  text-align: center;
}

.steps {
  display: flex;
  justify-content: space-around;
  margin-top: 40px;
  flex-wrap: wrap;
}

.steps div {
  font-size: 32px;
  font-weight: 700;
}

.steps span {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #cbd5e1;
}

/* CONTACT */
.contact {
  background: #ffffff;
  text-align: center;
}

.contact p {
  margin: 8px 0;
}

/* FOOTER */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  text-align: center;
  padding: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 15px 25px;
    gap: 10px;
  }

  section {
    padding: 60px 25px;
  }

  .hero-content h1 {
    font-size: 32px;
  }
}
