* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  color: #1f2937;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 50%, #dbeafe 100%);
  min-height: 100vh;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out forwards;
}

.bg-grid {
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero {
  position: relative;
  padding: 1rem 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 896px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  color: #1e40af;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  animation: fadeIn 0.6s ease-out;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.1;
  animation: fadeIn 0.6s ease-out 0.1s both;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 20px;
  color: #4b5563;
  max-width: 768px;
  margin: 0 auto;
  line-height: 1.6;
  animation: fadeIn 0.6s ease-out 0.2s both;
}

.filter-section {
  position: relative;
  z-index: 30;
  padding: 24px;
}

.filter-section.sticky {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 0;
}

.filter-container {
  max-width: 1280px;
  margin: 0 auto;
}

.filter-primary {
  display: flex;
  flex-wrap: wrap;
  padding:1rem 0;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.filter-btn {
  padding: 12px 32px;
  border-radius: 9999px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
}

.filter-btn.primary {
  background: #f3f4f6;
  color: #374151;
}

.filter-btn.primary:hover {
  background: #e5e7eb;
}

.filter-btn.primary.active {
  background: #2563eb;
  color: white;
  box-shadow: 0 20px 25px rgba(37, 99, 235, 0.3);
  transform: scale(1.05);
}

.filter-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.filter-btn.secondary {
  padding: 8px 16px;
  background: white;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  font-size: 13px;
}

.filter-btn.secondary:hover {
  border-color: #3b82f6;
  color: #2563eb;
}

.filter-btn.secondary.active {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
  box-shadow: 0 8px 15px rgba(59, 130, 246, 0.3);
}

.projects-section {
  margin: 0 auto;
  /* padding: 64px 24px; */
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  animation: fadeIn 0.6s ease-out;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px);
}

.project-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.2),
    transparent
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.cta-button {
  background: white;
  color: #1f2937;
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  transform: translateY(16px);
}

.project-card:hover .cta-button {
  transform: translateY(0);
}

.cta-button:hover {
  background: #f3f4f6;
  color: #2563eb;
}

.project-badge {
  position: absolute;
  bottom: 7.2rem;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  color: #1f2937;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.project-platforms {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.platform-web {
  background: #eff6ff;
  color: #2563eb;
}

.platform-ios {
  background: #f3f4f6;
  color: #374151;
}

.platform-android {
  background: #f0fdf4;
  color: #16a34a;
}

.project-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 10rem;
}

.project-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.project-card:hover .project-title {
  color: #2563eb;
}

.project-description {
  color: #6b7280;
  font-size: 15px;
  line-height: 1.6;
}

.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: #9ca3af;
}

.empty-state p {
  font-size: 18px;
}

.cta-section {
  max-width: 1024px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.cta-card {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 32px;
  padding: 48px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
}

.cta-description {
  font-size: 18px;
  color: #eff6ff;
  max-width: 512px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.cta-btn {
  background: white;
  color: #2563eb;
  padding: 16px 32px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
  background: #f0f9ff;
  color: #2563eb;
  transform: scale(1.05);
}

.cta-btn svg {
  transition: transform 0.3s ease;
}

.cta-btn:hover svg {
  transform: translateX(4px);
}

footer {
  background: #111827;
  color: white;
  padding: 48px 24px;
  text-align: center;
}

footer p {
  color: #9ca3af;
  margin: 0;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #2563eb;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width:768px){

.filter-section{
  padding:16px 10px;
}

.filter-primary{
  justify-content:flex-start;
  overflow-x:auto;
  flex-wrap:nowrap;
  gap:10px;
  scroll-behavior:smooth;
  justify-content: center;
}

.filter-primary::-webkit-scrollbar{
  display:none;
}

.filter-btn.primary{
  font-size:14px;
  padding:10px 18px;
  white-space:nowrap;
  flex:0 0 auto;
}

/* Secondary filters slider */
.filter-secondary{
  display:flex;
  flex-wrap:nowrap;
  overflow-x:auto;
  gap:8px;
  padding-bottom:6px;
  scroll-behavior:smooth;
}

.filter-secondary::-webkit-scrollbar{
  display:none;
}

.filter-btn.secondary{
  flex:0 0 auto;
  padding:8px 16px;
  background:white;
  color:#4b5563;
  border:1px solid #e5e7eb;
  font-size:13px;
  white-space:nowrap;
}

/* Projects */
.projects-grid{
  grid-template-columns:1fr;
  gap:20px;
}

.project-content{
  padding:18px;
}

.project-image{
  height:400px;
}

.project-title{
  font-size:1.1rem;
}

.project-description{
  font-size:14px;
}

}