/* styles.css — All custom CSS styles for the personal resume website */
/* NOT for Tailwind utility classes, CDN dependencies, or JavaScript logic */

html {
  scroll-behavior: smooth;
}
body {
  min-height: 1024px;
  background: #15171a;
  color: #f4f4f5;
}
.nav-link {
  position: relative;
  color: #e0e7ef;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #2563eb;
  transition: width 0.3s;
}
.nav-link:hover::after {
  width: 100%;
  background-color: #60a5fa;
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  background: #23262b;
  color: #f4f4f5;
}
section, .bg-white {
  background: #23262b !important;
  color: #f4f4f5 !important;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(20,30,60,0.13);
  margin-bottom: 32px;
  padding-top: 16px;
  padding-bottom: 16px;
}
section#home {
  background: #191c20 !important;
  box-shadow: none;
  border-radius: 0;
  margin-bottom: 0;
}
.shadow-sm, .rounded-lg, .rounded-2xl, .overflow-hidden {
  background: #23262b !important;
  color: #f4f4f5 !important;
  border: none !important;
}
h1, h2, h3, h4, h5, h6 {
  color: #fff !important;
}
hr, .border-gray-800, .border-t {
  border-color: #374151 !important;
}
.inline-flex.bg-primary {
  background: #2563eb !important;
  color: #fff !important;
}
.inline-flex.bg-primary:hover {
  background: #1d4ed8 !important;
  color: #fff !important;
}
.text-gray-900, .text-gray-800, .text-gray-700, .text-gray-400 {
  color: #f4f4f5 !important;
}
.bg-gray-50, .bg-gray-100, .bg-gray-200 {
  background: #23262b !important;
  color: #e0e7ef !important;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.timeline-item {
  position: relative;
  padding-left: 30px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: #60a5fa;
}
.timeline-item::after {
  content: '';
  position: absolute;
  left: -4px;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #60a5fa;
}
/* Highlight styles for key content */
.highlight-tech {
  background-color: rgba(96, 165, 250, 0.18);
  color: #60a5fa;
  padding: 0 4px;
  border-radius: 3px;
}
.highlight-skill {
  background-color: rgba(16, 185, 129, 0.18);
  color: #4ade80;
  padding: 0 4px;
  border-radius: 3px;
}
.highlight-achievement {
  background-color: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  padding: 0 4px;
  border-radius: 3px;
}
.highlight-product {
  background-color: rgba(139, 92, 246, 0.18);
  color: #a78bfa;
  padding: 0 4px;
  border-radius: 3px;
}
.highlight-company {
  background-color: rgba(236, 72, 153, 0.18);
  color: #f472b6;
  padding: 0 4px;
  border-radius: 3px;
}

/* Capability Map Styles */
.capability-tabs {
  display: flex;
  flex-direction: column;
}

.capability-tab {
  display: flex;
  align-items: center;
  padding: 16px;
  border-left: 3px solid transparent;
  background-color: #22242a;
  text-align: left;
  transition: all 0.3s;
  cursor: pointer;
  color: #e0e7ef;
}

.capability-tab.active {
  border-left-color: #60a5fa;
  background-color: #23262b;
  color: #fff;
}

.capability-tab:hover:not(.active) {
  background-color: #23262b;
}

.tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(96, 165, 250, 0.12);
  border-radius: 50%;
  margin-right: 12px;
}

.capability-tab span {
  font-weight: 500;
  color: #cbd5e1;
}

.capability-tab.active span {
  color: #fff;
  font-weight: 600;
}

.capability-content {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}

.capability-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .capability-tabs {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid #e5e7eb;
  }

  .capability-tab {
    flex-direction: column;
    padding: 12px 16px;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .capability-tab.active {
    border-left-color: transparent;
    border-bottom-color: #2563eb;
  }

  .tab-icon {
    margin-right: 0;
    margin-bottom: 8px;
  }
}

/* Toast notification styles */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 300px;
  max-width: 400px;
  padding: 14px 20px;
  background-color: #23262b;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(20,30,60,0.22);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  border: 1px solid #374151;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-content {
  flex: 1;
  padding-right: 12px;
}

