/* Modern text styling */
.text-gradient {
  background: linear-gradient(135deg, #401F3E 0%, #034748 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-balance {
  text-wrap: balance;
}

.tracking-tight {
  letter-spacing: -0.02em;
}

.tracking-wide {
  letter-spacing: 0.02em;
}

/* Serif text styling */
.font-heading {
  letter-spacing: 0.05em;
}

.font-heading.text-4xl,
.font-heading.text-5xl,
.font-heading.text-6xl {
  letter-spacing: 0.06em;
}

.font-heading.text-lg,
.font-heading.text-xl,
.font-heading.text-2xl,
.font-heading.text-3xl {
  letter-spacing: 0.05em;
}

/* Modern UI Elements */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gradient-border {
  position: relative;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #401F3E, #034748) border-box;
  border: 2px solid transparent;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Animations */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(-5deg); }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.animate-float {
  animation: float 8s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 8s ease-in-out infinite;
  animation-delay: -4s;
}

/* Gallery Page Styles */
/* Project Card Styles - Team Member Grid Style */
.project-card {
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.project-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-5px);
}

.project-header {
  display: none;
}

/* Project Cover Image - Square */
.project-images {
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

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

.project-card:hover .project-cover img {
  transform: scale(1.05);
}

/* Caption below image like team members */
.project-caption {
  position: static;
  background: white;
  padding: 1.5rem;
  color: #1f2937;
}

.project-caption h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #401F3E;
  text-align: center;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.05em;
}

.project-caption p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  text-align: center;
}

/* Gallery Item Styles */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  height: 100%;
  display: block;
}

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

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.1);
}

.gallery-item .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: all 0.3s ease;
  z-index: 20;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery-item[data-type="video"]:hover .play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.gallery-item .play-icon i {
  color: #401F3E;
  font-size: 1.75rem;
  margin-left: 4px;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

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

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Filter Buttons - Resource Categories Style */
.filter-btn {
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  border-bottom: 2px solid;
  cursor: pointer;
}

.filter-btn.active {
  border-bottom-color: #401F3E !important;
}

.filter-btn:not(.active) {
  border-bottom-color: transparent;
}

.filter-btn:not(.active):hover {
  border-bottom-color: #401F3E;
}

/* Projects Grid - Team Member Style */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* Stripe Elements Styling */
#stripe-payment-element {
  min-height: 40px;
}

#stripe-payment-element .StripeElement {
  padding: 12px 0;
}

#stripe-payment-element .StripeElement--focus {
  border-color: #401F3E;
}

#stripe-payment-element .StripeElement--invalid {
  border-color: #ef4444;
}

#stripe-payment-element .StripeElement--complete {
  border-color: #10b981;
}
