/* ===== General ===== */
body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: #0f1724;
  color: #ffffff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Header ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .brand {
  font-size: 22px;
  font-weight: bold;
  color: #8bd3ff;
}

header nav a {
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.3s;
}

header nav a:hover {
  color: #b39cff;
}

/* ===== Carousel ===== */
.carousel {
  position: relative;
  width: 100%;
  height: 50vh; /* Thin carousel */
  overflow: hidden;
  margin: 40px 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.carousel-slide span {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0,0,0,0.6);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 20px;
  color: #fff;
}

/* Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 32px;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
}

#prevBtn { left: 20px; }
#nextBtn { right: 20px; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
}

.carousel-dot.active {
  background: #8bd3ff;
}

/* ===== Projects Grid ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 50px;
}

.project-card {
  display: block;
  background: #1a2234;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.project-title {
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  color: #fff;
}

/* ===== Contact Section ===== */
.contact {
  padding: 60px 40px;
  background: #111;
  text-align: center;
  border-radius: 20px;
  margin: 50px auto;
  max-width: 1000px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.contact h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #8bd3ff;
}

.contact p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 18px;
  line-height: 1.5;
  color: #ccc;
}

.contact form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
  gap: 15px;
}

.contact input, 
.contact textarea {
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-size: 16px;
  outline: none;
  background: #0f1724;
  color: #fff;
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: #888;
}

.contact button {
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  background: #8bd3ff;
  color: #0f1724;
  transition: background 0.3s;
}

.contact button:hover {
  background: #b39cff;
  color: #fff;
}

/* ===== Footer ===== */
footer {
  padding: 30px;
  text-align: center;
  background: #0c111a;
  color: #aaa;
  font-size: 14px;
}

footer a {
  margin: 0 10px;
  color: #8bd3ff;
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    padding: 30px;
  }

  .carousel-slide span {
    font-size: 16px;
    padding: 6px 12px;
  }

  header {
    padding: 15px 30px;
  }
}

@media (max-width: 480px) {
  .carousel {
    height: 40vh;
  }

  .contact {
    padding: 40px 20px;
  }

  .contact h2 {
    font-size: 26px;
  }
}
