:root {
  /* Brand Colors */
  --primary: #3b82f6;
  --secondary: #1e293b;
  --accent: #6366f1;
  --primary-hover: #2563eb;
  --accent-hover: #4f46e5;

  /* State Colors */
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Backgrounds */
  --background: #f3f6fb;
  --surface: #ffffff;
  --surface-alt: #f9fafb;
  --surface-dark: #f1f5f9;

  /* Borders & Shadows */
  --border: #e5e7eb;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 40px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);

  /* Text */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Timing & Animation */
  --transition-fast: all 0.2s ease;
  --transition: all 0.35s cubic-bezier(.23,.92,.53,1);
  --transition-slow: all 0.6s cubic-bezier(.19,1,.22,1);
}

/* ------------------------------
   RESET & BASE
---------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Background Animated Gradient */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(270deg, #f0f4ff, #e0e7ff, #f0f9ff);
  background-size: 600% 600%;
  animation: gradientMove 20s ease infinite;
  z-index: -1;
}

/* Container */
.container {
  width: 100%;

  padding: 0 20px;
  margin: 0 auto;
}

/* ------------------------------
   HEADER
---------------------------------*/
h1 {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  animation: fadeDown 1s ease both;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

h1::after {
  content: "";
  display: block;
  height: 4px;
  width: 60px;
  background: var(--primary);
  opacity: 0.8;
  margin: 12px auto 0;
  border-radius: 2px;
}

.subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  animation: fadeUp 1s ease both 0.3s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------
   FILTER BUTTONS
---------------------------------*/
.filters {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  margin: 40px 0 30px;
  padding-bottom: 6px;
  scrollbar-width: none; /* Firefox */
}
.filters::-webkit-scrollbar { display: none; }

.filter-btn {
  flex: 0 0 auto;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 2px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* ------------------------------
   CARD GRID
---------------------------------*/
.card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 50px;
}

/* Card */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  transform: translateY(0);
  animation: fadeScale 0.6s ease both;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* ------------------------------
   IMAGE
---------------------------------*/
.card-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface-dark);
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}

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

.card-img-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.25), rgba(0,0,0,0));
  opacity: 0;
  transition: var(--transition);
}

.card:hover .card-img-container::after { opacity: 1; }

/* ------------------------------
   CARD CONTENT
---------------------------------*/
.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

.card-content p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}

/* ------------------------------
   FORM & BUTTONS
---------------------------------*/
.email-input {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}

.button-group {
  display: flex;
  gap: 10px;
}

.btn {
  flex: 1;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-connect {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.btn-connect:hover {
  background: linear-gradient(90deg, var(--accent-hover), var(--primary-hover));
  transform: translateY(-2px);
}

.btn-details {
  background: var(--surface-alt);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-details:hover {
  background: var(--primary);
  color: #fff;
}

/* ------------------------------
   SOCIAL ICONS
---------------------------------*/
.social-icons-card {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.social-icons-card a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  text-decoration: none;
}

.social-icons-card a:hover {
  background: var(--primary);
  color: #fff;
}

/* ------------------------------
   ANIMATIONS
---------------------------------*/
@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* ------------------------------
   RESPONSIVE FIXES
---------------------------------*/
@media (max-width: 768px) {
  .button-group { flex-direction: column; }
  .filters { gap: 8px; }
  .card-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 480px) {
  .card-content { padding: 16px; }
  .btn { font-size: 13px; padding: 10px; }
  .card-container {

    grid-template-columns: repeat(1, 1fr);

  }
}
}