/* Portfolio Page Specific Styles */

/* Portfolio Hero */
.portfolio-hero {
  padding: 4rem 0 6rem;
  background-color: color-mix(in srgb, var(--secondary) 30%, transparent);
}

@media (min-width: 1024px) {
  .portfolio-hero {
    padding: 6rem 0 8rem;
  }
}

.portfolio-hero-content {
  max-width: 48rem;
  animation: fadeInUp 0.5s ease-out;
}

.portfolio-hero-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .portfolio-hero-title {
    font-size: 3rem;
  }
}

.portfolio-hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* Portfolio Section */
.portfolio-section {
  padding: 4rem 0 6rem;
}

@media (min-width: 1024px) {
  .portfolio-section {
    padding: 6rem 0 8rem;
  }
}

/* Filters */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.5s ease-out 0.1s both;
}

.portfolio-filter {
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: var(--secondary);
  color: var(--muted-foreground);
}

.portfolio-filter:hover {
  color: var(--foreground);
  background-color: color-mix(in srgb, var(--secondary) 80%, transparent);
}

.portfolio-filter.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Portfolio Items */
.portfolio-item {
  cursor: pointer;
  animation: fadeInUp 0.4s ease-out;
  animation-fill-mode: both;
}

.portfolio-item:nth-child(1) { animation-delay: 0s; }
.portfolio-item:nth-child(2) { animation-delay: 0.05s; }
.portfolio-item:nth-child(3) { animation-delay: 0.1s; }
.portfolio-item:nth-child(4) { animation-delay: 0.15s; }
.portfolio-item:nth-child(5) { animation-delay: 0.2s; }
.portfolio-item:nth-child(6) { animation-delay: 0.25s; }
.portfolio-item:nth-child(7) { animation-delay: 0.3s; }
.portfolio-item:nth-child(8) { animation-delay: 0.35s; }
.portfolio-item:nth-child(9) { animation-delay: 0.4s; }

.portfolio-item.hidden {
  display: none;
}

.portfolio-image {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--muted) 0%, var(--secondary) 100%);
  margin-bottom: 1rem;
}

.portfolio-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-placeholder::before {
  content: '';
  width: 50%;
  height: 75%;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.portfolio-item:hover .portfolio-placeholder::before {
  background: color-mix(in srgb, var(--primary) 15%, transparent);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background-color: color-mix(in srgb, var(--foreground) 0%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.portfolio-item:hover .portfolio-overlay {
  background-color: color-mix(in srgb, var(--foreground) 60%, transparent);
}

.portfolio-overlay span {
  color: var(--background);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.portfolio-item:hover .portfolio-overlay span {
  opacity: 1;
}

.portfolio-content {
  margin-bottom: 1rem;
}

.portfolio-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.portfolio-item:hover .portfolio-title {
  color: var(--primary);
}

.portfolio-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.portfolio-duration {
  font-family: var(--font-mono);
}

.portfolio-separator {
  color: var(--muted-foreground);
}

/* CTA Section */
.cta-section {
  padding: 4rem 0 6rem;
  background-color: color-mix(in srgb, var(--secondary) 30%, transparent);
}

@media (min-width: 1024px) {
  .cta-section {
    padding: 6rem 0 8rem;
  }
}

.cta-content {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 2.25rem;
  }
}

.cta-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background-color: color-mix(in srgb, var(--foreground) 80%, transparent);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background-color: var(--background);
  border-radius: 1rem;
  max-width: 48rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--background) 80%, transparent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background-color: var(--background);
}

.modal-image {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--muted) 0%, var(--secondary) 100%);
}

.modal-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-placeholder::before {
  content: '';
  width: 33%;
  height: 66%;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border-radius: 0.5rem;
}

.modal-body {
  padding: 1.5rem;
}

@media (min-width: 1024px) {
  .modal-body {
    padding: 2rem;
  }
}

.modal-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--secondary);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

@media (min-width: 1024px) {
  .modal-title {
    font-size: 1.875rem;
  }
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.modal-meta-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.modal-description {
  color: color-mix(in srgb, var(--foreground) 80%, transparent);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.modal-specs {
  margin-bottom: 1.5rem;
}

.modal-specs-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.modal-specs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-spec-tag {
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background-color: var(--secondary);
  font-size: 0.875rem;
  color: var(--foreground);
}

.modal-cta {
  width: 100%;
}

/* Filter animations */
.portfolio-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-item.filtering-out {
  opacity: 0;
  transform: scale(0.9);
}

.portfolio-item.filtering-in {
  opacity: 1;
  transform: scale(1);
}
/* Footer Styles */
.footer {
  background-color: var(--foreground);
  color: var(--background);
  padding: 4rem 0 2rem;
}

@media (min-width: 1024px) {
  .footer {
    padding: 5rem 0 2rem;
  }
}

.footer-content {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--background);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-description {
  color: color-mix(in srgb, var(--background) 60%, transparent);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-nav-title,
.footer-contacts-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--background);
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-link {
  color: color-mix(in srgb, var(--background) 60%, transparent);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-nav-link:hover {
  color: var(--background);
}

.footer-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: color-mix(in srgb, var(--background) 60%, transparent);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

a.footer-contact-item:hover {
  color: var(--background);
}

.footer-messengers {
  margin-top: 1.5rem;
}

.footer-messengers-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--background);
}

.footer-messengers-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-messenger-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: color-mix(in srgb, var(--background) 60%, transparent);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid color-mix(in srgb, var(--background) 20%, transparent);
  transition: all 0.2s ease;
}

.footer-messenger-item:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 5%, transparent);
}

.footer-messenger-item svg {
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid color-mix(in srgb, var(--background) 10%, transparent);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  color: color-mix(in srgb, var(--background) 40%, transparent);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-link {
  color: color-mix(in srgb, var(--background) 40%, transparent);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: var(--background);
}

@media (max-width: 768px) {
  .footer-messengers-list {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer-messenger-item {
    justify-content: center;
  }
}