/* About Page Styles */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Highlight opening line on About hero */
.about-opening-line {
  padding-left: 1rem;
  border-left: 4px solid hsl(var(--primary));
  font-weight: 600;
  font-style: italic;
}

/* Motto text gradient and glow effect */
.motto-text {
  background: linear-gradient(135deg, hsl(195, 65%, 35%) 0%, hsl(175, 50%, 40%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(45, 106, 127, 0.5);
  filter: drop-shadow(0 0 10px rgba(45, 106, 127, 0.3));
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(45, 106, 127, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(45, 106, 127, 0.6));
  }
}

/* Interactive image container */
.interactive-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  transition: transform 0.3s ease;
}

.interactive-image {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, filter;
  transform-style: preserve-3d;
}

.interactive-image:hover {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* Floating animation for images */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.interactive-image-container:hover .interactive-image {
  animation: float 3s ease-in-out infinite;
}

/* Vision section background */
.vision-bg {
  background: radial-gradient(circle at 50% 50%, hsl(195, 65%, 35%) 0%, transparent 70%);
  animation: pulse-bg 4s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%, 100% {
    opacity: 0.05;
  }
  50% {
    opacity: 0.1;
  }
}

/* Value cards */
.value-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(45, 106, 127, 0.1), transparent);
  transition: left 0.5s ease;
}

.value-card:hover::before {
  left: 100%;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(45, 106, 127, 0.15);
}

