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

body {
  margin: 0;
  font-family: "Outfit-Regular", Helvetica;
}

html {
  scroll-behavior: smooth;
}

.header-container {
  height: 100vh;
  background: url(Assets/1.png) no-repeat center center;
  background-size: cover;
  background-position: center;
  background-color: #000;
  padding-top: 80px; /* Add padding to prevent content from being hidden under fixed navbar */
  position: relative; /* Ensure relative positioning for child elements */
}

.header-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.navbar {
  position: fixed; /* Fix navbar to the top */
  top: 0;
  left: 0;
  width: 100%;
  height: 15%;
  z-index: 1000; /* Ensure navbar is above other content */
  display: flex;
  justify-content: flex-start;
}

.navbar.scrolled {
  background-color: rgba(
    0,
    0,
    0,
    0.8
  ); /* Change background color when scrolled */
  transition: background-color 0.3s; /* Smooth transition */
}

.nav-content {
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0px 10px 40px;
}

.logo {
  animation: dropFromTop 0.8s ease-out 0.1s forwards;
}

.logo img {
  max-width: 150px; /* Adjust logo size */
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin-left: 5rem;
  margin-right: auto;
  animation: dropFromTop 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-size: 1.1rem;
  transition: color 0.3s;
}

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

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding-right: 10px;
  margin-bottom: 30px;
  animation: dropFromTop 0.8s ease-out 0.2s forwards;
  opacity: 0; /* Start invisible for animation */
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #a3a3a3e3;
  transition: all 0.2s ease;
}

/* Drop animation keyframes */
@keyframes dropFromTop {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .header-container {
    padding-top: 60px;
    background-size: 145%;
    background-color: #000;
  }

  .nav-content {
    padding: 10px 15px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(154, 153, 153, 0.958);
    position: absolute;
    top: 60px; /* Position below navbar */
    right: 0;
    width: 100%;
    padding: 20px;
    z-index: 10;
    animation: none; /* Disable drop animation on mobile when toggled */
    opacity: 1; /* Ensure visible when active */
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    color: #fff; /* White text for better contrast on dark background */
    padding: 10px;
    text-align: center;
  }

  .hamburger {
    display: flex; /* Ensure hamburger is visible on mobile */
    cursor: pointer;
  }

  /* Optional: Animate hamburger to X when active */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    transform-origin: 10% 90%;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    transform-origin: 10% 90%;
  }
  .disabled {
    pointer-events: none; /* Disable clicks */
  }

  /* Mobile-friendly styles for our-philosophy and brand */
  .our-philosophy {
    position: absolute;
    width: 45%;
    max-width: 400px;
    bottom: 100px;
    right: 15px;
    font-size: 12px;
    line-height: 18px;
    color: #fff;
    text-align: right;
    z-index: 2;
    animation: dropFromTop 0.8s ease-out 0.3s forwards;
    opacity: 0;
  }

  .brand {
    position: absolute;
    width: 45%;
    max-width: 300px;
    bottom: 100px;
    left: 15px;
    font-size: 20px;
    line-height: 26px;
    color: #fff;
    text-align: left;
    font-weight: 600;
    z-index: 2;
    animation: dropFromTop 0.8s ease-out 0.4s forwards;
    opacity: 0;
  }
}

/* Laptop Styles */
@media (min-width: 769px) {
  .nav-links {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  /* Desktop styles for our-philosophy and brand */
  .our-philosophy {
    position: absolute;
    width: 415px;
    height: auto;
    bottom: 120px;
    right: 40px;
    font-weight: 400;
    color: #fff;
    font-size: 15.9px;
    text-align: justify;
    letter-spacing: 0;
    line-height: 22px;
    z-index: 2;
    animation: dropFromTop 0.8s ease-out 0.3s forwards;
    opacity: 0;
  }

  .brand {
    position: absolute;
    width: auto;
    max-width: 700px;
    height: auto;
    bottom: 120px;
    left: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: 600;
    z-index: 2;
    animation: dropFromTop 0.8s ease-out 0.4s forwards;
    opacity: 0;
  }
}

#aboutus {
  padding: 50px;
  min-height: auto;
}

.wir {
  font-size: 20px;
  color: #898c8e;
}

.ein {
  font-size: 35px;
}

.colored-text {
  color: #898c8e;
}
.abtgrid {
  display: grid;
  grid-template-columns: repeat(2, 2fr);
  gap: 100px;
  margin-top: 60px;
}

@media (max-width: 768px) {
  .abtgrid {
    grid-template-columns: 1fr;
  }
}

#services {
  padding: 50px;
  margin: 0;
  animation: slideFromLeft 0.8s ease-out 0.4s forwards;
  opacity: 0; /* Start invisible for animation */
}

.sergrid {
  display: grid;
  grid-template-columns: repeat(1, 4fr);
  gap: 40px;
}

