/* ========================================================
🌐 1. Global Reset & Base Styles
======================================================== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fdfdfd;
  color: #333;
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3 {
  margin: 0 0 1rem;
}


/* ========================================================
🧭 2. Header & Branding Section
======================================================== */
.site-header {
  background-color: #222;
  padding: 1.5rem 1rem;
  border-bottom: 2px solid #ff6600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.branding-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  text-align: left;
}

.logo {
  width: 60px;
  height: auto;
}

.branding-text {
  color: #fff;
  text-align: center;
}

.branding-text h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0.3rem 0;
}

.branding-text p {
  font-size: 1rem;
  color: #ccc;
  margin: 0.2rem 0;
}


/* ========================================================
📦 3. Project Container & Section Boxes
======================================================== */
.project-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  background: #fff;
  border-left: 5px solid #ff6600;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.section-box {
  background: #fff;
  border: 1px solid #ccc;
  border-left: 5px solid #ff6600;
  border-radius: 6px;
  padding: 2rem 1.5rem;
  margin: 2rem auto;
  max-width: 1200px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-box h2 {
  font-size: 1.5rem;
  color: #ff6600;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}


/* ========================================================
🏗️ 4. Project Meta Section (Header + Logos)
======================================================== */
.construction-header {
  background: #f0f0f0;
  padding: 2rem;
  text-align: left;
  border-bottom: 3px solid #ff6600;
}

.construction-header h2 {
  font-size: 1.8rem;
  color: #000;
  margin-bottom: 0.5rem;
}

.construction-header p {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  margin: 0.2rem 0;
}

.construction-header h2 i {
  color: #ff6600;
  margin-right: 0.4rem;
}

/* ========================================================
🤝 5. Trusted By Logos
======================================================== */
.trusted-by-bar {
  background-color: #f3f3f3;
  padding: 1rem 2rem;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.trusted-by-bar p {
  font-weight: bold;
  color: #444;
  margin-bottom: 0.5rem;
}

.logo-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.logo-strip img {
  height: 50px;
  max-width: 100px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease-in-out;
}

.logo-strip img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
}


/* ========================================================
🖼️ 6. Screenshot Carousel
======================================================== */
.carousel-wrapper {
  position: relative;
  text-align: center;
}

.carousel-image {
  display: none;
  width: 100%;
  border-radius: 6px;
}

.carousel-image.active {
  display: block;
  cursor: zoom-in;
}


/* ========================================================
📄 7. PDF Carousel Viewer
======================================================== */
.pdf-carousel-wrapper {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-top: 1rem;
}

.pdf-wrapper {
  display: none;
  position: relative;
  width: 100%;
  height: 600px;
}

.pdf-wrapper.active {
  display: block;
}

.pdf-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.pdf-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  background: rgba(0, 0, 0, 0);
  z-index: 10;
}


/* ========================================================
🪟 8. Lightbox for Images & PDFs
======================================================== */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-overlay.hidden {
  display: none;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  text-align: center;
}

.lightbox-content img,
.pdf-lightbox-frame {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.pdf-lightbox-frame {
  width: 90vw;
  height: 90vh;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.lightbox-overlay:not(.hidden) .pdf-lightbox-frame {
  transform: scale(1);
  opacity: 1;
}

.lightbox-caption {
  margin-top: 1rem;
  color: white;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}


.lightbox-close:hover {
  background-color: #ff6600;
  color: #fff;
}



.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.lightbox-nav button {
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-nav button:hover {
  background-color: #ff6600;
  color: #fff;
}


/* ========================================================
🔘 9. Navigation Arrows (used for both carousels)
======================================================== */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background-color: #ff6600;
  transform: scale(1.05);
}

.carousel-btn.left {
  left: 10px;
}

.carousel-btn.right {
  right: 10px;
}





/* ========================================================
🔗 10. Footer & Social Links
======================================================== */
footer {
  background: #eee;
  text-align: center;
  padding: 2rem 1rem;
  background: #eee;
  font-size: 0.9rem;
  color: #666;
}

footer a {
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
}
  
footer-credit {
  margin-top: 1rem;
  font-style: italic;
  font-size: 0.85rem;
}

.social-links {
  margin: 1rem 0;
}

.linkedin-link i { color: #0077b5; }
.github-link i   { color: #000000; }
.youtube-link i  { color: #cc0000; }

.social-links a {
  margin: 0 0.8rem;
  text-decoration: none;
  color: #0077cc;
  font-weight: bold;
  font-size: 0.95rem;
  text-decoration: none;
}

.social-links i {
  transition: transform 0.2s ease;
}

footer a:hover i,
.social-links a:hover i {
  transform: scale(1.2);
  transition: transform 0.2s ease;
}


footer a:hover {
  color: #005fa3; /* Slightly darker blue for hover */
}


.footer-credit {
  margin-top: 1rem;
  font-style: italic;
  font-size: 0.85rem;
}


/* ========================================================
📱 11. Responsive Adjustments
======================================================== */
@media screen and (max-width: 768px) {
  .branding-inline {
    flex-direction: column;
    text-align: center;
  }

  .pdf-wrapper {
    height: 450px;
  }

  .carousel-btn {
    font-size: 1.5rem;
    padding: 0.4rem 0.8rem;
  }

  .project-container {
    padding: 1rem;
    margin: 1rem auto;
  }

  .lightbox-nav button {
    font-size: 1.5rem;
    padding: 0.6rem 1rem;
  }

  .logo-strip img {
    height: 40px;
    max-width: 80px;
  }

  .social-links a {
    display: block;
    margin: 0.6rem 0;
  }
}


/* ========================================================
 🔙 Floating Back Button (Bottom-Left)
======================================================== */
.back-link-fixed {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #ff6600;
  color: white;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.95rem;
  z-index: 10000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.back-link-fixed:hover {
  background-color: #cc5200;
  transform: translateY(-2px);
}

@media screen and (max-width: 600px) {
  .back-link-fixed {
    bottom: 10px;
    left: 10px;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}


/* ========================================================
🎯 Revit Screenshots Grid (4 columns desktop, 2 columns mobile)
======================================================== */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .screenshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.screenshot-grid img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.screenshot-grid img:hover {
  transform: scale(1.03);
}


/* ========== Download Buttons ========== */
.download-buttons a {
  display: inline-block;
  margin: 0.5rem 1rem 0.5rem 0;
  padding: 0.6rem 1.2rem;
  background: #ff6600;
  color: white;
  font-weight: bold;
  border-radius: 4px;
  text-decoration: none;
}

.download-buttons a:hover {
  background: #e05500;
}


/* ========== Share Button ========== */
.share-linkedin {
  background-color: #0a66c2;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.share-linkedin:hover {
  background-color: #084b9d;
}