.toast-title {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 4px;
}

.toast-description {
  color: #e0e7ef;
  font-size: 0.95rem;
}

.toast-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: #2563eb;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 2px 8px rgba(37,99,235,0.09);
}

.toast-action:hover {
  background-color: #1d4ed8;
  color: #fff;
}

/* Toast close button styles */
.toast-close {
  position: absolute;
  top: 0px;
  right: 5px;
  background: none;
  border: none;
  color: #e0e7ef; /* Match text color */
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s, color 0.2s;
  z-index: 2; /* Ensure it's above other elements */
}

.toast-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Ensure action button doesn't overlap with close button */
.toast-action {
  margin-right: 15px; /* Add space for the close button */
}

/* Position adjustment for toast content */
.toast-content {
  padding-right: 50px; /* Make room for close button */
}

/* Aspect ratio utilities for video embedding */
.aspect-w-16 {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.aspect-w-16 iframe,
.aspect-w-16 video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* Hero Highlight Styles */
.hero-highlight-container {
  position: relative;
  overflow: hidden;
  background: #191c20;
}
.dot-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(60, 72, 100, 0.6) 1px, transparent 1px);
  background-size: 16px 16px;
}
.mouse-highlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background-image: radial-gradient(circle, rgb(99 102 241 / 0.5) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: radial-gradient(
    200px circle at var(--mouse-x) var(--mouse-y),
    black 0%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    200px circle at var(--mouse-x) var(--mouse-y),
    black 0%,
    transparent 100%
  );
}
.hero-highlight-container:hover .mouse-highlight {
  opacity: 1;
}

/* Hero Image Glow and Tooltip Styles */
.hero-image-link {
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-image {
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.hero-image-link:hover .hero-image {
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.6), 0 0 40px rgba(99, 102, 241, 0.4);
  transform: scale(1.02);
}

.hero-image-tooltip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.hero-image-link:hover .hero-image-tooltip {
  opacity: 1;
}
.text-highlight {
  position: relative;
  display: inline-block;
  padding-bottom: 1px;
  padding-left: 1px;
  padding-right: 1px;
  border-radius: 0.375rem; /* rounded-lg */
  background: linear-gradient(90deg, #223052 60%, #23262b 100%);
  color: #fff !important;
  font-weight: bold;
}
.text-highlight strong {
  color: #fff !important;
  font-weight: bold;
}
@keyframes highlight-animation {
  to {
    background-size: 100% 100%;
  }
}

/* Testimonials Album Styles */
.testimonials-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.testimonials-row {
  display: flex;
  gap: 20px;
  padding: 20px 80px;
  overflow: hidden;
  width: fit-content; /* Allow the row to size based on content */
  margin-bottom: 20px; /* Add space between rows */
}

.testimonials-row:first-child {
  animation: scroll-left 30s linear infinite;
}

.testimonials-row:last-child {
  animation: scroll-right 30s linear infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50%)); } /* Move exactly half the width */
}

@keyframes scroll-right {
  0% { transform: translateX(calc(-50%)); } /* Start from halfway point */
  100% { transform: translateX(0); }
}

.testimonial-image {
  flex: 0 0 auto;
  width: 480px;
  height: 320px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  background-color: #f3f4f6; /* Light background while loading */
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Remove any default inline spacing */
  transition: transform 0.3s ease;
}

.testimonial-image:hover img {
  transform: scale(1.05);
}

.testimonials-shade-left,
.testimonials-shade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px; /* Increased width for more gradient */
  pointer-events: none;
  z-index: 10;
}

.testimonials-shade-left {
  left: 0;
  background: linear-gradient(to right, rgba(249, 250, 251, 1), rgba(249, 250, 251, 0));
}

