/* 🔍 SEARCH BAR */
.search-box {
  text-align: center;
  margin: 40px 0 20px;
  position: relative;
  z-index: 10;
}

.search-box input {
  width: 90%;
  max-width: 500px;
  padding: 16px 24px;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-main);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  outline: none;
  font-size: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 25px var(--primary-glow);
  transform: scale(1.02);
}

.search-box input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* NOTES GRID */
.notes-section {
  padding: 20px 5% 100px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.note-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.note-card:hover {
  transform: translateY(-12px) scale(1.03);
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(2, 132, 199, 0.25);
  background: rgba(255,255,255,0.08);
}

.note-icon {
  font-size: 50px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 12px var(--primary-glow));
  transition: transform 0.3s ease;
}

.note-card:hover .note-icon {
    transform: rotate(5deg) scale(1.2);
}

.note-card h3 {
  color: var(--text-main);
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 700;
}

.note-card p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 25px;
  line-height: 1.6;
  flex-grow: 1;
}

.note-card a {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px var(--primary-glow);
}

.note-card a:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 25px var(--accent-glow);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .notes-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.header {
  padding: 140px 20px 20px;
  text-align: center;
}

.header h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  background: linear-gradient(to bottom, #FFFFFF, #94A3B8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  font-weight: 800;
}
