/* Default theme. Simple, yet elegant. */

/* Use Open Sans as the default sans serif font. */
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,500,700|Source+Code+Pro:300,400,500,700");

/* See https://getbootstrap.com/docs/5.2/customize/css-variables/#root-variables for variables to override. */
:root {
  --bs-font-sans-serif: "Open Sans", sans-serif;
  --bs-link-color: var(--bs-blue);
  --tf-pill-bg: var(--bs-gray);
  --tf-icon-fill: var(--bs-gray);
  --tf-icon-hover: var(--bs-gray-500);
  --tf-page-bg-color: var(--bs-white);
  --tf-footer-bg-color: var(--bs-gray-200);
  --tf-projects-bg-color: var(--bs-gray-100);
}

/* Format social media icons */
.tf-social {
  display: inline-block;
  fill: var(--tf-icon-fill);
  height: 1.5em;
  vertical-align: -.1em;
  width: 1.5em;
  transition: 0.2s;
}

.tf-social:hover {
  fill: var(--tf-icon-hover);
}

a {
  text-decoration: none;
}

@media (max-width: 500px) {
  .navbar-brand {
    display: none;
  }

  .navbar-brand-mobile {
    display: inline;
  }
}

/* Simplify the styling of the bottom of Essay cards. */
.card-footer {
  background-color: var(--bs-white);
  border-top: none;
}

/* Project card styling */
.project-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Ensure clickable project cards maintain proper styling */
a:has(.project-card) {
  color: inherit;
  text-decoration: none;
}

a:has(.project-card):hover {
  color: inherit;
  text-decoration: none;
}

.project-card .card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}

/* Consistent project icon sizing */
.project-icon {
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
  border-radius: 0.375rem 0 0 0.375rem;
  background-color: #f8f9fa;
  padding: 0.5rem;
}

/* Mobile responsiveness for project cards */
@media (max-width: 768px) {
  .project-card .card-img,
  .project-icon {
    height: 150px;
    border-radius: 0.375rem 0.375rem 0 0;
    padding: 0.25rem;
  }
  
  .project-card .row {
    flex-direction: column;
  }
  
  .project-card .col-md-4,
  .project-card .col-md-8 {
    max-width: 100%;
    flex: 0 0 100%;
  }
}

/* Project labels styling */
.project-labels .badge {
  font-size: 0.75rem;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
}

/* Project card content spacing */
.project-card .card-body {
  padding: 1.5rem;
}

.project-card .card-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--bs-dark);
}

.project-card .card-text {
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Screenshot Gallery Styles */
.screenshot-gallery {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  background: #f8f9fa;
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.gallery-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease-in-out;
}

.gallery-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.gallery-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Gallery Navigation */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
  left: 15px;
}

.gallery-nav.next {
  right: 15px;
}

/* Gallery Dots/Indicators */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  background: rgba(248, 249, 250, 0.9);
}

.gallery-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dee2e6;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-dot.active {
  background: #007bff;
  transform: scale(1.2);
}

.gallery-dot:hover {
  background: #6c757d;
}

/* Gallery Info */
.gallery-info {
  position: absolute;
  bottom: 60px;
  left: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.9rem;
}

/* Touch/Swipe Support */
.gallery-container {
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .gallery-container {
    height: 300px;
  }
  
  .gallery-nav {
    width: 35px;
    height: 35px;
  }
  
  .gallery-nav.prev {
    left: 10px;
  }
  
  .gallery-nav.next {
    right: 10px;
  }
  
  .gallery-info {
    bottom: 50px;
    left: 10px;
    right: 10px;
    font-size: 0.8rem;
  }
}

/* Fullscreen Gallery (Optional) */
.gallery-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-fullscreen .gallery-container {
  max-width: 90vw;
  max-height: 90vh;
  height: auto;
}

.gallery-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 1001;
}