@media (max-width: 768px) {
  .sergrid {
    grid-template-columns: 1fr;
  }
}

.line {
  width: 100%;
  height: 2px;
  background-color: #dcdbda;
}

.grp {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  padding: 15px 0;
}

.number,
.text {
  color: #898c8e;
  display: inline-block;
  transition: all 0.3s ease;
}

.number {
  margin-right: 800px;
  padding-left: 50px;
}

.arrow {
  width: 20px;
  height: auto;
  display: inline-block;
  margin-left: 60px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* Expanded state styles */
.grp.expanded {
  padding: 15px 0;
}

.grp.expanded .arrow {
  transform: rotate(180deg);
}

.grp.expanded .number,
.grp.expanded .text {
  color: #000; /* Darker color when expanded */
}

/* Read more section */
.read-more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  padding: 0 50px;
  color: #898c8e;
  grid-column: 1 / -1;
  opacity: 0;
}

.grp.expanded + .read-more {
  max-height: 500px; /* Adjust based on your content */
  padding: 15px 50px; /* Match the number padding */
  margin: 0;
  opacity: 1;
}

/* Virtual Tour Button */
.virtual-tour-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 30px;
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  color: #000;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 2px solid #ffffff;
}

.virtual-tour-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* Hide image by default */
.exterior {
  display: none;
  margin-top: 20px;
  width: 100%;
  max-width: 400px;
  border-radius: 15px;
  transition: all 0.3s ease;
}

/* Show image when parent is active */
.grp.active .exterior {
  display: block;
}

.grp {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* 👈 allows content to go to next line */
}

/* Make the image go under everything */
.grp .exterior {
  width: 100%;
  margin-top: 20px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  #services {
    padding: 30px 20px;
  }

  .grp {
    flex-wrap: wrap;
    gap: 8px;
  }

  .number {
    margin-right: 0;
    padding-left: 0;
    width: 100%;
  }

  .text {
    font-size: 16px;
    flex-grow: 1;
  }

  .arrow {
    margin-left: auto;
  }

  .grp.expanded + .read-more {
    padding: 15px 0;
    margin: -10px 0 10px 0;
  }
}

@keyframes slideFromLeft {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

#projects {
  padding: 50px;
  margin: 0;
  background-color: #000000;
}

.titlegrid {
  display: grid;
  grid-template-columns: repeat(2, 2fr);
  gap: 40px;
  margin-top: 60px;
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .titlegrid {
    grid-template-columns: 1fr;
  }
}

.pro {
  font-size: 24px;
  color: #fff;
}

.address {
  color: #fff;
  font-size: 18px;
  text-align: right; /* This will be right-aligned by default */
  margin: 0 auto; /* Helps with centering on smaller screens */
  max-width: 1200px; /* Optional: prevents text from stretching too wide */
}

@media (min-width: 768px) {
  .address {
    padding-left: 100px;
    font-size: 20px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .address {
    padding-left: 200px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .address {
    padding-left: 400px; /* Your original value for large screens */
  }
}

.color-change {
  color: #b5a298;
}


#contact {
  padding: 50px;
  margin: 0;
  background-color: #e1e1de;
}

.con-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

/* Smaller gap between grp2 and grp3 */
.grp2,
.grp3 {
  margin-right: -1rem;
}

.grp1 {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hey {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.1;
  text-transform: uppercase;
}

.grp1 p {
  font-size: 1.2rem;
  text-transform: uppercase;
  color: #555;
}

.grp1 img {
  width: 200px; /* Smaller logo */
  height: auto;
  margin-top: 1rem;
}

.info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gp {
  font-size: 0.9rem;
  line-height: 1.6;
}

.gp:first-child {
  font-weight: bold;
  text-transform: uppercase;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.media-1,
.media-2 {
  text-transform: capitalize;
}

.grp3 img {
  width: 100%;
  max-width: 400px; /* Smaller house image */
  height: auto;
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .con-grid {
    grid-template-columns: 1fr;
  }

  .grp2,
  .grp3 {
    margin-left: 0;
  }
}

#footer {
  padding: 50px;
  margin: 0;
  background-color: #5b5e60;
}

.ftgrid {
  display: grid;
  grid-template-columns: 1fr; /* 1 column */
  grid-template-rows: auto; /* 1 row */
}

.nav-links-bottom {
  display: flex;
  gap: 140px;
  list-style: none;
  margin-left: 20rem; /* Use rem for responsive spacing */
  animation: dropFromTop 0.8s ease-out 0.2s forwards;
  opacity: 0; /* Start invisible for animation */
}

.nav-links-bottom a {
  text-decoration: none;
  color: #fff;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.nav-links-bottom a:hover {
  color: #000;
}

@media (max-width: 768px) {
  .nav-links-bottom {
    display: flex;
    flex-direction: row; /* Stack links vertically */
    gap: 10px; /* Smaller gap for mobile */
    margin-left: 0; /* Reset margin for mobile */
  }

  .nav-links-bottom.active {
    display: flex;
  }

  .nav-links-bottom a {
    color: #fff; /* White text for better contrast on dark background */
    text-align: center;
  }
}

.copy {
  color: #000;
  text-align: center;
  text-decoration: underline;
  margin-top: 80px;
  font-size: 14px;
}

/* ============================================
   PROFESSIONAL GALLERY STYLES
   ============================================ */

/* Thumbnail Gallery */
.thumbnail-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 20px 0;
  margin-bottom: 30px;
  scrollbar-width: thin;
  scrollbar-color: #888 #000;
}

.thumbnail-gallery::-webkit-scrollbar {
  height: 8px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
  background: #333;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.thumbnail-item {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  overflow: hidden;
  border-radius: 4px;
}

.thumbnail-item:hover {
  opacity: 1;
  transform: scale(1.05);
}

.thumbnail-item.active {
  opacity: 1;
  border-color: #fff;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Main Gallery Grid */
.img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

/* Load More Button Container */
.load-more-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
  margin-top: 20px;
}

.load-more-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.load-more-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s ease;
}

