/* ===============================
   Root Variables
================================= */

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --card: #f8f8f8;
  --primary: #4f46e5;
  --border: #eaeaea;
}

/* ===============================
   Reset
================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===============================
   Layout
================================= */

.container {
  width: 90%;
  max-width: 1150px;
  margin: 0 auto;
}

.section {
  padding: 120px 0;
}

.section-title {
  font-size: 32px;
  margin-bottom: 50px;
  font-weight: 600;
}

/* ===============================
   Navbar
================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 20px 0;
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid var(--border);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 18px;
}

.nav-link {
  margin-left: 28px;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color 0.25s ease;
}

/* Underline effect */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0%;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* Active page */
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  width: 100%;
}

/* ===============================
   Hero
================================= */

.hero {
  padding: 180px 0 140px 0;
  max-width: 750px;
}

.hero h1 {
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
}

.hero h3 {
  margin-bottom: 25px;
}

.hero p {
  font-size: 19px;
  opacity: 0.9;
  margin-bottom: 35px;
}

/* ===============================
   Buttons
================================= */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  transition: 0.25s ease;
}

.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

.secondary {
  border: 1px solid var(--border);
  color: var(--text);
}

.secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ===============================
   Grid
================================= */

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

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

/* ===============================
   Cards
================================= */

.card {
  background: var(--card);
  padding: 28px;
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
}

.card ul {
  margin-top: 12px;
  padding-left: 20px;
}

.project-links {
  margin-top: 18px;
}

.link {
  color: var(--primary);
  margin-right: 14px;
  font-weight: 500;
  font-size: 14px;
}

.link:hover {
  text-decoration: underline;
}

/* ===============================
   View More
================================= */

.view-more-wrapper {
  margin-top: 60px;
  text-align: center;
}

/* ===============================
   Utilities
================================= */

.muted {
  color: var(--muted);
  font-size: 14px;
}

/* ===============================
   Footer
================================= */

.footer {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
}

.footer a {
  color: var(--primary);
}

/* ===============================
   Responsive
================================= */

@media (max-width: 1000px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 42px;
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding: 120px 0 80px 0;
  }
}

.filters {
  margin-bottom: 50px;
}

.filter-btn {
  padding: 10px 20px;
  margin-right: 12px;
  margin-bottom: 12px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: 0.25s ease;
  font-size: 13px;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

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