/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
body {
  background: #ffffff;
  color: #1f2933;
  line-height: 1.8;
}
a {
  text-decoration: none;
  color: inherit;
}
h1, h2, h3 {
  font-weight: 600;
}

/* ===== Header ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 18px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  transition: 0.4s;
}
header.scrolled {
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
header img {
  height: 42px;
}
nav a {
  margin-left: 28px;
  font-weight: 500;
  transition: 0.3s;
}
nav a:hover {
  color: #2563eb;
}

/* ===== Hero Section ===== */
.hero-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: 80vh;
}
.slides-wrapper {
  display: flex;
  width: calc(100% * 6); /* 6 slides */
  transition: transform 1s ease-in-out;
}
.hero {
  flex-shrink: 0;
  width: 100%;
  height: 80vh;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for visibility */
  z-index: 1;
}
.hero-content {
  position: absolute;
  bottom: 50px;
  left: 50px;
  color: #fff;
  z-index: 2;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  text-align: left;
  background: rgba(0,0,0,0.5); /* semi-transparent background for text visibility */
  animation: fadeIn 2s ease forwards;
}
.hero-content h1 {
  font-size: 52px;
  margin-bottom: 15px;
  font-weight: 700;
}
.hero-content p {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 500;
}
.hero-content .btn {
  padding: 10px 20px;
  background-color: #ff6600;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

/* ===== Slider Animations ===== */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(30px);}
  100% { opacity: 1; transform: translateY(0);}
}

/* ===== Sections ===== */
section {
  padding: 100px 8%;
}
h2 {
  font-size: 38px;
  margin-bottom: 25px;
  text-align: center;
}
p {
  margin-bottom: 15px;
  font-size: 16px;
  color: #4b5563;
}

/* ===== Grid / Cards ===== */
.project-grid, .services-grid, .contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}
.project-card, .service-card, .contact-card {
  background: #f8fafc;
  border-radius: 24px;
  overflow: hidden;
  transition: 0.5s;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transform-style: preserve-3d;
}
.project-card:hover, .service-card:hover, .contact-card:hover {
  transform: rotateY(10deg) rotateX(5deg) translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}
.project-card img, .service-card img, .contact-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.project-card div, .service-card div, .contact-card div {
  padding: 30px;
}
.project-card h3, .service-card h3, .contact-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

/* ===== Services Buttons ===== */
.service-card .btn-service {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #ff6600;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}
.service-card .btn-service:hover {
  background-color: #e65c00;
}

/* ===== Buttons ===== */
button, .btn {
  padding: 15px 30px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-size: 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}
button:hover, .btn:hover {
  background: #1e40af;
  transform: scale(1.05);
}

/* ===== Contact Form ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form input, .contact-form textarea {
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
  width: 100%;
  resize: none;
}
.contact-form button {
  width: 200px;
  align-self: flex-start;
}

/* ===== Footer ===== */
footer {
  background: #0f172a;
  color: #fff;
  padding: 70px 8%;
  text-align: center;
}
footer p { opacity: .85; margin-top: 10px; }

/* ===== Responsive ===== */
@media(max-width:900px){
  .contact-container, .contact-cards, .project-grid, .services-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 { font-size: 36px; }
  nav a { margin-left: 18px; font-size: 14px; }
}

/* ===== Hero Slider Responsive ===== */
@media (max-width: 768px) {
  .hero-content {
    bottom: 30px;
    left: 20px;
    max-width: 90%;
    padding: 15px;
    background: rgba(0,0,0,0.55);
    text-align: center;
  }
  .hero-content h1 {
    font-size: 32px;
  }
  .hero-content p {
    font-size: 16px;
  }
  .hero-content .btn {
    padding: 8px 16px;
    font-size: 16px;
  }
  .hero {
    height: 60vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  header {
    padding: 15px 5%;
  }
  nav a {
    margin-left: 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 24px;
  }
  .hero-content p {
    font-size: 14px;
  }
  .hero-content .btn {
    padding: 6px 12px;
    font-size: 14px;
  }
  .hero {
    height: 50vh;
  }
}
