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

html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  scroll-behavior: smooth; /* smooth scrolling */
}

/* --- Navigation --- */
header {
  position: fixed;              /* stays at top */
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 1000;                /* always above content */
  background: rgba(0,0,0,0.6);  /* transparent background */
  backdrop-filter: blur(6px);   /* modern frosted effect */
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}
.logo img {
  height: 50px;
  width: auto;
}

@media (max-width: 768px) {
  .logo img {
    height: 40px;
  }
}

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

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

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

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

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px; /* below navbar */
    right: 0;
    background: rgba(0,0,0,0.95);
    flex-direction: column;
    width: 200px;
    padding: 20px;
    display: none; /* hidden default */
  }
  .nav-links li {
    margin: 10px 0;
  }
  .hamburger {
    display: flex;
  }
  .nav-links.active {
    display: flex;
  }
}

/* --- Hero Carousel --- */
.carousel-bg {
  position: relative;
  height: 100vh;
  min-height: 400px;
  overflow: hidden;
}

.carousel-bg img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  filter: brightness(80%);
}

.carousel-bg img.active {
  opacity: 1;
}

/* Hero Content */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

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

/* Responsive Hero Text */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}

/* --- Sections --- */
.section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 140px 20px;
  text-align: center;
}

.section:nth-child(even) {
  background: #e9e9e9;
}

.section h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
}

.section p, .section ul {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.8;
  text-align: justify;
}

/* Services list */
#services ul {
  list-style: none;
  padding: 0;
}
#services li {
  margin: 10px 0;
  font-size: 1.1rem;
}

/* --- Projects Section --- */
#projects {
  background: #f8f8f8;
  text-align: center;
  padding: 120px 20px;
}

.project-carousel-container {
  max-width: 1000px;
  margin: 40px auto;
  text-align: center;
}

.project-carousel {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 450px;
  overflow: hidden;
  margin: 0 auto 30px auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.project-carousel img {
  position: absolute;
  top: 0;
  left: 0;          /* ensures image aligns with container */
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.project-carousel img.active {
  opacity: 1;
}

.project-info {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
}

.project-info p {
  text-align: center !important;
}


/* Responsive Projects */
@media (max-width: 768px) {
  .project-carousel {
    height: 300px;
  }
  .project-info h3 {
    font-size: 1.4rem;
  }
  .project-info p {
    font-size: 1rem;
  }
}

/* --- Contact Section --- */
#contact {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

#contact p {
  margin: 8px 0;
  font-size: 1.1rem;
}

.call-button {
  background-color: #007bff;
  color: #ffffff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  transition: background 0.3s;
}

.call-button:hover {
  background-color: #0056b3;
}

/* Footer */
footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 20px;
}
