
/* ========================================================
🔧 REVIT TOOLS PROJECT – Scoped Overrides for Project Card Elements
======================================================== */

/* ================🌐 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;
}


/* Prevents accidental zoom bounce or scroll chaining */
html,
body {
  overscroll-behavior: contain;
}



/* 1. Header styling override if any global reset affects it */
[data-project="revit-tools"] .site-header {
  background-color: #222;
  border-bottom: 2px solid #ff6600;
  padding: 1.5rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 2. Branding inline layout (image + text) */
[data-project="revit-tools"] .branding-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  text-align: left;		/* ⬅️ Desktop default: left-align branding */
}

/* 3. BIMBuddy Logo image */
[data-project="revit-tools"] .logo {
  width: 60px;
  height: auto;
}

/* 4. Branding text inside the header */
[data-project="revit-tools"] .branding-text {
  color: #fff;
  text-align: center;
}

[data-project="revit-tools"] .branding-text h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0.3rem 0;
}

[data-project="revit-tools"] .branding-text p {
  font-size: 1rem;
  color: #ccc;
  margin: 0.2rem 0;
}

/* 5. Main project card container */
[data-project="revit-tools"] .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);
}

/* 6. Project header wrapper (title + share) */
[data-project="revit-tools"] .project-header {
  background: #f0f0f0;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  text-align: left;
  border-bottom: 3px solid #ff6600;
  gap: 1.5rem;
}


[data-project="revit-tools"] .project-header .header-text {
  flex: 1 1 70%;
  min-width: 250px;
}

[data-project="revit-tools"] .project-header .header-actions {
  flex: 1 1 30%;
  text-align: right;
  min-width: 200px;
  display: flex;
  align-items: start;
  justify-content: flex-end;
}


[data-project="revit-tools"] .project-header h2 {
  font-size: 1.5rem;
  color: #000;
  margin-bottom: 0.5rem;
  white-space: nowrap;           /* 👈 Don't break to a new line */
  overflow: hidden;              /* Optional: hide overflow if it's too long */
  text-overflow: ellipsis;       /* Optional: adds "..." if overflow is hidden */
}


[data-project="revit-tools"] .project-header p {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  margin: 0.2rem 0;
}

[data-project="revit-tools"] .project-header h2 i {
  color: #ff6600;
  margin-right: 0.4rem;
}


/* 7. Meta info below header */
[data-project="revit-tools"] .project-meta {
  font-size: 0.85rem;
  color: #999;
}


/* 8. Share on LinkedIn button */
[data-project="revit-tools"] .share-linkedin {
  background-color: #0a66c2;        /* 🔵 LinkedIn blue background */
  color: white;                     /* 🔤 White text */
  padding: 0.5rem 1rem;             /* 📦 Vertical + horizontal padding for size */
  border-radius: 30px;              /* 🟢 Rounded pill shape */
  font-weight: bold;                /* 📝 Bold text for emphasis */
  text-decoration: none;            /* ❌ No underline */
  transition: background-color 0.3s ease;  /* 🔁 Smooth hover transition */
  border: none;                     /* ❌ No border */
  cursor: pointer;                  /* 🖱️ Pointer cursor on hover */
  display: flex;                    /* ➕ Flex layout to align icon + text */
  align-items: center;             /* 🔄 Vertically center icon with text */
  margin-left: auto; /* 👈 Pushes the button to the right in a flex container */
}

/* 🟦 Hover style for the button */
[data-project="revit-tools"] .share-linkedin:hover {
  background-color: #084b9d;        /* 🔵 Darker LinkedIn shade on hover */
}

/* ========================================================
🤝 5. Trusted By Logos
======================================================== */
[data-project="revit-tools"] .trusted-by-bar {
  width: 100%;
  background-color: #f3f3f3;
  padding: 1rem 1rem;
  text-align: center;
  border-top: 1px solid #ddd;
  margin-top: 1.5rem;
}

[data-project="revit-tools"] .trusted-by-bar p {
  font-weight: bold;
  color: #444;
  margin-bottom: 0.5rem;
}

[data-project="revit-tools"] .logo-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

