@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --primary: #0f172a;
  --accent: #38bdf8;
  --bg: #f8fafc;
  --card-bg: rgba(255,255,255,0.85);
  --glass: rgba(255,255,255,0.6);
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--primary);
  min-height: 100vh;
}

/* Sticky Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
}

.logo {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}
.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
  position: absolute;
  left: 0;
  bottom: -4px;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-links a:hover::after {
  width: 100%;
}

.cta-btn {
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 2rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background 0.2s;
}
.cta-btn:hover {
  background: #0ea5e9;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 3rem auto 2rem auto;
  padding: 2rem;
  background: linear-gradient(120deg, #f0f9ff 60%, #bae6fd 100%);
  border-radius: 2rem;
  box-shadow: var(--shadow);
  gap: 2rem;
}
.hero-content {
  flex: 1;
}
.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--primary);
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #334155;
}
.hero-btn {
  background: var(--accent);
  color: #fff;
  padding: 0.9rem 2.2rem;
  border-radius: 2rem;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  transition: background 0.2s;
}
.hero-btn:hover {
  background: #0ea5e9;
}
.hero-image img {
  width: 350px;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

/* Category Cards */
.categories {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}
.categories h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--primary);
  text-align: center;
}
.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--card-bg);
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(6px);
}
.card h3 {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.card p {
  color: #334155;
  margin-bottom: 1.2rem;
}
.card a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  transition: color 0.2s;
}
.card a:hover {
  color: var(--accent);
}
.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 32px 0 rgba(31, 38, 135, 0.18);
}

/* Blog Preview */
.blog-preview {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}
.blog-preview h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--primary);
  text-align: center;
}
.blog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.blog-card {
  display: flex;
  background: var(--glass);
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s;
  backdrop-filter: blur(8px);
}
.blog-card img {
  width: 120px;
  object-fit: cover;
  height: 100%;
}
.blog-card div {
  padding: 1.2rem;
  flex: 1;
}
.blog-card h4 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.blog-card p {
  color: #334155;
  margin-bottom: 1rem;
}
.blog-card a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  transition: color 0.2s;
}
.blog-card a:hover {
  color: var(--accent);
}
.blog-card:hover {
  box-shadow: 0 12px 32px 0 rgba(31, 38, 135, 0.18);
}

/* Footer */
footer {
  background: linear-gradient(120deg, #0f172a 60%, #334155 100%);
  color: #fff;
  padding: 2.5rem 0 0.5rem 0;
  margin-top: 4rem;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 2rem;
}
.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.footer-logo span {
  color: var(--accent);
}
.footer-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-social a {
  margin-left: 1.2rem;
  display: inline-block;
}
.footer-social img {
  width: 24px;
  height: 24px;
  filter: invert(1) brightness(2);
  transition: filter 0.2s;
}
.footer-social img:hover {
  filter: invert(60%) sepia(100%) saturate(500%) hue-rotate(180deg);
}
.footer-bottom {
  text-align: center;
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-top: 2rem;
  padding-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .hero-image img {
    width: 90vw;
    max-width: 350px;
  }
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .nav-links {
    gap: 1rem;
  }
  .categories, .blog-preview {
    padding: 0 1rem;
  }
  .category-cards, .blog-cards {
    grid-template-columns: 1fr;
  }
}