/* Scroll animations */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-left {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-in-right {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fade-in-up 1s ease-out forwards;
}

.animate-fade-in-left {
  animation: fade-in-left 1s ease-out forwards;
}

.animate-fade-in-right {
  animation: fade-in-right 1s ease-out forwards;
}

/* Stagger animation delays */
.animate-delay-100 {
  animation-delay: 100ms;
}

.animate-delay-200 {
  animation-delay: 200ms;
}

.animate-delay-300 {
  animation-delay: 300ms;
}

.animate-delay-400 {
  animation-delay: 400ms;
}

.animate-delay-500 {
  animation-delay: 500ms;
}

/* Page transition */
@keyframes page-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.about-page {
  animation: page-fade-in 0.5s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .motto-text {
    font-size: 1.75rem;
  }

  .interactive-image-container {
    margin: 1rem 0;
  }

  .value-card {
    margin-bottom: 1rem;
  }
}

/* Dark mode adjustments */
.dark .value-card {
  background-color: hsl(var(--card));
  border-color: hsl(var(--border));
}

.dark .value-card:hover {
  border-color: hsl(var(--primary) / 0.5);
}

.dark .value-card:hover h3 {
  color: hsl(var(--primary)) !important;
}

.dark .vision-bg {
  background: radial-gradient(circle at 50% 50%, hsl(195, 65%, 45%) 0%, transparent 70%);
}

/* Dark mode hover effects for navigation and interactive elements */
.dark nav a:hover,
.dark header a:hover,
.dark footer a:hover {
  color: hsl(var(--primary)) !important;
}

.dark .translate-option:hover {
  background: hsl(var(--accent) / 0.2);
  color: hsl(var(--primary)) !important;
}

.dark .value-card h3 {
  transition: color 0.3s ease;
}

.dark .value-card h3:hover {
  color: hsl(var(--primary)) !important;
}

/* Dark mode hover for all clickable elements */
.dark a:hover,
.dark button:hover,
.dark [role="button"]:hover,
.dark [role="menuitem"]:hover {
  color: hsl(var(--primary)) !important;
}

/* Dark mode hover for links in content */
.dark .about-page a:hover,
.dark main a:hover {
  color: hsl(var(--primary)) !important;
}

/* Dark mode hover for value card icons */
.dark .value-card:hover {
  background-color: hsl(var(--card));
  border-color: hsl(var(--primary) / 0.5);
}

.dark .value-card:hover .text-5xl {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* GPU acceleration for smooth animations */
.interactive-image,
.value-card,
.motto-text {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Loading state for images */
.interactive-image {
  background: linear-gradient(90deg,
    hsl(var(--muted)) 0%,
    hsl(var(--muted) / 0.5) 50%,
    hsl(var(--muted)) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.interactive-image[src] {
  background: none;
  animation: none;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Image Slideshow Styles */
.image-slideshow-container {
  position: relative;
  box-shadow: 0 20px 60px rgba(45, 106, 127, 0.2);
}

.slide {
  transition: opacity 0.7s ease-in-out;
}

/* Only the visible slide receives clicks (so fullscreen opens for the image you see) */
.image-slideshow-container .slide.opacity-0 {
  pointer-events: none;
}

.slideshow-dots {
  backdrop-filter: blur(10px);
}

.slide-dot {
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.slideshow-prev,
.slideshow-next {
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.slideshow-prev:hover,
.slideshow-next:hover {
  transform: translateY(-50%) scale(1.1);
}

.tap-indicator {
  animation: pulse-indicator 2s ease-in-out infinite;
}

@keyframes pulse-indicator {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* Lightbox Styles */
.image-lightbox {
  backdrop-filter: blur(20px);
}

.lightbox-image {
  animation: lightbox-fade-in 0.3s ease-out;
}

@keyframes lightbox-fade-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  backdrop-filter: blur(10px);
}

.lightbox-counter {
  backdrop-filter: blur(10px);
  font-family: monospace;
}

/* Projects: view image completely in a centered modal (not full screen) */
.projects-image-viewer .projects-viewer-box {
  max-width: min(95vw, 1200px);
}
.projects-image-viewer .lightbox-image {
  object-fit: contain;
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  display: block;
}
.projects-image-viewer .projects-viewer-image-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Enhanced interactivity */
.interactive-image-container:not(.image-slideshow-container) .interactive-image {
  cursor: zoom-in;
}

.image-slideshow-container .interactive-image {
  cursor: pointer;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .slideshow-prev,
  .slideshow-next {
    opacity: 1;
    width: 8px;
    height: 8px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
  }

  .tap-indicator {
    opacity: 1;
  }
}

/* ----- Contact page (reference layout) ----- */
.contact-page-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px;
}

.contact-page-container {
  max-width: 700px;
  width: 100%;
  text-align: center;
}

.contact-page-header {
  margin-bottom: 40px;
}

.contact-page-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.contact-page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.contact-page-intro {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.contact-page-card {
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.contact-page-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-page-info {
  text-align: left;
}

.contact-page-info-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.contact-page-info-block {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contact-page-info-block div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-page-info-block span {
  font-size: 0.8125rem;
}

.contact-page-info-block p {
  font-size: 0.9375rem;
  margin: 0;
}

.contact-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: hsl(var(--primary));
}

.contact-page-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-page-social-label {
  font-size: 0.875rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.contact-page-social-icons {
  display: flex;
  gap: 0.75rem;
}

.contact-page-social-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.contact-page-social-circle svg {
  width: 20px;
  height: 20px;
}

.contact-page-direct {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-page-direct-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-email-large {
  width: 64px;
  height: 64px;
  stroke: hsl(var(--primary));
}

.contact-page-direct-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.contact-page-direct-sub {
  font-size: 0.875rem;
  margin: 0;
  opacity: 0.9;
}

.contact-page-send-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}

.contact-page-home {
  margin-top: 40px;
}

@media (max-width: 768px) {
  .contact-page-card-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-page-info {
    text-align: center;
  }

  .contact-page-info-block {
    justify-content: center;
  }

  .contact-page-social-icons {
    justify-content: center;
  }
}

/* ----- Projects page (horizontal layout + slideshow) ----- */
.projects-page-section {
  padding: 80px 20px 60px;
}

.projects-page-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.projects-page-header {
  margin-bottom: 48px;
}

.projects-page-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.projects-page-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.25;
}

.projects-page-intro {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.projects-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
  margin-bottom: 56px;
}

.projects-page-grid--single {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Mentorship page: professional layout and styling ----- */
.mentorship-page .mentorship-section {
  padding: 5rem 1.5rem 4rem;
  background: linear-gradient(180deg, hsl(var(--background)) 0%, hsl(var(--muted) / 0.2) 50%, hsl(var(--background)) 100%);
}

.mentorship-container {
  max-width: 720px;
  margin: 0 auto;
}

.mentorship-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.mentorship-hero-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}

.mentorship-hero-title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: hsl(var(--foreground));
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.mentorship-hero-intro {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
  max-width: 520px;
  margin: 0 auto;
}

.mentorship-card-wrap {
  margin-bottom: 2.5rem;
}

.mentorship-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 24px hsl(var(--foreground) / 0.06);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.mentorship-card:hover {
  box-shadow: 0 12px 40px hsl(var(--foreground) / 0.08);
  border-color: hsl(var(--primary) / 0.25);
}

.mentorship-card-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  border-radius: 0.75rem;
  margin-bottom: 1.25rem;
}

.mentorship-card-icon .projects-card-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.mentorship-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 0.75rem;
}

.mentorship-card-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
  margin: 0 0 1.25rem;
}

.mentorship-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mentorship-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.25);
}

.mentorship-info-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.mentorship-info-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 2px 12px hsl(var(--foreground) / 0.04);
}

.mentorship-info-card.mentorship-info-cta {
  border-color: hsl(var(--primary) / 0.2);
  background: hsl(var(--primary) / 0.04);
}

.mentorship-info-heading {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 0.5rem;
}

.mentorship-info-text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.mentorship-info-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.mentorship-info-list li {
  margin-bottom: 0.4rem;
}

.mentorship-info-list li:last-child {
  margin-bottom: 0;
}

.mentorship-link {
  color: hsl(var(--primary));
  font-weight: 500;
  text-decoration: none;
}

.mentorship-link:hover {
  text-decoration: underline;
}

.mentorship-slideshow-section {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.mentorship-slideshow-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1.25rem;
  text-align: center;
}

.mentorship-slideshow-section .projects-slideshow-container {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.mentorship-actions {
  text-align: center;
  margin-top: 2rem;
}

.mentorship-btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary));
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mentorship-btn-primary:hover {
  background: hsl(var(--primary) / 0.9);
  transform: translateY(-1px);
}


.projects-card {
  padding: 24px;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.projects-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.projects-card-icon-wrap {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.projects-card-icon {
  width: 28px;
  height: 28px;
  stroke: hsl(var(--primary));
}

.projects-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.projects-card-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 14px;
}

.projects-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.projects-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: hsl(var(--primary) / 0.15);
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--primary) / 0.4);
}

.projects-card-cta {
  margin: 0;
}

.projects-card-cta a {
  font-size: 0.9375rem;
  font-weight: 500;
}

.projects-cta-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.projects-slideshow-section {
  margin-top: 48px;
  margin-bottom: 48px;
}

/* Smaller image slideshow on Mentorship page */
.projects-slideshow-container {
  max-width: 28rem;
}

.projects-slideshow-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.projects-page-home {
  margin-top: 32px;
}

@media (max-width: 900px) {
  .projects-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .projects-page-section {
    padding: 60px 16px 40px;
  }

  .projects-page-container {
    padding: 0 8px;
  }
}
