/* Global Styles */
body {
  animation: bodyFade 0.8s ease-out;
  font-family: Raleway, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #13131A;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main, .project-detail {
  flex: 1;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

@keyframes bodyFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- Base desktop styles (already covered) --- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0; /* Aligns dropdown to the right edge of its parent */
  left: auto; /* Ensures it's not also anchored on the left */
  background-color: white;
  border: 1px solid #e1e1e5;
  border-radius: 4px;
  padding: 0.5rem 0;
  list-style: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
  min-width: 160px;
}

.dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #333;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background-color: #f0f0f5;
}

@media (max-width: 400px) {
  .nav-list {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto; /* If items overflow, allow scroll */
  }

  .dropdown {
    position: relative;
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0; /* opens leftward */
    left: auto;
    width: max-content;
    background-color: white;
    border: 1px solid #e1e1e5;
    border-radius: 4px;
    padding: 0.5rem 0;
    list-style: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .dropdown-menu li a {
    padding: 0.5rem 1rem;
    white-space: nowrap;
  }
}
/* Header Styles */
.site-header {
  padding: 20px 0;
  color: #091026;
  /* Remove direct width and add centering */
}

.header-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media only screen and (max-width: 600px) {
  .content-container {
    width: 100%;
    padding: 10px;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .content-container img {
    width: 100%;
    height: auto;
  }

}

.isaaclogo {
 width:20%;
} 

.project-image {
  max-width: 100%;
  height: auto;
  display: block;
  width: 100%;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-list a {
  color: #091026;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: #3741BD;
}

.nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background-color: #3741BD;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-list a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Header Separator */
.header-separator {
  border-top: 1px solid #E1E1E5; /* Separator between header and body */
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0;
}

/* Main Content Styles */
.content-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Removes underlines*/
.content-container a {
  text-decoration: none;
}

.about {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 8px;
}

.about h1{
  font-size: 3rem;
}


.about p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #13131A;
  margin-bottom: 3rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(6, auto);
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.project-card.in-view {
  opacity: 1;
  transform: translateY(0);
  width: 100%;
  height: auto;
}

.project-tile p {
  font-size: 1.2rem;
  color:#13131A;
  font-weight: 500;
}

#scrollTopBtn {
  position: fixed;
  right: 5%;
  bottom: 40px;
  background-color: #091026;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  padding-top: 0.2rem;
  border-radius: 100px;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

#scrollTopBtn:hover {
  background-color: #3741BD;
}

/* Footer Separator */
.footer-separator {
  border-top: 1px solid #E1E1E5; /* Adjusted width */
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;

}

/* Footer Styles */
.site-footer {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 0 2rem;
  color: #13131A;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-link-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #555;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-link-item:hover {
  color: #3741BD;
}

.footer-link-item i {
  font-size: 1rem;
  width: 18px;
  text-align: center;
  color: #999;
  transition: color 0.2s ease;
}

.footer-link-item:hover i {
  color: #3741BD;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid #E1E1E5;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: #999;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f5f5f7;
  color: #555;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.footer-social a:hover {
  background: #3741BD;
  color: #fff;
}

@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Styles for UI Page */

.project-detail h1 {
  margin-bottom: 1rem;
}

.project-description {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(1, 4fr);
  gap: 1.5rem;
}

.project-image.ui-design {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border: 2px solid #E1E1E5;
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  justify-content: center; /* Horizontally center */
  align-items: center;     /* Vertically center (if container has height) */
  margin-bottom: 2rem; /* Adds space between stacked images */
}

.project-image.ui-design img {
  max-width: 100%;
  height: auto;
  display: block;
  width: 100%;
}


/* Styles for About me page */

.isaac-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.project-image.isaac-container {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
}

#isaac-picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Styles for Presentation Design Page */

.project-image.presentation-design {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border: 2px solid #E1E1E5;
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  justify-content: center; /* Horizontally center */
  align-items: center;     /* Vertically center (if container has height) */
  margin-bottom: 2rem; /* Adds space between stacked images */
}

.project-image.presentation-design img {
  max-width: 100%;
  height: auto;
  display: block;
  width: 100%;
}

/* Styles for Graphic Design Page */

.project-image.graphic-design {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border: 2px solid #E1E1E5;
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  justify-content: center; /* Horizontally center */
  align-items: center;     /* Vertically center (if container has height) */
  margin-bottom: 2rem; /* Adds space between stacked images */
}

.project-image.graphic-design img {
  max-width: 100%;
  height: auto;
  display: block;
  width: 100%;
}

/* Styles for 3D Design Page */

.project-image.design-3d {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border: 2px solid #E1E1E5;
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  justify-content: center; /* Horizontally center */
  align-items: center;     /* Vertically center (if container has height) */
  margin-bottom: 2rem; /* Adds space between stacked images */
}

.project-image.design-3d img {
  max-width: 100%;
  height: auto;
  display: block;
  width: 100%;
}

/* ========================================
   PROJECT CARD GRID (Category Landing Pages)
   ======================================== */

.category-intro {
  margin-bottom: 2.5rem;
}

.category-intro h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.category-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  max-width: 720px;
}

.project-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 700px) {
  .project-cards-grid {
    grid-template-columns: 1fr;
  }
}

.project-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 12px;
  border: 1px solid #E1E1E5;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  transform: translateY(24px);
  background: #fff;
}

.project-card-link.in-view {
  opacity: 1;
  transform: translateY(0);
}

.project-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: #3741BD;
}

.project-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f5f7;
}

.project-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card-link:hover .project-card-thumb img {
  transform: scale(1.03);
}

.project-card-info {
  padding: 1.2rem 1.4rem 1.4rem;
}

.project-card-info h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
  font-weight: 600;
}

.project-card-info p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3741BD;
  background: #EDEDF7;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-top: 0.8rem;
}

/* ========================================
   BACK LINK (on project detail pages)
   ======================================== */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #3741BD;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   IMPROVED PROJECT TILES (Home Page)
   ======================================== */

.project-tile {
  border-radius: 12px;
  border: 1px solid #E1E1E5;
  padding: 3rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  background: #fff;
}

.project-card:hover .project-tile {
  background-color: #f5f5f7;
  border-color: #3741BD;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

/* ========================================
   IMAGE LIGHTBOX (click to zoom)
   ======================================== */

.project-image-clickable {
  cursor: zoom-in;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  opacity: 1;
}

.lightbox-overlay img {
  max-width: 92%;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ========================================
   RESPONSIVE REFINEMENTS
   ======================================== */

@media (max-width: 600px) {
  .about h1 {
    font-size: 2rem;
  }

  .about p {
    font-size: 1rem;
  }

  .category-intro h1 {
    font-size: 1.8rem;
  }

  .project-card-info h3 {
    font-size: 1rem;
  }

  .project-card-info p {
    font-size: 0.85rem;
  }
}
/* Footer icon — local inline SVG, replaces the Font Awesome CDN */
.footer-link-item .footer-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #999;
  transition: color 0.2s ease;
}

.footer-link-item:hover .footer-icon {
  color: #3741BD;
}

/* ---------------------------------------------------------------
   Footer link as a pill button.
   Overrides the earlier .footer-link-item rules (later wins).
   --------------------------------------------------------------- */
.footer-link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid #E3E3E8;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.footer-link-item:hover {
  color: #3741BD;
  border-color: #3741BD;
  background-color: #F5F6FF;
}

/* Icon inherits the link colour, so both shift together on hover. */
.footer-link-item .footer-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: currentColor;
}