[data-project="revit-tools"] .logo-strip img {
  height: 50px;                    /* Set a fixed height for all logos for consistency */
  max-width: 100px;                /* Prevent logos from stretching too wide */
  object-fit: contain;             /* Maintain aspect ratio without cropping */
  filter: grayscale(0%);         /* Apply full grayscale to logos (for subtle branding) */
  opacity: 1;                    /* Slightly faded appearance to reduce visual noise */
  transition: all 0.3s ease-in-out;/* Smooth transition for hover effects (e.g., opacity, scale) */
}


[data-project="revit-tools"] .logo-strip img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
}



/* 9. Tool card or overview section */
[data-project="revit-tools"] .tool-overview-card {
  background: #fff;			 	/* White background for clean contrast */
  padding: 2rem 1.5rem;			/* Inner spacing: 2rem top/bottom, 1.5rem sides */
  margin: 0.5rem auto;			/* Vertical spacing + auto-center horizontally */
}


/* 10. Download buttons (Revit Add-in .zip, etc.) */
[data-project="revit-tools"] .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;
}

[data-project="revit-tools"] .download-buttons a:hover {
  background: #e05500;
}



/* 11. Screenshot grid layout (2 or 4 columns) */
[data-project="revit-tools"] .screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}



/* 12. Images inside lightbox links */
[data-project="revit-tools"] .screenshot-grid img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  cursor: pointer;
}

[data-project="revit-tools"] .screenshot-grid img:hover {
  transform: scale(1.03);
}



/* 13. Social links section in footer */
[data-project="revit-tools"] .social-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem; /* ⬅️ Control horizontal spacing here */
  flex-wrap: wrap;
}



[data-project="revit-tools"] .linkedin-link i { color: #0077b5; }
[data-project="revit-tools"] .github-link i { color: #000000; }
[data-project="revit-tools"] .youtube-link i { color: #cc0000; }



[data-project="revit-tools"] .social-links a {
  margin: 0 0.8rem;
  text-decoration: none;
  color: #0077cc;
  font-weight: bold;
  font-size: 0.95rem;
}

[data-project="revit-tools"] .social-links i {
  transition: transform 0.2s ease;
}


/* 14. Lightbox overlay for full-size view */
[data-project="revit-tools"] .lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

[data-project="revit-tools"] .lightbox-overlay.hidden {
  display: none;
}

/* 15. Lightbox content container */
[data-project="revit-tools"] .lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}

/* 16. Close button for lightbox */
[data-project="revit-tools"] .lightbox-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}



/* 17. Lightbox navigation arrows (positioned at screen edges) */
[data-project="revit-tools"] .lightbox-nav {
  position: fixed;                          /* ✅ Changed from absolute to fixed to escape image bounds */
  top: 50%;
  left: 0;
  width: 100vw;                             /* ✅ Full screen width to stretch beyond image */
  display: flex;
  justify-content: space-between;          /* ✅ Push arrows to the edges */
  transform: translateY(-50%);
  z-index: 10000;
  pointer-events: none;                    /* ✅ Allow buttons inside to still be clickable */
}

/* Navigation buttons styling */
[data-project="revit-tools"] .lightbox-nav button {
  pointer-events: all;                     /* ✅ Re-enable clicks for the buttons */
  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;
  margin: 0 1rem;                          /* ✅ Optional: spacing from edge */
}

/* Hover effect */
[data-project="revit-tools"] .lightbox-nav button:hover {
  background-color: #ff6600;
  color: #fff;
}




/* 18. Lightbox caption */
[data-project="revit-tools"] .lightbox-caption {
  margin-top: 1rem;
  color: white;
  font-size: 1rem;
}

/* Lightbox content image */
[data-project="revit-tools"] .lightbox-content img {
  max-width: 90vw;      /* ✅ Keeps image within screen width */
  max-height: 80vh;     /* ✅ Keeps image within screen height */
  width: auto;
  height: auto;
  object-fit: contain;  /* ✅ Maintains aspect ratio, no squish */
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}


/* 19. Lightbox <a class="demo-lightbox"> hover style if you use custom clickable wrappers */
[data-project="revit-tools"] .demo-lightbox {
  cursor: zoom-in;
  display: inline-block;
}


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

[data-project="revit-tools"] footer a {
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
}

[data-project="revit-tools"] footer a:hover i,
[data-project="revit-tools"] .social-links a:hover i {
  transform: scale(1.2);
  transition: transform 0.2s ease;
}


[data-project="revit-tools"] footer a:hover {
  color: #005fa3; /* Slightly darker blue for hover */
}


[data-project="revit-tools"] .footer-credit {
  margin-top: 1rem;
  font-style: italic;
  font-size: 0.85rem;
}



/* Fixed back button style for Revit tools (matches global default but scoped) */
[data-project="revit-tools"] .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;
}

