/* ========================================
   INDEX PAGE SPECIFIC STYLES
   ======================================== */

.index-page .manga-title {
  display: none;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1rem;
}

.hero-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-image {
  flex-shrink: 0;
  width: 160px;
}

.hero-image img {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  padding-top: 1rem;
}

.hero-title {
  font-family: "__Calistoga_Fallback_137a1a", Calistoga, serif;
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.hero-subtitle {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

.hero-description {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 36rem;
}

.hero-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-note {
  margin-top: 1.5rem;
  font-weight: 600;
  text-align: left;
  color: var(--foreground);
  font-size: 0.875rem;
  animation: fadeIn 1s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.arrow-down {
  display: inline-block;
  font-size: 1.25rem;
  animation: bounce 1.5s infinite;
  line-height: 1;
  margin-top: 2px;
}

.highlight {
  display: inline-block;
  animation: wave 2.2s infinite ease-in-out;
  transform-origin: 70% 70%;
}

.resume-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--foreground);
  transition: background-color 0.2s;
  background-color: var(--secondary);
  font-size: 0.875rem;
}

.resume-link:hover {
  background-color: var(--muted);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: var(--muted-foreground);
  transition: color 0.2s;
  font-size: 1.25rem;
}

.social-link:hover {
  color: var(--foreground);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wave {
  0% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(14deg);
  }
  30% {
    transform: rotate(-8deg);
  }
  45% {
    transform: rotate(14deg);
  }
  60% {
    transform: rotate(-4deg);
  }
  75% {
    transform: rotate(10deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.wave-emoji {
  display: inline-block;
  animation: wave 2s infinite;
  transform-origin: 70% 70%;
}

/* ========================================
   COMPANY LOGOS (for fallback display)
   ======================================== */

.image-logos {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
}

/* ========================================
   EXPERIENCE SECTION
   ======================================== */

.experience {
  padding: 2rem 0;
}

.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

.tab-button {
  flex: 1;
  padding: 0.75rem 0;
  background: var(--tab-inactive);
  border: none;
  cursor: pointer;
  color: var(--foreground);
  transition: background-color 0.2s;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

.tab-button:hover {
  background-color: var(--tab-active);
}

.tab-button.active {
  background-color: var(--tab-active);
  color: var(--foreground);
  font-weight: 600;
}

.tab-content {
  display: block;
}

.tab-content.hidden {
  display: none;
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.5rem;
  width: 2px;
  background-color: var(--timeline-line);
  z-index: 0;
}

.experience-item {
  position: relative;
  margin-bottom: 2.5rem;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}

.experience-date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
  margin-left: 2.75rem;
}

.experience-details {
  display: flex;
  gap: 1.5rem;
}

.company-logo {
  position: absolute;
  left: -1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  background-color: var(--background);
  border: 1px solid var(--border);
}

.company-logo span {
  color: white;
  font-weight: bold;
  font-size: 0.75rem;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.company-logo.sit {
  background-color: transparent;
  border: none;
}

.image-logos {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
}

.experience-info {
  padding-left: 3rem;
}

.company-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--foreground);
}

.job-title {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.job-description {
  list-style-position: outside;
  margin-left: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.job-description li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.project-link {
  margin-top: 0.75rem;
  display: inline-block;
}

.project-link span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background-color: #1e293b;
  color: white;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

.project-link i {
  margin-right: 0.25rem;
}

/* ========================================
   FEATURED PROJECTS SECTION
   ======================================== */

.featured-projects {
  padding: 3rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: "__Calistoga_Fallback_137a1a", Calistoga, serif;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 400;
  color: var(--foreground);
}

.view-more {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s;
}

.view-more:hover {
  color: var(--foreground);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 0.5rem;
}

.featured-project-card {
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.featured-project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-card {
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(77, 207, 99, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.project-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.project-image img[src*="UnfoundSounds.jpg"] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto;
}

.project-image img[src*="OpenDeskLogo.png"] {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.project-content {
  padding: 1rem;
}

.project-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-description {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  background-color: #e0e7ff;
  border-radius: var(--radius);
  color: #1e3a8a;
  font-weight: 600;
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.project-link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background-color: var(--secondary);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--secondary-foreground);
  font-size: 0.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.project-link-button:hover {
  background-color: var(--secondary);
  opacity: 0.8;
  transform: scale(1.2);
}

/* ========================================
   MANGA COLLECTION SECTION
   ======================================== */

.manga-collection {
  padding: 3rem 0;
  background-color: var(--background);
}

.manga-slider-container {
  position: relative;
  overflow: hidden;
  padding-bottom: 2rem;
}

.manga-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-behavior: smooth;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--background);
}

.manga-slider:active {
  cursor: grabbing;
}

.manga-slider::-webkit-scrollbar {
  height: 8px;
}

.manga-slider::-webkit-scrollbar-track {
  background: var(--background);
  border-radius: 4px;
}

.manga-slider::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 4px;
}

.manga-slider::-webkit-scrollbar-thumb:hover {
  opacity: 0.8;
}

.manga-card {
  flex: 0 0 auto;
  width: 140px;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--manga-card-bg);
  transition: transform 0.3s, filter 0.3s;
  filter: grayscale(70%);
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.manga-card:hover {
  transform: translateY(-10px);
  filter: grayscale(0%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.manga-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.manga-title {
  font-family: "Calistoga", serif;
  font-size: 0.7rem;
  font-weight: 400;
  text-align: center;
  line-height: 1.3;
  padding: 0.25rem;
  transition: all 0.3s ease;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  padding-bottom: 2rem;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.4em;
  margin: 0 auto;
  background: transparent;
  background-image: linear-gradient(
    to right,
    var(--foreground),
    var(--muted-foreground)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.manga-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.manga-card a img {
  flex-grow: 1;
  object-fit: cover;
}

.manga-card:hover .manga-title {
  background-image: linear-gradient(to right, var(--primary), var(--accent));
}

.manga-title::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
  margin: 0.15rem auto 0;
}

.manga-card:hover .manga-title::after {
  width: 40%;
}

.slider-progress {
  position: relative;
  height: 4px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  margin-top: 1rem;
  overflow: hidden;
}

.progress-bar {
  position: absolute;
  height: 100%;
  background-color: var(--manga-highlight);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}

/* ========================================
   MEDIA QUERIES
   ======================================== */

@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    text-align: left;
    gap: 2rem;
    justify-content: space-between;
  }

  .hero-content {
    text-align: left;
    max-width: 100%;
  }

  .hero-links {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-links {
    flex-direction: column;
    align-items: center;
  }
}