.testimonials-shade-right {
  right: 0;
  background: linear-gradient(to left, rgba(249, 250, 251, 1), rgba(249, 250, 251, 0));
}
/* Responsive styles for mobile devices */
@media (max-width: 768px) {
  html, body {
    font-size: 15px;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
  }
  body {
    min-width: 0;
    padding: 0 0 60px 0;
  }
  section, .bg-white {
    border-radius: 0;
    margin-bottom: 18px;
    padding-top: 8px;
    padding-bottom: 8px;
    box-shadow: none;
  }
  .max-w-7xl, .mx-auto, .px-4, .sm\:px-6, .lg\:px-8 {
    max-width: 100vw !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .nav-link {
    font-size: 1.1em;
    padding: 10px 0;
    display: block;
  }
  nav.fixed {
    position: static;
    box-shadow: none;
  }
  .h-16 {
    height: 48px !important;
  }
  .hero-highlight-container {
    min-height: 280px;
    height: auto !important;
    padding: 72px 0 12px 0;
  }
  .fade-in {
    padding: 8px 0;
  }
  .timeline-item {
    padding-left: 18px;
  }
  .testimonial-image {
    width: 98vw !important;
    max-width: 340px !important;
    height: 180px !important;
  }
  .testimonials-row {
    gap: 12px;
    padding: 10px 0;
  }
  .testimonials-shade-left, .testimonials-shade-right {
    width: 40px;
  }
  h1 {
    font-size: 2em !important;
  }
  h2 {
    font-size: 1.4em !important;
  }
  h3 {
    font-size: 1.1em !important;
  }
  .inline-flex.bg-primary, .toast-action {
    padding: 8px 14px;
    font-size: 1em;
  }
  .capability-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-bottom: 1px solid #e5e7eb;
  }
  .capability-tab {
    flex-direction: column;
    padding: 10px 8px;
    min-width: 90px;
  }
  .capability-tab span {
    font-size: 0.95em;
  }
  .tab-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
  }
  .aspect-w-16 {
    padding-bottom: 60%;
  }
  .toast {
    min-width: 180px;
    max-width: 95vw;
    padding: 10px 8px;
  }
  .toast-title {
    font-size: 1em;
  }
  .toast-description {
    font-size: 0.93em;
  }
  .toast-container {
    bottom: 10px;
    right: 10px;
    gap: 6px;
  }
}

/* Optional: Hide scrollbars on mobile for horizontal sections */
@media (max-width: 768px) {
  .capability-tabs::-webkit-scrollbar,
  .testimonials-row::-webkit-scrollbar {
    display: none;
  }
  .capability-tabs,
  .testimonials-row {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* Hero Image Mobile Responsive */
  .hero-image {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
  }

  .hero-image-link:hover .hero-image {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5), 0 0 30px rgba(99, 102, 241, 0.3);
    transform: scale(1.01);
  }

  .hero-image-tooltip {
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* Media query for low-height devices */
@media (max-height: 500px) {
  .hero-highlight-container {
    min-height: 200px !important;
    padding: 60px 0 8px 0 !important;
  }
}

/* Company logo container styles */
.company-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem; /* 24px */
}
/* Individual logo styles */
.company-logo {
  display: flex;
  align-items: center;
  background: #23262b;
  border-radius: 8px;
  padding: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Logo image styles */
.company-logo img {
  width: 150px;
  height: 60px;
  object-fit: contain;
  margin-right: 0.75rem;
}
/* Logo text */
.company-logo span {
  color: #e0e7ef;
  font-size: 1rem;
  font-weight: 500;
}
/* Hover effect */
.company-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(20,30,60,0.2);
}
@media (max-width: 768px) {
  .company-logos {
    flex-direction: column;
    gap: 1rem;
  }
  .company-logo {
    width: 100%;
    justify-content: flex-start;
  }
  .company-logo img {
    width: 150px;
    height: 60px;
  }
  .company-logo span {
    font-size: 0.95rem;
  }
}
/* Hover effect for timeline images */
.timeline-item .timeline-image-wrapper:hover img {
  transform: scale(1.05);
}
/* Hover effect for timeline images */
.timeline-image-wrapper {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-image-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(20,30,60,0.2);
}