[data-project="revit-tools"] .back-link-fixed:hover {
  background-color: #cc5200;
  transform: translateY(-2px);
}






/* ---------- Control Vertical Spacing Between Sections ---------- */
[data-project="revit-tools"] section {
  margin-top: 1.5rem;     /* Adds space above each section */
  margin-bottom: 1.5rem;  /* Adds space below each section */
}


/* ---------- Add a Divider Line Between Sections ---------- */
[data-project="revit-tools"] section::before {
  content: "";                   /* Empty pseudo-element for the divider */
  display: block;                /* Treats it like a block element */
  height: 1px;                   /* Thin horizontal divider */
  background-color: #ddd;       /* Light gray line */
  margin-bottom: 2rem;          /* Space after the line */
  margin-top: 2rem;             /* Space before the line */
}


/* ❌ Remove divider before the first section */
[data-project="revit-tools"] section:first-of-type::before {
  display: none;  /* Hides the pseudo-element for the first section */
}








@media screen and (min-width: 481px) and (max-width: 899px) {
  [data-project="revit-tools"] .logo {
    width: 50px;
  }

  [data-project="revit-tools"] .branding-text h1 {
    font-size: 1.4rem;
  }

  [data-project="revit-tools"] .branding-text p {
    font-size: 0.95rem;
  }

  [data-project="revit-tools"] .project-container {
    padding: 1.8rem 1.2rem;
  }

  [data-project="revit-tools"] .download-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  [data-project="revit-tools"] .download-buttons a {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.6rem 1rem;
  }

  [data-project="revit-tools"] .screenshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  [data-project="revit-tools"] .social-links {
    flex-direction: row;
    justify-content: center;
    gap: 0.85rem;
  }

  [data-project="revit-tools"] .social-links i {
    font-size: 1.3rem;
  }

  [data-project="revit-tools"] .back-link-fixed {
    bottom: 15px;
    left: 15px;
    font-size: 0.9rem;
  }

  [data-project="revit-tools"] .lightbox-caption {
    font-size: 0.9rem;
  }

  [data-project="revit-tools"] .footer-credit {
    font-size: 0.8rem;
  }
}



@media screen and (min-width: 900px) {
  [data-project="revit-tools"] .logo {
    width: 60px;
  }

  [data-project="revit-tools"] .branding-inline {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1.5rem;
  }

  [data-project="revit-tools"] .branding-text h1 {
    font-size: 1.75rem;
  }

  [data-project="revit-tools"] .branding-text p {
    font-size: 1rem;
  }

  [data-project="revit-tools"] .project-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 2rem;
  }

  [data-project="revit-tools"] .download-buttons {
    flex-direction: row;
    justify-content: flex-start;
  }

  [data-project="revit-tools"] .download-buttons a {
    width: auto;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }

  [data-project="revit-tools"] .screenshot-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  [data-project="revit-tools"] .social-links {
    flex-direction: row;
    justify-content: flex-center;
    gap: 1.0rem;
  }

  [data-project="revit-tools"] .social-links i {
    font-size: 1.4rem;
  }

  [data-project="revit-tools"] .back-link-fixed {
    bottom: 20px;
    left: 20px;
    font-size: 1rem;
  }

  [data-project="revit-tools"] .lightbox-caption {
    font-size: 1rem;
  }

  [data-project="revit-tools"] .lightbox-close {
    font-size: 2rem;
  }

  [data-project="revit-tools"] .lightbox-nav button {
    font-size: 2rem;
    padding: 0.5rem 1rem;
  }

  [data-project="revit-tools"] .tool-overview-card {
    padding: 2rem;
  }

  [data-project="revit-tools"] .project-meta {
    font-size: 0.9rem;
  }

  [data-project="revit-tools"] .share-linkedin {
    justify-content: flex-end;		 /* 👈 Align button to the right */
    font-size: 0.95rem;
    width: auto;
    margin-left: auto;				/* 👈 Push it to the right within flex */
    padding: 0.6rem 1rem;
  }

  [data-project="revit-tools"] .footer-credit {
    font-size: 0.85rem;
  }
}











