/* Hardcoded CSS replacing Tailwind - extracted from actual usage */

/* Font definitions */
@font-face {
  font-family: "CustomFont";
  src: url("./fonts/font-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CustomFont";
  src: url("./fonts/font-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #ffffff;
  color: #333333;
  font-family: "CustomFont", "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.625;
  position: relative;
}

/* Shader background overlay */
#shaderCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Typography */
h3 {
  margin: 0 !important;
  font-size: 1.125rem;
  font-weight: normal;
}

.pt-4 {
  padding-top: 1rem;
}

/* Layout */
p {
  margin: 0;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

/* Essential utility classes for JavaScript functionality */
.hidden {
  display: none;
}

.flex {
  display: flex;
}

/* Lightbox content classes used by JavaScript */
.max-w-full {
  max-width: 100%;
}

.max-h-full {
  max-height: 100%;
}

.object-contain {
  object-fit: contain;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.text-white {
  color: #ffffff;
}

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

.p-4 {
  padding: 1rem;
}

/* Animations */

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Semantic Classes */
.job-title {
  font-size: 1.25rem;
  color: #111111;
  margin-bottom: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition-property: color, background-color, border-color, fill, stroke;
  transition-duration: 300ms;
}

.job-title:hover {
  color: #ff5d17;
}

.job-description {
  margin-bottom: 0.5rem;
}

.date-range {
  color: #666666;
  min-width: 180px;
  padding-top: 3px;
}

.date-range-compact {
  color: #666666;
  min-width: 100px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-item {
  cursor: pointer;
}

@media (min-width: 1024px) {
  .gallery-item:hover .gallery-content {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  }

  .gallery-item:hover .gallery-image {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  }
}
.gallery-content {
  position: relative;
  width: 100%;
  height: 6rem;
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition-property: all;
  transition-duration: 300ms;
}

.gallery-video,
.gallery-image {
  width: 100%;
  height: 6rem;
  object-fit: cover;
  border-radius: 0.5rem;
  transition-property: all;
  transition-duration: 300ms;
}

.contact-link {
  color: #111111;
  margin-bottom: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition-property: color, background-color, border-color, fill, stroke;
  transition-duration: 300ms;
  font-size: 1rem;
  line-height: 1.625;
}

.contact-link:hover {
  color: #ff5d17;
}

.section-title,
.person-title {
  color: #111111;
  margin: 0;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.person-subtitle {
  color: #444444;
  margin: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: normal;
}

.person-description {
  color: #444444;
}

.description {
  line-height: 1.8;
  color: #444444;
}

.experience-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.recognition-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.recognition-title {
  color: #111111;
}

.contact-item {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.contact-item-first {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  margin-top: 1rem;
}

.recognition-section {
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .experience-item {
    flex-direction: row;
    margin-bottom: 5rem;
  }

  .recognition-item {
    flex-direction: row;
    margin-bottom: 1.5rem;
  }

  .project-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #side-projects .experience-item {
    margin-bottom: 4.5rem;
  }
}

@media (min-width: 640px) {
  .date-range-compact {
    min-width: 180px;
  }
}

@media (max-width: 768px) {
  .gallery-content {
    height: auto;
  }

  .gallery-video,
  .gallery-image {
    height: auto;
  }
}

/* Semantic Classes - Multi-class combinations unified */
.main-container {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5rem;
  margin-bottom: 5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.header-content {
  margin-bottom: 3rem;
}

.avatar-section {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.avatar-image {
  width: 128px;
  border-radius: 1rem;
}

.body-background {
  background-color: #ffffff;
  color: #444444;
  font-size: 1rem;
  line-height: 1.625;
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease-out;
}

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

.lightbox-content {
  max-width: 100%;
  max-height: 100%;
  animation: scaleIn 0.3s ease-out;
}

.lightbox-loader {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  animation: spin 1s linear infinite;
  border-radius: 50%;
  height: 3rem;
  width: 3rem;
  border-bottom: 2px solid;
  border-color: #ffffff;
}

.lightbox-close-btn {
  border: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #ffffff;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 0.5rem;
  transition-property: all;
  transition-duration: 300ms;
  transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1)
    scaleY(1);
  cursor: pointer;
}

.lightbox-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.7);
  color: #ff5d17;
}

.lightbox-nav-btn {
  border: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 0.75rem;
  transition-property: all;
  transition-duration: 300ms;
  cursor: pointer;
}

.lightbox-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.7);
  color: #ff5d17;
}

.lightbox-prev-btn {
  left: 1rem;
}

.lightbox-next-btn {
  right: 1rem;
}

.icon-small {
  width: 1rem;
  height: 1rem;
}

.icon-medium {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-close {
  width: 1.5rem;
  height: 1.5rem;
  transition-property: transform;
  transition-duration: 200ms;
}

.icon-close:hover {
  transform: rotate(90deg);
}

@media (min-width: 640px) {
  .main-container {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .avatar-image {
    width: 33vw;
  }

  /* Disable lightbox on mobile */
  #lightbox {
    display: none !important;
  }

  /* Remove pointer cursor from gallery items on mobile */
  .cursor-pointer[data-gallery] {
    cursor: default;
  }
}

@media (max-width: 1024px) {
  .experience-item {
    margin-bottom: 5rem;
  }
}
