/* ========================================
   CARD COMPONENT
   ======================================== */

.card {
  padding: var(--card-padding);
  border-radius: 8px;
}

.card__image {
  margin-bottom: var(--space-md);
}

.card__title {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

@media (min-width: 768px) {
  .card__title {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .card__title {
    font-size: 2rem;
  }
}

.card__meta {
  margin-bottom: var(--space-xs);
}

.card__description {
  margin-bottom: var(--space-md);
}

/* ========================================
   CARD GRID - FOR LAYING OUT MULTIPLE CARDS
   ======================================== */

.card-grid {
  display: grid;
  gap: var(--card-gap);
}

.card-grid--2col {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .card-grid--2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card-grid--3col {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .card-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid--3col {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-grid--stack {
  grid-template-columns: 1fr;
}

/* ========================================
   PROJECT CARD
   ======================================== */

.project-card {
  display: block;
  border-top: 1px solid currentColor;
  padding: var(--space-lg) var(--space-md);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}

.project-card__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: flex-start;
}

@media (min-width: 768px) {
  .project-card__content {
    grid-template-columns: 150px 1fr;
  }
}

.project-card__image {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
  transition: filter 0.5s;
}

.project-card:hover .project-card__image img {
  filter: grayscale(0%);
}

.project-card__image .color-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s;
}

.project-card:hover .project-card__image .color-overlay {
  opacity: 0.3;
}

.project-card__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .project-card__header {
    grid-template-columns: 2fr 1fr 1fr auto;
  }
}

.project-card__title {
  font-size: 1.875rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-xs);
}

@media (min-width: 768px) {
  .project-card__title {
    font-size: 2.25rem;
    margin-bottom: 0;
  }
}

.project-card__category {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.6;
}

.project-card__year {
  font-size: 0.875rem;
  opacity: 0.6;
}

.project-card__arrow {
  display: flex;
  justify-content: flex-end;
}

.project-card__arrow svg {
  transition: transform 0.3s;
}

.project-card:hover .project-card__arrow svg {
  transform: translateX(0.5rem);
}

.project-card__description {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.8;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .project-card__description {
    font-size: 1.125rem;
  }
}

/* ========================================
   EXPERIENCE CARD
   ======================================== */

.experience-card {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-md) 0;
}

.experience-card__logo {
  width: 80px;
  height: 80px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  overflow: hidden;
}

.experience-card__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.experience-card:hover .experience-card__logo img {
  filter: grayscale(0%);
}

.experience-card__content {
  border-left: 2px solid currentColor;
  padding-left: var(--space-lg);
  padding-top: var(--space-xs);
  flex: 1;
  max-width: 65ch;
}

.experience-card__title {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

@media (min-width: 768px) {
  .experience-card__title {
    font-size: 1.375rem;
  }
}

@media (min-width: 1024px) {
  .experience-card__title {
    font-size: 1.5rem;
  }
}

.experience-card__role {
  font-size: 1rem;
  opacity: 0.6;
  margin-bottom: 0.25rem;
}

.experience-card__date {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.4;
}

/* ========================================
   TESTIMONIAL CARD
   ======================================== */

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 65ch;
}

.testimonial-card__quote {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.8;
  font-style: italic;
}

@media (min-width: 768px) {
  .testimonial-card__quote {
    font-size: 1.125rem;
  }
}

.testimonial-card__author {
  font-weight: 300;
  margin-bottom: var(--space-xs);
}

.testimonial-card__role {
  font-size: 0.875rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ========================================
   ACCOLADE CARD
   ======================================== */

.accolade-card {
  border: 1px solid currentColor;
  padding: var(--space-md);
  transition: all 0.3s;
}

.section--dark .accolade-card {
  border-color: var(--color-text-light);
}

.accolade-card:hover {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}

.accolade-card__name {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.6;
  margin-bottom: var(--space-xs);
}

.accolade-card__title {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

@media (min-width: 768px) {
  .accolade-card__title {
    font-size: 1.25rem;
  }
}

.accolade-card__year {
  font-size: 0.875rem;
  opacity: 0.6;
}

/* ========================================
   TAG/BADGE COMPONENT
   ======================================== */

.tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 4px;
  font-size: 0.875rem;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* ========================================
   VALUE ITEM COMPONENT
   ======================================== */

.value-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.value-item__icon {
  padding: 0.75rem;
  border: 1px solid currentColor;
  transition: all 0.3s;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-item:hover .value-item__icon {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

.value-item__label {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .value-item__label {
    font-size: 1.125rem;
  }
}

/* ========================================
   TEXT BOX COMPONENT
   ======================================== */

.text-box {
  border-left: 2px solid currentColor;
  padding-left: var(--space-lg);
  max-width: 65ch;
}

.text-box p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: var(--space-sm);
}

.text-box p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .text-box p {
    font-size: 1.125rem;
  }
}

/* ========================================
   CTA COMPONENT
   ======================================== */

.cta {
  text-align: center;
  padding: var(--space-xl) 0;
}

.cta__title {
  margin-bottom: var(--space-md);
}

.cta__buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Non-centered button groups */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ========================================
   PROFILE COMPONENT
   ======================================== */

.profile {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.profile__image {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 28rem;
}

.profile__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
}

.profile__status {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: var(--space-sm);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.status-ping {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.75;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.status-text {
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* ========================================
   NAVIGATION COMPONENT
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-text-dark);
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

@media (min-width: 768px) {
  .nav__container {
    padding: var(--space-md) var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .nav__container {
    padding: var(--space-md) var(--space-xl);
  }
}

.nav__logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: -0.05em;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-dark);
}

.nav__toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-dark);
  position: relative;
}

.nav__hamburger::before,
.nav__hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-text-dark);
  left: 0;
}

.nav__hamburger::before {
  top: -8px;
}

.nav__hamburger::after {
  top: 8px;
}

.nav__menu {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-text-dark);
  margin-top: var(--space-md);
  background: var(--color-bg-light);
}

.nav__menu.active {
  display: flex;
}

.nav__menu button {
  text-align: left;
  font-size: 1.125rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-dark);
  transition: opacity 0.3s;
  min-height: 44px;
  padding: var(--space-xs) 0;
}

.nav__menu button:hover {
  opacity: 0.6;
}

@media (min-width: 768px) {
  .nav__menu {
    padding: var(--space-lg) var(--space-md);
  }
}

@media (min-width: 1024px) {
  .nav__menu {
    padding: var(--space-xl) var(--space-lg);
  }

  .nav__menu button {
    font-size: 1.25rem;
  }
}

/* ========================================
   FOOTER COMPONENT
   ======================================== */

.footer {
  border-top: 1px solid var(--color-text-dark);
  padding: var(--space-xl) 0;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .footer__container {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .footer__container {
    padding: 0 var(--space-xl);
  }
}

.footer p {
  font-size: 0.875rem;
  opacity: 0.6;
}

/* ========================================
   IMAGE LIGHTBOX
   ======================================== */

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.lightbox.active {
  display: flex;
}

.lightbox__content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--next {
  right: 1rem;
}

@media (min-width: 768px) {
  .lightbox__nav--prev {
    left: 2rem;
  }

  .lightbox__nav--next {
    right: 2rem;
  }
}

/* Clickable images */
.zoomable {
  cursor: zoom-in;
}

.profile__image.zoomable img {
  cursor: zoom-in;
}
