/* Base styles */
:root {
  --foreground-rgb: 0, 0, 0;
  --background-start-rgb: 255, 255, 255;
  --background-end-rgb: 255, 255, 255;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: rgb(var(--foreground-rgb));
  background: linear-gradient(
      to bottom,
      transparent,
      rgb(var(--background-end-rgb))
    )
    rgb(var(--background-start-rgb));
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  letter-spacing: -0.025em;
}

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

/* Font weights */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-24 { margin-bottom: 6rem; }
.mr-4 { margin-right: 1rem; }
.m-5 { margin: 1.25rem; }
.mt-4 { margin-top: 1rem; }

/* Dimensions */
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-full { width: 100%; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-80 { height: 20rem; }
.h-full { height: 100%; }

/* Colors */
.bg-white { background-color: #ffffff; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-green-500 { background-color: #10b981; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-purple-500 { background-color: #8b5cf6; }
.bg-red-500 { background-color: #ef4444; }
.bg-teal-600 { background-color: #0d9488; }
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-gray-300 { color: #d1d5db; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-blue-500 { color: #3b82f6; }
.text-yellow-500 { color: #f59e0b; }
.text-purple-500 { color: #8b5cf6; }
.text-red-500 { color: #ef4444; }
.border-gray-300 { border-color: #d1d5db; }

/* Opacity */
.bg-opacity-10 { background-opacity: 0.1; }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/40 { background-color: rgba(255, 255, 255, 0.4); }

/* Layout */
.container { max-width: 1280px; margin-left: auto; margin-right: auto; }
.min-h-screen { min-height: 100vh; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gap-2 { gap: 0.5rem; }
.gap-6 { gap: 1.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.aspect-square { aspect-ratio: 1 / 1; }
.flex-col { flex-direction: column; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.z-10 { z-index: 10; }
.overflow-hidden { overflow: hidden; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.tracking-tight { letter-spacing: -0.025em; }
.transition { transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; }
.transition-all { transition-property: all; }
.transition-transform { transition-property: transform; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }
.transform { transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1); }
.hover\:scale-105:hover { transform: scale(1.05); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:scale-150 { transform: scale(1.5); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }
.group:hover .group-hover\:shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.hover\:bg-opacity-20:hover { background-opacity: 0.2; }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hover\:text-gray-900:hover { color: #111827; }
.opacity-0 { opacity: 0; }
.-skew-x-12 { transform: skewX(-12deg); }
.scale-0 { transform: scale(0); }

/* Media queries */
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .max-sm\:px-0 { padding-left: 0; padding-right: 0; }
  .max-sm\:px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
  .max-sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
  .max-sm\:my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
  .max-sm\:w-full { width: 100%; }
  .max-sm\:m-0 { margin: 0; }
  .max-sm\:rounded-none { border-radius: 0; }
}

/* Custom project styles */
.project {
  margin: 1.25rem;
  height: 20rem;
  border-radius: 0.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateZ(0);
  transition: all 500ms ease-in-out;
}

.project:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease-out;
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  transition: background-color 500ms ease-in-out;
}

.project:hover .project-overlay {
  background-color: rgba(0, 0, 0, 0.4);
}

.project-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: white;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.project-header {
  display: flex;
  align-items: center;
}

.project-icon {
  font-size: 2.25rem;
  margin-right: 1rem;
}

.project-name {
  font-size: 1.875rem;
  font-weight: 600;
}

.project-description {
  font-size: 1.125rem;
  color: #d1d5db;
}

/* Enhanced button styles */
.btn {
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  transform: translateZ(0);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 300ms ease;
}

.btn:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px) scale(1.02);
}

.btn:hover:after {
  opacity: 1;
}

.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary {
  background-color: #0d9488;
  color: white;
}

.btn-secondary {
  background-color: white;
  color: black;
}

/* Update the project buttons container styling */
.project-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Add this to create more professional project button styling */
.project-buttons .btn {
  min-width: 120px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.project-buttons .btn-primary {
  font-weight: 600;
}

.skill-card {
  padding: 1.5rem;
  border-radius: 0.5rem;
  transition: all 300ms ease-in-out;
  background-opacity: 0.1;
}

.skill-card:hover {
  background-opacity: 0.2;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.skill-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0;
}

.skill-description {
  font-size: 0.875rem;
  color: #4b5563;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .project {
    margin: 0;
    margin-bottom: 0.5rem;
    width: 100%;
    border-radius: 0;
  }
}

.group {
  position: relative;
}

.tech-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  transition: all 500ms ease-in-out;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tech-logo {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  transition: transform 700ms ease-out;
}

.tech-item:hover .tech-logo {
  transform: scale(1.1);
}

.shiny-effect {
  position: absolute;
  inset: 0;
  transition: all 700ms ease-in-out;
  opacity: 0;
}

.tech-item:hover .shiny-effect {
  opacity: 1;
}

.shiny-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-12deg) scale(0);
  transition: transform 500ms ease-in-out;
}

.tech-item:hover .shiny-gradient {
  transform: skewX(-12deg) scale(1.5);
}
