/* Main Styles */
html {
  scroll-behavior: smooth;
}

.gradient-bg {
  background: linear-gradient(135deg, #1e3a5f 0%, #3b82f6 100%);
}

.card-hover {
  transition: all 0.3s ease;
}

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

/* 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;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-title {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  padding-right: 20px;
}

.lightbox-close {
  font-size: 28px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

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

.lightbox-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}

.lightbox-content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

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

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

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-footer {
  display: flex;
  justify-content: center;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.gallery-img {
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Profile Photo Popup Styles */
.profile-img {
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.profile-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}

.profile-popup.active {
  display: flex;
}

.profile-popup-content {
  position: relative;
  text-align: center;
  max-width: 400px;
  animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.profile-popup-img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.profile-popup-name {
  color: white;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
}

.profile-popup-role {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 20px;
}

.profile-popup-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.profile-popup-socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid;
  background: transparent;
}

.profile-popup-socials a.instagram {
  border-color: #e1306c;
  color: #e1306c;
}

.profile-popup-socials a.instagram:hover {
  background: #e1306c;
  color: white;
}

.profile-popup-socials a.linkedin {
  border-color: #0077b5;
  color: #0077b5;
}

.profile-popup-socials a.linkedin:hover {
  background: #0077b5;
  color: white;
}

.profile-popup-socials a.github {
  border-color: #333;
  color: #333;
}

.profile-popup-socials a.github:hover {
  background: #333;
  color: white;
}

.profile-popup-socials a.email {
  border-color: #ea4335;
  color: #ea4335;
}

.profile-popup-socials a.email:hover {
  background: #ea4335;
  color: white;
}

.profile-popup-socials a:hover {
  transform: scale(1.1);
}

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

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

/* Scroll Animation Styles */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate-left {
  transform: translateX(-50px);
}

.scroll-animate.animate-right {
  transform: translateX(50px);
}

.scroll-animate.animate-scale {
  transform: scale(0.8);
}

.scroll-animate.animate-fade {
  transform: translateY(0);
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Staggered animation delays for grid items */
.scroll-animate.delay-1 {
  transition-delay: 0.1s;
}

.scroll-animate.delay-2 {
  transition-delay: 0.2s;
}

.scroll-animate.delay-3 {
  transition-delay: 0.3s;
}

.scroll-animate.delay-4 {
  transition-delay: 0.4s;
}

.scroll-animate.delay-5 {
  transition-delay: 0.5s;
}

.scroll-animate.delay-6 {
  transition-delay: 0.6s;
}

/* Responsive Styles */
@media (max-width: 640px) {
  .profile-popup-img {
    width: 200px;
    height: 200px;
  }

  .profile-popup-name {
    font-size: 20px;
  }

  .profile-popup-close {
    top: -40px;
    right: 0;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-title {
    font-size: 14px;
  }
}