.load-more-btn:hover::before {
  left: 0;
}

.load-more-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.load-more-btn:active {
  transform: translateY(0);
}

.load-more-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.load-more-btn:hover .load-more-icon {
  transform: translateY(3px);
}

.project-item {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  aspect-ratio: 4/3;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  cursor: pointer;
}

/* Stagger animation for each item */
.project-item:nth-child(1) { animation-delay: 0.1s; }
.project-item:nth-child(2) { animation-delay: 0.15s; }
.project-item:nth-child(3) { animation-delay: 0.2s; }
.project-item:nth-child(4) { animation-delay: 0.25s; }
.project-item:nth-child(5) { animation-delay: 0.3s; }
.project-item:nth-child(6) { animation-delay: 0.35s; }
.project-item:nth-child(7) { animation-delay: 0.4s; }
.project-item:nth-child(8) { animation-delay: 0.45s; }
.project-item:nth-child(9) { animation-delay: 0.5s; }
.project-item:nth-child(10) { animation-delay: 0.55s; }
.project-item:nth-child(11) { animation-delay: 0.6s; }
.project-item:nth-child(12) { animation-delay: 0.65s; }
.project-item:nth-child(13) { animation-delay: 0.7s; }
.project-item:nth-child(14) { animation-delay: 0.75s; }
.project-item:nth-child(15) { animation-delay: 0.8s; }
.project-item:nth-child(16) { animation-delay: 0.85s; }
.project-item:nth-child(17) { animation-delay: 0.9s; }
.project-item:nth-child(18) { animation-delay: 0.95s; }
.project-item:nth-child(19) { animation-delay: 1s; }
.project-item:nth-child(20) { animation-delay: 1.05s; }
.project-item:nth-child(21) { animation-delay: 1.1s; }


@keyframes fadeInUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

.project-item .top {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  margin: 0;
  padding: 8px 12px;
  color: #fff;
  font-size: 16px;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  backdrop-filter: blur(5px);
}

.project-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.project-item:hover::after {
  opacity: 1;
}

/* Professional Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
}

.lightbox-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox-image-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 60px 80px 20px;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 30px;
  margin-top: 20px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 25px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lightbox-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.detail-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.detail-value {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 400;
}

.features-row {
  grid-column: 1 / -1;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}

.feature-tag {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.9rem;
  color: #fff;
  backdrop-filter: blur(5px);
}

/* Navigation Buttons */
.lightbox-close {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  user-select: none;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
  .img-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lightbox-image-wrapper {
    padding: 50px 40px 20px;
  }

  .lightbox-details {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .img-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
  }

  .project-item {
    aspect-ratio: 16/9;
  }

  .project-item .top {
    top: 10px;
    left: 10px;
    font-size: 14px;
    padding: 6px 10px;
  }

  .thumbnail-gallery {
    padding: 15px 0;
  }

  .thumbnail-item {
    width: 100px;
    height: 70px;
  }

  .load-more-container {
    padding: 20px 0;
  }

  .load-more-btn {
    padding: 14px 30px;
    font-size: 0.9rem;
    gap: 10px;
  }

  .lightbox-image-wrapper {
    padding: 80px 20px 20px;
  }

  .lightbox-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .lightbox-info {
    padding: 20px;
  }

  .lightbox-details {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .lightbox-nav {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }

  .lightbox-prev {
    left: 15px;
  }

  .lightbox-next {
    right: 15px;
  }

  .project-item:hover img {
    transform: none;
  }
}
