/* =========================================== */
/* UNIFIED TILE STYLES (MY WORK & BEYOND CODE) */
/* =========================================== */

.tiles-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.tile {
  display: flex;
  flex-direction: column;
  border-radius: 0; /* Sharp edges */
  overflow: hidden;
  transition: all 0.3s ease-out;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.tile-image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.tile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.placeholder-icon {
  font-size: 3rem;
  color: #94a3b8;
  font-weight: bold;
}

.tile-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tile-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.tile-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 1.5rem;
}

.tile-role {
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 1rem;
}

.tile-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tile-tools span {
  background-color: #e2e8f0;
  color: #475569;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.tile-buttons {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.btn-project {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.btn-project i {
  font-size: 1rem;
}

.btn-project.github {
  background-color: #1a1a1a;
  color: white;
  border: 1px solid #1a1a1a;
}

.btn-project.github:hover {
  background-color: #333;
  transform: translateY(-2px);
}

.btn-project.demo {
  background-color: transparent;
  color: #2563eb;
  border: 1px solid #2563eb;
}

.btn-project.demo:hover {
  background-color: rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.btn-project.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- DESKTOP STYLES --- */
@media (min-width: 768px) {
  .tiles-container {
    grid-template-columns: 1fr;
  }

  .tile {
    flex-direction: row;
  }

  .tile-image-container {
    width: 40%;
  }

  .tile-content {
    width: 60%;
    padding: 2rem;
  }
}

/* Larger screens */
@media (min-width: 1024px) {
  .tiles-container {
    padding: 0;
  }
  
  .tile-content {
    padding: 2.5rem;
  }
}

/* Section specific styles */
#my-work,
#beyond-code {
  padding: 5rem 0;
  background-color: #f8fafc;
}

/* Tile link styles */
.tile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: 0.9rem;
  width: fit-content;
}

.tile-link:hover {
  background: rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
  text-decoration: none;
}

.tile-link::after {
  content: '→';
  transition: transform 0.3s ease;
  display: inline-block;
}

.tile-link:hover::after {
  transform: translateX(3px);
}

.tile-role {
  color: #2563eb;
  font-weight: 600;
  margin: -0.5rem 0 1rem 0;
  font-size: 0.9rem;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  line-height: 1.6;
}
