/* Global styles for premium typography and consistency */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #d1d5db; /* gray-300 */
  background: linear-gradient(to bottom, #000000, #111827, #000000);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #374151; /* gray-700 */
  z-index: 100;
}

.navbar .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #22d3ee; /* cyan-400 */
  text-decoration: none;
}

.navbar .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar .nav-links a {
  color: #d1d5db;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
  color: #22d3ee;
}

/* Mobile menu */
.navbar .mobile-menu-toggle {
  display: none;
}

.navbar .nav-links.mobile {
  display: none;
}

/* Hero */
.hero {
  padding: 4rem 1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 600;
  color: #22d3ee;
  margin-bottom: 1rem;
  animation: fadeUp 0.8s ease-out;
}

.hero p {
  font-size: 1.125rem;
  color: #9ca3af; /* gray-400 */
  animation: fadeUp 0.8s ease-out 0.2s both;
}

/* Section */
.section {
  padding: 3rem 1rem;
}

.section .container {
  max-width: 1280px;
  margin: 0 auto;
}

/* Filter Toggle */
.filter-toggle {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(31, 41, 55, 0.5);
  border: 2px solid #374151;
  color: #d1d5db;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.filter-btn:hover {
  border-color: #22d3ee;
  color: #22d3ee;
}

.filter-btn.active {
  background: linear-gradient(to right, #22d3ee, #a855f7);
  border-color: #22d3ee;
  color: #000;
}

.section h2 {
  font-size: 2.25rem;
  font-weight: 600;
  color: #22d3ee;
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease-out;
}

/* Grid */
.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Cards */
.card {
  background: rgba(31, 41, 55, 0.5); /* gray-800/50 */
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid #374151; /* gray-700 */
  backdrop-filter: blur(4px);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #22d3ee;
  margin-bottom: 0.5rem;
}

.card p {
  color: #d1d5db;
  font-size: 0.875rem;
}

/* Cert card */
.cert-card {
  background: rgba(31, 41, 55, 0.5);
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid #374151;
  backdrop-filter: blur(4px);
  transition: transform 0.3s;
}

.cert-card:hover {
  transform: translateY(-4px);
}

.cert-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #22d3ee;
  margin-bottom: 0.25rem;
}

.cert-card .issuer {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #06b6d4; /* cyan-500 */
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 9999px;
  transition: background 0.3s;
  font-size: 0.875rem;
}

.button:hover {
  background: #0891b2; /* cyan-600 */
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media queries */
@media (max-width: 768px) {
  .navbar .container {
    height: auto;
    padding: 0.75rem 1rem;
  }
  
  .navbar .nav-links {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    position: absolute;
    top: 3.5rem;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid #374151;
    padding: 1rem;
    list-style: none;
  }
  
  .navbar .nav-links.mobile {
    display: flex;
  }
  
  .navbar .nav-links li {
    padding: 0.5rem 0;
  }
  
  .navbar .nav-links a {
    display: block;
    padding: 0.5rem 0;
  }
  
  .navbar .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #d1d5db;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  .navbar .mobile-menu-toggle:hover {
    color: #22d3ee;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .section {
    padding: 2rem 1rem;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 1rem;
  }
  .cert-card {
    padding: 1.5rem;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 1rem;
  }
  .section {
    padding: 4rem 1rem;
  }
}
