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

body {
  font-family: "Poppins", sans-serif;
  color: #333;
  background: #fafafa;
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4rem;
  z-index: 1000;
}

/* Logo styling */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 45px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.logo span {
  font-weight: 600;
  font-size: 1.3rem;
  color: #333;
  letter-spacing: 0.5px;
}

.navbar nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar nav a:hover {
  color: #a67642;
}

/* Hero */
.hero {
  height: 100vh;
  background: url("https://images.unsplash.com/photo-1523217582562-09d0def993a6")
    center/cover no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  max-width: 700px;
  z-index: 1;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1.5s ease;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn {
  padding: 0.8rem 2rem;
  background: #a67642;
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s, background 0.3s;
}

.btn:hover {
  background: #8b5d2e;
  transform: scale(1.05);
}

/* About */
.about {
  padding: 6rem 2rem;
  text-align: center;
  background: #fff;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}

.about blockquote {
  margin-top: 2rem;
  font-style: italic;
  color: #a67642;
}

/* Projects */
.projects {
  padding: 6rem 2rem;
  background: #f7f7f7;
  text-align: center;
}

.projects h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: auto;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s;
}

.project-card img {
  width: 100%;
  height: 100%;
  transition: transform 0.4s;
}

.project-card:hover img {
  transform: scale(1.1);
}

.card-content {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  padding: 1rem;
  color: white;
  font-weight: 500;
}

/* Services */
.services {
  padding: 6rem 2rem;
  background: #fff;
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: auto;
}

.service-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  margin-bottom: 1rem;
  color: #a67642;
}

/* Contact */
.contact {
  padding: 6rem 2rem;
  background: #f7f7f7;
  text-align: center;
}

.contact-form {
  max-width: 500px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
}

.contact-links a {
  text-decoration: none;
  color: #a67642;
  margin: 0 0.5rem;
}

.contact-links a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 2rem;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}
/* Existing CSS unchanged above... */

@media (max-width: 768px) {
  .logo img {
    height: 38px;
  }
  .logo span {
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {
  .logo span {
    display: none;
  }
}

/* Meet The Architect */
.architect {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #f7f7f7 0%, #ffffff 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.architect-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1000px;
  align-items: center;
  gap: 3rem;
  animation: fadeInUp 1.5s ease;
}

.architect-photo {
  flex: 1 1 350px;
  text-align: center;
}

.architect-photo img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: contain; /* <-- change this line */
  background-color: #fff; /* optional - adds clean background behind image */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

.architect-photo img:hover {
  transform: scale(1.05);
}

.architect-info {
  flex: 1 1 400px;
  text-align: left;
}

.architect-info h2 {
  font-size: 2rem;
  color: #a67642;
  margin-bottom: 1rem;
}

.architect-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.architect-info .title {
  color: #777;
  font-style: italic;
  margin-bottom: 1rem;
}

.architect-info .bio {
  line-height: 1.7;
  color: #555;
}

/* Responsive */
@media (max-width: 768px) {
  .architect-container {
    flex-direction: column;
    text-align: center;
  }
  .architect-info {
    text-align: center;
  }
  .architect-photo img {
    width: 220px;
    height: 220px;
  }
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab {
  background: #ddd;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab.active {
  background: #a67642;
  color: white;
}

.tab:hover {
  background: #c79c6e;
  color: white;
}

/* Carousel */
/* Carousel Container */
.carousel-container {
  position: relative;
  overflow-x: auto; /* allow manual scroll */
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

/* Hide scrollbar (optional aesthetic) */
.carousel-container::-webkit-scrollbar {
  display: none;
}

/* Track */
.carousel-track {
  display: flex;
  gap: 1.5rem;
  animation: scroll 60s linear infinite;
  transition: animation-play-state 0.3s ease;
}

/* Animation keyframes */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Hide inactive carousels completely */
.carousel {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Show only the active carousel */
.carousel.active {
  display: block;
  opacity: 1;
}

/* Optional: smoother layout transition */
.carousel-container {
  min-height: 300px; /* prevents layout jump when switching tabs */
}

/* Pause on hover */
.carousel-container:hover .carousel-track {
  animation-play-state: paused;
}

/* Carousel Items */
.carousel-item {
  flex: 0 0 auto;
  width: 340px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}
.carousel-item:hover {
  transform: scale(1.05);
}
.carousel-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
}

/* View Full Button */
.view-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(166, 118, 66, 0.9);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-weight: 500;
}

.carousel-item:hover .view-btn {
  opacity: 1;
}

/* Infinite scroll animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  5% {
    transform: translateX(-2%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause scroll when hovering anywhere over carousel */
.carousel-container:hover .carousel-track {
  animation-play-state: paused;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 25px;
  right: 45px;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #a67642;
}
