:root {
  /* Color Palette */
  --primary: #ff9a9e;         /* Soft coral pink */
  --primary-light: #ffd1d1;   /* Light coral pink */
  --primary-dark: #ff7477;    /* Darker coral pink */
  --secondary: #ffeef1;       /* Very light pink */
  --accent: #ff6b6b;          /* Bright coral */
  --text-primary: #ff6b6b;    /* Text in coral */
  --text-secondary: #ff8e8e;  /* Secondary text */
  --gradient-start: #ffeef1;  /* Light pink */
  --gradient-end: #ffd1d1;    /* Soft coral */
  --border-color: #ffc4c4;    /* Light coral border */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a:link { 
  text-decoration: none; 
} 
a:visited { 
  text-decoration: none; 
} 
a:hover { 
  text-decoration: none; 
} 
a:active { 
  text-decoration: none; 
}

/* Header Styles */
header {
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  padding: 1.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.logo h1 {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.hero {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 0;
}

.hero h2 {
  color: var(--primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero p {
  color: var(--text-primary);
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: var(--text-primary);
  margin-top: 2rem;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature i {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature h3 {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.feature p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Main Content */
main {
  flex-grow: 1;
  background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
  padding: 1rem 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  padding: 0.5rem;
}

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

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

/* Card Styles */
@keyframes wiggle {
  0% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(1deg) translateY(-2px); }
  75% { transform: rotate(-1deg) translateY(-2px); }
  100% { transform: rotate(0deg) translateY(0); }
}

.card {
  background: linear-gradient(to right, rgba(255, 238, 241, 0.5), rgba(255, 209, 209, 0.5));
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--primary);
  animation: wiggle 0.5s ease-in-out;
}

.card-image {
  position: relative;
  height: 380px;
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

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

.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255, 106, 107, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.card:hover .card-image::after {
  opacity: 1;
}

.card-content {
  padding: 0.2rem;
}

.card-title {
  color: var(--primary);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-left: 1rem;
  margin-right: 1rem;
}

.category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--gradient-start);
  color: var(--text-primary);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: center;
}

.description {
  color: var(--text-primary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  margin-left: 1rem;
  margin-right: 1rem;
}

/* Footer */
footer {
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-links button {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.3s ease;
  font-size: 0.875rem;
}

.footer-links button:hover {
  color: var(--primary);
}

.copyright {
  color: var(--text-primary);
  font-size: 0.875rem;
}