/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #ffffff;
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.6;
}

/* Header */
header {
  background: #ffffff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #007BFF;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 1.5rem;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #007BFF;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #007BFF, #61A5FF);
  color: white;
  padding: 5rem 2rem;
  text-align: left;
  animation: slideFade 1s ease;
  border-bottom-left-radius: 80px;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.4rem;
  opacity: 0.9;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  text-align: left;
}

h2 {
  font-size: 2.5rem;
  color: #0056D2;
  margin-bottom: 1rem;
  animation: fadeLeft 1s ease;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fadeLeft 1.2s ease;
}

.filter-button {
  background: transparent;
  border: 2px solid #007BFF;
  color: #007BFF;
  padding: 0.6rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-button:hover {
  background: #007BFF;
  color: white;
  transform: scale(1.05);
}
/* Cards */
/* Applying texture */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  animation: fadeUp 1.5s ease;
}

.card {
  background: linear-gradient(135deg, #e0f2ff, #f0faff);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 6px 12px rgba(0, 123, 255, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  cursor: pointer;
  background-image: url('https://www.transparenttextures.com/patterns/cubes.png'); /* Adding texture */
  background-size: 150px 150px; /* Adjusting texture scale */
  background-position: center;
}

.card:nth-child(1) {
  background: linear-gradient(135deg, #e0f7fa, #e0f2f1);
}
.card:nth-child(2) {
  background: linear-gradient(135deg, #e8eaf6, #f3e5f5);
}
.card:nth-child(3) {
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}
.card:nth-child(4) {
  background: linear-gradient(135deg, #f3f9d2, #dcedc8);
}

.card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 123, 255, 0.2);
  background: linear-gradient(135deg, #d0e8ff, #f0f8ff);
}

.card a {
  text-decoration: none;
  color: inherit;
}

.card h3 {
  margin-bottom: 1rem;
  color: #0056d2;
}

.card p {
  color: #555;
  font-size: 1rem;
}



/* Footer */
footer {
  background: #f0f0f0;
  padding: 2rem;
  text-align: left;
  font-size: 0.9rem;
  color: #666;
  margin-top: 4rem;
}

/* Animations */
@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideFade {
  from {
    opacity: 0;
    transform: translateY(-60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.2rem;
  }
  h2 {
    font-size: 2rem;
  }
}